From f6f5da02f70f821fd2a05d15c0da82bb5b6e8dd4 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 28 Oct 2025 18:33:04 +0000 Subject: [PATCH 1/2] chore(tests): avoid variable name conflict PiperOrigin-RevId: 824648432 Source-Link: https://github.com/googleapis/googleapis/commit/7a87bf05880470b360f42e2b7f9ff5b28fa6cbe0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6d65fd31df34b81bc027302607b2c969c845cd18 Copy-Tag: eyJwIjoiQWRzQWRNYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiI2ZDY1ZmQzMWRmMzRiODFiYzAyNzMwMjYwN2IyYzk2OWM4NDVjZDE4In0= feat: Added Application resource feat: Added AudienceSegment resource feat: Added Browser resource feat: Added BrowserLanguage resource feat: Added CmsMetadataKey resource feat: Added CmsMetadataValue resource feat: Added methods for reading and writing Contact resources feat: Added DeviceCapability resource feat: Added DeviceManufacturer resource feat: Added MobileCarrier resource feat: Added MobileDevice resource feat: Added MobileDeviceSubmodel resource feat: Added additional Report dimensions and metrics feat: Added Content resource feat: Added ContentBundle resource feat: Added ContentLabel resource feat: Added CreativeTemplate resource feat: Added Team resource feat!: Added required field `displayName` to Team feat: Added Site resource feat: Added AdReviewCenterAd methods fix!: Made AdUnitSize fields proto3 optional fix!: Made Label fields proto3 optional fix!: Made Contact fields proto3 optional feat!: Added required fields `displayName` and `company` to Contact fix!: Made Company fields proto3 optional fix!: Moved multiple Report messages and submessages fix!: Renamed ReportDefinition.Dimensions PROGRAMMATIC_BUYER_ID and PROGRAMMATIC_BUYER_NAME to DEAL_BUYER_ID and DEAL_BUYER_NAME fix!: Renamed ReportDefinition.Dimension AD_SERVER_UNFILTERED_IMPRESSIONS to AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS docs: Clarified pagination defaults for List methods PiperOrigin-RevId: 822617305 Source-Link: https://github.com/googleapis/googleapis/commit/1615c5124db6840cc120d4e855105789e2691746 Source-Link: https://github.com/googleapis/googleapis-gen/commit/359756d8e72a76078514b4c02241dd75dcc1e9e7 Copy-Tag: eyJwIjoiQWRzQWRNYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiIzNTk3NTZkOGU3MmE3NjA3ODUxNGI0YzAyMjQxZGQ3NWRjYzFlOWU3In0= --- .../Ads/Admanager/V1/AdBreakMessages.php | Bin 0 -> 2104 bytes .../Ads/Admanager/V1/AdBreakService.php | 68 + .../Admanager/V1/AdReviewCenterAdEnums.php | Bin 0 -> 1019 bytes .../Admanager/V1/AdReviewCenterAdMessages.php | Bin 0 -> 1808 bytes .../Admanager/V1/AdReviewCenterAdService.php | 73 + .../Google/Ads/Admanager/V1/AdUnitEnums.php | Bin 0 -> 1144 bytes .../Ads/Admanager/V1/AdUnitMessages.php | Bin 0 -> 4287 bytes .../Google/Ads/Admanager/V1/AdUnitService.php | 67 + .../Ads/Admanager/V1/AdmanagerError.php | 37 + .../Ads/Admanager/V1/ApplicationMessages.php | Bin 0 -> 1208 bytes .../Ads/Admanager/V1/ApplicationService.php | 52 + .../Google/Ads/Admanager/V1/AppliedLabel.php | 33 + .../Admanager/V1/AudienceSegmentMessages.php | Bin 0 -> 1253 bytes .../Admanager/V1/AudienceSegmentService.php | 53 + .../Admanager/V1/BandwidthGroupMessages.php | Bin 0 -> 1258 bytes .../Admanager/V1/BandwidthGroupService.php | 53 + .../Admanager/V1/BrowserLanguageMessages.php | Bin 0 -> 1253 bytes .../Admanager/V1/BrowserLanguageService.php | 53 + .../Ads/Admanager/V1/BrowserMessages.php | Bin 0 -> 1270 bytes .../Ads/Admanager/V1/BrowserService.php | 53 + .../Ads/Admanager/V1/CmsMetadataKeyEnums.php | Bin 0 -> 986 bytes .../Admanager/V1/CmsMetadataKeyMessages.php | 35 + .../Admanager/V1/CmsMetadataKeyService.php | 53 + .../Admanager/V1/CmsMetadataValueEnums.php | Bin 0 -> 1014 bytes .../Admanager/V1/CmsMetadataValueMessages.php | 37 + .../Admanager/V1/CmsMetadataValueService.php | 53 + .../Google/Ads/Admanager/V1/CompanyEnums.php | Bin 0 -> 1135 bytes .../Ads/Admanager/V1/CompanyMessages.php | Bin 0 -> 2328 bytes .../Ads/Admanager/V1/CompanyService.php | 53 + .../Google/Ads/Admanager/V1/ContactEnums.php | Bin 0 -> 1018 bytes .../Ads/Admanager/V1/ContactMessages.php | Bin 0 -> 1715 bytes .../Ads/Admanager/V1/ContactService.php | 77 + .../Admanager/V1/ContentBundleMessages.php | 33 + .../Ads/Admanager/V1/ContentBundleService.php | 53 + .../Ads/Admanager/V1/ContentLabelMessages.php | 33 + .../Ads/Admanager/V1/ContentLabelService.php | 52 + .../Ads/Admanager/V1/ContentMessages.php | Bin 0 -> 1166 bytes .../Ads/Admanager/V1/ContentService.php | 53 + .../Admanager/V1/CreativeTemplateEnums.php | Bin 0 -> 1128 bytes .../Admanager/V1/CreativeTemplateMessages.php | Bin 0 -> 4116 bytes .../Admanager/V1/CreativeTemplateService.php | 53 + .../CreativeTemplateVariableUrlTypeEnum.php | Bin 0 -> 1139 bytes .../Ads/Admanager/V1/CustomFieldEnums.php | Bin 0 -> 1417 bytes .../Ads/Admanager/V1/CustomFieldMessages.php | Bin 0 -> 2031 bytes .../Ads/Admanager/V1/CustomFieldService.php | 90 + .../Ads/Admanager/V1/CustomFieldValue.php | Bin 0 -> 1281 bytes .../Admanager/V1/CustomTargetingKeyEnums.php | Bin 0 -> 1314 bytes .../V1/CustomTargetingKeyMessages.php | Bin 0 -> 1897 bytes .../V1/CustomTargetingKeyService.php | 53 + .../V1/CustomTargetingValueEnums.php | Bin 0 -> 1229 bytes .../V1/CustomTargetingValueMessages.php | Bin 0 -> 1845 bytes .../V1/CustomTargetingValueService.php | 52 + .../V1/DealBuyerPermissionTypeEnum.php | Bin 0 -> 1036 bytes .../Admanager/V1/DeviceCapabilityMessages.php | Bin 0 -> 1265 bytes .../Admanager/V1/DeviceCapabilityService.php | 53 + .../Admanager/V1/DeviceCategoryMessages.php | Bin 0 -> 1246 bytes .../Admanager/V1/DeviceCategoryService.php | 53 + .../V1/DeviceManufacturerMessages.php | Bin 0 -> 1283 bytes .../V1/DeviceManufacturerService.php | 53 + .../V1/EarlyAdBreakNotificationEnums.php | Bin 0 -> 1021 bytes .../V1/EntitySignalsMappingMessages.php | Bin 0 -> 1475 bytes .../V1/EntitySignalsMappingService.php | 76 + .../Ads/Admanager/V1/EnvironmentTypeEnum.php | Bin 0 -> 971 bytes .../V1/ExchangeSyndicationProductEnum.php | Bin 0 -> 1083 bytes .../Google/Ads/Admanager/V1/FrequencyCap.php | Bin 0 -> 1100 bytes .../Ads/Admanager/V1/GeoTargetMessages.php | Bin 0 -> 1439 bytes .../Ads/Admanager/V1/GeoTargetService.php | 52 + .../Google/Ads/Admanager/V1/LabelMessages.php | 32 + .../Admanager/V1/LiveStreamEventMessages.php | 32 + .../Admanager/V1/MobileCarrierMessages.php | Bin 0 -> 1280 bytes .../Ads/Admanager/V1/MobileCarrierService.php | 53 + .../Ads/Admanager/V1/MobileDeviceMessages.php | Bin 0 -> 1318 bytes .../Ads/Admanager/V1/MobileDeviceService.php | 52 + .../V1/MobileDeviceSubmodelMessages.php | Bin 0 -> 1400 bytes .../V1/MobileDeviceSubmodelService.php | 52 + .../Ads/Admanager/V1/NetworkMessages.php | 44 + .../Ads/Admanager/V1/NetworkService.php | 42 + .../Admanager/V1/OperatingSystemMessages.php | Bin 0 -> 1253 bytes .../Admanager/V1/OperatingSystemService.php | 53 + .../V1/OperatingSystemVersionMessages.php | Bin 0 -> 1430 bytes .../V1/OperatingSystemVersionService.php | 52 + .../Google/Ads/Admanager/V1/OrderEnums.php | Bin 0 -> 995 bytes .../Google/Ads/Admanager/V1/OrderMessages.php | Bin 0 -> 3357 bytes .../Google/Ads/Admanager/V1/OrderService.php | 53 + .../Ads/Admanager/V1/PlacementEnums.php | Bin 0 -> 958 bytes .../Ads/Admanager/V1/PlacementMessages.php | Bin 0 -> 1757 bytes .../Ads/Admanager/V1/PlacementService.php | 100 + .../V1/PrivateAuctionDealMessages.php | Bin 0 -> 3178 bytes .../V1/PrivateAuctionDealService.php | 62 + .../Admanager/V1/PrivateAuctionMessages.php | Bin 0 -> 1705 bytes .../Admanager/V1/PrivateAuctionService.php | 62 + .../Admanager/V1/PrivateMarketplaceEnums.php | Bin 0 -> 1075 bytes .../V1/ProgrammaticBuyerMessages.php | Bin 0 -> 1643 bytes .../Admanager/V1/ProgrammaticBuyerService.php | 53 + .../Ads/Admanager/V1/ReportDefinition.php | Bin 0 -> 44786 bytes .../Ads/Admanager/V1/ReportMessages.php | Bin 0 -> 3786 bytes .../Google/Ads/Admanager/V1/ReportService.php | 89 + .../Google/Ads/Admanager/V1/ReportValue.php | Bin 0 -> 1284 bytes .../Ads/Admanager/V1/RequestPlatformEnum.php | Bin 0 -> 987 bytes .../Google/Ads/Admanager/V1/RoleEnums.php | Bin 0 -> 909 bytes .../Google/Ads/Admanager/V1/RoleMessages.php | Bin 0 -> 1455 bytes .../Google/Ads/Admanager/V1/RoleService.php | 52 + .../Google/Ads/Admanager/V1/SiteEnums.php | Bin 0 -> 1124 bytes .../Google/Ads/Admanager/V1/SiteMessages.php | Bin 0 -> 1851 bytes .../Google/Ads/Admanager/V1/SiteService.php | 90 + .../Google/Ads/Admanager/V1/Size.php | 33 + .../Google/Ads/Admanager/V1/SizeTypeEnum.php | Bin 0 -> 987 bytes .../V1/TargetedVideoBumperTypeEnum.php | Bin 0 -> 1026 bytes .../Google/Ads/Admanager/V1/Targeting.php | Bin 0 -> 7967 bytes .../Admanager/V1/TaxonomyCategoryMessages.php | Bin 0 -> 1749 bytes .../Admanager/V1/TaxonomyCategoryService.php | 53 + .../Ads/Admanager/V1/TaxonomyTypeEnum.php | Bin 0 -> 1114 bytes .../Google/Ads/Admanager/V1/TeamEnums.php | Bin 0 -> 1024 bytes .../Google/Ads/Admanager/V1/TeamMessages.php | Bin 0 -> 1612 bytes .../Google/Ads/Admanager/V1/TeamService.php | 92 + .../Google/Ads/Admanager/V1/TimeUnitEnum.php | Bin 0 -> 979 bytes .../Google/Ads/Admanager/V1/UserMessages.php | Bin 0 -> 1493 bytes .../Google/Ads/Admanager/V1/UserService.php | 37 + .../Ads/Admanager/V1/VideoPositionEnum.php | Bin 0 -> 975 bytes .../Google/Ads/Admanager/V1/WebProperty.php | 36 + .../src/Google/Ads/AdManager/V1/AdBreak.php | 679 ++ .../Ads/AdManager/V1/AdBreakStateEnum.php | 34 + .../V1/AdBreakStateEnum/AdBreakState.php | 74 + .../Ads/AdManager/V1/AdManagerError.php | 241 + .../Ads/AdManager/V1/AdReviewCenterAd.php | 234 + .../V1/AdReviewCenterAdStatusEnum.php | 34 + .../AdReviewCenterAdStatus.php | 71 + .../src/Google/Ads/AdManager/V1/AdUnit.php | 1180 +++ .../Google/Ads/AdManager/V1/AdUnitParent.php | 173 + .../Google/Ads/AdManager/V1/AdUnitSize.php | 163 + .../Ads/AdManager/V1/AdUnitStatusEnum.php | 34 + .../V1/AdUnitStatusEnum/AdUnitStatus.php | 71 + .../Ads/AdManager/V1/AdUnitTargeting.php | 121 + .../Google/Ads/AdManager/V1/Application.php | 120 + .../Google/Ads/AdManager/V1/AppliedLabel.php | 105 + .../Ads/AdManager/V1/AudienceSegment.php | 131 + .../AdManager/V1/AudienceSegmentTargeting.php | 136 + .../Ads/AdManager/V1/BandwidthGroup.php | 126 + .../Ads/AdManager/V1/BandwidthTargeting.php | 112 + .../V1/BatchActivateCustomFieldsRequest.php | 123 + .../V1/BatchActivateCustomFieldsResponse.php | 33 + .../V1/BatchActivatePlacementsRequest.php | 123 + .../V1/BatchActivatePlacementsResponse.php | 33 + .../V1/BatchActivateTeamsRequest.php | 123 + .../V1/BatchActivateTeamsResponse.php | 33 + ...atchAdReviewCenterAdsOperationMetadata.php | 72 + .../V1/BatchAllowAdReviewCenterAdsRequest.php | 168 + .../BatchAllowAdReviewCenterAdsResponse.php | 33 + .../V1/BatchArchivePlacementsRequest.php | 123 + .../V1/BatchArchivePlacementsResponse.php | 33 + .../V1/BatchBlockAdReviewCenterAdsRequest.php | 168 + .../BatchBlockAdReviewCenterAdsResponse.php | 33 + .../V1/BatchCreateContactsRequest.php | 137 + .../V1/BatchCreateContactsResponse.php | 67 + .../V1/BatchCreateCustomFieldsRequest.php | 137 + .../V1/BatchCreateCustomFieldsResponse.php | 67 + ...atchCreateEntitySignalsMappingsRequest.php | 132 + ...tchCreateEntitySignalsMappingsResponse.php | 67 + .../V1/BatchCreatePlacementsRequest.php | 137 + .../V1/BatchCreatePlacementsResponse.php | 67 + .../AdManager/V1/BatchCreateSitesRequest.php | 137 + .../AdManager/V1/BatchCreateSitesResponse.php | 67 + .../AdManager/V1/BatchCreateTeamsRequest.php | 137 + .../AdManager/V1/BatchCreateTeamsResponse.php | 67 + .../V1/BatchDeactivateCustomFieldsRequest.php | 123 + .../BatchDeactivateCustomFieldsResponse.php | 33 + .../V1/BatchDeactivatePlacementsRequest.php | 123 + .../V1/BatchDeactivatePlacementsResponse.php | 33 + .../V1/BatchDeactivateSitesRequest.php | 117 + .../V1/BatchDeactivateSitesResponse.php | 33 + .../V1/BatchDeactivateTeamsRequest.php | 123 + .../V1/BatchDeactivateTeamsResponse.php | 33 + .../V1/BatchSubmitSitesForApprovalRequest.php | 117 + .../BatchSubmitSitesForApprovalResponse.php | 33 + .../V1/BatchUpdateContactsRequest.php | 137 + .../V1/BatchUpdateContactsResponse.php | 67 + .../V1/BatchUpdateCustomFieldsRequest.php | 137 + .../V1/BatchUpdateCustomFieldsResponse.php | 67 + ...atchUpdateEntitySignalsMappingsRequest.php | 132 + ...tchUpdateEntitySignalsMappingsResponse.php | 67 + .../V1/BatchUpdatePlacementsRequest.php | 137 + .../V1/BatchUpdatePlacementsResponse.php | 67 + .../AdManager/V1/BatchUpdateSitesRequest.php | 137 + .../AdManager/V1/BatchUpdateSitesResponse.php | 67 + .../AdManager/V1/BatchUpdateTeamsRequest.php | 137 + .../AdManager/V1/BatchUpdateTeamsResponse.php | 67 + .../src/Google/Ads/AdManager/V1/Browser.php | 203 + .../Ads/AdManager/V1/BrowserLanguage.php | 115 + .../AdManager/V1/BrowserLanguageTargeting.php | 113 + .../Ads/AdManager/V1/BrowserTargeting.php | 109 + .../Ads/AdManager/V1/CmsMetadataKey.php | 139 + .../AdManager/V1/CmsMetadataKeyStatusEnum.php | 34 + .../CmsMetadataKeyStatus.php | 64 + .../Ads/AdManager/V1/CmsMetadataTargeting.php | 115 + .../Ads/AdManager/V1/CmsMetadataValue.php | 181 + .../V1/CmsMetadataValueStatusEnum.php | 34 + .../CmsMetadataValueStatus.php | 71 + .../src/Google/Ads/AdManager/V1/Company.php | 759 ++ .../AdManager/V1/CompanyCreditStatusEnum.php | 34 + .../CompanyCreditStatus.php | 119 + .../Ads/AdManager/V1/CompanyTypeEnum.php | 34 + .../V1/CompanyTypeEnum/CompanyType.php | 86 + .../src/Google/Ads/AdManager/V1/Contact.php | 550 ++ .../Ads/AdManager/V1/ContactStatusEnum.php | 34 + .../V1/ContactStatusEnum/ContactStatus.php | 96 + .../src/Google/Ads/AdManager/V1/Content.php | 115 + .../Google/Ads/AdManager/V1/ContentBundle.php | 122 + .../Google/Ads/AdManager/V1/ContentLabel.php | 105 + .../Ads/AdManager/V1/ContentTargeting.php | 202 + .../Ads/AdManager/V1/CreateAdBreakRequest.php | 148 + .../Ads/AdManager/V1/CreateContactRequest.php | 132 + .../AdManager/V1/CreateCustomFieldRequest.php | 132 + .../V1/CreateEntitySignalsMappingRequest.php | 132 + .../AdManager/V1/CreatePlacementRequest.php | 132 + .../V1/CreatePrivateAuctionDealRequest.php | 132 + .../V1/CreatePrivateAuctionRequest.php | 132 + .../Ads/AdManager/V1/CreateReportRequest.php | 132 + .../Ads/AdManager/V1/CreateSiteRequest.php | 132 + .../Ads/AdManager/V1/CreateTeamRequest.php | 132 + .../Ads/AdManager/V1/CreativeTemplate.php | 537 ++ .../V1/CreativeTemplateStatusEnum.php | 34 + .../CreativeTemplateStatus.php | 73 + .../AdManager/V1/CreativeTemplateTypeEnum.php | 34 + .../CreativeTemplateType.php | 65 + .../AdManager/V1/CreativeTemplateVariable.php | 402 + .../AssetCreativeTemplateVariable.php | 77 + .../MimeType.php | 71 + .../ListStringCreativeTemplateVariable.php | 228 + .../VariableChoice.php | 144 + .../LongCreativeTemplateVariable.php | 135 + .../StringCreativeTemplateVariable.php | 135 + .../UrlCreativeTemplateVariable.php | 183 + .../CreativeTemplateVariableUrlTypeEnum.php | 34 + .../CreativeTemplateVariableUrlType.php | 78 + .../Google/Ads/AdManager/V1/CustomField.php | 425 + .../AdManager/V1/CustomFieldDataTypeEnum.php | 34 + .../CustomFieldDataType.php | 79 + .../V1/CustomFieldEntityTypeEnum.php | 34 + .../CustomFieldEntityType.php | 85 + .../Ads/AdManager/V1/CustomFieldOption.php | 105 + .../AdManager/V1/CustomFieldStatusEnum.php | 34 + .../CustomFieldStatus.php | 64 + .../Ads/AdManager/V1/CustomFieldValue.php | 115 + .../AdManager/V1/CustomFieldValue/Value.php | 177 + .../V1/CustomFieldVisibilityEnum.php | 34 + .../CustomFieldVisibility.php | 72 + .../Ads/AdManager/V1/CustomTargeting.php | 68 + .../AdManager/V1/CustomTargetingClause.php | 135 + .../Ads/AdManager/V1/CustomTargetingKey.php | 355 + .../CustomTargetingKeyReportableTypeEnum.php | 34 + .../CustomTargetingKeyReportableType.php | 71 + .../V1/CustomTargetingKeyStatusEnum.php | 34 + .../CustomTargetingKeyStatus.php | 64 + .../V1/CustomTargetingKeyTypeEnum.php | 34 + .../CustomTargetingKeyType.php | 64 + .../AdManager/V1/CustomTargetingLiteral.php | 159 + .../Ads/AdManager/V1/CustomTargetingValue.php | 323 + .../V1/CustomTargetingValueMatchTypeEnum.php | 34 + .../CustomTargetingValueMatchType.php | 113 + .../V1/CustomTargetingValueStatusEnum.php | 34 + .../CustomTargetingValueStatus.php | 64 + .../Ads/AdManager/V1/DataSegmentTargeting.php | 67 + .../V1/DealBuyerPermissionTypeEnum.php | 34 + .../DealBuyerPermissionType.php | 64 + .../Ads/AdManager/V1/DeleteAdBreakRequest.php | 92 + .../Ads/AdManager/V1/DeviceCapability.php | 115 + .../V1/DeviceCapabilityTargeting.php | 113 + .../Ads/AdManager/V1/DeviceCategory.php | 115 + .../AdManager/V1/DeviceCategoryTargeting.php | 105 + .../Ads/AdManager/V1/DeviceManufacturer.php | 119 + .../V1/DeviceManufacturerTargeting.php | 261 + .../Ads/AdManager/V1/DisapprovalReason.php | 121 + .../Ads/AdManager/V1/EntitySignalsMapping.php | 265 + .../Ads/AdManager/V1/EnvironmentTypeEnum.php | 34 + .../EnvironmentTypeEnum/EnvironmentType.php | 64 + .../V1/ExchangeSyndicationProductEnum.php | 34 + .../ExchangeSyndicationProduct.php | 78 + .../V1/FetchReportResultRowsRequest.php | 174 + .../V1/FetchReportResultRowsResponse.php | 283 + .../FirstPartyMobileApplicationTargeting.php | 109 + .../Google/Ads/AdManager/V1/FrequencyCap.php | 165 + .../src/Google/Ads/AdManager/V1/GeoTarget.php | 345 + .../Google/Ads/AdManager/V1/GeoTargeting.php | 101 + .../Ads/AdManager/V1/GetAdBreakRequest.php | 102 + .../Ads/AdManager/V1/GetAdUnitRequest.php | 86 + .../AdManager/V1/GetApplicationRequest.php | 86 + .../V1/GetAudienceSegmentRequest.php | 86 + .../AdManager/V1/GetBandwidthGroupRequest.php | 86 + .../V1/GetBrowserLanguageRequest.php | 86 + .../Ads/AdManager/V1/GetBrowserRequest.php | 86 + .../AdManager/V1/GetCmsMetadataKeyRequest.php | 86 + .../V1/GetCmsMetadataValueRequest.php | 86 + .../Ads/AdManager/V1/GetCompanyRequest.php | 86 + .../Ads/AdManager/V1/GetContactRequest.php | 86 + .../AdManager/V1/GetContentBundleRequest.php | 86 + .../AdManager/V1/GetContentLabelRequest.php | 86 + .../Ads/AdManager/V1/GetContentRequest.php | 86 + .../V1/GetCreativeTemplateRequest.php | 86 + .../AdManager/V1/GetCustomFieldRequest.php | 86 + .../V1/GetCustomTargetingKeyRequest.php | 91 + .../V1/GetCustomTargetingValueRequest.php | 91 + .../V1/GetDeviceCapabilityRequest.php | 86 + .../AdManager/V1/GetDeviceCategoryRequest.php | 86 + .../V1/GetDeviceManufacturerRequest.php | 91 + .../V1/GetEntitySignalsMappingRequest.php | 91 + .../Ads/AdManager/V1/GetGeoTargetRequest.php | 86 + .../AdManager/V1/GetMobileCarrierRequest.php | 86 + .../AdManager/V1/GetMobileDeviceRequest.php | 86 + .../V1/GetMobileDeviceSubmodelRequest.php | 91 + .../Ads/AdManager/V1/GetNetworkRequest.php | 86 + .../V1/GetOperatingSystemRequest.php | 86 + .../V1/GetOperatingSystemVersionRequest.php | 91 + .../Ads/AdManager/V1/GetOrderRequest.php | 86 + .../Ads/AdManager/V1/GetPlacementRequest.php | 86 + .../V1/GetPrivateAuctionDealRequest.php | 91 + .../AdManager/V1/GetPrivateAuctionRequest.php | 91 + .../V1/GetProgrammaticBuyerRequest.php | 91 + .../Ads/AdManager/V1/GetReportRequest.php | 86 + .../Ads/AdManager/V1/GetRoleRequest.php | 86 + .../Ads/AdManager/V1/GetSiteRequest.php | 86 + .../V1/GetTaxonomyCategoryRequest.php | 86 + .../Ads/AdManager/V1/GetTeamRequest.php | 86 + .../Ads/AdManager/V1/GetUserRequest.php | 86 + .../Ads/AdManager/V1/InventoryTargeting.php | 153 + .../src/Google/Ads/AdManager/V1/Label.php | 71 + .../Ads/AdManager/V1/LabelFrequencyCap.php | 125 + .../Ads/AdManager/V1/ListAdBreaksRequest.php | 307 + .../Ads/AdManager/V1/ListAdBreaksResponse.php | 176 + .../AdManager/V1/ListAdUnitSizesRequest.php | 296 + .../AdManager/V1/ListAdUnitSizesResponse.php | 171 + .../Ads/AdManager/V1/ListAdUnitsRequest.php | 296 + .../Ads/AdManager/V1/ListAdUnitsResponse.php | 171 + .../AdManager/V1/ListApplicationsRequest.php | 296 + .../AdManager/V1/ListApplicationsResponse.php | 172 + .../V1/ListAudienceSegmentsRequest.php | 296 + .../V1/ListAudienceSegmentsResponse.php | 172 + .../V1/ListBandwidthGroupsRequest.php | 296 + .../V1/ListBandwidthGroupsResponse.php | 172 + .../V1/ListBrowserLanguagesRequest.php | 296 + .../V1/ListBrowserLanguagesResponse.php | 172 + .../Ads/AdManager/V1/ListBrowsersRequest.php | 296 + .../Ads/AdManager/V1/ListBrowsersResponse.php | 172 + .../V1/ListCmsMetadataKeysRequest.php | 296 + .../V1/ListCmsMetadataKeysResponse.php | 172 + .../V1/ListCmsMetadataValuesRequest.php | 296 + .../V1/ListCmsMetadataValuesResponse.php | 172 + .../Ads/AdManager/V1/ListCompaniesRequest.php | 296 + .../AdManager/V1/ListCompaniesResponse.php | 172 + .../Ads/AdManager/V1/ListContactsRequest.php | 296 + .../Ads/AdManager/V1/ListContactsResponse.php | 172 + .../V1/ListContentBundlesRequest.php | 296 + .../V1/ListContentBundlesResponse.php | 172 + .../AdManager/V1/ListContentLabelsRequest.php | 296 + .../V1/ListContentLabelsResponse.php | 172 + .../Ads/AdManager/V1/ListContentRequest.php | 296 + .../Ads/AdManager/V1/ListContentResponse.php | 172 + .../V1/ListCreativeTemplatesRequest.php | 296 + .../V1/ListCreativeTemplatesResponse.php | 172 + .../AdManager/V1/ListCustomFieldsRequest.php | 296 + .../AdManager/V1/ListCustomFieldsResponse.php | 172 + .../V1/ListCustomTargetingKeysRequest.php | 296 + .../V1/ListCustomTargetingKeysResponse.php | 172 + .../V1/ListCustomTargetingValuesRequest.php | 309 + .../V1/ListCustomTargetingValuesResponse.php | 172 + .../V1/ListDeviceCapabilitiesRequest.php | 296 + .../V1/ListDeviceCapabilitiesResponse.php | 172 + .../V1/ListDeviceCategoriesRequest.php | 296 + .../V1/ListDeviceCategoriesResponse.php | 172 + .../V1/ListDeviceManufacturersRequest.php | 296 + .../V1/ListDeviceManufacturersResponse.php | 172 + .../V1/ListEntitySignalsMappingsRequest.php | 304 + .../V1/ListEntitySignalsMappingsResponse.php | 172 + .../AdManager/V1/ListGeoTargetsRequest.php | 296 + .../AdManager/V1/ListGeoTargetsResponse.php | 172 + .../V1/ListMobileCarriersRequest.php | 296 + .../V1/ListMobileCarriersResponse.php | 172 + .../V1/ListMobileDeviceSubmodelsRequest.php | 304 + .../V1/ListMobileDeviceSubmodelsResponse.php | 172 + .../AdManager/V1/ListMobileDevicesRequest.php | 296 + .../V1/ListMobileDevicesResponse.php | 172 + .../Ads/AdManager/V1/ListNetworksRequest.php | 33 + .../Ads/AdManager/V1/ListNetworksResponse.php | 67 + .../V1/ListOperatingSystemVersionsRequest.php | 304 + .../ListOperatingSystemVersionsResponse.php | 172 + .../V1/ListOperatingSystemsRequest.php | 296 + .../V1/ListOperatingSystemsResponse.php | 172 + .../Ads/AdManager/V1/ListOrdersRequest.php | 296 + .../Ads/AdManager/V1/ListOrdersResponse.php | 172 + .../AdManager/V1/ListPlacementsRequest.php | 296 + .../AdManager/V1/ListPlacementsResponse.php | 172 + .../V1/ListPrivateAuctionDealsRequest.php | 305 + .../V1/ListPrivateAuctionDealsResponse.php | 172 + .../V1/ListPrivateAuctionsRequest.php | 300 + .../V1/ListPrivateAuctionsResponse.php | 172 + .../V1/ListProgrammaticBuyersRequest.php | 296 + .../V1/ListProgrammaticBuyersResponse.php | 172 + .../Ads/AdManager/V1/ListReportsRequest.php | 296 + .../Ads/AdManager/V1/ListReportsResponse.php | 172 + .../Ads/AdManager/V1/ListRolesRequest.php | 296 + .../Ads/AdManager/V1/ListRolesResponse.php | 171 + .../Ads/AdManager/V1/ListSitesRequest.php | 296 + .../Ads/AdManager/V1/ListSitesResponse.php | 171 + .../V1/ListTaxonomyCategoriesRequest.php | 296 + .../V1/ListTaxonomyCategoriesResponse.php | 172 + .../Ads/AdManager/V1/ListTeamsRequest.php | 296 + .../Ads/AdManager/V1/ListTeamsResponse.php | 171 + .../Ads/AdManager/V1/LiveStreamEvent.php | 76 + .../V1/MobileApplicationTargeting.php | 75 + .../Google/Ads/AdManager/V1/MobileCarrier.php | 159 + .../AdManager/V1/MobileCarrierTargeting.php | 107 + .../Google/Ads/AdManager/V1/MobileDevice.php | 163 + .../Ads/AdManager/V1/MobileDeviceSubmodel.php | 167 + .../src/Google/Ads/AdManager/V1/Network.php | 393 + .../Ads/AdManager/V1/OperatingSystem.php | 115 + .../AdManager/V1/OperatingSystemTargeting.php | 185 + .../AdManager/V1/OperatingSystemVersion.php | 207 + .../src/Google/Ads/AdManager/V1/Order.php | 1325 ++++ .../Ads/AdManager/V1/OrderStatusEnum.php | 34 + .../V1/OrderStatusEnum/OrderStatus.php | 102 + .../src/Google/Ads/AdManager/V1/Placement.php | 375 + .../Ads/AdManager/V1/PlacementStatusEnum.php | 34 + .../PlacementStatusEnum/PlacementStatus.php | 71 + .../Ads/AdManager/V1/PrivateAuction.php | 385 + .../Ads/AdManager/V1/PrivateAuctionDeal.php | 785 ++ .../V1/PrivateAuctionDeal/BuyerData.php | 70 + .../V1/PrivateMarketplaceDealStatusEnum.php | 34 + .../PrivateMarketplaceDealStatus.php | 85 + .../Ads/AdManager/V1/ProgrammaticBuyer.php | 395 + .../src/Google/Ads/AdManager/V1/Report.php | 391 + .../Ads/AdManager/V1/Report/Visibility.php | 67 + .../Ads/AdManager/V1/ReportDataTable.php | 33 + .../V1/ReportDataTable/MetricValueGroup.php | 289 + .../Ads/AdManager/V1/ReportDataTable/Row.php | 136 + .../Ads/AdManager/V1/ReportDefinition.php | 701 ++ .../V1/ReportDefinition/DateRange.php | 111 + .../DateRange/FixedDateRange.php | 124 + .../DateRange/RelativeDateRange.php | 340 + .../V1/ReportDefinition/Dimension.php | 6827 +++++++++++++++++ .../AdManager/V1/ReportDefinition/Field.php | 111 + .../AdManager/V1/ReportDefinition/Filter.php | 177 + .../ReportDefinition/Filter/FieldFilter.php | 288 + .../V1/ReportDefinition/Filter/FilterList.php | 70 + .../V1/ReportDefinition/Filter/Operation.php | 135 + .../AdManager/V1/ReportDefinition/Flag.php | 120 + .../AdManager/V1/ReportDefinition/Metric.php | 5076 ++++++++++++ .../V1/ReportDefinition/MetricValueType.php | 85 + .../V1/ReportDefinition/ReportType.php | 78 + .../AdManager/V1/ReportDefinition/Slice.php | 116 + .../AdManager/V1/ReportDefinition/Sort.php | 254 + .../V1/ReportDefinition/TimePeriodColumn.php | 78 + .../V1/ReportDefinition/TimeZoneSource.php | 83 + .../Google/Ads/AdManager/V1/ReportValue.php | 306 + .../AdManager/V1/ReportValue/DoubleList.php | 70 + .../Ads/AdManager/V1/ReportValue/IntList.php | 70 + .../AdManager/V1/ReportValue/StringList.php | 70 + .../Ads/AdManager/V1/RequestPlatformEnum.php | 37 + .../RequestPlatformEnum/RequestPlatform.php | 72 + .../AdManager/V1/RequestPlatformTargeting.php | 67 + .../src/Google/Ads/AdManager/V1/Role.php | 291 + .../Ads/AdManager/V1/RoleStatusEnum.php | 34 + .../V1/RoleStatusEnum/RoleStatus.php | 64 + .../Ads/AdManager/V1/RunReportMetadata.php | 105 + .../Ads/AdManager/V1/RunReportRequest.php | 86 + .../Ads/AdManager/V1/RunReportResponse.php | 71 + .../Ads/AdManager/V1/ScheduleOptions.php | 149 + .../V1/ScheduleOptions/DeliveryCondition.php | 64 + .../AdManager/V1/ScheduleOptions/Schedule.php | 309 + .../V1/ScheduleOptions/Schedule/Frequency.php | 99 + .../Schedule/MonthlySchedule.php | 74 + .../Schedule/WeeklySchedule.php | 70 + .../V1/SearchAdReviewCenterAdsRequest.php | 422 + .../V1/SearchAdReviewCenterAdsResponse.php | 105 + .../src/Google/Ads/AdManager/V1/Site.php | 291 + .../AdManager/V1/SiteApprovalStatusEnum.php | 34 + .../SiteApprovalStatus.php | 88 + .../V1/SiteDisapprovalReasonEnum.php | 34 + .../SiteDisapprovalReason.php | 71 + .../src/Google/Ads/AdManager/V1/Size.php | 147 + .../Google/Ads/AdManager/V1/SizeTypeEnum.php | 34 + .../AdManager/V1/SizeTypeEnum/SizeType.php | 105 + .../Ads/AdManager/V1/SmartSizeModeEnum.php | 34 + .../V1/SmartSizeModeEnum/SmartSizeMode.php | 72 + .../Ads/AdManager/V1/TargetWindowEnum.php | 34 + .../V1/TargetWindowEnum/TargetWindow.php | 65 + .../V1/TargetedVideoBumperTypeEnum.php | 34 + .../TargetedVideoBumperType.php | 67 + .../src/Google/Ads/AdManager/V1/Targeting.php | 477 ++ .../Ads/AdManager/V1/TaxonomyCategory.php | 367 + .../Ads/AdManager/V1/TaxonomyTypeEnum.php | 34 + .../V1/TaxonomyTypeEnum/TaxonomyType.php | 93 + .../src/Google/Ads/AdManager/V1/Team.php | 363 + .../Ads/AdManager/V1/TeamAccessTypeEnum.php | 34 + .../V1/TeamAccessTypeEnum/TeamAccessType.php | 73 + .../Ads/AdManager/V1/TeamStatusEnum.php | 34 + .../V1/TeamStatusEnum/TeamStatus.php | 64 + .../Ads/AdManager/V1/TechnologyTargeting.php | 386 + .../Google/Ads/AdManager/V1/TimeUnitEnum.php | 33 + .../AdManager/V1/TimeUnitEnum/TimeUnit.php | 107 + .../Ads/AdManager/V1/UpdateAdBreakRequest.php | 142 + .../Ads/AdManager/V1/UpdateContactRequest.php | 142 + .../AdManager/V1/UpdateCustomFieldRequest.php | 142 + .../V1/UpdateEntitySignalsMappingRequest.php | 157 + .../AdManager/V1/UpdatePlacementRequest.php | 152 + .../V1/UpdatePrivateAuctionDealRequest.php | 147 + .../V1/UpdatePrivateAuctionRequest.php | 147 + .../Ads/AdManager/V1/UpdateReportRequest.php | 136 + .../Ads/AdManager/V1/UpdateSiteRequest.php | 142 + .../Ads/AdManager/V1/UpdateTeamRequest.php | 142 + .../src/Google/Ads/AdManager/V1/User.php | 459 ++ .../Ads/AdManager/V1/UserDomainTargeting.php | 101 + .../Google/Ads/AdManager/V1/VideoPosition.php | 293 + .../Ads/AdManager/V1/VideoPositionEnum.php | 34 + .../V1/VideoPositionEnum/VideoPosition.php | 78 + .../AdManager/V1/VideoPositionTargeting.php | 71 + .../Google/Ads/AdManager/V1/WebProperty.php | 177 + .../AdBreakServiceClient/create_ad_break.php | 106 + .../AdBreakServiceClient/delete_ad_break.php | 80 + .../V1/AdBreakServiceClient/get_ad_break.php | 79 + .../AdBreakServiceClient/list_ad_breaks.php | 85 + .../AdBreakServiceClient/update_ad_break.php | 68 + .../batch_allow_ad_review_center_ads.php | 115 + .../batch_block_ad_review_center_ads.php | 115 + .../search_ad_review_center_ads.php | 94 + .../V1/AdUnitServiceClient/get_ad_unit.php | 72 + .../list_ad_unit_sizes.php | 75 + .../V1/AdUnitServiceClient/list_ad_units.php | 75 + .../get_application.php | 72 + .../list_applications.php | 75 + .../get_audience_segment.php | 75 + .../list_audience_segments.php | 75 + .../get_bandwidth_group.php | 75 + .../list_bandwidth_groups.php | 75 + .../get_browser_language.php | 75 + .../list_browser_languages.php | 75 + .../V1/BrowserServiceClient/get_browser.php | 72 + .../V1/BrowserServiceClient/list_browsers.php | 75 + .../get_cms_metadata_key.php | 75 + .../list_cms_metadata_keys.php | 75 + .../get_cms_metadata_value.php | 75 + .../list_cms_metadata_values.php | 75 + .../V1/CompanyServiceClient/get_company.php | 72 + .../CompanyServiceClient/list_companies.php | 75 + .../batch_create_contacts.php | 104 + .../batch_update_contacts.php | 100 + .../ContactServiceClient/create_contact.php | 86 + .../V1/ContactServiceClient/get_contact.php | 72 + .../V1/ContactServiceClient/list_contacts.php | 75 + .../ContactServiceClient/update_contact.php | 81 + .../get_content_bundle.php | 75 + .../list_content_bundles.php | 75 + .../get_content_label.php | 72 + .../list_content_labels.php | 75 + .../V1/ContentServiceClient/get_content.php | 72 + .../V1/ContentServiceClient/list_content.php | 75 + .../get_creative_template.php | 75 + .../list_creative_templates.php | 75 + .../batch_activate_custom_fields.php | 82 + .../batch_create_custom_fields.php | 114 + .../batch_deactivate_custom_fields.php | 82 + .../batch_update_custom_fields.php | 110 + .../create_custom_field.php | 100 + .../get_custom_field.php | 72 + .../list_custom_fields.php | 75 + .../update_custom_field.php | 96 + .../get_custom_targeting_key.php | 76 + .../list_custom_targeting_keys.php | 75 + .../get_custom_targeting_value.php | 76 + .../list_custom_targeting_values.php | 76 + .../get_device_capability.php | 75 + .../list_device_capabilities.php | 75 + .../get_device_category.php | 75 + .../list_device_categories.php | 75 + .../get_device_manufacturer.php | 76 + .../list_device_manufacturers.php | 75 + .../batch_create_entity_signals_mappings.php | 87 + .../batch_update_entity_signals_mappings.php | 83 + .../create_entity_signals_mapping.php | 74 + .../get_entity_signals_mapping.php | 76 + .../list_entity_signals_mappings.php | 75 + .../update_entity_signals_mapping.php | 62 + .../GeoTargetServiceClient/get_geo_target.php | 72 + .../list_geo_targets.php | 75 + .../get_mobile_carrier.php | 75 + .../list_mobile_carriers.php | 75 + .../get_mobile_device.php | 72 + .../list_mobile_devices.php | 75 + .../get_mobile_device_submodel.php | 76 + .../list_mobile_device_submodels.php | 75 + .../V1/NetworkServiceClient/get_network.php | 72 + .../V1/NetworkServiceClient/list_networks.php | 57 + .../get_operating_system.php | 75 + .../list_operating_systems.php | 75 + .../get_operating_system_version.php | 76 + .../list_operating_system_versions.php | 75 + .../V1/OrderServiceClient/get_order.php | 72 + .../V1/OrderServiceClient/list_orders.php | 80 + .../batch_activate_placements.php | 79 + .../batch_archive_placements.php | 79 + .../batch_create_placements.php | 97 + .../batch_deactivate_placements.php | 79 + .../batch_update_placements.php | 90 + .../create_placement.php | 78 + .../PlacementServiceClient/get_placement.php | 72 + .../list_placements.php | 75 + .../update_placement.php | 76 + .../create_private_auction_deal.php | 77 + .../get_private_auction_deal.php | 76 + .../list_private_auction_deals.php | 76 + .../update_private_auction_deal.php | 65 + .../create_private_auction.php | 80 + .../get_private_auction.php | 76 + .../list_private_auctions.php | 75 + .../update_private_auction.php | 76 + .../get_programmatic_buyer.php | 76 + .../list_programmatic_buyers.php | 75 + .../V1/ReportServiceClient/create_report.php | 105 + .../fetch_report_result_rows.php | 60 + .../V1/ReportServiceClient/get_report.php | 72 + .../V1/ReportServiceClient/list_reports.php | 75 + .../V1/ReportServiceClient/run_report.php | 91 + .../V1/ReportServiceClient/update_report.php | 101 + .../samples/V1/RoleServiceClient/get_role.php | 72 + .../V1/RoleServiceClient/list_roles.php | 75 + .../SiteServiceClient/batch_create_sites.php | 92 + .../batch_deactivate_sites.php | 75 + .../batch_submit_sites_for_approval.php | 77 + .../SiteServiceClient/batch_update_sites.php | 87 + .../V1/SiteServiceClient/create_site.php | 77 + .../samples/V1/SiteServiceClient/get_site.php | 72 + .../V1/SiteServiceClient/list_sites.php | 75 + .../V1/SiteServiceClient/update_site.php | 75 + .../get_taxonomy_category.php | 75 + .../list_taxonomy_categories.php | 75 + .../batch_activate_teams.php | 77 + .../TeamServiceClient/batch_create_teams.php | 93 + .../batch_deactivate_teams.php | 79 + .../TeamServiceClient/batch_update_teams.php | 88 + .../V1/TeamServiceClient/create_team.php | 78 + .../samples/V1/TeamServiceClient/get_team.php | 72 + .../V1/TeamServiceClient/list_teams.php | 75 + .../V1/TeamServiceClient/update_team.php | 76 + .../samples/V1/UserServiceClient/get_user.php | 75 + .../v1/src/V1/Client/AdBreakServiceClient.php | 435 ++ .../Client/AdReviewCenterAdServiceClient.php | 405 + .../v1/src/V1/Client/AdUnitServiceClient.php | 337 + .../V1/Client/ApplicationServiceClient.php | 309 + .../Client/AudienceSegmentServiceClient.php | 311 + .../V1/Client/BandwidthGroupServiceClient.php | 311 + .../Client/BrowserLanguageServiceClient.php | 311 + .../v1/src/V1/Client/BrowserServiceClient.php | 309 + .../V1/Client/CmsMetadataKeyServiceClient.php | 311 + .../Client/CmsMetadataValueServiceClient.php | 311 + .../v1/src/V1/Client/CompanyServiceClient.php | 309 + .../v1/src/V1/Client/ContactServiceClient.php | 441 ++ .../V1/Client/ContentBundleServiceClient.php | 311 + .../V1/Client/ContentLabelServiceClient.php | 310 + .../v1/src/V1/Client/ContentServiceClient.php | 309 + .../Client/CreativeTemplateServiceClient.php | 311 + .../V1/Client/CustomFieldServiceClient.php | 485 ++ .../CustomTargetingKeyServiceClient.php | 311 + .../CustomTargetingValueServiceClient.php | 311 + .../Client/DeviceCapabilityServiceClient.php | 311 + .../V1/Client/DeviceCategoryServiceClient.php | 311 + .../DeviceManufacturerServiceClient.php | 311 + .../EntitySignalsMappingServiceClient.php | 431 ++ .../src/V1/Client/GeoTargetServiceClient.php | 309 + .../V1/Client/MobileCarrierServiceClient.php | 311 + .../V1/Client/MobileDeviceServiceClient.php | 310 + .../MobileDeviceSubmodelServiceClient.php | 311 + .../v1/src/V1/Client/NetworkServiceClient.php | 291 + .../Client/OperatingSystemServiceClient.php | 311 + .../OperatingSystemVersionServiceClient.php | 311 + .../v1/src/V1/Client/OrderServiceClient.php | 314 + .../src/V1/Client/PlacementServiceClient.php | 533 ++ .../PrivateAuctionDealServiceClient.php | 747 ++ .../V1/Client/PrivateAuctionServiceClient.php | 387 + .../Client/ProgrammaticBuyerServiceClient.php | 311 + .../v1/src/V1/Client/ReportServiceClient.php | 487 ++ .../v1/src/V1/Client/RoleServiceClient.php | 309 + .../v1/src/V1/Client/SiteServiceClient.php | 482 ++ .../Client/TaxonomyCategoryServiceClient.php | 311 + .../v1/src/V1/Client/TeamServiceClient.php | 481 ++ .../v1/src/V1/Client/UserServiceClient.php | 267 + .../v1/src/V1/gapic_metadata.json | 1013 +++ .../ad_break_service_client_config.json | 47 + .../ad_break_service_descriptor_config.php | 101 + .../ad_break_service_rest_client_config.php | 135 + ...eview_center_ad_service_client_config.json | 37 + ...ew_center_ad_service_descriptor_config.php | 90 + ...w_center_ad_service_rest_client_config.php | 77 + .../ad_unit_service_client_config.json | 37 + .../ad_unit_service_descriptor_config.php | 84 + .../ad_unit_service_rest_client_config.php | 75 + .../application_service_client_config.json | 32 + .../application_service_descriptor_config.php | 64 + ...application_service_rest_client_config.php | 64 + ...udience_segment_service_client_config.json | 32 + ...ence_segment_service_descriptor_config.php | 64 + ...nce_segment_service_rest_client_config.php | 64 + ...bandwidth_group_service_client_config.json | 32 + ...dwidth_group_service_descriptor_config.php | 64 + ...width_group_service_rest_client_config.php | 64 + ...rowser_language_service_client_config.json | 32 + ...ser_language_service_descriptor_config.php | 64 + ...er_language_service_rest_client_config.php | 64 + .../browser_service_client_config.json | 32 + .../browser_service_descriptor_config.php | 64 + .../browser_service_rest_client_config.php | 64 + ...ms_metadata_key_service_client_config.json | 32 + ...metadata_key_service_descriptor_config.php | 64 + ...etadata_key_service_rest_client_config.php | 64 + ..._metadata_value_service_client_config.json | 32 + ...tadata_value_service_descriptor_config.php | 64 + ...adata_value_service_rest_client_config.php | 64 + .../company_service_client_config.json | 32 + .../company_service_descriptor_config.php | 64 + .../company_service_rest_client_config.php | 64 + .../contact_service_client_config.json | 52 + .../contact_service_descriptor_config.php | 114 + .../contact_service_rest_client_config.php | 116 + .../content_bundle_service_client_config.json | 32 + ...ntent_bundle_service_descriptor_config.php | 64 + ...tent_bundle_service_rest_client_config.php | 64 + .../content_label_service_client_config.json | 32 + ...ontent_label_service_descriptor_config.php | 64 + ...ntent_label_service_rest_client_config.php | 64 + .../content_service_client_config.json | 32 + .../content_service_descriptor_config.php | 64 + .../content_service_rest_client_config.php | 64 + ...eative_template_service_client_config.json | 32 + ...ive_template_service_descriptor_config.php | 64 + ...ve_template_service_rest_client_config.php | 64 + .../custom_field_service_client_config.json | 62 + ...custom_field_service_descriptor_config.php | 137 + ...ustom_field_service_rest_client_config.php | 140 + ...m_targeting_key_service_client_config.json | 32 + ...argeting_key_service_descriptor_config.php | 64 + ...rgeting_key_service_rest_client_config.php | 64 + ...targeting_value_service_client_config.json | 32 + ...geting_value_service_descriptor_config.php | 64 + ...eting_value_service_rest_client_config.php | 76 + ...vice_capability_service_client_config.json | 32 + ...e_capability_service_descriptor_config.php | 64 + ..._capability_service_rest_client_config.php | 64 + ...device_category_service_client_config.json | 32 + ...ice_category_service_descriptor_config.php | 64 + ...ce_category_service_rest_client_config.php | 64 + ...ce_manufacturer_service_client_config.json | 32 + ...manufacturer_service_descriptor_config.php | 64 + ...anufacturer_service_rest_client_config.php | 64 + ...signals_mapping_service_client_config.json | 52 + ...nals_mapping_service_descriptor_config.php | 113 + ...als_mapping_service_rest_client_config.php | 116 + .../geo_target_service_client_config.json | 32 + .../geo_target_service_descriptor_config.php | 64 + .../geo_target_service_rest_client_config.php | 64 + .../mobile_carrier_service_client_config.json | 32 + ...bile_carrier_service_descriptor_config.php | 64 + ...ile_carrier_service_rest_client_config.php | 64 + .../mobile_device_service_client_config.json | 32 + ...obile_device_service_descriptor_config.php | 64 + ...bile_device_service_rest_client_config.php | 64 + ...device_submodel_service_client_config.json | 32 + ...ice_submodel_service_descriptor_config.php | 64 + ...ce_submodel_service_rest_client_config.php | 64 + .../network_service_client_config.json | 32 + .../network_service_descriptor_config.php | 47 + .../network_service_rest_client_config.php | 57 + ...perating_system_service_client_config.json | 32 + ...ating_system_service_descriptor_config.php | 64 + ...ting_system_service_rest_client_config.php | 64 + ..._system_version_service_client_config.json | 32 + ...stem_version_service_descriptor_config.php | 64 + ...tem_version_service_rest_client_config.php | 64 + .../order_service_client_config.json | 44 + .../order_service_descriptor_config.php | 64 + .../order_service_rest_client_config.php | 64 + .../placement_service_client_config.json | 67 + .../placement_service_descriptor_config.php | 150 + .../placement_service_rest_client_config.php | 152 + ...te_auction_deal_service_client_config.json | 42 + ...auction_deal_service_descriptor_config.php | 110 + ...uction_deal_service_rest_client_config.php | 92 + ...private_auction_service_client_config.json | 42 + ...vate_auction_service_descriptor_config.php | 90 + ...ate_auction_service_rest_client_config.php | 92 + ...grammatic_buyer_service_client_config.json | 32 + ...mmatic_buyer_service_descriptor_config.php | 64 + ...matic_buyer_service_rest_client_config.php | 64 + .../report_service_client_config.json | 52 + .../report_service_descriptor_config.php | 120 + .../report_service_rest_client_config.php | 115 + .../resources/role_service_client_config.json | 32 + .../role_service_descriptor_config.php | 64 + .../role_service_rest_client_config.php | 64 + .../resources/site_service_client_config.json | 62 + .../site_service_descriptor_config.php | 137 + .../site_service_rest_client_config.php | 140 + ...xonomy_category_service_client_config.json | 32 + ...omy_category_service_descriptor_config.php | 64 + ...my_category_service_rest_client_config.php | 64 + .../resources/team_service_client_config.json | 62 + .../team_service_descriptor_config.php | 137 + .../team_service_rest_client_config.php | 140 + .../resources/user_service_client_config.json | 27 + .../user_service_descriptor_config.php | 43 + .../user_service_rest_client_config.php | 53 + .../V1/Client/AdBreakServiceClientTest.php | 508 ++ .../AdReviewCenterAdServiceClientTest.php | 482 ++ .../V1/Client/AdUnitServiceClientTest.php | 348 + .../Client/ApplicationServiceClientTest.php | 235 + .../AudienceSegmentServiceClientTest.php | 235 + .../BandwidthGroupServiceClientTest.php | 235 + .../BrowserLanguageServiceClientTest.php | 235 + .../V1/Client/BrowserServiceClientTest.php | 243 + .../CmsMetadataKeyServiceClientTest.php | 235 + .../CmsMetadataValueServiceClientTest.php | 239 + .../V1/Client/CompanyServiceClientTest.php | 271 + .../V1/Client/ContactServiceClientTest.php | 586 ++ .../Client/ContentBundleServiceClientTest.php | 235 + .../Client/ContentLabelServiceClientTest.php | 235 + .../V1/Client/ContentServiceClientTest.php | 235 + .../CreativeTemplateServiceClientTest.php | 259 + .../Client/CustomFieldServiceClientTest.php | 719 ++ .../CustomTargetingKeyServiceClientTest.php | 243 + .../CustomTargetingValueServiceClientTest.php | 243 + .../DeviceCapabilityServiceClientTest.php | 235 + .../DeviceCategoryServiceClientTest.php | 235 + .../DeviceManufacturerServiceClientTest.php | 235 + .../EntitySignalsMappingServiceClientTest.php | 528 ++ .../V1/Client/GeoTargetServiceClientTest.php | 251 + .../Client/MobileCarrierServiceClientTest.php | 239 + .../Client/MobileDeviceServiceClientTest.php | 239 + .../MobileDeviceSubmodelServiceClientTest.php | 239 + .../V1/Client/NetworkServiceClientTest.php | 243 + .../OperatingSystemServiceClientTest.php | 235 + ...peratingSystemVersionServiceClientTest.php | 243 + .../Unit/V1/Client/OrderServiceClientTest.php | 291 + .../V1/Client/PlacementServiceClientTest.php | 772 ++ .../PrivateAuctionDealServiceClientTest.php | 445 ++ .../PrivateAuctionServiceClientTest.php | 420 + .../ProgrammaticBuyerServiceClientTest.php | 259 + .../V1/Client/ReportServiceClientTest.php | 644 ++ .../Unit/V1/Client/RoleServiceClientTest.php | 247 + .../Unit/V1/Client/SiteServiceClientTest.php | 676 ++ .../TaxonomyCategoryServiceClientTest.php | 247 + .../Unit/V1/Client/TeamServiceClientTest.php | 698 ++ .../Unit/V1/Client/UserServiceClientTest.php | 187 + 848 files changed, 122878 insertions(+) create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ApplicationMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ApplicationService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AudienceSegmentMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AudienceSegmentService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserLanguageMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserLanguageService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentBundleMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentBundleService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentLabelMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentLabelService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateVariableUrlTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldValue.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DealBuyerPermissionTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceManufacturerMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceManufacturerService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EarlyAdBreakNotificationEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EnvironmentTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ExchangeSyndicationProductEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/FrequencyCap.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/GeoTargetMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/GeoTargetService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LiveStreamEventMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileCarrierMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileCarrierService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemVersionMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemVersionService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionDealMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionDealService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateMarketplaceEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ProgrammaticBuyerMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ProgrammaticBuyerService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportDefinition.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportValue.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RequestPlatformEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SizeTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TargetedVideoBumperTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Targeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamEnums.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TimeUnitEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserMessages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/VideoPositionEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/WebProperty.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreak.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum/AdBreakState.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAd.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Application.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegment.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegmentTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthGroup.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAdReviewCenterAdsOperationMetadata.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Browser.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguage.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguageTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKey.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValue.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum/ContactStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Content.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentBundle.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentLabel.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateAdBreakRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateContactRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateCustomFieldRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePlacementRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionDealRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateSiteRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateTeamRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplate.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingClause.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingLiteral.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DataSegmentTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum/DealBuyerPermissionType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeleteAdBreakRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapability.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapabilityTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategory.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategoryTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturer.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturerTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DisapprovalReason.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FirstPartyMobileApplicationTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTarget.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdBreakRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetApplicationRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAudienceSegmentRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBandwidthGroupRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserLanguageRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataKeyRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataValueRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContactRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentBundleRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentLabelRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCreativeTemplateRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCapabilityRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCategoryRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceManufacturerRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetGeoTargetRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileCarrierRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceSubmodelRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemVersionRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionDealRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetProgrammaticBuyerRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetSiteRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTeamRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/InventoryTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LiveStreamEvent.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileApplicationTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrier.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrierTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDevice.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDeviceSubmodel.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystem.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemVersion.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuction.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal/BuyerData.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum/PrivateMarketplaceDealStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ProgrammaticBuyer.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/MetricValueGroup.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/Row.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/FixedDateRange.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/RelativeDateRange.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Dimension.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Field.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FieldFilter.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FilterList.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/Operation.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Flag.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Metric.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/MetricValueType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/ReportType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Slice.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Sort.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimePeriodColumn.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimeZoneSource.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/DoubleList.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/IntList.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/StringList.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum/RequestPlatform.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/Frequency.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/MonthlySchedule.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/WeeklySchedule.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsResponse.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Site.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum/TargetedVideoBumperType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Targeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum/TeamAccessType.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum/TeamStatus.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TechnologyTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateAdBreakRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateContactRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateCustomFieldRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePlacementRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionDealRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateSiteRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateTeamRequest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UserDomainTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPosition.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum/VideoPosition.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionTargeting.php create mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/WebProperty.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/create_ad_break.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/delete_ad_break.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/get_ad_break.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/list_ad_breaks.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/update_ad_break.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_allow_ad_review_center_ads.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_block_ad_review_center_ads.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/search_ad_review_center_ads.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/get_application.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/list_applications.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/get_bandwidth_group.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/list_bandwidth_groups.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/get_browser_language.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/list_browser_languages.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/get_browser.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/list_browsers.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/get_cms_metadata_key.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/list_cms_metadata_keys.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/get_cms_metadata_value.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/list_cms_metadata_values.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_create_contacts.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_update_contacts.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/create_contact.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/get_contact.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/list_contacts.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/update_contact.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/get_content_bundle.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/list_content_bundles.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/get_content_label.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/list_content_labels.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/get_content.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/list_content.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/get_creative_template.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/list_creative_templates.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/create_custom_field.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/update_custom_field.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/get_device_capability.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/list_device_capabilities.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/get_device_category.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/list_device_categories.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/get_device_manufacturer.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/list_device_manufacturers.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/get_geo_target.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/list_geo_targets.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/get_mobile_carrier.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/list_mobile_carriers.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/get_mobile_device.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/list_mobile_devices.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/get_mobile_device_submodel.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/list_mobile_device_submodels.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/get_operating_system.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/list_operating_systems.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/get_operating_system_version.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/list_operating_system_versions.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_activate_placements.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_archive_placements.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_create_placements.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_deactivate_placements.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_update_placements.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/create_placement.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/update_placement.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/create_private_auction_deal.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/get_private_auction_deal.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/list_private_auction_deals.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/update_private_auction_deal.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/create_private_auction.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/get_private_auction.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/list_private_auctions.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/update_private_auction.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/get_programmatic_buyer.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/list_programmatic_buyers.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_create_sites.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_deactivate_sites.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_submit_sites_for_approval.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_update_sites.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/create_site.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/get_site.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/list_sites.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/update_site.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_activate_teams.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_create_teams.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_deactivate_teams.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_update_teams.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/create_team.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/get_team.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/list_teams.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/update_team.php create mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdBreakServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdReviewCenterAdServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/ApplicationServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/AudienceSegmentServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/BandwidthGroupServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserLanguageServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataKeyServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataValueServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContactServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentBundleServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentLabelServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CreativeTemplateServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCapabilityServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCategoryServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceManufacturerServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/GeoTargetServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileCarrierServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceSubmodelServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemVersionServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionDealServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/ProgrammaticBuyerServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/SiteServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/TeamServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdBreakServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ApplicationServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BandwidthGroupServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContactServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentBundleServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentLabelServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCategoryServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/GeoTargetServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemVersionServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionDealServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ProgrammaticBuyerServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/SiteServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TeamServiceClientTest.php create mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..590808506f7759c04fb3a418456ef0a86928f1ca GIT binary patch literal 2104 zcmb7FQE%He5T5MBvFR>N++cMxpk>z%b%#xYQ*;l?vdu!$xERs|ZI*{YfIv&MLqrxe zk@DsRe%~JUKZgB}0mFVpp8G3ylqflFQXn-TTjqUtB)|La?wjx8(-=L%`!u2nku<=A zDVC=c#|f9*=OG@X!y!$u&&M$fX<}l$dx&2h9^<{;m&XsmRq!jard(@ZZ8n<=rHa{cN-x; zBtqa`;HYQ^Iv6@f7(Q`22$_$CBocleGvTp_Nk&5U8{BCJ4@oE}#JGwbrjaihkFat$ zjC|U8iu0HX`#9#n!458tb);wkO5B%`q)9|Vcb5u3VX@@N5kPHwL}f{)TIoF1+p2JE zh&%ZiZTre0cd$%SdUJ2opd2MXo zy97uyd)jngo3bJTC0c=|NZX6prCk<0a|PIXM9UsWNVqk3`sb}jR}cg3$zkaDZ^mz3L& zsF`;pRf@E|0-mc|Ul*S5X3NxMy-{FQI139ZY_-3v!eX?l!_uEq3Z0}~hsf0&QB#OV zXg%hEC+Rp2A()qO-vCg?z0qG$par=7A>CO+tHqW%%T5cedGFBb{A-|3fvxu` z!`aX@7Q-m(Jx9h*-)r%Xcu1m=$&-;aqERMg-9%I(fV{;~xm~8~@5;TW6l%4I%eBfM~PpTl8f6Z*l Mkol09p&3H|0~}|rU;qFB literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakService.php new file mode 100644 index 000000000000..6555a4c8a1fc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakService.php @@ -0,0 +1,68 @@ +internalAddGeneratedFile( + ' +ä +.google/ads/admanager/v1/ad_break_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto"K +GetAdBreakRequest6 +name ( B(àAúA" + admanager.googleapis.com/AdBreak"Ç +ListAdBreaksRequest@ +parent ( B0àAúA* +(admanager.googleapis.com/LiveStreamEvent + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"x +ListAdBreaksResponse3 + ad_breaks ( 2 .google.ads.admanager.v1.AdBreak +next_page_token (  + +total_size ("‘ +CreateAdBreakRequest@ +parent ( B0àAúA* +(admanager.googleapis.com/LiveStreamEvent7 +ad_break ( 2 .google.ads.admanager.v1.AdBreakBàA"… +UpdateAdBreakRequest7 +ad_break ( 2 .google.ads.admanager.v1.AdBreakBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"N +DeleteAdBreakRequest6 +name ( B(àAúA" + admanager.googleapis.com/AdBreak2— +AdBreakService¨ + +GetAdBreak*.google.ads.admanager.v1.GetAdBreakRequest .google.ads.admanager.v1.AdBreak"ËÚAname‚Ó䓽=/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}ZEC/v1/{name=networks/*/liveStreamEventsByCustomAssetKey/*/adBreaks/*}Z53/v1/{name=networks/*/liveStreamEvents/*/adBreaks/*}» + ListAdBreaks,.google.ads.admanager.v1.ListAdBreaksRequest-.google.ads.admanager.v1.ListAdBreaksResponse"ÍÚAparent‚Ó䓽=/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaksZEC/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaksZ53/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks× + CreateAdBreak-.google.ads.admanager.v1.CreateAdBreakRequest .google.ads.admanager.v1.AdBreak"ôÚAparent,ad_break‚Óä“Û"=/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaks:ad_breakZO"C/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaks:ad_breakZ?"3/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks:ad_breakÑ + UpdateAdBreak-.google.ads.admanager.v1.UpdateAdBreakRequest .google.ads.admanager.v1.AdBreak"oÚAad_break,update_mask‚Óä“R2F/v1/{ad_break.name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}:ad_break¤ + DeleteAdBreak-.google.ads.admanager.v1.DeleteAdBreakRequest.google.protobuf.Empty"LÚAname‚Óä“?*=/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÇ +com.google.ads.admanager.v1BAdBreakServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..026d7dc0a3652327d8d9f968043af23356e4ba33 GIT binary patch literal 1019 zcmbVL-HOvd6t=sdFoH-gTv%_$b#c3*DaDJ0)T(KlEyZqI`nMo~Fiob}fpjKJCKZ*w zfluNi_y}J3AU=g>CfTrB_r|~^IdjhW=F9oMyndTpCFm*cQBEaMG{nnKSY1(^NTEa^ zV!X^&D=Kjy)(MNLv@q_D@NhK4Znr;s0H4u@Fm?a z`q2+4S5*42L3y@LEprA!oUCb@kbvUexP3tt35ghPFd(n5Ka7*u>(VrkEKx#^q13h`s>;#oo!V(}tcGJNT+2Dy z_72GwRx+bEPsdnNl}X+-yfwhKd^5~mzF`FqCk)GD&q20YS*Y7i(D!|G_MduH5AsF} zgoafpV{IBoUn}VFZ&jusL6&N5jyQVs?`-usdggTfiM!~#mwv|`&fJL)8`GIHn@|1u za5{E7{qw%teR!vOAKh~XgV7}f6&_NosMnh$dji1*t+E9fz}*1CmmdxxuW zkdbs;`S7l2i$qL#WCv@VKOgsHgw>Qg)eA_$d84FurVOSUWA7L#TKdv*L yaW~wGoCp5?wRf1e**5g)TamQwMPqr_5O{S`%K0L9$qiH8YA92gduNNb2>k{Z{Yv`) literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..fd0a86d67f9cef1857704ba99fd46b3bddb87381 GIT binary patch literal 1808 zcmbVNPfrs;6t@&nM?#dfaG$q@HL+JOF7?y0S$-Z0*t2m5se8XsSdkJ+Nt0h-Ls~<||w+7P2PD@=*mh zu7o2F$F2vV2I=BK3zR~+vXW~E2^pS5%mcckvyBBH?`C53ZpS(jB zHevT9^tp#zix3&{V^1688vsY#S>q7+H8^BPT*#Z5?m$+EmqwE0?8R%IWvJ@=-Gr=R zS(myL8basDw>!lC|9UP=rnVOL0~}?>sjs>hdN66 zLW_)c+|wr!6!Rz=TiCG%L~dPOC0B@zPx-DzL&@}Miy~p;aDv9!xmTw`dG-1s(hNgxt{Q$ zT|S07wnhX}b3h?(O^(g}B-3Dh&52r<hstjEo|FI(sp)+OHgWgboj) zt~T8tNoSy<(^_oj4&G$hZHfRp-V(A|ZbFD5Xi@Hwa^VxO*ro34(ByhD)G-$d*Jk>e zu=XoII}#_E_xQ+U4o>{Dp{dl&w$aW!GNEnnSL!2)125;gJ^VZ!n&)Qh!1internalAddGeneratedFile( + ' +Ý +9google/ads/admanager/v1/ad_review_center_ad_service.protogoogle.ads.admanager.v1:google/ads/admanager/v1/ad_review_center_ad_messages.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto#google/longrunning/operations.protogoogle/rpc/status.protogoogle/type/interval.proto"ƒ +SearchAdReviewCenterAdsRequest< +parent ( B,àAúA& +$admanager.googleapis.com/WebProperty + page_size (BàA + +page_token ( BàA_ +status (2J.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatusBàA# +ad_review_center_ad_id ( BàA3 +date_time_range ( 2.google.type.IntervalBàA + search_text ( BàA +buyer_account_id (BàA"ƒ +SearchAdReviewCenterAdsResponseG +ad_review_center_ads ( 2).google.ads.admanager.v1.AdReviewCenterAd +next_page_token ( "¤ +"BatchAllowAdReviewCenterAdsRequest< +parent ( B,àAúA& +$admanager.googleapis.com/WebProperty@ +names ( B1àAúA+ +)admanager.googleapis.com/AdReviewCenterAd"% +#BatchAllowAdReviewCenterAdsResponse"¤ +"BatchBlockAdReviewCenterAdsRequest< +parent ( B,àAúA& +$admanager.googleapis.com/WebProperty@ +names ( B1àAúA+ +)admanager.googleapis.com/AdReviewCenterAd"% +#BatchBlockAdReviewCenterAdsResponse"ã +\'BatchAdReviewCenterAdsOperationMetadatam +failed_requests ( 2T.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata.FailedRequestsEntryI +FailedRequestsEntry +key (! +value ( 2.google.rpc.Status:82” +AdReviewCenterAdServiceß +SearchAdReviewCenterAds7.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest8.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse"QÚAparent‚Óä“B@/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:search¥ +BatchAllowAdReviewCenterAds;.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest.google.longrunning.Operation"©ÊAN +#BatchAllowAdReviewCenterAdsResponse\'BatchAdReviewCenterAdsOperationMetadataÚAparent‚Óä“I"D/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:batchAllow:*¥ +BatchBlockAdReviewCenterAds;.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest.google.longrunning.Operation"©ÊAN +#BatchBlockAdReviewCenterAdsResponse\'BatchAdReviewCenterAdsOperationMetadataÚAparent‚Óä“I"D/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:batchBlock:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÐ +com.google.ads.admanager.v1BAdReviewCenterAdServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..ae0af4b8f3e281456f79fec6ad1b9cba3b23558c GIT binary patch literal 1144 zcmb7D+iuf95T$7;WfUZnmx@-vQYtl7!BNDUO93Z#g9UM-#7RYE5pC>^YvkD0dR+vl zKg4(Ngv5{V6^t*9(pG&S(mLLmGjql>b6&rV&tiB^IxJ+I3g(jOHzLj$iFqUL)T%|ieuph-ehcZ8YrED`(wg1b@X`v_GOkBLPSGfREHq|MU#Gg2>VRFoS<9udJ)w#-fl zXCmd{VP1EZ;9~KXSN8IaU)G_z?t=Ch2UK4Gv#>q*vjzwMF`3$C0hV!$c*+^b=gplj zAQkN&Vz1LA8^X>Qs>`<86WCI<$;dRU$UcsQI>E`~V8Zsf9@>@z&LVyr!d?O|6PAeV8fPr5x#zecwK zYi7^P$Rwy1(3WbN`ar5=7VVR%c8zu(j-(@yEXr|=Cw}NgUvo|ss>`<8V|Zk#gN|-Z zP7G7)om?Zl2dh@Ek9_yxZtJ6Jevm4yUn{VU;*oFZYpd*PzSQ}a^;b^cm0&LlXz0li z_Zl7xbLlh+7mfW)W>=+lxER>a%4R3ml8joy(=FsEkDI?QJ$5cLe3U*Lh4#0yRfH)D l#$}JvsVL*-bUiQN)!t&mUKESFwCA_(c#bUA`2sEg{sGh0V^RPB literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..489ff1c51ff9b18a703e0580befe47a184831a3d GIT binary patch literal 4287 zcmbtXYf}?f7;Xqj;0*)`RTflOQ7d>!hS+x6sI}Rm#2KlXiaOItdpy}aAv@jdZg)2* zb(rbL{+52|ujovt{S|!n2lRuVe9vWb!w4udfpE@yf1meqZr}A=K3vo{nactiF-vdk z=~0X6e&9u(={b6%(`>RpH@&uRJ1i*Z`o<&u`$yaQy^ROk7mzjdI)TZ``i|%AIIKvm z5I=3|(j68Qch~VB(sAvGv{@M9Sy&LF0bGhFJ~f%XSu?g+L@gT8`lgUluUH{|l$83@ z^;-a@L&H$7SWi&cmXZapK*t}y({OB44u>HsjYDiix@35#F zN`A7srqptAc2i%KHkQkWjJ%^qL5KBg*Y$u!oxr^%?B)XYyWi@^h#3Zu$LgNjX@})< z&%vI&<4N&-$7a?;+FjhR9M(BQ-Q*_z;u&ig;y|h7dubXqICd-!3*e5=cWqK@lwU5dS{?{iS~z0 zq-d$64$1D`M{(vP!OHJ5kd`H#pM`PWKDC6NSe-PI2bGEZJV4xOZA+WMizL5D<~Jed z(*VnksCx|r*VTi{*g+-rrg8z6dwG#YQr`{>*z$`~U-gqe5{dj>$SOfTjaph(Pp)Q5 zmlYfirMDniYeKcOWC^A$JMicr>VkQL<8*K% z6!af(1&Qi7S7588idy|$D=@O2oxk;B{j=jX$VcL7&Z5Z#+w*AA;5c z+>o?0CzO`VKY?=tGRQ#h47GV7@oMbcp^%Ebp?_RUBcH)i&q(3wuwd;&1Sj)9!%Wzw zK}2}QNt^eP1&n{L^wmfcA9H%X3Tz>@DCL0@Lw2A{b&6+b4d&x`ps&mg`NW|O2a&yq zdK9v!Iq5Z6==nHId^RRdR&z*Pe*U`h(~*rhzvi;&g%|u17GJ4vgty9l+_L$uhsO%= z`&TpSsFappj9Hi=gOk9Rfoam;lEpz>GF-4R2^k_guA#vh61zUo$BaeLNYB&3yBthm z8OSXeyM%EDJ|*vH3qo^$A22v$U*Q`opd;gZi_tg*IWkatMjlR)Av_3kV@HP4Vw{7; zK39frSN=}`$hpShlK%q6Im*Ns&X&%P1{e}?*pJCU`W#LTZ!KchYUC1cFNEF!wQtc#^;<=+HMNyp_t&u<*sD&#Iwzk(y_ z_&de$N+3r*-&^ELfcO1y#Hpqho}}0ZJ_yq*elH-jDHev7V|j@9LAhXP5dgZ@n>o+@#D90 znL{>*x;q6g*eUKXSB#%xZ_mTlG5BJ?)%Ez#vH4B$9>>8L;%7^~>I+ZT|BG+x;;D|m z)Lk7P>#xTaC0n_SeEgTXESI0IH`2m@n^(Foi|g{`+xJlB4aYX$@kkbw^8LCG`v7kN DexrZ5 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php new file mode 100644 index 000000000000..28589b9b739d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php @@ -0,0 +1,67 @@ +internalAddGeneratedFile( + ' +ˆ +-google/ads/admanager/v1/ad_unit_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"I +GetAdUnitRequest5 +name ( B\'àAúA! +admanager.googleapis.com/AdUnit"¾ +ListAdUnitsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"u +ListAdUnitsResponse1 +ad_units ( 2.google.ads.admanager.v1.AdUnit +next_page_token (  + +total_size (" +ListAdUnitSizesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"‚ +ListAdUnitSizesResponse: + ad_unit_sizes ( 2#.google.ads.admanager.v1.AdUnitSize +next_page_token (  + +total_size (2¬ + AdUnitService‡ + GetAdUnit).google.ads.admanager.v1.GetAdUnitRequest.google.ads.admanager.v1.AdUnit".ÚAname‚Óä“!/v1/{name=networks/*/adUnits/*}š + ListAdUnits+.google.ads.admanager.v1.ListAdUnitsRequest,.google.ads.admanager.v1.ListAdUnitsResponse"0ÚAparent‚Óä“!/v1/{parent=networks/*}/adUnitsª +ListAdUnitSizes/.google.ads.admanager.v1.ListAdUnitSizesRequest0.google.ads.admanager.v1.ListAdUnitSizesResponse"4ÚAparent‚Óä“%#/v1/{parent=networks/*}/adUnitSizesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÆ +com.google.ads.admanager.v1BAdUnitServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php new file mode 100644 index 000000000000..a49f1ebb2779 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + ' +³ +-google/ads/admanager/v1/admanager_error.protogoogle.ads.admanager.v1"– +AdManagerError + +error_code (  +message (  + +field_path (  +trigger (  + stack_trace ( % +details ( 2.google.protobuf.AnyBÇ +com.google.ads.admanager.v1BAdManagerErrorProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ApplicationMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ApplicationMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..fe88e64e0d3ebdb8f3ed255a65b47e29ac97676c GIT binary patch literal 1208 zcmb7DO>fgc5XGfJuq{I5(o!TeK&7S#Y$e=W0>ml}J(NVK$^lu5Hul6>;qI<>*M(B$ z&V@h1PXT@e=l%-TA4x2=Jz#0A_0G@fnyYf>gqYNTe{% zCKFT;i4)0ER4%}NA3pSt;obh>@nf5+MW!P3ArT@;(W9}p>x6Qepz=;z9+fg>5j9Nk z(Ftm8&$U~?6T+!Iku*Z+4T2*yG^U1zy#guh#@en5DIB);2#HdvHFTGVM-?DBCtx3$ zjcqN^#+HjGOSkzP-rs6 z_X^%Qz-+M#uNs_W;Q_-m4sc3OnNYsJ>}m;eUFt`ye(9B2#VB69W>w?eI9~L5U_^lVgwR_7t-{f+OAinternalAddGeneratedFile( + ' +å +1google/ads/admanager/v1/application_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"S +GetApplicationRequest: +name ( B,àAúA& +$admanager.googleapis.com/Application"à +ListApplicationsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"ƒ +ListApplicationsResponse: + applications ( 2$.google.ads.admanager.v1.Application +next_page_token (  + +total_size (2¬ +ApplicationService› +GetApplication..google.ads.admanager.v1.GetApplicationRequest$.google.ads.admanager.v1.Application"3ÚAname‚Óä“&$/v1/{name=networks/*/applications/*}® +ListApplications0.google.ads.admanager.v1.ListApplicationsRequest1.google.ads.admanager.v1.ListApplicationsResponse"5ÚAparent‚Óä“&$/v1/{parent=networks/*}/applicationsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBË +com.google.ads.admanager.v1BApplicationServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php new file mode 100644 index 000000000000..e23e5d79d3f6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' +‰ ++google/ads/admanager/v1/applied_label.protogoogle.ads.admanager.v1google/api/resource.proto"V + AppliedLabel5 +label ( B&àAúA +admanager.googleapis.com/Label +negated (BÅ +com.google.ads.admanager.v1BAppliedLabelProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AudienceSegmentMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AudienceSegmentMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..25bc32d87dc6f1aef76d799c45366433682ef050 GIT binary patch literal 1253 zcmbVL!EVz)5XGTFumS~oDHMbjsMHh{TY&?TLx4n~p@)(PsvMA|Xk$;D70#};yACQ< z?uY{)!j0eH#3yj#(63-^ubn7qFGO0~+L?LtX7b*PSMel9k8l?l2%;dsqZ6zqfMdZG z_j!az$#@I``+OSH2!xGsr-$G5j`5q$;qe1qDtRJ&aB;|a7=c3qsn3)!5`u7Mb%!JY z1?Iz0LO2DchEtGI2c@0$K!_226B8eBx8FVjMFOIT*UjL(Rv`5;aNeNaK**1Xl(=PJ zKjf%K1{9qltbcJbil~pJB1*q@s2oy86(te6-M4yhElyFcNtkkiMX?;-arpT{i?(E;qfY?U}YI93A6Y&e3(( zNH(z&2`qQVSb$0dYh=7rfO+}lowvN0dIuDupbZl;qg=S|VyXqmMWye-{I};;Wvh7d zlA6I=K~T*~7nVS=tZsE@8>1fK1dD%#K8uwinternalAddGeneratedFile( + ' +« + +6google/ads/admanager/v1/audience_segment_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"[ +GetAudienceSegmentRequest> +name ( B0àAúA* +(admanager.googleapis.com/AudienceSegment"Ç +ListAudienceSegmentsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA" +ListAudienceSegmentsResponseC +audience_segments ( 2(.google.ads.admanager.v1.AudienceSegment +next_page_token (  + +total_size (2Ð +AudienceSegmentService« +GetAudienceSegment2.google.ads.admanager.v1.GetAudienceSegmentRequest(.google.ads.admanager.v1.AudienceSegment"7ÚAname‚Óä“*(/v1/{name=networks/*/audienceSegments/*}¾ +ListAudienceSegments4.google.ads.admanager.v1.ListAudienceSegmentsRequest5.google.ads.admanager.v1.ListAudienceSegmentsResponse"9ÚAparent‚Óä“*(/v1/{parent=networks/*}/audienceSegmentsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÏ +com.google.ads.admanager.v1BAudienceSegmentServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..0f44937fa7a575304efcc82559cf18740d4db120 GIT binary patch literal 1258 zcmbVM&2G~`5XNo!TR|)JK%te;0+o^?uoaMya48V0H0>cYLRAlyrD$VMoE7fwYIohL zR5>EStMCH60~cO_a}PWN>$T%FO?x5II@Zq2H{VRYFK^z7fk01i3m8bEA;!HEtOtOF z!>Nfj8V>D+$CB278NdBHA= zpuUC+%sh8haI=vOJYv_$mt+ImmQPp`w8f3wfRkbt!$ga(LSyh z9DRR^!A5bg)H7fbGg#)JJ_k;4rc!}Z*5=u<~WNF(Vdtok&=_Hjn9nYv)hh|``?|j=2r)W zwQ=vFFA-F^#una%Mz0y@V=g}{@3egDMm&b$*a%j#CVase!>0??O_B0qe)1x?iLP6g z!2-J5Jx@FM?VuGy#=T-$!OA4dkzuTYJI=xTvM%8%VTsFS;w8YWL%s31Q|4Z;mhxj} zsbwwe8q1o~F8%=A{l>3RB(!cek1`e-KcCGk7iGS0>heb!^!@!t?}jDtvQ~-dSz(HE Q9=g&$HnULq5DgLf2T>BF6aWAK literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupService.php new file mode 100644 index 000000000000..2fa7dc4411a0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +š + +5google/ads/admanager/v1/bandwidth_group_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"Y +GetBandwidthGroupRequest= +name ( B/àAúA) +\'admanager.googleapis.com/BandwidthGroup"Æ +ListBandwidthGroupsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA" +ListBandwidthGroupsResponseA +bandwidth_groups ( 2\'.google.ads.admanager.v1.BandwidthGroup +next_page_token (  + +total_size (2Ç +BandwidthGroupService§ +GetBandwidthGroup1.google.ads.admanager.v1.GetBandwidthGroupRequest\'.google.ads.admanager.v1.BandwidthGroup"6ÚAname‚Óä“)\'/v1/{name=networks/*/bandwidthGroups/*}º +ListBandwidthGroups3.google.ads.admanager.v1.ListBandwidthGroupsRequest4.google.ads.admanager.v1.ListBandwidthGroupsResponse"8ÚAparent‚Óä“)\'/v1/{parent=networks/*}/bandwidthGroupsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÎ +com.google.ads.admanager.v1BBandwidthGroupServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserLanguageMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserLanguageMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..e989c3f1af4eeaa2bd04e8b3d9cc7fe67263e08c GIT binary patch literal 1253 zcmbVL!EVz)5XEVQU@wgLwvhXAokLnT5YRONsyMH_qKu5fp)-F2%{ z<&HS;A>8;4PJ99<4*d$&_S&h^=0c>kt(}=SZzk`(e4QL5=rQgA13?socyfZ(0pLV% z#RDGWNjjZ^zyUu@Xbi%}cxQk=4EFKcoxS~sx>WL11mNO`^C$*~gi@bF!bk+dIchl* z!H*?~aZFg0>dWyVNU7h_&U+xlh`vck0Jt~w`k+Wi6!CjGoZk(lJ_gPowb}>;F_98` z1?+o++Bcx+6k+{K(n(AMEEQ4uwL#^WGO8$v=@&g?2Tw^XL1SIaou({Mlrx+a3|Iio zEnHw`xf==BJL%w(-Y{E}UXj1Y6bMFQe+OhBXrj0n>QvW_Kvm1lZkk)BZ3aiDxLI&? z-3uf;Scw$QcgI+ON(F1@yfc7V_2pl-yoCC@6ynf>19C*UaNYS-bC6}FAHn>$msaJg zc>0Q(!MkBt&AF?U(yW+eJU7wLRrKONCDK?c3T>?|eT*3Fqt^P}5;38UFl-B1J^E{* z`hrFpx6x`QwmTNKn%BLRKizAM2k1sfWfGHinternalAddGeneratedFile( + ' +« + +6google/ads/admanager/v1/browser_language_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"[ +GetBrowserLanguageRequest> +name ( B0àAúA* +(admanager.googleapis.com/BrowserLanguage"Ç +ListBrowserLanguagesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA" +ListBrowserLanguagesResponseC +browser_languages ( 2(.google.ads.admanager.v1.BrowserLanguage +next_page_token (  + +total_size (2Ð +BrowserLanguageService« +GetBrowserLanguage2.google.ads.admanager.v1.GetBrowserLanguageRequest(.google.ads.admanager.v1.BrowserLanguage"7ÚAname‚Óä“*(/v1/{name=networks/*/browserLanguages/*}¾ +ListBrowserLanguages4.google.ads.admanager.v1.ListBrowserLanguagesRequest5.google.ads.admanager.v1.ListBrowserLanguagesResponse"9ÚAparent‚Óä“*(/v1/{parent=networks/*}/browserLanguagesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÏ +com.google.ads.admanager.v1BBrowserLanguageServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..689b17ad06981e9d50ad35d580a7e689fa7d061b GIT binary patch literal 1270 zcmb7E-EPw`6eitZ!(#kYNE<@}1C!QGkf?B%F`&^{*+prErd~{uA~!ir4XGX3Zl^Kz zo>$-%coM`dFTnMl0w;0WqHY&da%vra=gW7F&zIM4(?N=!;U+K;L_vgmXIKpYr-CaU z@&xxr{XPgB@?lC75H`jKZTzu)jNcy|9Y4{jl8;0PE{-{m6L3f*^%@dJVi3-_?(_sd zl^}v4NU3Ae&Z!Y%L`PB*0&aG^7AO)CMf_&Y;x{6xmtpa{^*w~bgh+|Kf~{r9&^f~T zmyUV~4Y5>2>Ax*11InnPB%xn*N&C1@5(%1P5!)ZJP*Kisme6J))OK*enPIn5u3NB= zOIe+)E4m~85mO)-N&Ewlp`fYaqNAa%8-tqmGKjmD{6Qq~9dwX2pd{7dl)DcExF-1?mSI~+XiRwMHoXymR zg{|66Z|P5CwfYF%il|Hzau(!AmGWrm!?kagReg-shU7CB!5DgCzIV(vy(4Z%+9-m z)`Iy$yu0Xj@Q?B$GB4HpX`zQ&gSm!T*OWcEO)Il zD{sN*d($TTsH``08{68(dbNs=f!(eDDo^~};re0DeC_dz%4U(~x;ig=m_yg?)_XT{ a0k5{FbN0OO%bdNgv{sHR3@||xg#H3p@t|V> literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserService.php new file mode 100644 index 000000000000..c26523aeb921 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +  +-google/ads/admanager/v1/browser_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"K +GetBrowserRequest6 +name ( B(àAúA" + admanager.googleapis.com/Browser"¿ +ListBrowsersRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"w +ListBrowsersResponse2 +browsers ( 2 .google.ads.admanager.v1.Browser +next_page_token (  + +total_size (2ˆ +BrowserService‹ + +GetBrowser*.google.ads.admanager.v1.GetBrowserRequest .google.ads.admanager.v1.Browser"/ÚAname‚Óä“" /v1/{name=networks/*/browsers/*}ž + ListBrowsers,.google.ads.admanager.v1.ListBrowsersRequest-.google.ads.admanager.v1.ListBrowsersResponse"1ÚAparent‚Óä“" /v1/{parent=networks/*}/browsersGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÇ +com.google.ads.admanager.v1BBrowserServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..b92ec89b6da5fe6491a8d9ee1617b32736a79259 GIT binary patch literal 986 zcmbVK+iKfD5UpJZW$8mOg_QPXngr}XD`VOxxo#`liV?vVuwqCNh_$p^q^twSJ{e&nSVuk%L zWa|@_CDJGcAjEJ&WQqdof?>zwbA#-=-vNF)jBGx3@xyZN)+R!cbuW; zclB86RIa9sIlbqAW8_U6w|*8+jcG4>(U9gjPsyr3S{Yz9oixE2lU86y#N3J literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyMessages.php new file mode 100644 index 000000000000..38e66b95b01f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyMessages.php @@ -0,0 +1,35 @@ +internalAddGeneratedFile( + ' +“ +7google/ads/admanager/v1/cms_metadata_key_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto"¨ +CmsMetadataKey +name ( BàA + display_name ( BàA[ +status (2F.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatusBàA:ŠêA† +\'admanager.googleapis.com/CmsMetadataKey:networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}*cmsMetadataKeys2cmsMetadataKeyBÏ +com.google.ads.admanager.v1BCmsMetadataKeyMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyService.php new file mode 100644 index 000000000000..721699b3eb12 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +œ + +6google/ads/admanager/v1/cms_metadata_key_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"Y +GetCmsMetadataKeyRequest= +name ( B/àAúA) +\'admanager.googleapis.com/CmsMetadataKey"Æ +ListCmsMetadataKeysRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"Ž +ListCmsMetadataKeysResponseB +cms_metadata_keys ( 2\'.google.ads.admanager.v1.CmsMetadataKey +next_page_token (  + +total_size (2Ç +CmsMetadataKeyService§ +GetCmsMetadataKey1.google.ads.admanager.v1.GetCmsMetadataKeyRequest\'.google.ads.admanager.v1.CmsMetadataKey"6ÚAname‚Óä“)\'/v1/{name=networks/*/cmsMetadataKeys/*}º +ListCmsMetadataKeys3.google.ads.admanager.v1.ListCmsMetadataKeysRequest4.google.ads.admanager.v1.ListCmsMetadataKeysResponse"8ÚAparent‚Óä“)\'/v1/{parent=networks/*}/cmsMetadataKeysGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÎ +com.google.ads.admanager.v1BCmsMetadataKeyServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..840969b87c9828e2a021f876afec72c5eb94dcf4 GIT binary patch literal 1014 zcmbVL-HOvd6t=st$lyikg$wJ=xUOsqno4p#^@g4?vV4A>b$#`&wUP zIvNsu0Z?68zDh_0g+x-_E{F&TC6b_od{!SgfE$zutdI_CH#vlnPhyfN=-AyvYxDd)9zHqYB;ii?UJKu9*`VB z$#Z=BbO0<7T z+-ujdoA+7(oLD2z^_^y;^#I(r-jCj@jom!bJ9k>;j)y-R;E^({aR=Ao0nx%eg`D%o zhc{JQ%o0RngYmcVP8YpSH-0K84SPoW1k5MXRD>k t1internalAddGeneratedFile( + ' +ã +9google/ads/admanager/v1/cms_metadata_value_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto"ô +CmsMetadataValue +name ( BàA + display_name ( ? +key ( B2àAàAúA) +\'admanager.googleapis.com/CmsMetadataKey_ +status (2J.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatusBàA:”êA +)admanager.googleapis.com/CmsMetadataValue>networks/{network_code}/cmsMetadataValues/{cms_metadata_value}*cmsMetadataValues2cmsMetadataValueBÑ +com.google.ads.admanager.v1BCmsMetadataValueMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueService.php new file mode 100644 index 000000000000..98336d5643f8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +¾ + +8google/ads/admanager/v1/cms_metadata_value_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"] +GetCmsMetadataValueRequest? +name ( B1àAúA+ +)admanager.googleapis.com/CmsMetadataValue"È +ListCmsMetadataValuesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"” +ListCmsMetadataValuesResponseF +cms_metadata_values ( 2).google.ads.admanager.v1.CmsMetadataValue +next_page_token (  + +total_size (2Ù +CmsMetadataValueService¯ +GetCmsMetadataValue3.google.ads.admanager.v1.GetCmsMetadataValueRequest).google.ads.admanager.v1.CmsMetadataValue"8ÚAname‚Óä“+)/v1/{name=networks/*/cmsMetadataValues/*} +ListCmsMetadataValues5.google.ads.admanager.v1.ListCmsMetadataValuesRequest6.google.ads.admanager.v1.ListCmsMetadataValuesResponse":ÚAparent‚Óä“+)/v1/{parent=networks/*}/cmsMetadataValuesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÐ +com.google.ads.admanager.v1BCmsMetadataValueServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..e751c2c9390b5257878e035e2d0de40be9a90f96 GIT binary patch literal 1135 zcmb7D-EPw`6sDyclQ%&LNJGGdH-^>;NL6u{F`!MeF4~qvODRj9n1vILZ0>{MqL_Z{DS+DR>44m|%(+4&dY*vQrFGny|!A zVmQgCQ%s?s%+e^vREDr`Lc?^R*4Ld4UYaF2^|1oOBne~OMnT4Hh6oBVZJ%}8q7spF z50iYB$ptO|1kG@kA|Jzn)jP%v1&AScP(ZldAmdg+xZ}<)0Dg?J45}rRCXm1<0Qr;V zlQ{BW#t`GLttj&%60r!y(FH%u9-N{$!yMpx?ldPpixL7wfk}Ma+JPme$lXd4e)v6j z#mN%)!SBM=3B#12*zM!Yr%}ohYVlM>2{D`BqVTkKs%-^aG=;5_qoQ0Rxd$1|@#5|f zQp|Enb_?DD;Bx*|Fnjejs(5sRV7~1>?@()=D9X0M_Xc?JAFYwr%Ve4Nkz3US`K+_~ zr3UU*4RFp=ESj+S8LTe2q^IDKY93o%8K2@C?oQU=9zPOPgP7V7+3XQXE9g z=0eD`g4_jo@Q;x69Bf>XREI*up6zs7Il^rHABB7knupMGj zOia5Bp)?ZH_2-1`&fD~@zCI{MNaiEN?YNvmdEEJV6>*E{;!72C`F#DVKQ7A@h1ZFt h3M$IDGg&SOyxyMc>SZa{1$E!3>>{%i@g=wf;5R-XU$y`M literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..db4a05dd1b682b60bc1e33d796c5411291b20f2d GIT binary patch literal 2328 zcmb7G-EJF26vlR9JI9F=EFhae=}=nLrLa~4H#iO8O`5n;Ln5$pfh?`YyJLIAdUrKD z4mFi;xZ+vhMG#NHbsvE%&diSOZPL)h(%9=c|KEIP&pi1y9>(w~Ic6afR5G9RCPWSy ziA5wMFA7L+-0w3%yl52jfC-zB!&CD8X@@*LeAf8{O_OLWJk}(GC>jK;LHz{Rh=z2) zMB`$op)6@QaYrmka4)g7Yk-jAPE0*Uj?bJECaF&)?H+3{-Ikx=GG4mpJ9_|LK$CL1aE~OCO8mLc6PJfvavJbov7~*{r$NHd$5q|_IP@fsLZS>#Lyy%T zk<_Qsy&p#i!9JO#b*4~3M7qyH$wWwl?jcJ&!DAVTGgNIh2TabfR6F%YCaiMD`=p-c z*lb=&a-T>sX4&Y32qwoO+|zk02h;ge_XePKTX7t4=0B%BhN&$oTsXXu8-w}Na6C$G z;U?zYBhCWfVMBVsBXK*^ADAK5jq{!#PKP72Bpt$vGT@2s^12c%M)0e#}6##Bg^Nje@7 z^$ko$(=6Ans5oCkWgO#FV6I}XwT|M-?)I$U8MWgRm=O|a&*wzOl(BcdQCc)`vE9nz%?kYB@q2{bXB~yX34r^|-kyvlEinternalAddGeneratedFile( + ' +¨ +-google/ads/admanager/v1/company_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"K +GetCompanyRequest6 +name ( B(àAúA" + admanager.googleapis.com/Company"À +ListCompaniesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"y +ListCompaniesResponse3 + companies ( 2 .google.ads.admanager.v1.Company +next_page_token (  + +total_size (2 +CompanyServiceŒ + +GetCompany*.google.ads.admanager.v1.GetCompanyRequest .google.ads.admanager.v1.Company"0ÚAname‚Óä“#!/v1/{name=networks/*/companies/*}¢ + ListCompanies-.google.ads.admanager.v1.ListCompaniesRequest..google.ads.admanager.v1.ListCompaniesResponse"2ÚAparent‚Óä“#!/v1/{parent=networks/*}/companiesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÇ +com.google.ads.admanager.v1BCompanyServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..fd1ce0ed24404e010bf67fefa3e2763159b63703 GIT binary patch literal 1018 zcmb7D-HOvd6t=s%;7HwWyjWO4#&u!4s42y})T(KcEde(To3w}o!Ze*`1L;hdOcqr7 zEZ%$XBY5M558_ielcb@`vKI!z_emlT1%$c5Du!K^<3AWBi5L!+XyBop`spm?%k zo+c5@IpX4VlH_4R5}u$m`6`+j!X-*`EC_C6mj#J8LT)Z_9UaC`61lY zs)vO9N3%jU(2zA!~y}1cWp^Kxw3xw4F?i^KNnkM4pQD17>tUuo?3wU$d WtoT)>oGqc1hqt0Q>`Nnn6|o literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..78ed321f32214c585e464371551bbe9e8eaf74c1 GIT binary patch literal 1715 zcmb7EU2oGc6s7If4{rleftC#f1}3c=kgDSaWejNc{V+C-X%8q;luskP9T_-yGpSp+pcAkuS2P71%}*$CBe>Y`aebK^TQ9VV4HDwg6L36+0I* zDZvUHmbIr;k&1ZRRN#c7$XmlaNJuPLvL{0wr-Q{vOSMy5Fvlu7(uTFPM#s5O{>aPt5w{>X|r5?0477i;|Lx58Y&E-{ML=H zxm>jgO6mhb^w=8L(9_dq{sr_ZgTWVpHX z(&%!bPutY_UPr6D|9eMOT-eGh&KXcbVJKVWR%uvqZmXc6`|^XsQRK&6MzK}S&@q!J z3+!PktV#xrD`*;w;~pZB1u~$hfV-g3MxU*TY`bLQ1rZUpCNrR{09nB&mV7i7Ol4?A zqE2|$ME{gdn@)9+Vxd@g{lvWa0Sob9=t^=wNF8OcST=8bNnVytcW;3y|NOd4fw24Dcd9}%t} A4FCWD literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactService.php new file mode 100644 index 000000000000..09a3c2da354d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactService.php @@ -0,0 +1,77 @@ +internalAddGeneratedFile( + ' +¯ +-google/ads/admanager/v1/contact_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"K +GetContactRequest6 +name ( B(àAúA" + admanager.googleapis.com/Contact"¿ +ListContactsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"w +ListContactsResponse2 +contacts ( 2 .google.ads.admanager.v1.Contact +next_page_token (  + +total_size ("ˆ +CreateContactRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network6 +contact ( 2 .google.ads.admanager.v1.ContactBàA"œ +BatchCreateContactsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkD +requests ( 2-.google.ads.admanager.v1.CreateContactRequestBàA"Q +BatchCreateContactsResponse2 +contacts ( 2 .google.ads.admanager.v1.Contact"„ +UpdateContactRequest6 +contact ( 2 .google.ads.admanager.v1.ContactBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"œ +BatchUpdateContactsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkD +requests ( 2-.google.ads.admanager.v1.UpdateContactRequestBàA"Q +BatchUpdateContactsResponse2 +contacts ( 2 .google.ads.admanager.v1.Contact2ÿ +ContactService‹ + +GetContact*.google.ads.admanager.v1.GetContactRequest .google.ads.admanager.v1.Contact"/ÚAname‚Óä“" /v1/{name=networks/*/contacts/*}ž + ListContacts,.google.ads.admanager.v1.ListContactsRequest-.google.ads.admanager.v1.ListContactsResponse"1ÚAparent‚Óä“" /v1/{parent=networks/*}/contacts¤ + CreateContact-.google.ads.admanager.v1.CreateContactRequest .google.ads.admanager.v1.Contact"BÚAparent,contact‚Óä“+" /v1/{parent=networks/*}/contacts:contactË +BatchCreateContacts3.google.ads.admanager.v1.BatchCreateContactsRequest4.google.ads.admanager.v1.BatchCreateContactsResponse"IÚAparent,requests‚Óä“1",/v1/{parent=networks/*}/contacts:batchCreate:*± + UpdateContact-.google.ads.admanager.v1.UpdateContactRequest .google.ads.admanager.v1.Contact"OÚAcontact,update_mask‚Óä“32(/v1/{contact.name=networks/*/contacts/*}:contactË +BatchUpdateContacts3.google.ads.admanager.v1.BatchUpdateContactsRequest4.google.ads.admanager.v1.BatchUpdateContactsResponse"IÚAparent,requests‚Óä“1",/v1/{parent=networks/*}/contacts:batchUpdate:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÇ +com.google.ads.admanager.v1BContactServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentBundleMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentBundleMessages.php new file mode 100644 index 000000000000..55a0c3170b5d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentBundleMessages.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' +‹ +5google/ads/admanager/v1/content_bundle_messages.protogoogle.ads.admanager.v1google/api/resource.proto"Ä + ContentBundle +name ( BàA + display_name ( BàA:„êA€ +&admanager.googleapis.com/ContentBundle7networks/{network_code}/contentBundles/{content_bundle}*contentBundles2 contentBundleBÎ +com.google.ads.admanager.v1BContentBundleMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentBundleService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentBundleService.php new file mode 100644 index 000000000000..adf5dc7b0717 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentBundleService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +‰ + +4google/ads/admanager/v1/content_bundle_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"W +GetContentBundleRequest< +name ( B.àAúA( +&admanager.googleapis.com/ContentBundle"Å +ListContentBundlesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"Š +ListContentBundlesResponse? +content_bundles ( 2&.google.ads.admanager.v1.ContentBundle +next_page_token (  + +total_size (2¾ +ContentBundleService£ +GetContentBundle0.google.ads.admanager.v1.GetContentBundleRequest&.google.ads.admanager.v1.ContentBundle"5ÚAname‚Óä“(&/v1/{name=networks/*/contentBundles/*}¶ +ListContentBundles2.google.ads.admanager.v1.ListContentBundlesRequest3.google.ads.admanager.v1.ListContentBundlesResponse"7ÚAparent‚Óä“(&/v1/{parent=networks/*}/contentBundlesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÍ +com.google.ads.admanager.v1BContentBundleServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentLabelMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentLabelMessages.php new file mode 100644 index 000000000000..0521f1d85c43 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentLabelMessages.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' + +4google/ads/admanager/v1/content_label_messages.protogoogle.ads.admanager.v1google/api/resource.proto"¼ + ContentLabel +name ( BàA + display_name ( BàA:~êA{ +%admanager.googleapis.com/ContentLabel5networks/{network_code}/contentLabels/{content_label}* contentLabels2 contentLabelBÍ +com.google.ads.admanager.v1BContentLabelMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentLabelService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentLabelService.php new file mode 100644 index 000000000000..df7e1b24e414 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentLabelService.php @@ -0,0 +1,52 @@ +internalAddGeneratedFile( + ' +ø +3google/ads/admanager/v1/content_label_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"U +GetContentLabelRequest; +name ( B-àAúA\' +%admanager.googleapis.com/ContentLabel"Ä +ListContentLabelsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"‡ +ListContentLabelsResponse= +content_labels ( 2%.google.ads.admanager.v1.ContentLabel +next_page_token (  + +total_size (2µ +ContentLabelServiceŸ +GetContentLabel/.google.ads.admanager.v1.GetContentLabelRequest%.google.ads.admanager.v1.ContentLabel"4ÚAname‚Óä“\'%/v1/{name=networks/*/contentLabels/*}² +ListContentLabels1.google.ads.admanager.v1.ListContentLabelsRequest2.google.ads.admanager.v1.ListContentLabelsResponse"6ÚAparent‚Óä“\'%/v1/{parent=networks/*}/contentLabelsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÌ +com.google.ads.admanager.v1BContentLabelServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..cfcbe123fffd37751a37745712de29b13c307918 GIT binary patch literal 1166 zcmb7DQE$^Q5GEaBV1W=7(qKsFfJti+Br3e66lfVMdnm2Y)CUx)a+7Onk=c>$4vnhs z{1)E$7l>cM^Y{}uiPKi<_CO>%mhbMn@6O-7dXr95@&vlbQBsW&jL$$%5mG6%2t@+p z*<^weLUEF^1f>gb(1(xxV|agXbo|JKDlwBG`Vb2dC+N{gnRP-rjZu214KEa2BiEx7 zRLa~bH-{#KQ*)Ej5TQHh^ib1?Y8rHNl%O3cvn)z5Y%~c86RH%vE6{otjLZp`FP)7O z7J|}Lo8KN&BgUC#G-2ONNiCSrM4`dh^qtIjsF~o91@w7{wK^1-neSdIObc32(i&u4 zF&znxOihy0Bsf47N|tIN2gcR+W7NxDW;eCEO`E~73DgRXzP~}T1zOHKN+g1|QJLGDnse2AMwHuwS zKke()hva6&RGQGUQEsY~rmYWGzB`UTK5vf*tdbRpXv&mp1n-r|b&mS0kYAKHx2I7k zB3zW(_U2aPi>KT6^rAd;Zj)Q1brPLl4tZeEZF@G#?cB9#OO5BE8#tfe+Wy2Mp*(hl zjJ+6nK26?=_{IP>m*xGa>~!<-a?N;|)hmY79X5WKmLQ)zvsqhUX79YRTZH+(iOV)? g^!;IDd@U#Na)0^$&k7x{$^KHw=bnWy7i2-mKfz{!!vFvP literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentService.php new file mode 100644 index 000000000000..eeca6246e042 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContentService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +˜ +-google/ads/admanager/v1/content_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"K +GetContentRequest6 +name ( B(àAúA" + admanager.googleapis.com/Content"¾ +ListContentRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"u +ListContentResponse1 +content ( 2 .google.ads.admanager.v1.Content +next_page_token (  + +total_size (2ƒ +ContentServiceŠ + +GetContent*.google.ads.admanager.v1.GetContentRequest .google.ads.admanager.v1.Content".ÚAname‚Óä“!/v1/{name=networks/*/content/*}š + ListContent+.google.ads.admanager.v1.ListContentRequest,.google.ads.admanager.v1.ListContentResponse"0ÚAparent‚Óä“!/v1/{parent=networks/*}/contentGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÇ +com.google.ads.admanager.v1BContentServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..0b86edf03d10d2197b579c4202546bebd0e7fb81 GIT binary patch literal 1128 zcmbVL!EVz)5G4T>v~Y+bL{YgcA)=`Sjv~axp@18^QKTlZ8aD!DDcU#_cO_?St=E+b z>X~nWPvO9a@D8pNxFM<5MK?J*sVJ?hv4?>UyHaV7&WX&A?01Z}oR@vN9&A;|VwryWROil4zu z!77Q6V+JByrAE#`h+r#76BYpNy9Yy1Y{3-s`#G3zEmAxsm_O}w2?-*WrnFardL^c# zA;~vF@kz3I!~>ctqz!13r!y|N;w<7{@&ESel0_*X(q`^56M^Efpt@iz0%+~g0#oNU zlNkH4PcOx}x<%L?e;^b{!6M&=G>|+|v2-!jG(%A9#_BJvy^>bL@g;2)8clOUG^;-CVZ@xLDtEWv}1!QiruztZ5H%XsvakF54wP?vc0uHLdz~QD)$f@sx8h z&N>Z6o?ah`cbt5zDY0 zg2)ZhEJ;yCf4a! i88pplXTFsSc(c3So>#?EUfJPW_czZhR`r5h5b_t$*K3FX literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..e3ea8985bcc6cb75bc86121b01a34f7bf39894e2 GIT binary patch literal 4116 zcmbtXOK;mo5Dq2Vl1GlLFfT=E62?str)Viyy%b8_#*A%QL1YWHW3&ZPf+AP)wlvA` z;nWR$DSF7QhhBQ?y+Hp+Zw1N}xlkh;`! zoSsFhy6NL{sM~svc-5nos^JkmphrXt$f0YY5ABfnK1zL=I{~nD{Nm~cks58KMFQQ_ z16^%!d+M6$;}hFc_g5YQ7?$q)(&O0fUTn4%TZNY(;m-{_7BwV4K<9>ZkNO(5X+U+0 z{)oF=mAbm+6Et>Ow;S3tI$^r6j&KOB5zaZQ23xY~51V ziEnt+4IHnHs`Yx01ZjHNm*oesTV{@SrR6Bbdi_+8t5V>FWYD`Lc_auu`yr2;88}Jb z)Csbu4rgt{4iEi$y}#AI<+rl8uX|MQSmc>!?H#*>nV-VCOVv$EEK?x|`Vn=!>6U&; zVl0l_4lmrtpVPQZYo?i2WfPIToaT{b^*;Q013rCQNQ>8_l`=L1J~4RZqm|0$HFvl<-`sF#46l+i9G5L~*zIGFr^^GZ37e)5rgmdWqJq8%|Gv1pHCQOZy2gcPSR5#VQW+{h7X354=*L(QngxX_>-~- z7qvlPDn(e(29T%#2y03XW_cfR1A~=QL?|J|`5~1QKqut?Aw2DS6)RuEVUQcZk(z=1jz|AHe0%rq4t2Ml+OCmd-|8JC3C@5lL1c?~&&r z^@z!7IwmkiaFu@qxOFDf#ODBq6zPcZtd9|9k<7oEJ`HC&kz42?rQW4SkWW6~5p%WG zY;9EKf5ZAArY@GY%YTU}mzMhK=bnbAFt1LNJfHFW&v) zJrH%va$aZ--sL?l3S+Ro>=>@>L-EbU;wZ53vmOOe64FgZC{*$=r*VApH?E_Upon}t zkUGw|gSk?!!e#Argq5EJc<<>MEkC*_*_iU!={KqQg6%5>m``uM>=fS( zJDddifV&1)v=Iz=>N>zIB^;;xEx=8@xs2PVa%-56ld+P|d2QjFNAXp)=UBSklO3;D z?Gc+#veo|W=+qeeFug=RzRpylW%W9) mV}G%*Uf*Bo%<%v|xt|U(A4Q|%z@#~L%H*2S*mnXa0RIC%P(S|w literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateService.php new file mode 100644 index 000000000000..b1eaeae4f9bb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +¼ + +7google/ads/admanager/v1/creative_template_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"] +GetCreativeTemplateRequest? +name ( B1àAúA+ +)admanager.googleapis.com/CreativeTemplate"È +ListCreativeTemplatesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"“ +ListCreativeTemplatesResponseE +creative_templates ( 2).google.ads.admanager.v1.CreativeTemplate +next_page_token (  + +total_size (2Ù +CreativeTemplateService¯ +GetCreativeTemplate3.google.ads.admanager.v1.GetCreativeTemplateRequest).google.ads.admanager.v1.CreativeTemplate"8ÚAname‚Óä“+)/v1/{name=networks/*/creativeTemplates/*} +ListCreativeTemplates5.google.ads.admanager.v1.ListCreativeTemplatesRequest6.google.ads.admanager.v1.ListCreativeTemplatesResponse":ÚAparent‚Óä“+)/v1/{parent=networks/*}/creativeTemplatesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÐ +com.google.ads.admanager.v1BCreativeTemplateServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateVariableUrlTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CreativeTemplateVariableUrlTypeEnum.php new file mode 100644 index 0000000000000000000000000000000000000000..dfb24a7f4e7a7dce2c34284dec2954210197ebbf GIT binary patch literal 1139 zcmb_bU25Av5U$fu%F=@ChX&e*Zj(S9Xk|>^a13(f+ZN>x>W_gU(*h)G5{`>LLQj8~MW zpm1-;uCgeQERJxVFpUCeAL0@-kKIpV)vjZFU8gU`>iVrBkFgXP++@dCfXqbHE9%YxF6&!S+1vN5s>4_=YuXbv z({>%0ryZd0+vw!~470UU;%I6qlvQKXHr?H;2HN|Fk?sCypjY?AwT@6{;1I*L=EQf& z*d7@!@#ltP8T}FQ&zzC(ezw(RGPB9RIuKWPNPtZMc4@;Dx}dVT{L02!v0oSukP;8t({?^6-{YH*|=1qHt$|td%QwM y>Zp9464LLj7iF5RtGxWEoVq^mE*=#H939k~@}^wC8~b|at`?EyT3(_{g#G~1r*|y? literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..81c470c90343e32ecca3fb1141e4f57d7d1b500e GIT binary patch literal 1417 zcmb7E%Wl&^6eXdp=m?}>1QoDgNGqC3kPxwRDd5Czu$0(V>;x5AvL?U z<QqU<3^Ra-cUuwC?L1HJrTjijw2 zq7JIUnyXPiX;#0L(AJU?Dk$fi##AU$jnTa;Owuz{Z4Ye6?0JW})>S=KaTL!vvNUgC z*p}AT;j>z~AtAJ3JAK{gR7zrR405kR|T$^a!?5jDf+vrxiuPKf` z6u{tQ0Wi~6x|KEQ0g}#7-bMI&_0tL<8}4kD=G67k-6f=jLE1)7R#4iG;tcG|tSRjr zL`i_qjrplu{klrdkfm(I0w5@_$X1|S7$tWXZLgFa>bBm}yMmxgg1y&ORWpDX;0ef3 zJ=5qOfo6b2%n79>RBQbzp~o;t>epPV)~ZU-+j+BDrH}9C5z{Cj;j|tl)5esB`50*w zCK59-cUEW5{^H91C~tN0xl)I@0;^Zdr~0t@``qH@BL^OHn+rqdZ~0LXCd&{f9&@8C f51XTn9KfsHMWa10`gf__uWj|*v*_wGbcWDB%YLrBWGG;hl*S~p5$d0!pH9!wQUC4vW9iCSo(04~5o1wIIymHVOmKoD zl69utPLOlKCjOX`IP@okb7|nVjt`JvIg{dmpyM<5ga{mBfxTlL%Ik$(jv|yd?Ct{u zG3Fe-)*;`hh$lrrcn?Va(tH%t0C9nZ{M(`2rwJ7l$Mknu+W{Kmm=hW2>e_Lh1cI^z zDTmV}Ang~(#8hi{QYN`LK#SDQ6g`p}?`67 zRX93EZIh$pTuJf(i7Y2&bc8Y@@+{fcd8+{P<(sz#abAhAqa>ej$5~am3VLm*lzN(I zmt5c}W!Zmo{h1WKXusqA1Z4;G)}gZrW}Qy z>}hxV+eNgLc8oqpMU_UM+mA{MvZ54Ydh%xt8YNnr4`4%yxn&`%U3aS=d$*g9;ofKB zr(vrityN{M4!-zcShV z>z1_K-95B#DAg{d`iu5ZI=DJ(Qmd-i5j035sF?X;mXg+{1{kaZaHQSNrPpPUl|=zn z1{(?pLtUME19Mx$^w)vuOQ-8V7V`$;mVy`qOev=$8q0cG_4P{`F1;?7va%SQn!-7R zO_r)#gtq`y+l}3q>lAXTT~rv$nSJU_VP~aMv!6Jn+?H2xr?idDy@ZJ0SoSOLyf5DT zfQ4jU+_?JGN?Tci^OsxZ(-?Ofr7yP$_xpN8%|xZ{@v>fVJdzobaF4x7G_pf;5h z<8A@?%Z+vKK*L|{!IL38c)hyC4Fk<*@a1O-7%pWV`czfjnq=r>Z?pO6(y39WN}suk z`?m#ONuq9|-EEan7rjGY=4aNs!{YEnEXGM>vn=XFB+;F!v)YF%9d3WQTYpp@9_!X+ z%hn~wiRps&u>04-;_0p?ABD}6eeF|a+qgN7^iz+*=s3gfsHPLxd%nC3zcc-z)J|?} NC3>Z~;O8(0_!khFpveFL literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php new file mode 100644 index 000000000000..4e5eb9dbc0d4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php @@ -0,0 +1,90 @@ +internalAddGeneratedFile( + ' +ç +2google/ads/admanager/v1/custom_field_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"S +GetCustomFieldRequest: +name ( B,àAúA& +$admanager.googleapis.com/CustomField"à +ListCustomFieldsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"„ +ListCustomFieldsResponse; + custom_fields ( 2$.google.ads.admanager.v1.CustomField +next_page_token (  + +total_size ("• +CreateCustomFieldRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network? + custom_field ( 2$.google.ads.admanager.v1.CustomFieldBàA"¤ +BatchCreateCustomFieldsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkH +requests ( 21.google.ads.admanager.v1.CreateCustomFieldRequestBàA"^ +BatchCreateCustomFieldsResponse; + custom_fields ( 2$.google.ads.admanager.v1.CustomField"‘ +UpdateCustomFieldRequest? + custom_field ( 2$.google.ads.admanager.v1.CustomFieldBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"¤ +BatchUpdateCustomFieldsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkH +requests ( 21.google.ads.admanager.v1.UpdateCustomFieldRequestBàA"^ +BatchUpdateCustomFieldsResponse; + custom_fields ( 2$.google.ads.admanager.v1.CustomField"™ + BatchActivateCustomFieldsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network; +names ( B,àAúA& +$admanager.googleapis.com/CustomField"# +!BatchActivateCustomFieldsResponse"› +"BatchDeactivateCustomFieldsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network; +names ( B,àAúA& +$admanager.googleapis.com/CustomField"% +#BatchDeactivateCustomFieldsResponse2Ê +CustomFieldService› +GetCustomField..google.ads.admanager.v1.GetCustomFieldRequest$.google.ads.admanager.v1.CustomField"3ÚAname‚Óä“&$/v1/{name=networks/*/customFields/*}® +ListCustomFields0.google.ads.admanager.v1.ListCustomFieldsRequest1.google.ads.admanager.v1.ListCustomFieldsResponse"5ÚAparent‚Óä“&$/v1/{parent=networks/*}/customFields¾ +CreateCustomField1.google.ads.admanager.v1.CreateCustomFieldRequest$.google.ads.admanager.v1.CustomField"PÚAparent,custom_field‚Óä“4"$/v1/{parent=networks/*}/customFields: custom_fieldÛ +BatchCreateCustomFields7.google.ads.admanager.v1.BatchCreateCustomFieldsRequest8.google.ads.admanager.v1.BatchCreateCustomFieldsResponse"MÚAparent,requests‚Óä“5"0/v1/{parent=networks/*}/customFields:batchCreate:*Ð +UpdateCustomField1.google.ads.admanager.v1.UpdateCustomFieldRequest$.google.ads.admanager.v1.CustomField"bÚAcustom_field,update_mask‚Óä“A21/v1/{custom_field.name=networks/*/customFields/*}: custom_fieldÛ +BatchUpdateCustomFields7.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest8.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse"MÚAparent,requests‚Óä“5"0/v1/{parent=networks/*}/customFields:batchUpdate:*à +BatchActivateCustomFields9.google.ads.admanager.v1.BatchActivateCustomFieldsRequest:.google.ads.admanager.v1.BatchActivateCustomFieldsResponse"LÚA parent,names‚Óä“7"2/v1/{parent=networks/*}/customFields:batchActivate:*è +BatchDeactivateCustomFields;.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest<.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse"NÚA parent,names‚Óä“9"4/v1/{parent=networks/*}/customFields:batchDeactivate:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBË +com.google.ads.admanager.v1BCustomFieldServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldValue.php new file mode 100644 index 0000000000000000000000000000000000000000..303f1617d72f3c76dfdd1ee631c8f4d7e87ea82d GIT binary patch literal 1281 zcmb7E-EPw`6kfU?HZvhq2{y)!fr)j}NGRN83}_f@cQIC>sTU~Hs4sz3&Q#-%6?80EEQ4uwMpeEWmHj;)6cr9Jv<<}1PyX^@1SIfqMYF>;g}`R*v1yK z+PhhB-Gx1T!K+&}MmHrsWC{c$dAtuY5wuWTboJIS%s`FXSw$M#?$`>B4sgSA48toV z_plNrOrMUi096XMYj{@x=i{&Vx~>&8Hm!-^jEpE3VK}L30x~Q0J-FMvHp{f)$xG@A zZ>8zD&I7HD#+X^fa|``iKu`Zy6!kTm;cFS`;jZ5wH8<{EKov9)j;0mT!*4Zo`?4zP z5n7#A-nxgq#!9sFyH)$!dW<$F*cO)*RQg)v!4y!vgBFco*K0cY=Ci<`LC&8_GMewS3b3eI>=Smtw)1sO17 z-(b?WE1usSclUd3t!@15Yd`C8Wd93(ule(0B{o*qlUs|m+5glwY+4xVylQfbVc2W- bmkfdDTVuWLSl>+9Y^KG`PHTj7bdJzJHAz}A?nI&3lmm1@Pfzzr?2)AeoU(xUR-eWW^CBKHU8Ksg`08?Z(>Kk% zqHPN2%~3PwD9bA(4-jVwz1$rkMtQ=5{fu`Ca8~}yn7w%C6+Ak#S=n|VlxvoWY1uCP zz6o#sSF-w6UMUH&#VW*+PTP%d6?n8N%vh+9#Hl*Pns4+dCSY+Q>FL#t@r| zI-eAMcL8(*_whhc1(}S%z`%H*8KYXY@x1~&t33=Fg^ZJ_PfIT6u;v(F z&8xqLmup!WSl0}*)BT9;H3VD6W3N{}eJBdu&?kW_h0JZaG{}72%0ndb(t&VwDD0Pq=0|mFm>FFXMi*<8 z4-RS4{&^9xvKb(5Ma&XY;7@fsFOy|am)?q?EKl0g&5XdS-SWsk&z*G1c-NXP%gp_C I24?_&0btpvr2qf` literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..e4cb0eb2a758dee02cd0e257e0aee666c4bfd1f0 GIT binary patch literal 1897 zcmbtVOK;Oa5XMQ<$5L7dhlV2P0+pKbaFlX$DNy$f>O-aK0a;iZd*iO^c&*)aQK)j@ z#&6)j58$V8<;sC8{T1x4oirs0q9W2J*3Qf~GhaT>JbMuz#oz(lz!7FhU?0|+P#j?x zGb*S@Ls(1dbOfi-3Y)mCJOR!zxo?=Tf}a(y~DA( zDbHtV6&$IiU|_#fIUPNl)7 z6s|m(%FL7M^h_HyCY8Es)~#jTrmCI3)#bplmQvIGUjidQezm$_+dF7Sgyz>g&)rJpof4{xT|7kn3ry_fbhD7pP0T;kgk zVBGDJlRXKpx!wA)M?gW-YL9^tH~m-bBDn7U!Mgq30JmkcgIKp`RtAn~JvaA^w=Xj- z1~f!bU{V%T0vzexP&ucxXSXbNi2s_K+R)3wl*>Y%?R5W`ht+Rwi=+35{K{;O+$3kY t=`_r;WSsiSjFxp+tqtn}p3Zd!&f|0xcTH|Z3-S6)ZS9#3(H3X{@Ecz4fqno0 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php new file mode 100644 index 000000000000..bc0e16e7ac1d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +à + +:google/ads/admanager/v1/custom_targeting_key_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"a +GetCustomTargetingKeyRequestA +name ( B3àAúA- ++admanager.googleapis.com/CustomTargetingKey"Ê +ListCustomTargetingKeysRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"š +ListCustomTargetingKeysResponseJ +custom_targeting_keys ( 2+.google.ads.admanager.v1.CustomTargetingKey +next_page_token (  + +total_size (2ë +CustomTargetingKeyService· +GetCustomTargetingKey5.google.ads.admanager.v1.GetCustomTargetingKeyRequest+.google.ads.admanager.v1.CustomTargetingKey":ÚAname‚Óä“-+/v1/{name=networks/*/customTargetingKeys/*}Ê +ListCustomTargetingKeys7.google.ads.admanager.v1.ListCustomTargetingKeysRequest8.google.ads.admanager.v1.ListCustomTargetingKeysResponse"<ÚAparent‚Óä“-+/v1/{parent=networks/*}/customTargetingKeysGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÒ +com.google.ads.admanager.v1BCustomTargetingKeyServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..3679500cb898f8f3e71827abc96ba9fbba5e777b GIT binary patch literal 1229 zcmbVLL2uJA6sCnuVC_)#GHD3pl}YO)ma5{GG9Yc!5{b6al2!vnirm!AETv9lJCg?5 z5%D)T^Fugr=XB%$2UDDQ~{6usUfTm1z|m zS;A()(KK(7Jb{Ac_-1wp85TLC9nD(-T&;JS+3_n<@~{?*b=raKUUTiJ!VbabEnxnC z+v>YTtRY)2SJ@!rqTTpX0Z;F0jwd^jbJd~-278-5>c`-yH}(932Qr`g&opJeBZG5kQ{k!svkciIx%S_Kp z<7)*x`KMRC4URVu8d-ktZRo#u?Y~Gp0$cW(BqBMi literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..d73b7c1436798fe45b14f6559862bbabd4eae121 GIT binary patch literal 1845 zcmbtVTW`}a6ehdRyCAAf8$*Bxlhy%C)gkeaF`!|WPH3zeRRt(g#UI0c*%-SOE6= z*5bh7Bn+So*bf|>U4aRv^j(TVLC*$k)mV~@3AU`=fMXgU-`d2?p(NrVEeTh{5dF7# zmS3_fX<7+KYA~DBXc#?3Za_|B+?^dlig`?fbyc?nXtv+1D==vFV{R*m>&!4Z?RL=n zVn)Q;CfIjPe29)oNUs-qfK%!8O{nNyeL+$(3$EMdZd(X3+wNBOz6`#OfsOxCU}i1} z*M)$^O0}jR=NIm`a3hkd$#(5(+Ha!Wh1*>YG;Jy|J@`2cX8JLmxdn!#;^#G}Wyj6I z)52Kh1DNSKD@V97Kc-xsofZa83&Vd3tKe~`yd*P<2-C$0&0R?K1~-Z~zGzzJE|@^B zID($7k`A?!4i`0Pz6T~vWzB-}`c)Hvk8&8sv+BJbC3B>6$eU)c23Y(w_z+cT2b7uem literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php new file mode 100644 index 000000000000..8578c4e14e81 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php @@ -0,0 +1,52 @@ +internalAddGeneratedFile( + ' +’ +5gg5Uo?lVJ|iA!O&i|X=t3%%9!5dx~)|yMi5)Vb_^~8v6e>4g1i#DtAJa4 z?4RkM=)LFuivEhOJ|a?rbE#lfLNo8p)6CQRkJ)vGUg8Nb;6y@*H#;n^0cSjwX^s zeg=F?g`g?(YC})9GT5$nz zSOC3qTyYk)r&+3|Gs3qL-C|&BSf0%!a7Gf(1QBqW$&|aQRM%sW&6tZfz4N+lK}RFp zt2FBRJ&_|Uc@B5GW6VM3oDECe1;M^~DwVzcKx-Z2Fl^dhs1^2_!UA@Nem+K{|Jq%r zTfsH8dKLASw41@n_ZE8oz=lpD)IE^yyhg7~YkcV&S8HqTyViVaFBY~l^OtMa@~>tK z*ZOQ<*p}IT)Om`Y%&dvCw8u+l?mM%~b-UF;=-9AL)0(%BjNeL!GO%_)r}2=D%DuX+ zFP~~~oF;_DTFT>o46HP7zeAJ!dN1fF5)nId63V3(c?DS1#l{?Nl=&G`^GSD9F5&8>;0#;7| literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..108185d5b1a5bdeb8257b86933dce9974d4c4a06 GIT binary patch literal 1265 zcmbVM&5ja55O#JqMmri;E~{%at!}bl)|sFeGsr54i+ezb*>EtEkY=VBIu6~P?goP! z?p{6k625|O;LSJiya%7bo*xDR%SDnNCS6rueN}uPFJFnFK#y?~7)YWa!2K!KL%>3E z&3zu>{&+9|iG4m2Gy-X3+-T$X?KAwgaeDU9lqx=!KDapKJdD60fih=A7zsf-ld==Q zg!<6)i6DI%Q9bRAKq(VdcG3hPM$C;MKHz4j-U3YmqKVf`@Vr`}%*pV)Zn=Vx9}%T+ zBf))>!?rS1bdIq3h;cunK31A&^L0Q~k20z$iRc$IWfc!dq`-i!=MKiq*OW6H7qpoV z#S%_26GAEORJt^ zw7aU3!fmt@>+Oz(t>X3i_Mh6d!UJ?8ph`q!+Dk%P^U(IYD_!&z%`%s_wU@{@ATv$vkl1DIuI$VE%RWULuv_N0*BE$2PkUAddqZ=svLW#aYU z7P@En*c*0LzrRX!?wLfy9qZ%ktTN;gVWG`s=!C!$n>ve`*F0XyH}hj_ubKGPHoi5d zmHrRd-SV$_#7it~9$CyYroPzPPs?1_)Wwf1=(^o<|7t?u`C+c7qtq8mHri;RBr_HI I49yVw2k7poLI3~& literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityService.php new file mode 100644 index 000000000000..2d297ec3d9d5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +Ä + +7google/ads/admanager/v1/device_capability_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"] +GetDeviceCapabilityRequest? +name ( B1àAúA+ +)admanager.googleapis.com/DeviceCapability"É +ListDeviceCapabilitiesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"• +ListDeviceCapabilitiesResponseF +device_capabilities ( 2).google.ads.admanager.v1.DeviceCapability +next_page_token (  + +total_size (2Þ +DeviceCapabilityService° +GetDeviceCapability3.google.ads.admanager.v1.GetDeviceCapabilityRequest).google.ads.admanager.v1.DeviceCapability"9ÚAname‚Óä“,*/v1/{name=networks/*/deviceCapabilities/*}Æ +ListDeviceCapabilities6.google.ads.admanager.v1.ListDeviceCapabilitiesRequest7.google.ads.admanager.v1.ListDeviceCapabilitiesResponse";ÚAparent‚Óä“,*/v1/{parent=networks/*}/deviceCapabilitiesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÐ +com.google.ads.admanager.v1BDeviceCapabilityServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..0f356332e355c2f8b98cbb96df1ce4a91eb07b7d GIT binary patch literal 1246 zcmbVLO>fgc5XEVQUe%m-adSFVG7|8$#j)aI}@Mx&a8B$IoklwiLg)n9T z^a6t(2|4KvK`9ecZq@=JPR&h11HjEry#<- zL0c9Rogi#}$*3Q*04q(kdF?XQW1MM5WA?>NSj7VxD=<*!a|a_HXeKyL3)(z@(jLw+ z)7;%en2l8Nj9n*Pl39>{$Tdh#W4{3^kSx(cc1$WE5$O49)0@(sZJWZe0WRen2{}iy zinScUa(9d+=#k`=jCTq!oqzck?Ji;d0fRWK!!aE*AqiPbwE(%S^aI#`_QI-c6;EC= zJ9sS&=W`wyos{OxQl3Tha~(bZKY?s+<#nzRmN`}m?zp^tZw8n!Pg=6Ms2=`x(8j7l zHt(SIRB3k|?3Aw8*Z$P5ZQe&WLZ*_KPI_6WFbl1{yYkI($am+o_SHdtanUw!NfV}A z;|T9e55hrz7V?wwPV84N5Ft#h2dr8dnD`l2OdsFQZx%UEH&$*Y^;_s>Z<%lXw}W;J z3-^)*)pu6u%}kQ1w&Q$!ZR;WtQy#fOMqUIwbEUVK^PHh8^KJYnY&A2Ry2hsFv~ttC z-SV$l#LpaT9yaD151$sc^D;tAUHY&=Lb~Pt)r`Qi;#@%cxe=CpbE#*t%v{-1G)3qi DQ+lAZ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryService.php new file mode 100644 index 000000000000..73b93274b44c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +¢ + +5google/ads/admanager/v1/device_category_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"Y +GetDeviceCategoryRequest= +name ( B/àAúA) +\'admanager.googleapis.com/DeviceCategory"Ç +ListDeviceCategoriesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA" +ListDeviceCategoriesResponseB +device_categories ( 2\'.google.ads.admanager.v1.DeviceCategory +next_page_token (  + +total_size (2Ì +DeviceCategoryService¨ +GetDeviceCategory1.google.ads.admanager.v1.GetDeviceCategoryRequest\'.google.ads.admanager.v1.DeviceCategory"7ÚAname‚Óä“*(/v1/{name=networks/*/deviceCategories/*}¾ +ListDeviceCategories4.google.ads.admanager.v1.ListDeviceCategoriesRequest5.google.ads.admanager.v1.ListDeviceCategoriesResponse"9ÚAparent‚Óä“*(/v1/{parent=networks/*}/deviceCategoriesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÎ +com.google.ads.admanager.v1BDeviceCategoryServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceManufacturerMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceManufacturerMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..7b0549f98649cd3043c982796bad4936414101fc GIT binary patch literal 1283 zcmbVM&2G~`5XNbRUiL!n5pK&7S>Yz1yx3M2{*J%mQ6$^lu5Hul6_;qF?y>!4EQ z&MR=>1$Yy<@&cUu1RNRvC2iz%f$vL6;Nzy?q0%|O`__ZZWUr1pEkHu%4be|4+YyjaFbBC!6tWc6>1xGS~ z+72x+v)rvj;b!*fgkd*Z7B0#^loqt)vEKp{XpvZ@yO_#Y1a`XO?54I;w$0$gkk$&0 zj4hDdr&gyh-H(F{u1FI2#CWbobZuQnz7kbGmurK@1gvKmsaJg zc=}S5gEzu(I_ClEr8Z@j@!Tdq)(QK6p;R}DS{Frzr<8;{s&C$zfF{DzCE-F`5C1r% zx~P=uO|qV;?zTgn+STUT@5YttJ#sA+CW-l3KMz$Vp|!V{zBms1=3F$sI%Id&x#-Fh zVO%tbx1>!&g8iiQN8_EBZ~Z`pFfMH|FJ4Sp;+65^TgB}^sn4p5m(3gGdVhX^<}Zib zMPBZTtu^m25}r6HmvqinternalAddGeneratedFile( + ' +Þ + +9google/ads/admanager/v1/device_manufacturer_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"a +GetDeviceManufacturerRequestA +name ( B3àAúA- ++admanager.googleapis.com/DeviceManufacturer"Ê +ListDeviceManufacturersRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"™ +ListDeviceManufacturersResponseI +device_manufacturers ( 2+.google.ads.admanager.v1.DeviceManufacturer +next_page_token (  + +total_size (2ë +DeviceManufacturerService· +GetDeviceManufacturer5.google.ads.admanager.v1.GetDeviceManufacturerRequest+.google.ads.admanager.v1.DeviceManufacturer":ÚAname‚Óä“-+/v1/{name=networks/*/deviceManufacturers/*}Ê +ListDeviceManufacturers7.google.ads.admanager.v1.ListDeviceManufacturersRequest8.google.ads.admanager.v1.ListDeviceManufacturersResponse"<ÚAparent‚Óä“-+/v1/{parent=networks/*}/deviceManufacturersGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÒ +com.google.ads.admanager.v1BDeviceManufacturerServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EarlyAdBreakNotificationEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EarlyAdBreakNotificationEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..9dddd35d3f8dc0162b0e97cebe18b9a3cba56fdc GIT binary patch literal 1021 zcmbtT?P}XF6kSpno9IT!pF#^m%L+|la|rwAEbE-u&BB@wmNY*$gHh~jSIm)&EEl?w z7aDt#J-{AfPcg}MO-AYd%y5mRd+)hNI>&F$lB)#0z$0KFh=c&IZ?L=qoCq$t&ttsK z!Vm=Z`6i(;2m@n#hNrV7cI@%;xoS;$CVVh)#Ca4$hXkpL4Phh#(Yfw+fQb0UBZ0RT zK)!g4OBzz2NXnT9EZd|;J_{j6HjpO72Rxb&CLl>bBymSMtZN0SiW1gcb$bZ;F-cSG zXm~3aXz=L{wxglZH-y!bWb2svIF)LukB@2UQAQ;tG5xAe+{Yn_Q&5O^Yr~BBnkm)| zGv-746c?Df_Bi3{hWhxHAmLh}Q=@<);nP9z~w+7f&Upcc^Z)wTH3W93vxstJ673#JV^kWa5{ilA- zg95-%22fEdWn6b#95qUP7D@on!n8i4{oTFhGjwR#-r%ESeef1bYw38G)5Y8wj?c%A z-FVP^ijb{Vi}7r#*0tt7dNiC(<`>S=Y1Erf(BsAMy<=ZqsN~+@R}CF0zZ&-t8npiD znOwwq?bExmJ>oH8k-|AevX{=Ch& zxv$l$%(=?hzw3uZn`x>({VJ2Dx$3ST<^*1!R06&%e6eGrdo7e#7H-+1Ekb_)epO7l literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..3d9b059a5bcb233a7de13186fe52f72ab2025da4 GIT binary patch literal 1475 zcmbtUOK;Oa5XMc3%HA4^`T}YDkeULu6}Y(sNYpm%AvA)j2V}|G*c*3+y=(2R1EI=| z13!cV;=m8#&Yg3A1>;APLR~IITHD$A=G$*(XXe?9_$)>nxI;OWL{lI4M_8Xx97~~v zCqmp$1_LUwC!&~zRGJv?9phKWCwPDF=wuCCl}MyVZ5#*@gw!Iwf)x=?0xGRx!=hX> zJ#rNbI0=;-kvL{Na3iV|K$MxCgb*jN6BCc(POsgin)pN$r<0L7EnmSZNS)KhE<#>N zl*0QN`J0@(n^SiSW^|4){Nkh^G7l?FG`u#Mav5iuk&u0aaGQ7lswfa%#|{$iX(l*M z9gew2>)SZzOtG7>fb=x+rN&;GG02v4#5I)=tFuRyCt0k8>;cra1F9!^PIv0t#jzD*JUFI)Uuu-oZ-m0ylc~3xOu-i|#AJWt~TNpRc zvX>|=B3Ba$_nTJskc3GFx?OEWgsl;3m~6K{Zd@z(D-Z^ zwRLn)lMjN6Xykg(q=Aql5TTZ;xRL`6`>S!$`eLA+X*TjqkeDeGn%61~{eV;bUdVUK zIxoIlPxy3PH0_^#1)y@x`d<=M=!rWv|6wRR_Y{5G@L$%c>#LkLzkpKRu7tM03Y!BH>SAUkce8EqOCN>Nwoe=VY9`?6)}%2W=M8>k9^5z!GGyMdV>CwSH?I2c A-T(jq literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingService.php new file mode 100644 index 000000000000..3b817186b608 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingService.php @@ -0,0 +1,76 @@ +internalAddGeneratedFile( + ' +… +ÚAparent‚Óä“/-/v1/{parent=networks/*}/entitySignalsMappingsö +CreateEntitySignalsMapping:.google.ads.admanager.v1.CreateEntitySignalsMappingRequest-.google.ads.admanager.v1.EntitySignalsMapping"mÚAparent,entity_signals_mapping‚Óä“G"-/v1/{parent=networks/*}/entitySignalsMappings:entity_signals_mapping“ +UpdateEntitySignalsMapping:.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest-.google.ads.admanager.v1.EntitySignalsMapping"‰ÚA"entity_signals_mapping,update_mask‚Óä“^2D/v1/{entity_signals_mapping.name=networks/*/entitySignalsMappings/*}:entity_signals_mappingÿ + BatchCreateEntitySignalsMappings@.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequestA.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse"VÚAparent,requests‚Óä“>"9/v1/{parent=networks/*}/entitySignalsMappings:batchCreate:*ÿ + BatchUpdateEntitySignalsMappings@.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequestA.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse"VÚAparent,requests‚Óä“>"9/v1/{parent=networks/*}/entitySignalsMappings:batchUpdate:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÔ +com.google.ads.admanager.v1B EntitySignalsMappingServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EnvironmentTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EnvironmentTypeEnum.php new file mode 100644 index 0000000000000000000000000000000000000000..8ad405f1742b63e5b1416dbf58013d3cf761693b GIT binary patch literal 971 zcmbVK?TXVt6tycTjDn^9SXupXT^F_sno{;(YSq?eOTadvTPrJpFimc=1L;hdObV;? z9efTSMSK#U!pXde6!+4JYRH5Hi*(1b{cD8>#AQypu{X@s(~>2{EBm=t`CT>0uE zK_7XxHVS+~I9+3!&;ViV4kxH+NEP+Q1(Y`kQymqQx9Ii=31XV2VEuudYeY)}lCK2x zlVr=71&}JL^yh%3KI2R=8nZ9@ZhctMI7N+fvv!s7Krz7~Z*X{k?IS2L^V)+%=w0;T zlA4>ZN3X`SxkAZl?2RxDBukW#t}Zpr2vxn*{G@$Ujm_cM3fd({)4V~l4@zcubvl4V zl}X+!c;^7y`mbR2>J6)S48pJ;d!hwv*M)i8A^CQf9RG(>t=+Q8(DLf2G%+^aeMTPt zLyr9!d35c#1>~7EUDz{cISO5YrVHmY-`lK(|SPe4`64w|&jxv_eQ4Z5W%%UU#M~E!P;TS%yQ(P?G3AjVWYmd}7cT6SDVng{ zxqrL2SKsyf&hEIdrJ-%9V^TWYSag3}X1v0&`c>sT?b%;Ddu5wx>c0F{B~5eDUEV7Q Z93R#qy)3oAVwGEMQdE|X*pe+FzX1S5J-h$_ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ExchangeSyndicationProductEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ExchangeSyndicationProductEnum.php new file mode 100644 index 0000000000000000000000000000000000000000..05a50877a4ad3c8f7419f58ea3c3556ae31b01e4 GIT binary patch literal 1083 zcmbtT+iKfD5UrD5=oVVzJOolG+awSNQW?`Xxo#?3iYkaLQD10^K&)45c|qP4t5s-P z{M>)Zr}PK<4eeKSb%~o2+?NVwSu`_e&d!{9bDAs?Z~$$>h(MBraCQadg1|&@$uW=N zESt}XfS4~68WW*GXu5Fdj-h2b!wAE5*)uiA<~lG>I|4tq!Rdbv zu(4YLXi5Rfs!?f|?fvT-c=7Ks?SHF*z0Dzw6VS9i_TL*r+X_Y(L(}OSW5*o^-Urv5 z^vA(uIP$E%bLLoP{a)h+zJfOt8X=Sz_Y1iT5ezr&A^zL zj$7YuJO&SJV_=Qy_j^BT;JFgJw&5|ogUvK^!4(SdYMxdV5RK}NL9F{6xh&hcMnT@C_SJ^m76$OONkw9XT^eg z=Uey+E?oEneu1xG;-uNYsuDzU5_`sP=FQA|@hUw_(IY&eoJyi;fL9k-pHZAjp@lDE zyvo9mO6-dyWigdD#-k~IJDuaB(aHP)TvZ~IK6P*;L=@8=2^6e^a1v43JMZ^GNk3$i z`xi@}q_)9Dh?9h>l=u`+X6`A~Bp{l269eHL1`1XQ;Vt?Dg#4H&g~uDHHzY-$5r!wt zRx$Ij(nP~&kEtc&OfwR*Pe5jfLlP?r09Sp(jQg4ij`Iss?$ho8E--W7y;K1CA>QOP z%j*HP@J_gNpYARTcA-?m-zghhrh`7CAc3l_ZB)%Z%2eV=Sr8 zBp;Z(bAWaA=lw&)yg5tgJK%N1v&3;O8D0V!f=^$vlFnfeRN0TA(cLOu9(^DEY@)~i z(c$)P;cUY=z$$xbpZ6brvrwzv$M$`6Dyy zL}Xld8pdMfmNB|vEE&-3G~s;bnQd>0YS-&gZH^m&_p975hAx z``tqKKo8r3xp(UP%;3zd_pi&;A`ufF*+NFWh;k!`UST3B%cb+Ddk~9ZDq&+ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/GeoTargetMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/GeoTargetMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..d290bab4805aa2ad25cd37568500a5cff92ca096 GIT binary patch literal 1439 zcmb7E-A>yu6keM$z`!;-2@3m>$B-y!OVsTyjBSk=g$qVCAugs!k(;=|TCgMAWn!rJ zdzL-Ho`I*}nirU~tJzMPR0E`~l2gm)oX_7mKHqusEz{#JBDBm(RHtp z+=7x1@c8Wzax4d&ZW`ViU|8(@o643Fe}~{C^6)V_C5*dnnNnXMr(QM<#3c&i6{Cz6TzJh%!n-lmsc_n97D_ zd^RrI*6;QzSSh(=JWxu6t#siO7w=Xy)DoD@0L)FIQG-^-!m2+3GaSdN(}IvixG_vvQFu&tlgTjy6mc*{0qCfL$UnI_!r@v=Q~4V zs3n>yN?FuCm+No?l!jN+#ooIQ=7RBJdJn;T@OSmRdtf#gOV*nN6M@don*%fX4LTj~ zq5>YND%!Way0_37u^Z{#2(VlE{5}tfS%PS6GajointernalAddGeneratedFile( + ' +Ä +0google/ads/admanager/v1/geo_target_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"O +GetGeoTargetRequest8 +name ( B*àAúA$ +"admanager.googleapis.com/GeoTarget"Á +ListGeoTargetsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"~ +ListGeoTargetsResponse7 + geo_targets ( 2".google.ads.admanager.v1.GeoTarget +next_page_token (  + +total_size (2š +GeoTargetService“ + GetGeoTarget,.google.ads.admanager.v1.GetGeoTargetRequest".google.ads.admanager.v1.GeoTarget"1ÚAname‚Óä“$"/v1/{name=networks/*/geoTargets/*}¦ +ListGeoTargets..google.ads.admanager.v1.ListGeoTargetsRequest/.google.ads.admanager.v1.ListGeoTargetsResponse"3ÚAparent‚Óä“$"/v1/{parent=networks/*}/geoTargetsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÉ +com.google.ads.admanager.v1BGeoTargetServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php new file mode 100644 index 000000000000..cb39f1d87bde --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + ' +« +,google/ads/admanager/v1/label_messages.protogoogle.ads.admanager.v1google/api/resource.proto"v +Label +name ( BàA:ZêAW +admanager.googleapis.com/Label&networks/{network_code}/labels/{label}*labels2labelBÆ +com.google.ads.admanager.v1BLabelMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LiveStreamEventMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LiveStreamEventMessages.php new file mode 100644 index 000000000000..cdd20f0b5dee --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LiveStreamEventMessages.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + ' +‚ +8google/ads/admanager/v1/live_stream_event_messages.protogoogle.ads.admanager.v1google/api/resource.proto"¶ +LiveStreamEvent +name ( BàA:êA‹ +(admanager.googleapis.com/LiveStreamEvent}5 zFR5+3nIw}wclF1vPnZ=vH_)F&^z6UnQC%&|T&*g-tPtFzM(ySpFQ=ZcTuVva`%yv5 zbNZ;>K#PUU)*S5AuLcW$n^&rL&{9HWo{{6ogev3E!n;e~9jAI5T@#RMEkrR-U~O?4 zc68YP=A1UaI_SZaQ^|+qRJz(L-aLWl4Af^XK1uJyJ{j1NHHX!)j?SB9^l+uz7$-bg zo_i0jqvdF}jbH^WMKipE-wwK^>9`k+F{sV)92?0fyW@O(ZOc-g5th1Kq+SZl7}uNj zd&crxld1fythS7kUF~GO+U4JZd)W9jj)cbK`etLHw)ttLR+jm`t}AXf==+C_?qx&Z Y>BdB4k4m%5cR literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileCarrierService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileCarrierService.php new file mode 100644 index 000000000000..63d2952c3ffe --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileCarrierService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +‰ + +4google/ads/admanager/v1/mobile_carrier_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"W +GetMobileCarrierRequest< +name ( B.àAúA( +&admanager.googleapis.com/MobileCarrier"Å +ListMobileCarriersRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"Š +ListMobileCarriersResponse? +mobile_carriers ( 2&.google.ads.admanager.v1.MobileCarrier +next_page_token (  + +total_size (2¾ +MobileCarrierService£ +GetMobileCarrier0.google.ads.admanager.v1.GetMobileCarrierRequest&.google.ads.admanager.v1.MobileCarrier"5ÚAname‚Óä“(&/v1/{name=networks/*/mobileCarriers/*}¶ +ListMobileCarriers2.google.ads.admanager.v1.ListMobileCarriersRequest3.google.ads.admanager.v1.ListMobileCarriersResponse"7ÚAparent‚Óä“(&/v1/{parent=networks/*}/mobileCarriersGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÍ +com.google.ads.admanager.v1BMobileCarrierServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..c2111797d1b6dc6d1ebeef0c1cccbc5e55d3218c GIT binary patch literal 1318 zcmbVMU2oGc6eaD1!0LqP%RZ2hfuVK45|zPAMuApk-5$DCXxamcRJqA*W|78`?G%lv zJo8(4C5J;5D_ffES<9-Lu$3OM0R zGM`0wkPe5yvCl>cjey%2w~z4Q(J}teJ~)1)pn|2`2N#Eog%LO;5NeD_OhVw!xbBSD zKmq#!jHwU(5eT6o!qyug6caU*5Fc=-*Xn{K0g=S(XfCfA2sI3scT(R)$d8B+xT`ta znzCyc(K*8EO430@eJmuA>ajsZpT<;D649?Jy9OSTNPr@`zIK?#zN9S18Q>`Pp|*u{ z&TQ>Q!c;XHc&e?J6-X7wJBTIlm_%M1gwJUr8Skm3t{Z}!l{K5GZJBK|Iy%I)T%+q= z6WPF$r%>D-V-7Oq@vhdL5lm)p-c6NDsJBNU3R-YV#*}f_oo6*CSp@wE=C9s}(xupb zOHJa zM)?*hc*RwdXUqAw3BRlqKU??Ea=)0co+xJ6`fZ^HDg%2#!CPxZjZ?#E2lT8@?+q$s z5s5>a@z4n&*8X-Tdq&~Q<1?+6jn(;+$s)7d>`cJRST{1xvg#H0FZ?`}I literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceService.php new file mode 100644 index 000000000000..e12095c72b9d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceService.php @@ -0,0 +1,52 @@ +internalAddGeneratedFile( + ' +ø +3google/ads/admanager/v1/mobile_device_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"U +GetMobileDeviceRequest; +name ( B-àAúA\' +%admanager.googleapis.com/MobileDevice"Ä +ListMobileDevicesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"‡ +ListMobileDevicesResponse= +mobile_devices ( 2%.google.ads.admanager.v1.MobileDevice +next_page_token (  + +total_size (2µ +MobileDeviceServiceŸ +GetMobileDevice/.google.ads.admanager.v1.GetMobileDeviceRequest%.google.ads.admanager.v1.MobileDevice"4ÚAname‚Óä“\'%/v1/{name=networks/*/mobileDevices/*}² +ListMobileDevices1.google.ads.admanager.v1.ListMobileDevicesRequest2.google.ads.admanager.v1.ListMobileDevicesResponse"6ÚAparent‚Óä“\'%/v1/{parent=networks/*}/mobileDevicesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÌ +com.google.ads.admanager.v1BMobileDeviceServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..f270540437b7ee38872773b98b4808e34228314b GIT binary patch literal 1400 zcmbtU&2G~`5XK20SW$kWqLw0|Efh6H)K=i;5+GJ++CyjrRS(FLwXrAe3dd{hu7gUI zI}gGE@dP{rckUI(J_0A!Yv+%q2nkDTTRSt~elt7YJbRHGCg=ffK@6No2ypiZ%R|5k zXOj6W!ripj1CD*xPiO?(#JIVKU+?YXSIyo1RTU~&%6+hL$XFPGMFOE#pTr~tZVhTy zpLJEB7r=n};EA-`X8}ZBAB0dY!qg`r6ce?R5Fc=>>gbGt>$eL!bV<;^9i*efcY@p453K{iyWjhA>f${gk zIxhY^U+HRC$Zb{;%4vq~ScSt!w{ycE{!bR?Z96y6f;U|k=O()D%^*8J40KoJX`XXI z&T9KFiq#V881G&d(IJaS9GZ-WRtT{k6xO7kXGYD|xP)IzOD#P)Of@;wYUks~Jg9vi zSzJ9-)T^+$YOI`=R`M|0R&m*@FxvJ(t$SG$c)C9B=Eu1zr$l_NfVF2XvmqKH^c%`+ B*TDb) literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelService.php new file mode 100644 index 000000000000..dd8f07de0dd0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelService.php @@ -0,0 +1,52 @@ +internalAddGeneratedFile( + ' +‚ +ÚAparent‚Óä“/-/v1/{parent=networks/*}/mobileDeviceSubmodelsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÔ +com.google.ads.admanager.v1B MobileDeviceSubmodelServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkMessages.php new file mode 100644 index 000000000000..b1077ac9a1e9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkMessages.php @@ -0,0 +1,44 @@ +internalAddGeneratedFile( + ' +Ó +.google/ads/admanager/v1/network_messages.protogoogle.ads.admanager.v1google/api/resource.proto"™ +Network +name ( BàA + display_name ( BàA + network_code ( BàA + property_code ( BàA + time_zone ( BàA + currency_code ( BàA% +secondary_currency_codes ( BàAG +effective_root_ad_unit ( B\'àAúA! +admanager.googleapis.com/AdUnit + test_network + (BàA + +network_id (BàA:QêAN + admanager.googleapis.com/Networknetworks/{network_code}*networks2networkBÈ +com.google.ads.admanager.v1BNetworkMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php new file mode 100644 index 000000000000..38a2cadd2288 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php @@ -0,0 +1,42 @@ +internalAddGeneratedFile( + ' +  +-google/ads/admanager/v1/network_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"K +GetNetworkRequest6 +name ( B(àAúA" + admanager.googleapis.com/Network" +ListNetworksRequest"J +ListNetworksResponse2 +networks ( 2 .google.ads.admanager.v1.Network2à +NetworkService€ + +GetNetwork*.google.ads.admanager.v1.GetNetworkRequest .google.ads.admanager.v1.Network"$ÚAname‚Óä“/v1/{name=networks/*} + ListNetworks,.google.ads.admanager.v1.ListNetworksRequest-.google.ads.admanager.v1.ListNetworksResponse"‚Óä“ /v1/networksGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÇ +com.google.ads.admanager.v1BNetworkServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..a46f1c88fcdfa8a5003fcfc9a2e15a05e497805e GIT binary patch literal 1253 zcmbVLO>fgc5XEhUUbTY&?TLx4o3p@)zNsveM~Xk$;D70&KzcN0{q z+z|(U2si!)Cw>Aa4*eCZKjKtrbHUPD*3QhEH{gqY zP$bYF4+f|p6eGzJR4%|?2i|oK;mzK`;eA`G#aM;tLo7s`phqKZ&xmpwqw*$IPskLR z@wlgtwZTzugj(C6cC#LYaB6QP4G~)1W*ZHSsG&hCg9{pwwx@s#j;b|6!h~uKof+(h z47FW=k`n^h^CLeR!`4q=<=9^=d~ny@c+#ySjWqS0cV&mD|;Xqe!T7Ib)sm0id& z)7)(->`v-1qt{K>WLFd%aD$4|B-le8DkhCkU7PCrF`9C@=}l#~Xq&>Z0aS91zJHEn z9gG^|+3o-e%~k-^ z4Bm*Ma?X9LluF4g<+($Cu94^eDUprMywJ7UvZoM(JE?Bno*_!+se)}Ts|SA_vc8~^ zjhkdG727QboXXYa>Yv7yjeF!;#I#K4aW4z4%tEVgFMV|!|GRVA_~wwxylvi+N~T?F z3U9GTjidQ2)F%Fs#o4*}$#}aXu z?5KHnf#J+4nRL6($Ja$+EE39NSE$&Fk!RlY=Chvjb*(jl)t+|lefOyP zYZeJIAKOinternalAddGeneratedFile( + ' +« + +6google/ads/admanager/v1/operating_system_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"[ +GetOperatingSystemRequest> +name ( B0àAúA* +(admanager.googleapis.com/OperatingSystem"Ç +ListOperatingSystemsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA" +ListOperatingSystemsResponseC +operating_systems ( 2(.google.ads.admanager.v1.OperatingSystem +next_page_token (  + +total_size (2Ð +OperatingSystemService« +GetOperatingSystem2.google.ads.admanager.v1.GetOperatingSystemRequest(.google.ads.admanager.v1.OperatingSystem"7ÚAname‚Óä“*(/v1/{name=networks/*/operatingSystems/*}¾ +ListOperatingSystems4.google.ads.admanager.v1.ListOperatingSystemsRequest5.google.ads.admanager.v1.ListOperatingSystemsResponse"9ÚAparent‚Óä“*(/v1/{parent=networks/*}/operatingSystemsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÏ +com.google.ads.admanager.v1BOperatingSystemServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemVersionMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemVersionMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..ee51b3e86e7d37f9be30ff7ff20df04d2c007359 GIT binary patch literal 1430 zcmbtU!EVz)5XEVWU?mXr(3Wywp_Q5y}lOB$uVW z1@oyFW~Hro{G6J?n?X?2d7uZUS}03&?x3G5XzxEKW_3Lyu=U94V`jsi)Hd(r%rSL@ zQJqcMgFh9tws>S#Z=>a81UD>fRj;>}emAeJ-a|J=BEp z+XX{t7|)&Zj}fO2*Nf1_oF{9G1Fc)=X8%HCvYXjXn46i>TfZ!HS65^TocnC8t;MD0 zUQW%`wcfulpFQLeVWG`M=!C%1CE}F5n_EQnVnn`H*4yb;vGrEb=O|lNcCYp$k9g_A x(SIi9>6LR{+04>hSLY>vCg{4o+Tdy`;OR~==Z`YK&e;1>Yp2M}fKxO@=r164internalAddGeneratedFile( + ' +¤ +>google/ads/admanager/v1/operating_system_version_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"i + GetOperatingSystemVersionRequestE +name ( B7àAúA1 +/admanager.googleapis.com/OperatingSystemVersion"Î +"ListOperatingSystemVersionsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"¦ +#ListOperatingSystemVersionsResponseR +operating_system_versions ( 2/.google.ads.admanager.v1.OperatingSystemVersion +next_page_token (  + +total_size (2 +OperatingSystemVersionServiceÇ +GetOperatingSystemVersion9.google.ads.admanager.v1.GetOperatingSystemVersionRequest/.google.ads.admanager.v1.OperatingSystemVersion">ÚAname‚Óä“1//v1/{name=networks/*/operatingSystemVersions/*}Ú +ListOperatingSystemVersions;.google.ads.admanager.v1.ListOperatingSystemVersionsRequest<.google.ads.admanager.v1.ListOperatingSystemVersionsResponse"@ÚAparent‚Óä“1//v1/{parent=networks/*}/operatingSystemVersionsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÖ +com.google.ads.admanager.v1B"OperatingSystemVersionServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..cf531acbdb7dea67b076dc892c0e1ce6dfe85ad7 GIT binary patch literal 995 zcma)4-D=w~6kgIb?bJbo8FXyB(7Hks*c`&{oMoF6J0Z{}CVv;h5ENT+4US}Fxv-7A z#2#W7dxc%@ZjZ93*pcm;j#8N6$db-?KAoTM-G}%pMz8RYGAf9qK3;#u@`~bEaLGL$ z;dQ#%P=P(Zjl+lv9b;>P$CEj>t1_E~z9wk;ENl1g_~PU6rMF+lSWuY? z*2(f#1iNyVW%lNMSma^)e);SGrqd{aD(oEn+(XU(9*cI8Lv@%SSTO+ox_$b+f{wH1 z&!E$3qDFA~t%8nj-Dxk-)5+Abr>oiAoG)gp#dzk}{n21#TlELpBeZW#&B450)t;cb zV~?%Tc(^hhXF6G$7xg{uF*?jo0Dq_*qa$lHD=+pngldktn1QpVpnY@Pw=dvypdFzD z3$}AO9QJ-y&~p%~eorC2yoyXh*-V|vr;i0T;1OYg&PC7)D9d!(%3UN5m7@Pub*F65 zkLt-V6Rr-z1-s0ZuP@ubZ#-_MX;=!M3#$H8eU^tA2E?hQa2m$4y{=^myge`H`8t=$ REmhsCs0^8lXNPtO{RMe8HrN0F literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..a4853e9587e596a113017f407979b922db6fc9cf GIT binary patch literal 3357 zcmbtX+iu%N5Us3OmPfwCbX+q|8*lD*kw~>$6s;U56?3tICb7}FE)WPHR^&=1LXpHS z>DCSW-Y@7!^h5g4ugG)y2YKr3E-#85B{nL6qO>z}b~rO(AWvc&?%Y0O;G zJtXlyBM}ed&&e0!HXdiZ4b3Yv;A;SOt(ei-(B)}XGy zYd{0qXS{K+)(E-FxIJJ(;EJd#V1R()N<`~wQ9Uo_t^r$ZwBAnFiC4m!rVL+t8 zcHpp;RiZJa?)50d$KNEGQ#&#u7>&-8AZ9$Ee&-<*4)>xsxW3v-;5(fbwL=56aLkdZ(Sw1LqAC}7Nras#c=jSpK7 zA{rdF&q+^OFpEtza1IMECeG-^CR8+pSXb^HfCa$;W)vrd%#lr&ocY+DeO03!r_c!$2B2K<45dN8Y|NEWtesn&eQO@%&aL0 zRc8}Y;adP?JdbTzx#m1dYwJsOT^72Av8?NPW6%{^m6qQ?l?AT0n>wA{q_n#ZMiThm zz{AOF=LmNYLDg@$4N~hG%(36}%&~KlOrz4cF7ldGLIP3l>|NTDx}l(8es9v#6)|S8h*Bz3-rwL^y~sH!=d}QGALB%t+Hk7!Sgj33D#PEVXB) z;1Wzmp^ZJJi`+8`;dv>14iz~Q6JcIJ$;|rKS+tM0y}D`~KPg=~LWckAJj_YF`%n|q z$AbmqA`Hw0wcW>SQ`Lwe0k&X4Fl4w(`JtUcg^|z9Pji~RZdE>9sS@p7prZQ-(>x=P z1v44pd^yX7c@Yt6>o-P*YIyRi0x_O~S98GY~;EAYiw~#o%ic_-pA{ierKrf zt^JcpI_gybzfxHTUk2WcEorl66YbrN%%P4rxdrsj> LQ=gBI;0WM97>_>J literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php new file mode 100644 index 000000000000..5d0bacd37af2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php @@ -0,0 +1,53 @@ +internalAddGeneratedFile( + ' +þ ++google/ads/admanager/v1/order_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"G +GetOrderRequest4 +name ( B&àAúA +admanager.googleapis.com/Order"½ +ListOrdersRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"q +ListOrdersResponse. +orders ( 2.google.ads.admanager.v1.Order +next_page_token (  + +total_size (2ö + OrderServiceƒ +GetOrder(.google.ads.admanager.v1.GetOrderRequest.google.ads.admanager.v1.Order"-ÚAname‚Óä“ /v1/{name=networks/*/orders/*}– + +ListOrders*.google.ads.admanager.v1.ListOrdersRequest+.google.ads.admanager.v1.ListOrdersResponse"/ÚAparent‚Óä“ /v1/{parent=networks/*}/ordersGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÅ +com.google.ads.admanager.v1BOrderServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..f4f8dbe8af72054a98f26037f38304c87021099f GIT binary patch literal 958 zcmb7C(TdYR6t!JgWDqR%VL^Skt_#}*H>LQNS~YF6HDKFdvwhG&nI_ZhKspm0q}Z!?+_VF8TiFq;S9j=kWSZk0S25wRiRJV{9x$5O`@Gn^37z3z3h6h~xBm|78* zZ>3crBgF8Q$V{hT;t!`p;TS6%P709FiKUJTBwY6T2t_HD68t@wYp~E)1p3MHbxI?U z3M>6Np>jnTRTQW6i@wkRHaL|;L)@<2wl$fUWB;$Gj1K6|j%}n$> zLXRmT7*4}6k&&R8;=t#hnu?;_ z`z$^296SYQ9-*hs`Y#bb5=2^OwKMb0%(vgp+UMvfLa*^Q4Jap)dboXxDM$6xmk@aD$u!2*PeFy<~baW@RRJ~fCZVD(5qx|ACy4I}c2 zOM5hsPLB!!r$SG_5ef*LL}10+Eo+ZT;t@&g?F7eedIDC4V;?qF5psPZ1a9Scdl?)$ zLl}Nh-1eD^g(MRG7MXBZz$7C+`weZa;|}o!1(ch5k- zXjsR2VJ*cBuww59lJbD~_68L$XORqf3tUaJOJ%{QI;k&bX%!sn;Cfo4Y2GMu9ZMe5 z;p`Z5Dq|k3CUq--ezCLfL7QFBwHd@cVVZ*;2avY{MaJ_Ve z*?dx+MH7S9#JpMwOl4&%S6`wDj|s4zI!RPHk1Fjv`lD&p7iiqeWC}{JjpSx+M^k2u zCI`rF=+WBa+@rixQXYqBRLM3LwNbE4uB_>IaHJP4d{6w9?yjFDHSd%au7##0;qYXr z=Mc|{;R%Y`7%oH4_R?ij``27R^MgA`lah!D9Y&JT^nO4<^&=XOBbXl4QJmH)P~rH> zTwY;LxLznL%|8P9&ETqej9%TDplGJ52UPwF`LQt0vYn%d>JJ7SSPByRZ&0xpE0tnz zO`)gG@J(5hXu=t~8fzL&IfZ+Y!m6M#CnZ1e9%|LP(9m-rB5(D&V6A7Z>*F$cXD#jL zm+bz!p-+OY9`dfyr9r}#F<|+|JYOxS`dgaWPG+?Zvl`Z3I`j3z#zk(ilQ9mT%x1$N vzbeh8VWtUj>XR8w^RUq#O$zw1RJ`K1=|~)!po$6R-ZDKC&vdHwQ6HiI4oE@z literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php new file mode 100644 index 000000000000..8fb2beed3f4f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php @@ -0,0 +1,100 @@ +internalAddGeneratedFile( + ' +ã +/google/ads/admanager/v1/placement_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"O +GetPlacementRequest8 +name ( B*àAúA$ +"admanager.googleapis.com/Placement"Á +ListPlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"} +ListPlacementsResponse6 + +placements ( 2".google.ads.admanager.v1.Placement +next_page_token (  + +total_size ("Ž +CreatePlacementRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network: + placement ( 2".google.ads.admanager.v1.PlacementBàA"  +BatchCreatePlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkF +requests ( 2/.google.ads.admanager.v1.CreatePlacementRequestBàA"W +BatchCreatePlacementsResponse6 + +placements ( 2".google.ads.admanager.v1.Placement"Š +UpdatePlacementRequest: + placement ( 2".google.ads.admanager.v1.PlacementBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"  +BatchUpdatePlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkF +requests ( 2/.google.ads.admanager.v1.UpdatePlacementRequestBàA"W +BatchUpdatePlacementsResponse6 + +placements ( 2".google.ads.admanager.v1.Placement"• +BatchActivatePlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network9 +names ( B*àAúA$ +"admanager.googleapis.com/Placement"! +BatchActivatePlacementsResponse"— + BatchDeactivatePlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network9 +names ( B*àAúA$ +"admanager.googleapis.com/Placement"# +!BatchDeactivatePlacementsResponse"” +BatchArchivePlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network9 +names ( B*àAúA$ +"admanager.googleapis.com/Placement" +BatchArchivePlacementsResponse2Ð +PlacementService“ + GetPlacement,.google.ads.admanager.v1.GetPlacementRequest".google.ads.admanager.v1.Placement"1ÚAname‚Óä“$"/v1/{name=networks/*/placements/*}¦ +ListPlacements..google.ads.admanager.v1.ListPlacementsRequest/.google.ads.admanager.v1.ListPlacementsResponse"3ÚAparent‚Óä“$"/v1/{parent=networks/*}/placements° +CreatePlacement/.google.ads.admanager.v1.CreatePlacementRequest".google.ads.admanager.v1.Placement"HÚAparent,placement‚Óä“/""/v1/{parent=networks/*}/placements: placement¿ +UpdatePlacement/.google.ads.admanager.v1.UpdatePlacementRequest".google.ads.admanager.v1.Placement"WÚAplacement,update_mask‚Óä“92,/v1/{placement.name=networks/*/placements/*}: placementÓ +BatchCreatePlacements5.google.ads.admanager.v1.BatchCreatePlacementsRequest6.google.ads.admanager.v1.BatchCreatePlacementsResponse"KÚAparent,requests‚Óä“3"./v1/{parent=networks/*}/placements:batchCreate:*Ó +BatchUpdatePlacements5.google.ads.admanager.v1.BatchUpdatePlacementsRequest6.google.ads.admanager.v1.BatchUpdatePlacementsResponse"KÚAparent,requests‚Óä“3"./v1/{parent=networks/*}/placements:batchUpdate:*Ø +BatchActivatePlacements7.google.ads.admanager.v1.BatchActivatePlacementsRequest8.google.ads.admanager.v1.BatchActivatePlacementsResponse"JÚA parent,names‚Óä“5"0/v1/{parent=networks/*}/placements:batchActivate:*à +BatchDeactivatePlacements9.google.ads.admanager.v1.BatchDeactivatePlacementsRequest:.google.ads.admanager.v1.BatchDeactivatePlacementsResponse"LÚA parent,names‚Óä“7"2/v1/{parent=networks/*}/placements:batchDeactivate:*Ô +BatchArchivePlacements6.google.ads.admanager.v1.BatchArchivePlacementsRequest7.google.ads.admanager.v1.BatchArchivePlacementsResponse"IÚA parent,names‚Óä“4"//v1/{parent=networks/*}/placements:batchArchive:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÉ +com.google.ads.admanager.v1BPlacementServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionDealMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionDealMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..dcf5aacd189aa2785962a5a121ebcde46dcaf8da GIT binary patch literal 3178 zcmbtW-A?016mAHxWCD~8-Nmq7F{P-4ZR;phZBqmK03ueo}S}pM=#Dl0%{zl+@%)ohGEyIHR8qa z^hiLul-K(8TEtl&Bs(N^6BY)JM~UzBXdD9|Hl-ef0s<=$aVb7-+9xz29!W^+Sc+^N zdNDj&Wb2~7kC5w=IL1vS`cO$e0>LL*E_#VDe4@1NGZ)7RN#JLj#SRNt!idj)gQFhc z4)J3O;wG`3G?3XGbja|;7B;-wi zT2_}PxsSz4byuqu;#db)m5r7)VdMc$cuGgLW6Wui@?c-uEd*TWZ>?MS4~!$eoen5( zQr=^63}HDRMD$sZ_AG07;Gz6mN!8IfA^eIakq^NX0^>VKJcBUZfqqUnxSa*vcaRaW z)^kRE&!(58&qDrg)SsxXhFg0v&zy4x6_Ai#bbE~=X04Mjpo5z^GD|=Ij_I5{^t?O; zpF=HI^P~|ew1fUwLHlwyLo6rH^(dBCP>lvA zooS#X3%^EgX26KmIwHnSTL)PK)<*zbM{A0s8Q@1Y%O_iI}L3tyg7K zne0=Q`)F45JfnaM)skI&b+}O3MQb&H?$aEJQGXlSbR@$N~IK*|sG)NqfIXjeD)EN4!>T#-*17D?+m2W4K!_13R9Iw!r69T?M3pDT?;bUV#@;5Sm763D^7sZ^A7`xbY&Jzxk~%99 znipL=jSU2vmiI2Ea+>O*8flH91)oW>Xp-ie076-@u^_B{f{g4Mg(HTXB?BlJ()Oum zl);7t<&2WRR?)+@AG%jg*r%K`kLJk5Arc8>iXN!ANBMQ&2xl2f@>oAiJ=PoU5p&9( zGO#Svo*|^vio4!e23_U7FQ@9#9vZppO?ibK0a*!M6hgm2Wf@PZvgds%^)1;`Y%FPN z8i6gEx^g?}GEg@@L8aW7$~sz9=b}Br{1{5Ss7kzG{Z)8<_-6rqI&6=sEJ(y+6Gp7s zNm#?J$juDRwEt(2&Bctv~~StRWFZX_p%l;vS@E0Lln=12xtZN z1GGA^2g{r2@x=0Io3U5XeMdQD*jMD@cq6eF5pwd*VV6+}QdYGAdl@Y{BeiXp&^<>L zpZy4}=ffq~{=cfQ*U_4Da~aqMdZ_Ih%X@nXmGzEDO{se%spS8WOtJqhphpnAX{l>( zHmA<1^7?NUe*Rv!$8PA8plgP_TkFz5HoMv|MJ9&p{XCKWo>@DV)3OQEGCU`005>n{ z|71HYIY`5o-fO`q{d#6Y(JTvi;!AH@)internalAddGeneratedFile( + ' +Ï +:google/ads/admanager/v1/private_auction_deal_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"a +GetPrivateAuctionDealRequestA +name ( B3àAúA- ++admanager.googleapis.com/PrivateAuctionDeal"Ê +ListPrivateAuctionDealsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"š +ListPrivateAuctionDealsResponseJ +private_auction_deals ( 2+.google.ads.admanager.v1.PrivateAuctionDeal +next_page_token (  + +total_size ("« +CreatePrivateAuctionDealRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkN +private_auction_deal ( 2+.google.ads.admanager.v1.PrivateAuctionDealBàA"§ +UpdatePrivateAuctionDealRequestN +private_auction_deal ( 2+.google.ads.admanager.v1.PrivateAuctionDealBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA2à +PrivateAuctionDealService· +GetPrivateAuctionDeal5.google.ads.admanager.v1.GetPrivateAuctionDealRequest+.google.ads.admanager.v1.PrivateAuctionDeal":ÚAname‚Óä“-+/v1/{name=networks/*/privateAuctionDeals/*}Ê +ListPrivateAuctionDeals7.google.ads.admanager.v1.ListPrivateAuctionDealsRequest8.google.ads.admanager.v1.ListPrivateAuctionDealsResponse"<ÚAparent‚Óä“-+/v1/{parent=networks/*}/privateAuctionDealsê +CreatePrivateAuctionDeal8.google.ads.admanager.v1.CreatePrivateAuctionDealRequest+.google.ads.admanager.v1.PrivateAuctionDeal"gÚAparent,private_auction_deal‚Óä“C"+/v1/{parent=networks/*}/privateAuctionDeals:private_auction_deal… +UpdatePrivateAuctionDeal8.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest+.google.ads.admanager.v1.PrivateAuctionDeal"ÚA private_auction_deal,update_mask‚Óä“X2@/v1/{private_auction_deal.name=networks/*/privateAuctionDeals/*}:private_auction_dealGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÒ +com.google.ads.admanager.v1BPrivateAuctionDealServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..55f04fe821b522e7998e43e742d9eb61a257507d GIT binary patch literal 1705 zcmbVM-A>d%6t=s_&wvnD4eJtQR1AyJHj9Y~Mbxdx!UeK1$c1Ur4DIYPv9!(1bPbZd zG|^Y_5qt!1^bxq`5xnxWoi57)32~EYyK~O@&N<)tdGRXRkI+NhpaJDXQV;JPV!2Oo z#6uanp^x|CR*Q1%h6fSzDc3Px+s5ye0@9}3 z=+umevko9TBz7eW1LuGW0WzVdE)WU`+(g8sxY4w>s3abd#BQW$cHI+j6q>zTTS3V6 zi4eG%q1H3dErp4W5QbkA@A=HdLJ|qDc_thdFv*C|zCebnxJ7(H0qVSND-O~qabmC? zxU{;6Gt5MHJ_>=6Rh&oHOh^KP?9D(@9uVJNqr&AZk|A$`s%f^V>`|NCR2P-o1dg?E zHH*~v^KII4~G zPOWk`2aK4(Riar#R_2r_ZBHn!A@gi9g$I9z(B#?nE8RpxNgJ0ntX0RX;&FYnG>=My zozJ{-0ThafLUH5TH%%+uLlYhokxvet6rh*`6gIR(K8waZ)lx7!<)K`xZ4?sm8+2Px zAI8#g!$1;OI2)wQziTJ;uNtx! zE)9Hu|K)(n&msRLj3f00gm|=@FCVogKs->B?&B$SldCLEp1rW{pj*y>mBT!13f*w} zOJ_}@38$}C);Jn-a$ZwmACc+*K6b3%8k&KEBiMz_P4%U`;|-VbQ!}#$!u81CxuF8W}0A^ kJe1HhcWZmYX#md_dh`4w+i86(@Y3~{YGzBSi@FH?1D-ZAR{#J2 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionService.php new file mode 100644 index 000000000000..af7cd64d4d9c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionService.php @@ -0,0 +1,62 @@ +internalAddGeneratedFile( + ' +µ +5google/ads/admanager/v1/private_auction_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"Y +GetPrivateAuctionRequest= +name ( B/àAúA) +\'admanager.googleapis.com/PrivateAuction"Æ +ListPrivateAuctionsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA" +ListPrivateAuctionsResponseA +private_auctions ( 2\'.google.ads.admanager.v1.PrivateAuction +next_page_token (  + +total_size ("ž +CreatePrivateAuctionRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkE +private_auction ( 2\'.google.ads.admanager.v1.PrivateAuctionBàA"š +UpdatePrivateAuctionRequestE +private_auction ( 2\'.google.ads.admanager.v1.PrivateAuctionBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA2‚ +PrivateAuctionService§ +GetPrivateAuction1.google.ads.admanager.v1.GetPrivateAuctionRequest\'.google.ads.admanager.v1.PrivateAuction"6ÚAname‚Óä“)\'/v1/{name=networks/*/privateAuctions/*}º +ListPrivateAuctions3.google.ads.admanager.v1.ListPrivateAuctionsRequest4.google.ads.admanager.v1.ListPrivateAuctionsResponse"8ÚAparent‚Óä“)\'/v1/{parent=networks/*}/privateAuctionsÐ +CreatePrivateAuction4.google.ads.admanager.v1.CreatePrivateAuctionRequest\'.google.ads.admanager.v1.PrivateAuction"YÚAparent,private_auction‚Óä“:"\'/v1/{parent=networks/*}/privateAuctions:private_auctionå +UpdatePrivateAuction4.google.ads.admanager.v1.UpdatePrivateAuctionRequest\'.google.ads.admanager.v1.PrivateAuction"nÚAprivate_auction,update_mask‚Óä“J27/v1/{private_auction.name=networks/*/privateAuctions/*}:private_auctionGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÎ +com.google.ads.admanager.v1BPrivateAuctionServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateMarketplaceEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateMarketplaceEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..f4e26ded72b548f5e9b7892258fc0d1879a1bd42 GIT binary patch literal 1075 zcmbVL&2G~`5GE-Uv=k}$QVBRLrBYJ?wjvHl4gs8a8(HMXN}NbkmaL7laaTBNYrT#H zC{My0@D!Xm@f@6Z1lB)Iiqc-NG`2N6^Udsh-@JJjU&P=U>=H&e7Gw@*pP{%QFy@hn z{3wL8bg>{D`q46`A>k^7<`52s4n(HqJe8?QlyaZwFo>ccBpRM4(w3OvfN*Wq&|*$k z64_f~{)vb<#6Ix|OP7h7*8qUwB}roGhF!beCj!s0z-~8(bB%c-t%P%@jV1toh?4}` z1#EwdiZW2}6+rpK=`5r^OavD4b4(MDGAbwz=@)s&7F^&kArfmhc9Ak)(1^h-VaR+^ zKZONm7JD2=awaW!*`A$^Nsh?1m>`_t&^1Zoa~g|?+cH$w10puV%{=wfvTO!N7qDLR zsOvjTwxHlCxmq1UPDILCGw(YCSa1IF&R)KyWgo_TzA1YqiK}k{v$PZNXAivoPsWtP zB2kr8ODnliSB;||6>tqNCc)uY5|JhuLr32#;K?p|+aN^)&+U;lH5}yijnN0>*gd0z zJQEo`Z|oS(Wb91_V;gm>GYgruTgrWK*G2==8gy$F1%Q2{<5*Kvt11WJUdI@8P)~;K zDG$MeG3xcu$g_>fSh{X2HE__LeB65Ow0~8=W2trZhAXzOX+76nE(E)B{=Q5Mq7bt{ zjd-91gyl-tiX$A;Y(xItlICWP->Zk+T>7e%zO;U^N$Rxm^YX;aw?e+kGgt1#@9Lu> nP1j{!_9_o`ecG7q=MB6%*@)mpp{*-YyitaEWTChFJOfwWf+J7Bfm5G?S=)(IrQtxNjjWydzMcJc=6kgtT|{UDw`fQOk<`PTK9(00 zM}kZ4@&I>|ZkGz|@?OLODs+qwPVu|bGyL}8`0NQlW1a|?n%L*u52!)B7*>yj#HYfz zY#6}g3)1Tm$y}$C^r>)qG>#!0>**;7g#>mY;!@mdTPIW!k4R#-QbN1w#jtWh`@FG> zkQzciF0F6lj8o-qMjUk6!@~lh4#`0#`#6+Tge0&JXzU6WNiN!uYMMTkBZ1XUeLFu^ z(XlSBXEmDUM3H+~iiD1zjesI}G}BS`N!^ePBQ-qt?6$)P?ENa*Wa_y#lpoGZCeyupOK?v7sSdugSW z8m1103F{internalAddGeneratedFile( + ' +Í + +8google/ads/admanager/v1/programmatic_buyer_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"_ +GetProgrammaticBuyerRequest@ +name ( B2àAúA, +*admanager.googleapis.com/ProgrammaticBuyer"É +ListProgrammaticBuyersRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"– +ListProgrammaticBuyersResponseG +programmatic_buyers ( 2*.google.ads.admanager.v1.ProgrammaticBuyer +next_page_token (  + +total_size (2â +ProgrammaticBuyerService³ +GetProgrammaticBuyer4.google.ads.admanager.v1.GetProgrammaticBuyerRequest*.google.ads.admanager.v1.ProgrammaticBuyer"9ÚAname‚Óä“,*/v1/{name=networks/*/programmaticBuyers/*}Æ +ListProgrammaticBuyers6.google.ads.admanager.v1.ListProgrammaticBuyersRequest7.google.ads.admanager.v1.ListProgrammaticBuyersResponse";ÚAparent‚Óä“,*/v1/{parent=networks/*}/programmaticBuyersGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÑ +com.google.ads.admanager.v1BProgrammaticBuyerServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportDefinition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportDefinition.php new file mode 100644 index 0000000000000000000000000000000000000000..0ba04cfab722bf63d18cb1dd3ff71320f0a3c6a5 GIT binary patch literal 44786 zcmc(I37lL-)vw(>ljR0Nr3nziHiQ5HG0998k|1hNch5|lp6<49_k`g^`x}x@ocAR& zc{3B9=;M9t`@Sh4`|g4pAR-`}$|jo#?&1!}zNjeT`=3))_tx#Z%#EMF-{bd7NZ0w- zsqNIMQ>W^l`rwDRd~%DmPe*Taq&YS;(Olng#8Dj+pKNw)85^A#T{pU^ikSMDg4YaRJqp|&@&j*o5~Ti0CGv2k>Cx#sw~vEeNfqhl37SFPIEoN#)RQWhMbiY0c#8#)%qI<8vftK^{_6JuMOX6YRr zW6g=JVQ0?+D5rb?;!Q2R=G5)-Il%C!@3yv^>$Z+hjBai?;?ele=24B|_2YA< zVn|Z5y=(Wk=588B=MGOaH#bxcDVBts;Uf33b{-vD-yHLUwsS%IS-Y+qYeM-Q+4SSK zcX1_a#+X#dB;|9ap~W-1mc}1aDaSO;WoP~mE6u~Xr8zb{x*j99Y3t^ZITo{B6`w6h zN`+ZunS<=3ZmWI6rlF1Fb7rCeGrAVW=huU54v%rHKjU+D*j64kvN4ajmnW=tR*307 zYq~S4nDf+m|H_>2dtbWSnj$AW<~y<3hIuOId*A!Ir=ovIkflGT7l zsb7g*DpBkLuSx^hNW2y)(c+pSr?^3(fRdsXwrOsz1GZ{#wye50Bv z_2wJ(l3mGX3q6H=PP{KY-D1VC4U^mv}^Q%QFy^}S| z`PrzInWNYvJ=3x{xxZYh^@+Ch&Q{v}?cnC7g|!{0f2^LVq6pERo@326QylDWPRWD$ zOjS&AN~WIhZZz@%Uf69tXqXPN2E^xY&f!SK=9jqA)I2cVCw8ac3$CAY| zWjiNjxk}mINm;2&Wi zeV0y~O|VR{*vJfI3dKx!F)wyXZ)Z)bmHW%pYI%*=lWJMYA69GVTJA-?!zr?NI*0}T zUZT0~O(k(sr&H2A>M~Aa8Q90+tNV054`R8IFXbBLo`zAvzUdvU9V*rQK%rc>8%Yfw?jKUt45Rt!tkScpFBfe~eaVbw3$Kc5VwHpj9UV~`bQ=~( z*?|konuFxI(wcH4+4kDln?Fg-cq1UQ_F3)Y*fBNP2Ak2f4Q;Y18!=G^&py^H(*zhE zS>OB=TW{?Wlpw3<6V@!b+%>quEVXRO&Foq^Nu}Mr-a@(ZaVxY5lITldd6!R_gu zZKWH&`f#eR0&{DYB|DZxiEMBwm(ra77j5U{ygL%sbZ4N_Q>b#UIc8@0Yn39H3yOBD6bMjmRVXk%qSw%%$UD;Cr};ijZ_ zv34|5G<0fuhBdW2UxRuoiD~qsKU2&03vh+`5;ebJ<#89e&f43NtI+#=pX{Yi3RSeI9eaW*bz53r{U&<-I!fNNq z#{E5`E534=J7l$y1^w@u5m-mt$lJpek^8-Qn=Q-TOQd(RcB$qoEQ0m2Gz#Plu8ZhEuz->S8 z8#iH6I(u%)mn-z=OLn1LYBBZpvG&Yl*%}-u0&zqZ-`PBqk5EK|#*QZ9we6i6fGBibkD2v5M!$_TCbr`8j6vIeMM1L4*sVIe!mWgs0X}PF`G^+cW2GcZ#Ng<3ivOQ3vb7Mttl<8ra>#o{%n=RBDJx3+N(Z#oOz zZRCTRl`$z@l;fNJ99?qxxZR&)3FY{fKgSZ8;|{q5!oeb}zQ6z2)kl_}?@aT2p0?Phm4^X%gD#oJt$Y+s?6bE?R;*5z$fcP{}9uWX~b%VfxVtwc?u zy~7o3&t(g>K`QqV9!CDf)CW>zn`YtkwAn}9Fl=DJPh|5vn9TW4VqIbYcnGPaHxpQo zcJfg;*IV5GwhGTE_ zvv%4NX;!UdS=`Utc?=W_uGn7^B;}N?P(szjk5Z&Ro!>IwGi(!QN%8VV1qSd_)UB3I zLiO0ct$#D??YKM0(LyH#-GyS&5&l<_vJi-qiJIBTlqdT(E&UM-57 z$sCyBa6ko4<6WDR!c{muK^nnHtCYc~fL%&Yp@{7ssw2MNj&sM32!yQ9gY7u(*wcko z%h+y^{xf;q(@xvlXpm%gZ#$_m2WjVPjcU1=mphP~+dY-`5M}nS(CNmGPIhP6X_DPfyadUDg!euv*SZ>t zz(aDsx09s2)8@X44#f~VH4q(Zl0 z70trS(y$A?%6oBZl2+L;0Q0zw26<*K-%qX|t$(MJMdeMC9bl0}D1vh2Ji)rxlP0lG zlCGYm3H5Hxd}lJ%eaSMAsmTI@FoI@pmv-1TM$G9OzKWnMw^NKw$5dJmjS z=nfW_Guej}MC495i$zD1v8iX@&)ICOc~TjD4x3~uol}0z8YpL1Fa#MEid)$F$qj;B z$kJX!xi{pr{&R}QC73E(^B2~$d9YN&Hz;1^`j|-)`Wnv#N_SR(*Bz)%lF&D}AM%IM zSdak;>xUGv7O+R!NuYwsJUbq4PtUjZ3J1tie&|IR6B!HVy|9bQ2w z?%X?g8SW`maR6H^msg{e(A=nXwGK6jY4O(t^=24=dA!5xv4lt+2U||<2rl4R6iAcJ zxiCdi2`e9#qWA|Jhw_Icf4_}7t+!n6MRhWmd4sh=)&_T|ynd?R$!sEp0l0prw2?vC z*IjE27VESj{Uko@-{s|;dc8ki>%#%-y=^23;Q-0-KDO7WM%a_MHTo3~M{Bao@*Ld` zn8q~R5D@RN30x?VK8Nkw=qXom&LU=!3EY}08KlYhaY=R`Hb4zB@p?;Yk0DNB0gb?L z=bqY5hHonhMlggJMi!512vyeP=WQh6tq?u7*qFkqhvpV%w5Q*1?Kde-GCi|BeSkH; z6)bl}4cS<@V6$YvoyAM94@&F!Y3<}H4I;@>PH(4W!KJex?MTalH%+2v)3Sj38{`+3 ztG9SBNfM1TEJ;ch^~UaQUd%ztRm+tMc6v{+xsL>64wFg}=cb79>O4%6OtB7Q4fEj{ zUMP(;9;;{BsD@PujZn+?H{_;Ve72o721arfn}h)rd1r#`GnXLs5=|McZX4wa39NWD zLHp_$NZA!XNKnUm;dR;L9n(lfxrd_m$1)kgJSJktarPZ z80bfgJiAXsovgwZB9GzIY!wDjWXV5btI!~8yN&K$urc#hx}Db%fPfurD4n|!xPY|p zWH4Fi-3gkq0a)}IPP4e!uOw(P8kl-j`!%oyxrM5|yGwNjv4Cwh_NuUE*U%ynfPi!= zWBWV2AVooBb?<5Eqg=se?byh4+vOq#TioB$AP1plCZtn5K<*|(G@TCqn0H)tdZUK3 zHer)mcB_~#4HT+nsn>XTA4-r~4hP5NBm^0B&f zFl8#@7(R%1GXmc-G1XbwrMzu%ft-x#ZHtR}Ni!*s>;7_1?$En&Mp>zdTSBlTvJut&|(3dVe=oipzLE z=oY6B413GiORxYu)iOPO2q^(SOkfo;rl$u+XIoI_TADweKFHHi0a!z>&q#UogAXn1 z`9zC;2!_eZKG`x=fW&^6-h|=$uxe$`xFUyDAi=e3GldO!l(DkJc8b8u9IxrH2<@nC<4`au_)!T-Iyy-Eq$P687K;36+-C-W0VZk1hc-=)2~C4VygdwjayUxp70RwZ2FP=I-H4EMH?T7ZbK zbLv=fz;16+a^f?zu{DyI@qbaL8j0mK@M7A11?(xM$Nrm1nphDC*$KBN$!Bc9=+Z}C z98L1wnksX=&1Wl$<~8rcI$9_KNiy$FB$bMe^%(mP+9TMx)#4du(Ycnq3=|yUl;_F_9;g(eLuKDwWBhScH$HSDHqs zCw1Z=rcb}iVk@m_p=8P9ND?9+M)wWc`wCkop$Klt%iKb}9=W@=fAWEgFI|>=4EvMI zRoa0nEnh<|v$3P%W*6CGN9}=L= zC~*l-Rd1ryu$Rhqa}&%vK%eKkhB5~lFqJ%y@|QAZzF;)eHDtbMRNXN^lzno!QFVuA znj2TJ1j|x*P^OV{Q~q|%fh!ZVy-}&vGIss_*c{{d>oTJ$=2CVQP4(F_gON_-@-|5j=j!lGAXz zN->j_*Wgh8|Dv-jGll$w;v71=nCT{S?lBr?ZyJNoPKuY3v_TD| zG0T^ewB}Z@;KQV()ttKO`|RU36S-OsvNH^)PtNxCA_;U;WTBsBhbNp#*o~2;Ax-Q; zkq+j%>wK*J4m(StAd=PJWKZ*17w@ZEo!+nNvgo)QWqG~gT<_OXv`f+^r!@02MHt_# z?C21hOsLPL$kQ?jN>=LP6gm~RDBUS&diLigr_rp~C4kP=c|E}h7=|8%c9?HZ>p~Dk zmOV4Q!dg?!{V}S$v{JNc`ALd)fG`CwPuiU>uLKWeN?yKVCx!qT91D@J_ zO|*cJt0<#q03ZCEl1O)22Zc7bB?GtNR961gd@p$e(FYH)l2gAK@i5;Ts5)0acnNR~ zwa41XofSrwllF18rKH6S;dFLJcH!{6c$Uvn*|7o>5ciyDG9Qjl4W8qR6N(^})Oozp zn@O^O^Vtz39n8oLHC`{Rsba%IrX@}cdkge6*N^z#5uqp zC-OxZI8W$%N8;rN6D3=r80dWgK3~8otWD%y2Y!)mQka*auR_>$kBr6GD}x ze3OOUfpFJ-m1WwKCc$6hsUr#UYEPX%n=Imb0_S{^{aE1u$>u5Ee@j#kER1ek{cFHJ zEU@x8&*d9#hIa}xlmy^VXuOk`%?l+18oS?^}IhZbXP za^K8m@L(uF7WozSco`^e@7a9wvn5q#I46}xV1{|FgHYX#fm+1T_F{FgM$_$_QWUb& zK%N_k>@tw&MIx6N$nztSOAX`&k;r8R^1?{uaszo$B=TSb`PoS13IqAMNaRWbd2y-b z{8Qd(l0(#Kj?pENNOO!XjYOJb^!Z4nIYyU7BF!}GIh=iA18SU>P)lCUkpW= zeg3CVl-cPog`&(}e>oIocKa(Ir=$0P+G|07uo(i-GX78)K#TXoVE`@JkAwlVP(K<5 z(0b$tVF0Z|9t#6#{qcAhKqY<<3Z?IWBiaBF&Mxdo%fp zf*Yh2%jf9iF9f6K!^II8JtHoO!00(~X#_^kiqA)2w4S*v0;5&UzYokEAudj;&>CV1>YkINue%fC1xpIt6)iFoM z$ze``V`Jqor^0cua+p)%_*gm2sc}NA9H#m@F;)&!k)0GPhpEy|j+MhyZl}b`VXC=P zk0yWHWMl5pcc;b6VvhRh@v@l1enz}3=D433FN-3m}<-Qsduhs8sG4WazzYhFDYr$m0 z>uBXSV&e7qz8Mp*$M>z6cs;&v$HeRL{WI_$`3&4c$lK=R6ng?!<0iwK^Z3aacykgz z6$5Y1;2*}oo74B{7Yv8I zo8$Yl7n~Ldcxi@IaJTp zZ%+=@)AY{Cp;`mqH91r(-@7M=YQ6iN$)Q^1-ZME=YukGPJ4l#L8jn+8bl#FtzPX$kAzRh=Rx5qj0|vFN-iEo9XswaYiiOrn`RrI|t(VV13uOCVdFGTrh-wl+t_p#uRuJUs5QwTcL9PjbsJas5+7O5m zJAzyn0#UL?kn2MrO27zmLkL7k6+vzcfhbWT$W4IkiD)(<+Fqp2T<pl7GS!)gD;+N)lZErE}r2FEe~fi zkA~gv>jGvS$Pyu{;J5a%?B`F)HA8%)_F-$42{L-osWJt487SBg%L2=#D?#GY6wa^a znGEE$EMFI|@yZiar4!Wx)h`VuyTGrqfPnL-412F_>@ebm3)>TKm31Vu0c zy3yKQ=UZu?Yv;>*W=7S6P9K@Y;6r2_{&~}8KjIX4MBQ7_OXv!oM~;FThmfEY!Oti+2<7FB&#v*=@1%Kn^bWz~J0O$8R}?nn z#V95dII9Zi+yz1Kz}eLUm&t)aXrp`0!N@}&E{czr^4G^oG@u0$a)^M$qzgkb1@*8% zjnwm4aoHU=F%aijX3{h> z^KKMlp%tK~?H+WP*WN?6trj?anY5pUL=+a5J6LGuAYzj>Yq4`fgdZ>`Ux4(kkS zd0>8?f&EfSjbhDNm?kUNWUA)S4)npPCmmnuzD3_~cvCS)1%26ILY*&lxqN(I&a=&} zfH@UsvOQ>sk3r;kHegI`!{=f6s*2tWh`?g@aa>w_PsL&C-6HXoZH?k);s%<@K)%^Q zK{*h`1RpD8(Hz9VBs0z^rWM8N3t`9jQ31CMhRI2RfMaCl8axo{2v0LmXbp}!S*0L_ zctZ)h2ZRK|cXg9sjb0H54}`Ds%?w({sj-_4qtVk$O*gshD3zpJeGSrja3^W(8Et4m zcy!@jY%Q5!vX;zC>D+7YlFtK+l~HUf&a5Q9wkNYN3a+b*&-D=l$b|Yd@_}+Oam&_u zXSJ##MZo93^fjmoHrk&>U@3$Yu4D%3+Z*vT2MqF-$XdQdZt=Aqt`3^G8e%0;kN_4s zo1zflhEFJfr4pfaXeVIwgojCkd-vER+oA-*#~2(8l0W6P1tLlE%IX%nAEfU6;K!>K zb~ck*cv)$)1!V|ag+8JbWIzESYtV<4f{UF)PPT3}dI8xY)}Kd{(mV`mPw49NNHYBq z>yY4H3(Mry;*Ujeh_~`Qo(vy|pjAM8DE&d};NUt3;l1_!0d*5h@1Sl9%*{GKgAZ>g z9={$EbH$m*o6SI)N26Fug(@E1_#zV#4Jq0;#ToHz)=%P~CvJI44^CAJlj5Luyx4kC z#chEvTjZ2-=#=i=nF)NhCL_;l5F$BgwZV_u8Kq+Jm`35T+$8u2@C22{|5h(xikFA# zY5VW!^BRhGuaKrroT5~spTsQOfIH%s39pD3N@|uz_2pAZWiKfHTIs7k-3|^~QdKQf zvw}0|gLOYd_rgBB2la8#D%Uiyw^s|DD$J+Q7f^^ALnwUEuKlT zsTfQJLw6a($JW$&KvIlViquOQz(gSCwJM1ah_Z?}l&F+^*+3xhH5sKUe+$*a=ch?F z7!@*0F91+zL*^)c=BWmvFd-g=w;Dh9AP`E3%kor|KYZ0yksqLw=uiZMUvStDP4jdA zWs*%0RXGxRKYzR-r8*+0e!ohxz6J+(9NZ7v>4Cf|`O@L*%n3ZmMOy|h*637x=#D^L zEp++5Uw;K&Z$xW9UOwjJWkC=-UqtwD6!L2l;rSjW#=v=o<~K>cSnkC-)7R|d-*P}X z0=i+uf`sOG0l1)E`@K_1m!F!BEcUcdfTw^SIs8Ka6k=e+lXVPAJn2QgOHVBo&Lg~k zOtKGgGMuNco~Q7JdwF>~vZf26;PF0`)1eLufokYeQ7MK0{E zz2Znc5941Qq4Sh(uP#uKW74Khe~5P+UGBk3$!BhV3+YzBX#U+<`!gMG;5BT z;xWEC9JfO)_2LLo#@dj3Y2MvyPZPqGQ#Ca6U@)B$3p^4)Izb@~BZ~RKF$8A-j30zh zK(t~6#vwO}0$1>4W?u%!Fxn`EO%4qu96qE6eBn_h?tEywTDUPX4 zZ(Jgl3rihdc!JlDL{)>yQI9w%cwnU)r=3}P*&Qc)h$4Zfc$IOPBqN+7g((4&=VAx( zt1OkQuCzd81$w8Y((j}ooC1`RbM1vjo@2QoNWikii>Y7u%=`gXa{;i<#Xxn@UmE(o zFesyzn$YiuK^e8egg(fMC7=RSORj`2|GRS920(jj4G+(UlIf{diu{cnVw55;+tO6S zBS(nw;3UW%$4f>C0cRv?-;sR#ND|f*N+psB9!tcma@c?%*~l1Ph;M_Z6sWT)TqQlM z;7;9^zCX2%_EM1<{G)K%)$@%J9s|Jlpl-RN(KF?~A_LA(Lx9L4x*#E7`QW27_#8bM^Lz2#_m$l9p*s9IfDb{cX0-f)z z7dd1fUKvoY+cEB}Bq`5eoV*_8fuGH@I}k44LZ&0VK5Uc4Ijk}QkubzPOwUcyV_Gs6 zENRT+cqR2c0-{tXLYZO>^i!c75K9YdppV4vUWC-bHpxdb))w(1uM9qjS|aFuI2>a5 z$kIRd5+9cY6Wy^wxLEYILLmS?)(-XPUlx%Fef~5AM25W`1UIXVfXY}IOjIDV<9T5- zVI~uV0mjLxNrh$UL#~@P~Zzg$NIC$6wrwR_qVPIAoZ`;5!aIGe36LJh=?4a=k zBOcF^myOI^2<(XIOX;rj#iU=%5vjZteVp@@VS~7_56wJ?ScNUC+D*yG>Z%$Pt_hP} zot2!-L+-~(eS>&^kQ*;m|1yr}5aSP%N)tE|E?(B4m#b}YLV_(^l=@bjsKH6w0$9 z(K|8cP6J;5fJ7ifTei>RfJdN6L>>3R@pdeO%*rM6= zsxKB|UsjSl{zQ2OV){Z))mm9J74+GOR z5Ce>79bwsrfbDuV3o9D)*T`{ORE=qnaAD0Bh!csYEgTyh(eZKZ#NEbBx)nqaaBKx5 zGx#?)h@LxHCjZ_B0d^)xlcAx?A0ovtwJwJ#w&4cOqwhdMYaf+v^u+ga0DL6S6uPBsy+gV)1N6DD) z846eFJyUu=DaSe3XjFXNqr{34G zUBLA;cA!r1Ot@0C=j=7!`Y_VjDWWOec6O;fa5z*U*~fU| ziX8Ze=T2%-F1ml@tK>1VI`xn{*5_G~w&Wx3?1iQG3TW7D@j?JDo2_JEKiM`JIcf*| zq7*wCLx)nx^^%EvJjxCY8p1A@$27!1YPNW< zohC9@zNNSL`KiP~&` zD?nE2m0Gs7&TpsaHiNg)jKeg=<2dev3y6KupexlFkwRJg*$Cgv$2H_(Rny=WBiOH| zbt)R(go6PrEhA0qQZz)!ZJ}Y&Q8a|f_0cp>#N+kRG*7%=>!U4EJn?323vG#09$wh; z(R6ut2GDeQcLmUNd3XD0SRYkgz7s&x<=qoN)8*Y8K-1;j7eHI4%DX>+wp`I32%sIT zXx|N>tx&Y@1<+P1+V}l5eEu!f=7T;OnE;aZPykK$3m!;p8KY&3b-&1kiMOj|I?ld5;Isba{A1uca=_7cW)qd(uZ+>C^?U1h(W`xmec)PXprH9N#v{ z*+cubMRF$^`|L=R9%no>6i}k( zrKRuO2$ZWs@d`yKuP#Tj3ZQovIvwOAw-0TKkyX577J<@zkGISsP`dB&m{};wT_0|Y zL}{70DH5gYg%{}}O4RlGVkAnhBVUR@xho2uVF)eJU0ZJE*Wp?uSdsppK zM+hn$7PRtF1}nQ$^Z=tF2_Rm^YWy zp{dzD>pGJ5&%yl6r=j?y{BYWenpl076!}fS zv!skV%xuP1+x70&IB>|#2}{(5H#aNIvEkA6+0ji~H;>S)VnYsF-U3cBVG`H-@i1@+ zZ%b$Sohb1>>em1azk1JKP6iP9AsM<+FeiY>@80585%fX;l_PTCibdPJ&nEB+adTp9 zc-_FzrmfA|QCpgHI;S2yM8)XXvWm?=JW|TD2H%0a>nHeqQaWbIR15S-c9LY%{q4^{ zZ)xqI-xQ}S&86PFpesr{RP%I;1Lr;}v3=gKHIsVs@X?W`J-T&l9R+INo!fFa`|HZM z4@VE0nZ3BZHQjmU4YiXWyXmj2Q9WF?s@JmUmhG%*IOC*An-gu_bF7^k>qa+k85$cN zA026|ADU=3#)d{VHoG56Si6C;aO3Fc#!bzIL+i)!XYGFy)~+4sd@(s!W?QuiMEXk+SFIZ8JYou0 zV9EYghx+fJj)}3Y%>xdxoRsm2p^4#jt5(e)9&d1)hBggP|#4&~s8%C6@Gj_z1;chKumPu87d*R-go$a1M6*BdQaEmd3hP}Fw@o=yvL-*NgD z%@f1N&oQw{pL+R|&Adll#|yM$>ian4E1V2q6C81gPUXt}PK^e{AOY!AIHXfFeEfuv zPJ443K(~nR%S{feg)DdnGXA-Pu4U@7ACLfl9+e3_N?A>&*bC@l)p-HtPsmm1vJ!!?6p6 z(Jn{O2~cff4d?_E*X)!{Y8gB9h@6;?H<@UYhLLq`wPXLZOpL979J|+lV{7QrP6;z$ zVv(WKdrRq?3FVlIPR}6256kh;d;H7{1FdKnaa@%#4cFsHU~%yfep`XZ6XlWOz$Lut+=C>YQ z!5SqnLrqDy;UmNJU5gAgzJ*k@g@p74%nw{;u@6ljR`++J%6z{rFW zKzgrQDyj9%4QUQirDn0*$|Tt1L9wltGE)WZeX-MlyQ4@J{vodEE7-d7q1)GO8oYJ9 zH-7$I_@wEMK~KXbg~P&2ryDck!QV=Yhqa$luqY^4B}j{OEt>l!0m-KGR(b{*18r*i zxM7Vah>ww#MCU%ZblZZ(ORCg{vl|yu!6{r4X?j5u_bR zv0eCBRarnQm!iV_iYug2MloIxa(|>?Hd0*r4i;I58*qdyF&tq*z2TG-l-P*>I2kp;>TLfVLQVZ}&R&j7jT7jk3UQ<=i4JW0W zkSU|wxzTCfdbnJQfe%&nYha9KeXJ+RnNU=-e=v>=_rHg5S?W?Y~)uzz1 z`0}v$`T+I(7_x_ZYF#V8ELODLMjfwN)kgh5tEsKb)Xtv?xPt{Ra>}@uca}vCMK>gV zB;HSa`yxEA^c@Q;n&No^b EKS_1b=l}o! literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php new file mode 100644 index 000000000000..268358599e42 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php @@ -0,0 +1,89 @@ +internalAddGeneratedFile( + ' +» +,google/ads/admanager/v1/report_service.protogoogle.ads.admanager.v1-google/ads/admanager/v1/report_messages.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"I +RunReportRequest5 +name ( B\'àAúA! +admanager.googleapis.com/Report"c +RunReportMetadata +percent_complete (4 +report ( B$úA! +admanager.googleapis.com/Report"* +RunReportResponse + report_result ( "I +GetReportRequest5 +name ( B\'àAúA! +admanager.googleapis.com/Report"¾ +ListReportsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"t +ListReportsResponse0 +reports ( 2.google.ads.admanager.v1.Report +next_page_token (  + +total_size ("… +CreateReportRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network4 +report ( 2.google.ads.admanager.v1.ReportBàA" +UpdateReportRequest4 +report ( 2.google.ads.admanager.v1.ReportBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"] +FetchReportResultRowsRequest +name (  + page_size (BàA + +page_token ( BàA"ø +FetchReportResultRowsResponse: +rows ( 2,.google.ads.admanager.v1.ReportDataTable.Row, +run_time ( 2.google.protobuf.TimestampW + date_ranges ( 2B.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeb +comparison_date_ranges ( 2B.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange +total_row_count ( +next_page_token ( 2Ò + ReportService‡ + GetReport).google.ads.admanager.v1.GetReportRequest.google.ads.admanager.v1.Report".ÚAname‚Óä“!/v1/{name=networks/*/reports/*}š + ListReports+.google.ads.admanager.v1.ListReportsRequest,.google.ads.admanager.v1.ListReportsResponse"0ÚAparent‚Óä“!/v1/{parent=networks/*}/reportsž + CreateReport,.google.ads.admanager.v1.CreateReportRequest.google.ads.admanager.v1.Report"?ÚA parent,report‚Óä“)"/v1/{parent=networks/*}/reports:reportª + UpdateReport,.google.ads.admanager.v1.UpdateReportRequest.google.ads.admanager.v1.Report"KÚAreport,update_mask‚Óä“02&/v1/{report.name=networks/*/reports/*}:reportµ + RunReport).google.ads.admanager.v1.RunReportRequest.google.longrunning.Operation"^ÊA& +RunReportResponseRunReportMetadataÚAname‚Óä“("#/v1/{name=networks/*/reports/*}:run:*Ê +FetchReportResultRows5.google.ads.admanager.v1.FetchReportResultRowsRequest6.google.ads.admanager.v1.FetchReportResultRowsResponse"BÚAname‚Óä“53/v1/{name=networks/*/reports/*/results/*}:fetchRowsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÆ +com.google.ads.admanager.v1BReportServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportValue.php new file mode 100644 index 0000000000000000000000000000000000000000..50b80f79583770134a86efc53a26cac65b59855e GIT binary patch literal 1284 zcmb7E?M@Rx6s1%?dLcyX2a5g}m4sq&o9e$sRGLa50cn)^2svwb0YW#1fMh; zBs?VAP=i0KTpx464W|kJibvTZLz-xY^;dI;nFtM+g5(8gaJ0}=VzO1sBZ@JU49YvFEcW^$9Nn&2M2ES+E#mxs(UoLVz93n0^0&moM_M-|5 zrS{kFLJcJpLw#5wl}2@Us{Q~LBZ(7X4xdK6QsCMsE@FpQ5w9VB4`6_;a_B8Y=Mmk3 zrJOq9`ka3jBMYxKylcdHC1D;8Xdf$)XCLmkT}xDRma2Ips?S#Q1)DotiLLe@Y#rMf z$95kU24{w8cl3GWS=^mkc?5G#e|-sNtz$HHx7w(#JOQ}Sb17QOqZj;_qLua>%vi4W z&k8(7BVTv=_U%$9?UnCUzPxu`k7Ytd>`4_jVQsgF1W+}CU<4hW; z|H3n$g7^}?0z1i~v9T8-T|4r<=lJ;E^ZIRimZBFhA&dwtNeHV8kY@x^!6grP0;@cV zh=72vQ<@NA0E`?saTZ{W?8S2h&3G;XVnWP$oRAID<*FBb zxRmDV_Ndl)Hj_j!oOmOW1%jrM3s;qzW=v$=RDIGutgh8`G=g@i(KK&}?1L0Jxq3T* zATk%MSLoIRoBFR%_Ua9-bPU3;Qe=Mo0fKsn$*jGSqlgR5LNoyL%Vt z@ju3~w?dDu9k&2In^_-Dt@*-tj|YpfGn@LSCv(?&Z;x$j)V$NWkM0d;&d0emYc^UB z5t=$f``GdauG`#dHPM5mJ+d4P{-i3lhrb%=sq&?9i?reHH3ixy#o*k==XVt-<_Tu8 z!A0DO2`gOLDN{J5+R1;rxmUma$JWlIu&JSJs$yC?-dJ{jUS_<)!D^{;p7QYTttTbS lG!;%SRnjz<-PPSfz|lcHw3nq9u2|<*+Z2_hLpErG&>v^=K>EwKP^1&e%>)MvnDGc(7f|H1v1geuWB1^$p}A$kun-1ZqvSLV zN2nsnGA-oXg!+Dhy5i5?v@XiBHXYkRtLV}9A2itmEpxnI9YCVaCGWbvZGuDfJOK}dVE}KJR?toY57+l{HT!=qbcu^ zvIAGtt=sWGuYLYlh9)AVJn@7~+6i(esdnL_8ME5^SAX4Vn(y`I#A(bk8Z&lPXw+MG ze%^UPCqHwPzR(Epcl|{H^L>M}N9pwab!U6z8hCqNasRql={*HJx_uW}Ec!qWg!}TrEM%AAe9oOltpF9n%EOFs^hU{##9t# z-*4%Ebkjw@p=OZt5(u*U~63#l+M-Z{b_j*ju}&cX3xD3v@B9<^}5c@WYD@g=MQiAX?2w=@mqxB7(Vd~tqm;?E3 zJnE^V^#CoLgGf;kkSc)5;}c4 z#)7IuL|bX!8elm7a{faxM=P}(B?D<$6M7T0YcXQx>@gbpHa#V0jEmcqc4=;eYY$B2 zeEEju; zwUwy^kyFS*PyQBAN$XfyLM83js)3FAyj}d$Dpyv}TLf;*w`=Va1E7v2@4hYxH(5F=D>WqEYz|x%Yr)n$b*)3((KKq4ZK<(Tl__K-KVC*jgukG L%&zSa4H5bWN)gql literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php new file mode 100644 index 000000000000..b0a9f69e55ee --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php @@ -0,0 +1,52 @@ +internalAddGeneratedFile( + ' +ì +*google/ads/admanager/v1/role_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"E +GetRoleRequest3 +name ( B%àAúA +admanager.googleapis.com/Role"¼ +ListRolesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"n +ListRolesResponse, +roles ( 2.google.ads.admanager.v1.Role +next_page_token (  + +total_size (2ì + RoleService +GetRole\'.google.ads.admanager.v1.GetRoleRequest.google.ads.admanager.v1.Role",ÚAname‚Óä“/v1/{name=networks/*/roles/*}’ + ListRoles).google.ads.admanager.v1.ListRolesRequest*.google.ads.admanager.v1.ListRolesResponse".ÚAparent‚Óä“/v1/{parent=networks/*}/rolesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÄ +com.google.ads.admanager.v1BRoleServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..1debce58ccc1232fbb3134cc3c7ead5bc72972f3 GIT binary patch literal 1124 zcma)5!EVz)5XET=bPF^xf(p1SZKb9XIEuKr6mVlVwSd^zPAVZw(Z<=hD>-Y+yRHPN zHxB#Go-tJa9b z7dhQ4dCLT6&0opv=?hZxFlMu+?4g)Vrvb{a9q@e_bpCfJ>PCgs#Q22O?bl9wo1Yc% zK(^i_3}s?~rzr6-Vkwog*o?uwe>&B02WSh8XBoaToQ#IPYxV6z z+cMkN)HQIU?+gQL7_=326|6YHk>#~p>TR&<91kteKeFBS(&kqM+?S<{nuIUrUa*qH z7X_%7UFtS~C4;8C9~i;N|Ev5haI*pkGK#tm)*8a%pd|^Jo^cqom(;sp-Lu|}Y|rw= zO~$r$++LO}N5lS+)qgGED+fOm@JL8SyP}&1cO=hpi_5igmG`e|Xq+a9##)-k-5AqS zDc#D2G9o4Qr>ypxA$@CY3`*%}LOR0UR?^ePy`SfvuvC?J)xJ>Z>R0Pw6{hPVPQGfV gu8(`u>m`9_JIzWxsW$b(Vqdw`C9>MzGjImLZ#wi}`2YX_ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..f25bd3dfce517562c4c5c6005772c2d77a5ec2af GIT binary patch literal 1851 zcmb7F&2G~`5XMRR!y*9^j?2l7L9!ZfFR%9SB%CgnQUpMaU0{5O^P;wsR!( z1!4FlX(wbp7LrJKEimD+h)G65_8E#z3IOA_-8AwgizBQYb|RlPmvDxuY!{Lk zieJM;PP>W^;KJRCB;^qa-E}H_&Jr2(T`;xn9+f4FYNxrBhgEQ_i!+H$*!VBVq1qM#I3NN935r{9>+qG#A2u z2P`Q)U?2ub`pMZ5bt|4cXF2ihASii$4U%k@%qX4~(f4We=mJ`--^z?l5H74-b>?wv z_I`nqFsrMG@j5v(nTls`j~MX0{QRi!)p7^fShA=wGnoHcLp9Z;`V6Y6kD*~;qj}k> z{%KFwZ=!0-!$!5(scc^QW*GGaRQHb`hG=YzpdaBaKB!s-OGFyZ! zXfVrGXHZoI^#Pl4N?gy0Uq0`KpjH@3L=WCmG*bN4L>b027ymqERWtQ`O>e zrqG0^qB{spd%2PG%RqBL-FcZfGb)v0EbEVY*LeRj7h5k5Nz^lA-m`i%(mJq)Eg8El zR?EiytlZkr*MSMw0j%xpMllatzl#%B-xTo3&s?}G{#Ir)H`@k3^~eux`>@rS)CoLY bEJw!UZ1j#yYSldEpE0GiWi~internalAddGeneratedFile( + ' +ì +*google/ads/admanager/v1/site_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"E +GetSiteRequest3 +name ( B%àAúA +admanager.googleapis.com/Site"¼ +ListSitesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"n +ListSitesResponse, +sites ( 2.google.ads.admanager.v1.Site +next_page_token (  + +total_size (" +CreateSiteRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network0 +site ( 2.google.ads.admanager.v1.SiteBàA"– +BatchCreateSitesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkA +requests ( 2*.google.ads.admanager.v1.CreateSiteRequestBàA"H +BatchCreateSitesResponse, +sites ( 2.google.ads.admanager.v1.Site"{ +UpdateSiteRequest0 +site ( 2.google.ads.admanager.v1.SiteBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"– +BatchUpdateSitesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkA +requests ( 2*.google.ads.admanager.v1.UpdateSiteRequestBàA"H +BatchUpdateSitesResponse, +sites ( 2.google.ads.admanager.v1.Site"k +BatchDeactivateSitesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network +names ( BàA" +BatchDeactivateSitesResponse"r +"BatchSubmitSitesForApprovalRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network +names ( BàA"% +#BatchSubmitSitesForApprovalResponse2Þ + SiteService +GetSite\'.google.ads.admanager.v1.GetSiteRequest.google.ads.admanager.v1.Site",ÚAname‚Óä“/v1/{name=networks/*/sites/*}’ + ListSites).google.ads.admanager.v1.ListSitesRequest*.google.ads.admanager.v1.ListSitesResponse".ÚAparent‚Óä“/v1/{parent=networks/*}/sites’ + +CreateSite*.google.ads.admanager.v1.CreateSiteRequest.google.ads.admanager.v1.Site"9ÚA parent,site‚Óä“%"/v1/{parent=networks/*}/sites:site¿ +BatchCreateSites0.google.ads.admanager.v1.BatchCreateSitesRequest1.google.ads.admanager.v1.BatchCreateSitesResponse"FÚAparent,requests‚Óä“.")/v1/{parent=networks/*}/sites:batchCreate:*œ + +UpdateSite*.google.ads.admanager.v1.UpdateSiteRequest.google.ads.admanager.v1.Site"CÚAsite,update_mask‚Óä“*2"/v1/{site.name=networks/*/sites/*}:site¿ +BatchUpdateSites0.google.ads.admanager.v1.BatchUpdateSitesRequest1.google.ads.admanager.v1.BatchUpdateSitesResponse"FÚAparent,requests‚Óä“.")/v1/{parent=networks/*}/sites:batchUpdate:*Ì +BatchDeactivateSites4.google.ads.admanager.v1.BatchDeactivateSitesRequest5.google.ads.admanager.v1.BatchDeactivateSitesResponse"GÚA parent,names‚Óä“2"-/v1/{parent=networks/*}/sites:batchDeactivate:*è +BatchSubmitSitesForApproval;.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest<.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse"NÚA parent,names‚Óä“9"4/v1/{parent=networks/*}/sites:batchSubmitForApproval:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÄ +com.google.ads.admanager.v1BSiteServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php new file mode 100644 index 000000000000..7a1dbd7371ad --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' +Ÿ +"google/ads/admanager/v1/size.protogoogle.ads.admanager.v1google/api/field_behavior.proto"w +Size +width (BàA +height (BàAF + size_type (2..google.ads.admanager.v1.SizeTypeEnum.SizeTypeBàAB½ +com.google.ads.admanager.v1B SizeProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SizeTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SizeTypeEnum.php new file mode 100644 index 0000000000000000000000000000000000000000..5d1476b3ca03b1ad527ec76b2f973df4fa98b95f GIT binary patch literal 987 zcmb7C!EVz)5G5&1Vd=p{LKSdXN~NY!aTN9D5Fo)$WGPLo#EGD?6m9H{Yspz#>vg4q za^e^G3J&}Q7e0lrVAgi5psEKf&F*UF&D-ah_x62!9i!KHKpEvkP!BI}vACu<=8=fp zD8$QjwW1um(K-%7%2kZ@F&>R=Z0M%_3QChGtoX zE5h)_=`svloCqRdI|-6SzycAF5TG9J;1vlI3IunttCYDSh!~ayW9HJv8O}K+_9Twr z?>l&_$&w9$W;iAjlrs`KI!#<2#3JGrKsC*$qHLqQX`B_$O1fZ$8@WbJyCbrL1yAYj z>lkw?QqJ0$Zb`5yPnohe?}9={*YnC}`!J$L36y20=;t0f|DV~^k8-pMlY}Uypx(5O zzgN)V?gWm%RnVjDMg2K?HZ`w|h5gww7PHaRGCrDp)6kU%^~Y%6GCvtZrBYYWVOOT? z#iVPSW2Gu@%#m$OrnYID-J!Bqe}WFo!Du{z+J|+7Y9m0-4P{^Q^oKK3S8DRuo#{Yu z(EC+EFTtMbJ+gaGw-TjmvN2kfs}BX*k3zzHHR68Lrz|sPGf$B?kWT*B&F!)wKdMKA z%&jW872+~?ygG0F-e#Q4$gmVS2dw<3`XVpWG^mqHk<_$#Ygx+#T%498JkOo6W2Adc Mlp%A!Y|sXwzkLTa1^@s6 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TargetedVideoBumperTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TargetedVideoBumperTypeEnum.php new file mode 100644 index 0000000000000000000000000000000000000000..f1b621efe8a725be61d82ed49d95dbabdba2a57e GIT binary patch literal 1026 zcmbtTO>5gg5UpJr=$?!(hUT(OL*tZI#`Gq~ZLMl;d~hsW#n2)UYiX=3NV{USGNi$O zsOSEQp8G5ME4uoKND0oRf>{a8yf;rXPZuB4>lD4hGvFYpf)H zTaY*qNy=i72FCUhUoKrt?790=Lo<=f08AVS5ydc|VWuOYoJJrAyWv1l8G&Z@cPs?q zZ}KDs>8qO*eBgOvl${XbG=VIo0pOWqEkMzbD(cNjQg0GwI%-mHJscqv#5BvWTa&K~ zZmXnrH8at~=oVpprTHdi0nQXv`gY1PpK+!bjoEkowPU=caR!?2VeK~OfntK=0F83^)Kh52T)gR@*KG?rw#EHQ zqiH@6ImSxnaKAgo5>zhvsMK8$?3<@j*}D&{)-eggrtMU(u-_CGuru`YDH{LR?z+7S zZs^tPsJCS7h9|e^_>l#jcpmB<$amkM*Y0FBBQCN1_1q>)-?~~jWaYbG9pYbIesRd> z`E*X~&XewQ^lUP9$*R-pB6MVt>2gInZR>Xn9c$Yf2h>@QnWx;Q)B5(Q21g>MJTiog z1`+VmvV$r`Q&t%MU(=78G5l!vW~GM>?O`2@>c=qF!(Vq9ue7&5>YS$y{-^z-f|;hq j6-S*k&Gm3|R0?>1)@<@^WsrM*I_Racva-z{?GgG5nQT(Y literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Targeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Targeting.php new file mode 100644 index 0000000000000000000000000000000000000000..cb8966f9dfa06f7a0e3c05d3e20d8bd2f19346ec GIT binary patch literal 7967 zcmbuE&2!vH6~K|55BvEu^4Hj5iB@>y@g|;GJ5Wna)-0C2aZ>rPD{%~jVTDF&k5xM( z2}$FPp>m{(f`Z~eapFL6sZ%{g&3~oScwQv;B79wn$jfw7moE*};+a z(cYt@w^20mJE2W#TGRKNEmF0d2tRGhvzjEVo^4iRD{PY3^_msN1n{gji2}bRN%m~NqJr4O#1F>;G@;sTB^_?bp$%0{>Y0-=vl4$ z9*OMG4Prk$#8+!Iv@UZW{ieL03`=qDiB{%1)@nUUZfkMaA^FiYEhKR#^zJjgDd0`^ zUwsI7)t{3ecSsZ;wygNX58EGkop!C(HMGkeipHHzoMYD^zR_t1Bs@9~$d{xt+Myre zbot%|S%F)B;F6YOkW=f-^}`Dohoa9(vReDPgiZa%x7}o-cN{01*9W-v%h^oOd0B&B zy$|)ZAy>V+#9ypnc;F{l-<7k?mF@peAdY!Poo_an_stmHZxWnU9!)EoGI1^yBwo&o z+)70Pw|YW-X*LpPCd}pB3t{3h{z(7g8jNR=sP4d26IIJ1yfmUI<%z9#Djd*bY-OML znY1zbuN_4_fcco%r=H*Po98*wC?nmKl8!PV0r(W=T0{1yA(rj-=q}j$f%BecVs2fu19*Vu-QUdc4 z+^~I&*#d5c;nt+BN@dhZmM`}%45k$Ws26TI8lwz|CFv&ZZsAJr7Hs_%HR?L3d1r* zwJfjM!D1uF-gs{yn+po$AHiD*8TXgYiDhFYQSdcSF5ehHf0`2(M!>X?#D{H#p<95D zG1cX1fyc%!mlL=+oj%qU7;awEjLxH&JhAnYMN=lrux3e^nDk~gY-?~l~P5$b5w4?g{k^y z3M{3uE5w)j1m-e3a95yV>yp%fA*Qs*rMS$19B$|pQpD+hQD8a!Dot2N>3*$Zb&%6N zdEV82lezy6tV`W5qA4+_evZfuxHwV&{0iLU!}QHQ>MM9Fv%%rHIiKUA(sj1!-D9?F zz?}iM9|zr+AE!7ujTTyUY5MB|c;D~;U> zGpY=?2N;#?Ta+kTlM(sqzaUZn%_x*)J6IuqiaTUfy2{)(IMWIELjLTfUb`gK20e4O zNHxz$7-21)2I~9F?VHeT6(vPUR^SRcA9HyX2g&>|AB0EjWe3s!gC#@nflz&z+jA|) z>|pySDk~>_fllE@+aK;nw#FqS|zuS(|u5dAI z^q-BuVtk7VZO(CpOABQ>Kr!)mkYvZkI6Y(x9TyPC$w(NGpmKI z*CZ(q-Yf<5F_ktZVBAdYFqUA!>=^~M*MEs6x6J)APdtVj;%ujT;NT5J7_6YC{tE@> z`^}k5lV>njSQ?4nc;{nq?U);?*Jt_=JFEOm97rf_dEcy?3Zcp7Fu1&`o6)ri-31O0a15^^q|HQ|OScQP8qzM8=jG`nG*(@?>Q~ZZTyrqxWY~JF_>7PW)_LOQoA5g|Fr@uyyWlKYsDgQ z;lvH2*bJ<&(7NO8wQcFTdqAZQsgRtWgdWX-e7>+}rToKRP_%5rS zZo{g)dg?ZpDJ+}r0*s$TE(A0Froc_?EX#ajO!L4)YuT0Pq4MfG$u&>Yr!Ad|A2zE^ z;;~!aYPVh8b0d5|v+YkKOZ)8Fw}RKc_`zd2y)~{JZ~h~FQfD{9_$zr<$2;MFkF0R9 qS`FpsujFB^cD&iR#uT`>mfhCf<+rT4OIhiKEPIpRk-mX90RIC`v#%xq literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..874dffea9ede1e33f0967236bfdbd5103d50fd9f GIT binary patch literal 1749 zcmbVMU2oGc6eaE0hsDOIKr0(;1}4@4OVuGEl(9j>zIYg`P&FhJDRL7xvqJ9Y~Tp>~BHB>{jUwGto)!@Zh$fF*K~MAlx!XH{LHo`lajs%!w@ z_(%v?Pk5gvvBB`Q(G@auYU@FR&sT#5UX1k%Ung z1{_icmsVlS8Df_Mrc~L4X??X&C?%5hf=bLO@~v$w98LnscuheK!^1L@H(V*LCTT-D z(uAeBM#C5=auZ74#{JnLve+zwulR+7pFj94GizFIWT{n|#SB+gMYcgzk1$>_XkNLsT3EyQ(internalAddGeneratedFile( + ' +Ä + +7google/ads/admanager/v1/taxonomy_category_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"] +GetTaxonomyCategoryRequest? +name ( B1àAúA+ +)admanager.googleapis.com/TaxonomyCategory"É +ListTaxonomyCategoriesRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"• +ListTaxonomyCategoriesResponseF +taxonomy_categories ( 2).google.ads.admanager.v1.TaxonomyCategory +next_page_token (  + +total_size (2Þ +TaxonomyCategoryService° +GetTaxonomyCategory3.google.ads.admanager.v1.GetTaxonomyCategoryRequest).google.ads.admanager.v1.TaxonomyCategory"9ÚAname‚Óä“,*/v1/{name=networks/*/taxonomyCategories/*}Æ +ListTaxonomyCategories6.google.ads.admanager.v1.ListTaxonomyCategoriesRequest7.google.ads.admanager.v1.ListTaxonomyCategoriesResponse";ÚAparent‚Óä“,*/v1/{parent=networks/*}/taxonomyCategoriesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÐ +com.google.ads.admanager.v1BTaxonomyCategoryServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyTypeEnum.php new file mode 100644 index 0000000000000000000000000000000000000000..9d886309b6d09f4e6289b72ebea7c92a5fa0ffea GIT binary patch literal 1114 zcmb7DU5nE|6t(NR%HTsO$odK6TG%dVy4ih8t=cx(5U@$uO^YjmFiob}Kspm9lf^21 z^0)ZnKhdA!gTKMa$A+#;1p_k)bM85FbMHN`-zFCccmZ`xFhd*%aJGc}0>gw+PJJ4~ zSvH?z27S6nq8Kv?Le+w%j}oacg?(v107fgz<~jJqgE#abYOLd?3Ca+jk|l+eY} zW2oE1G3F>h9JzX-;|_vUtV+k7$~^%57^Nw6Dm_QYX+jNr z0Z=?iHj5)4rW|qcYDcLTk%&hqjy{XO>ccsTQ!GSo#?CY1^N13d6D;E6&H*en^VoJm zMHTw+Dla=Pj3|n05RMr^v8&?LXHmi_vqh+)gqYXm%uhN8)wQ`?G>4rsM@6}jWFK;t z;q}`gWSD1+^oqQ5fmQugWcKP!ROK-Ug8JGM(W*`znA7&bw{39vzddU0mJCUBRjjHT z(xtrjbqh5A?!?~j2Dra|*m?#YIfDgurU~VgNbTr z=1B8oPj23BJp~VIb`Fm$)6q;vpoh(S8_^@d-Tnu9)ZE#K9t-6=tqy3{_v)6Vzt_Ao z=X5f1Ca0R}O$}AEiX83^e>A`o;S6a*m4*-2tC0_DF+FzUJMey>i0u^N{ d&vuFgj`!=yd07tR+Wc;u-6FCa(-l|&@CPe|Vg&#I literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..31453703f5ce6d07af9d87440de1c571c9578078 GIT binary patch literal 1024 zcma)5-EPw`6s8@T#t}?aZYD7afEDFxCtt0K`Kt!dF9QspLY7AbXt?Mxb| zFT`VT$s_OxJO#Fsb%SXVk&YAlobNlw=X`ndF1yI!1sV`a7#1W%%PS-<2+CM0(jZOH zGGDC-LqWRE;)F00q5c?+#vXF|uJ>F*d786;SSU)uNQ>o zYi?>%0E*XyXE-2eFzF77z#$gcA85R9hg@2T_vfuPK#*Y0ktcZ^MFZae$tTN~NgN<9 zu#m5#m@i@)ix?;IS9y&NTH%BfiM|`V%4s0tlp+Nf(||NiP{FBUkFr!=yMwL^ny605 zF8D4Lgi)OMeZm74XCh@28ERP(5!?Q$lg3GzR?)>P)F^7StUE<^kYG8vogE=YM9yei z*R2RP+b><&tG97khaHC7w5M`5jcuTU9mB63X#DR`jDsT5l;e|Dw%@#L)n~A;IzN?d z&bjJ;y$5h}VjRMO=h(x=)U&+|AObP}P5xJo&ViKISm_OU#nIEq6V zdSQT@-Bydn*b6%m3utU&ymN@(9yajq&VJ)QEEQol_Nay1Vb~66iTDCWhj7xSaj91> zNlH3yhYA4`!qmJ7aRM_D@hGm=?E@-_Pb6`wn!>600!B*V9GABc@&Y0RZUEIm%7ji4 zhF{ce2F$}k5(%$0CS1muWF%l;pqOpkB7vYla30(0a!<05W3}Lrd$hQL6HbL)i$W-V z8xM1;D?LC9XP-+Na}qc^RCqCqWEj^0YFTY6M=GkB;zqiyqGK&wOmeiWb4hMv8F%UA z?ij~Zc4NM!^Hv0d(U$h?QEZIJcQr zmvrLF?Fm4fmXL%Ve9NM&(lNh;vZ`MT1~!UwcIH=QHh&i__)J6r>AO0V8HT26*S;D? zeihC8X@5YA6|%#yQ8QHd4a%u*=!(KLL>4zU%}WX}RRZrcR2}EUUzJCuHl^4ep_?QK zTy;eWXH>Yv^Wc^ga=<;Sa7HaNfn&T!Ikatmh?^PXvI_SB%_j`5>_@aPt5dZ8nPNrn z*Z}w_&GA%{!Zc7@@6RenXmxxxT|Buc007nJ7Hfp!v@lpx9A z@w9r0&8&LaH_&x=@;vNCwBSx0fIWw1+(dDE8QpR(l4}(BTOUm}A&C9MKzAV9%LK8P zR2f5`(#BCYKE6&*xE%(Bx6Lqam)ewTJ1mV=IA@<*BdxwqEmyTan&6Kx4ibwskIO%Y z5l34mJkpp0=6N=?k}R_internalAddGeneratedFile( + ' +ü +*google/ads/admanager/v1/team_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"E +GetTeamRequest3 +name ( B%àAúA +admanager.googleapis.com/Team"¼ +ListTeamsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA +skip (BàA"n +ListTeamsResponse, +teams ( 2.google.ads.admanager.v1.Team +next_page_token (  + +total_size (" +CreateTeamRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network0 +team ( 2.google.ads.admanager.v1.TeamBàA"– +BatchCreateTeamsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkA +requests ( 2*.google.ads.admanager.v1.CreateTeamRequestBàA"H +BatchCreateTeamsResponse, +teams ( 2.google.ads.admanager.v1.Team"{ +UpdateTeamRequest0 +team ( 2.google.ads.admanager.v1.TeamBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"– +BatchUpdateTeamsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkA +requests ( 2*.google.ads.admanager.v1.UpdateTeamRequestBàA"H +BatchUpdateTeamsResponse, +teams ( 2.google.ads.admanager.v1.Team"‹ +BatchActivateTeamsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network4 +names ( B%àAúA +admanager.googleapis.com/Team" +BatchActivateTeamsResponse" +BatchDeactivateTeamsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network4 +names ( B%àAúA +admanager.googleapis.com/Team" +BatchDeactivateTeamsResponse2º + TeamService +GetTeam\'.google.ads.admanager.v1.GetTeamRequest.google.ads.admanager.v1.Team",ÚAname‚Óä“/v1/{name=networks/*/teams/*}’ + ListTeams).google.ads.admanager.v1.ListTeamsRequest*.google.ads.admanager.v1.ListTeamsResponse".ÚAparent‚Óä“/v1/{parent=networks/*}/teams’ + +CreateTeam*.google.ads.admanager.v1.CreateTeamRequest.google.ads.admanager.v1.Team"9ÚA parent,team‚Óä“%"/v1/{parent=networks/*}/teams:team¿ +BatchCreateTeams0.google.ads.admanager.v1.BatchCreateTeamsRequest1.google.ads.admanager.v1.BatchCreateTeamsResponse"FÚAparent,requests‚Óä“.")/v1/{parent=networks/*}/teams:batchCreate:*œ + +UpdateTeam*.google.ads.admanager.v1.UpdateTeamRequest.google.ads.admanager.v1.Team"CÚAteam,update_mask‚Óä“*2"/v1/{team.name=networks/*/teams/*}:team¿ +BatchUpdateTeams0.google.ads.admanager.v1.BatchUpdateTeamsRequest1.google.ads.admanager.v1.BatchUpdateTeamsResponse"FÚAparent,requests‚Óä“.")/v1/{parent=networks/*}/teams:batchUpdate:*Ä +BatchActivateTeams2.google.ads.admanager.v1.BatchActivateTeamsRequest3.google.ads.admanager.v1.BatchActivateTeamsResponse"EÚA parent,names‚Óä“0"+/v1/{parent=networks/*}/teams:batchActivate:*Ì +BatchDeactivateTeams4.google.ads.admanager.v1.BatchDeactivateTeamsRequest5.google.ads.admanager.v1.BatchDeactivateTeamsResponse"GÚA parent,names‚Óä“2"-/v1/{parent=networks/*}/teams:batchDeactivate:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÄ +com.google.ads.admanager.v1BTeamServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TimeUnitEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TimeUnitEnum.php new file mode 100644 index 0000000000000000000000000000000000000000..d30188fe4251059fbae3bfdb11a9585e9161c57e GIT binary patch literal 979 zcmb7C-EPw`6sGOg6>AqE5}JS;GbXK*MyiUtlmabDy9m-mTUrE)RJnDkU*y8ia-eCyobA!}6Yr(k#hYfOQxpNfhG_3NsNaL{WrU=ce1?WQFHB zC47!)zS0U}04Q4FEJXo^V|Qp{jzYwdKQ1`@L70iCIQ&_+2S5;`EQ6llnhGjYFoCZC ziYLt%F$rMC5f`r$lFf+#5EPRy;x>J_L~(`%!ENj^rvWDkg|fh*0dAkcl2c+&(nQ?8 z4>y`z*$~kT-=Z8dielfuS-?oj6Xpu2u1A<}+bDP1XVtNijx1rj)TryXMD`(PIo>@T zLWX(HXs^&M3D(=MLfP|Iq|z}6!|kynF{1VsD9cX4j|MpZpV_EKC0Y}c6j4nYclmrrKYyP-i0&0RO;#h zXc&W!N<(gaFwJ+$o_Zhb+s?$hQ1;bB(0Xr;Oi8IUCDwHezhd6(wER$9YfHSk2( zQoBR$@WDo#bW1TlxAy5xg^rRK(MU^J)QK=HOxY<@C?(Rt|GK!hZN$&|(YSD_CR{4Q zE}gE;y1zFWzc8>^s+=z@{HOl7EYo#SCzmRz>$C2nSqOM>x*gql>4+Tz-D#czS^8uR H)&TqkOU^LY literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserMessages.php new file mode 100644 index 0000000000000000000000000000000000000000..c392dc476e78543d7c3e76807d5865b280ed23a1 GIT binary patch literal 1493 zcmb7E-EQ1O6lQ<2yEzm}_a>V_VG60brQp@l8{`mRtScfL7uzWX7&%HRujh$(7eF=m%9 znY}`mX=PQU5_Xx7$EaDPrkPAodyE~Nu%Az!v7Zi}KD$S$M&&v}pG}mSBsdVUp*0n$ zn4liahJ)Oo=2J9=48|*P0a8JhOhm{IPlIE$A{JJJhXq79iVdv_BD@&x0Yr%~hMg1C zafJl0fzgxYmx+v+vBJ`}D-D;av{EGU6&173#v(CD0M}#3c^X-%Qsxp)(g^zxS&8Xl zcQZxB@3RG`Q>O=M5k5^V>Qp4*0h&n5%qo3Kp}s#syHwFx`VXt$IygCI{gR{aUn9BC ztj=-$?~G}*xlZ>A-VR{C{0iTtSSG_K5|cQ0Kw`~Iq`706AgXILHLJF^NYzW!cT zg^%KRS?3dKiT;wAvpAJv?H z3pQ{nWYTM_9ChdT7MfZm*lQN{`)@||e@36d-4)%Es>r1A=%x(LDEO%1GJDVx)Mhj6 zwJ5h!l4&~6U3edVEqjR**Y@I3qgZ6Y;dPwunBFd#|aXA2)Fo}0znr(;)Jwba_|Z4 z@EdCk{;I*pB)4}%2L*S|32!kliW_`dd;Vh;JyD5BC!W%i!35J{E)7=4cx{gDEf4#T z`qp7Fs5}}}w2sSJ=Uoi{UUWyFbDV-4T0G; literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php new file mode 100644 index 000000000000..c5ebf125975b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + ' +¨ +*google/ads/admanager/v1/user_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"E +GetUserRequest3 +name ( B%àAúA +admanager.googleapis.com/User2× + UserService +GetUser\'.google.ads.admanager.v1.GetUserRequest.google.ads.admanager.v1.User",ÚAname‚Óä“/v1/{name=networks/*/users/*}GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÄ +com.google.ads.admanager.v1BUserServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/VideoPositionEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/VideoPositionEnum.php new file mode 100644 index 0000000000000000000000000000000000000000..4d658f86e8d15e739b88d6c14eebe5776b1c8e1f GIT binary patch literal 975 zcmb7C;cDA35MGk84sC-jKUU~q+`2+j*c{CMIm@NS--l1xRfgWcm@p!+Brz<1fV?7*2`+iWQ&<+O z6%i2ebw*PnECAPssXv2}>&;%P)SMS0A`T>+Cn@RTI9ImD3@1c%H+FYJW5O31 !G zEeI>tmO)2|;Wf!K91$1?!wHc%#uA5P0~8M8Tv-Ja&g~vTQHt{%<{B`l@J0#_{X(F= ztXQTrf?Q&$wqu$vC{s0YN`I<%^Ei43G8ldF&b*Pk|De5xT7&cR{YLu<+M9Upg|80H z_EYp&#m~&CrCq_r$Q&LHuN&y4QloVbt>KHE`dS}mU_s;C=PD)PDQ1bqMbb?OGg|DH zE}T)V-dzRv>R1119*m7REhSE6lTzi@+`hi?ghsb&seGYQ?%(ENndUeuPcN0zapv~& bksinternalAddGeneratedFile( + ' + +*google/ads/admanager/v1/web_property.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto"Ê + WebProperty +name ( BàA +web_property_code ( BàAm + product_type (2R.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProductBàA +web_property_id (BàA:{êAx +$admanager.googleapis.com/WebProperty4networks/{network_code}/webProperties/{web_property}* webProperties2 webPropertyBÄ +com.google.ads.admanager.v1BWebPropertyProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreak.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreak.php new file mode 100644 index 000000000000..7e1ee332c853 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreak.php @@ -0,0 +1,679 @@ +google.ads.admanager.v1.AdBreak + */ +class AdBreak extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `AdBreak`. + * This field uses the `LiveStreamEvent` resource's asset key in the + * URI, even if the ad break was created, updated, or queried using the custom + * asset key. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. Immutable. `AdBreak` ID. + * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs + * have a maximum length of 63 characters. + * If not set, an ad break ID is generated as a UUID string. + * + * Generated from protobuf field optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $ad_break_id = null; + /** + * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad + * break belongs to. Either an asset key or a custom asset key must be + * provided for creation. + * + * Generated from protobuf field optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $asset_key = null; + /** + * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the + * ad break belongs to. Either an asset key or a custom asset key must be + * provided for creation. + * + * Generated from protobuf field optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $custom_asset_key = null; + /** + * Optional. The expected start time of the ad break. + * When set, the scheduled ad break will be decisioned shortly before the + * expected start time. + * If this field is not set, ad decisioning begins immediately. + * An ad break can be created up to six hours before the expected start time. + * + * Generated from protobuf field optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $expected_start_time = null; + /** + * Required. The duration of the `AdBreak`. + * An expected duration in seconds with up to nine fractional digits, ending + * with `s`, for example, `3.5s`. This value will be updated to match the + * actual duration from the manifest or pod request after the ad break's state + * is + * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE]. + * + * Generated from protobuf field optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $duration = null; + /** + * Output only. The state of the `AdBreak`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $break_state = null; + /** + * Output only. The sequence id of the `AdBreak`. + * The unique sequence number of the created ad break. This value is only set + * after the `AdBreak` starts decisioning indicated by the ad break state's + * being + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED] + * . + * + * Generated from protobuf field optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $break_sequence = null; + /** + * Optional. The pod template name of the `AdBreak`. + * This field is the required unique name across all pod templates in the + * network, not the display name. + * + * Generated from protobuf field optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $pod_template_name = null; + /** + * Optional. The key-value pairs to be included on the ad requests for this + * `AdBreak`. Key-value pairs to include on ad requests for this break for + * custom criteria targeting in Google Ad Manager, separated by `=` and joined + * by + * `&`. + * Format:"key1=value&key2=value" + * + * Generated from protobuf field optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $custom_params = null; + /** + * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`. + * This field can include the `splice_insert()` or `time_signal()` command. + * **Examples** + * * `time_signal()` + * ``` + * /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg== + * ``` + * * `splice_insert()` + * ``` + * /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo= + * ``` + * + * Generated from protobuf field optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $scte_35_cue_out = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `AdBreak`. + * This field uses the `LiveStreamEvent` resource's asset key in the + * URI, even if the ad break was created, updated, or queried using the custom + * asset key. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * @type string $ad_break_id + * Optional. Immutable. `AdBreak` ID. + * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs + * have a maximum length of 63 characters. + * If not set, an ad break ID is generated as a UUID string. + * @type string $asset_key + * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad + * break belongs to. Either an asset key or a custom asset key must be + * provided for creation. + * @type string $custom_asset_key + * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the + * ad break belongs to. Either an asset key or a custom asset key must be + * provided for creation. + * @type \Google\Protobuf\Timestamp $expected_start_time + * Optional. The expected start time of the ad break. + * When set, the scheduled ad break will be decisioned shortly before the + * expected start time. + * If this field is not set, ad decisioning begins immediately. + * An ad break can be created up to six hours before the expected start time. + * @type \Google\Protobuf\Duration $duration + * Required. The duration of the `AdBreak`. + * An expected duration in seconds with up to nine fractional digits, ending + * with `s`, for example, `3.5s`. This value will be updated to match the + * actual duration from the manifest or pod request after the ad break's state + * is + * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE]. + * @type int $break_state + * Output only. The state of the `AdBreak`. + * @type int|string $break_sequence + * Output only. The sequence id of the `AdBreak`. + * The unique sequence number of the created ad break. This value is only set + * after the `AdBreak` starts decisioning indicated by the ad break state's + * being + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED] + * . + * @type string $pod_template_name + * Optional. The pod template name of the `AdBreak`. + * This field is the required unique name across all pod templates in the + * network, not the display name. + * @type string $custom_params + * Optional. The key-value pairs to be included on the ad requests for this + * `AdBreak`. Key-value pairs to include on ad requests for this break for + * custom criteria targeting in Google Ad Manager, separated by `=` and joined + * by + * `&`. + * Format:"key1=value&key2=value" + * @type string $scte_35_cue_out + * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`. + * This field can include the `splice_insert()` or `time_signal()` command. + * **Examples** + * * `time_signal()` + * ``` + * /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg== + * ``` + * * `splice_insert()` + * ``` + * /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo= + * ``` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdBreakMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `AdBreak`. + * This field uses the `LiveStreamEvent` resource's asset key in the + * URI, even if the ad break was created, updated, or queried using the custom + * asset key. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `AdBreak`. + * This field uses the `LiveStreamEvent` resource's asset key in the + * URI, even if the ad break was created, updated, or queried using the custom + * asset key. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Immutable. `AdBreak` ID. + * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs + * have a maximum length of 63 characters. + * If not set, an ad break ID is generated as a UUID string. + * + * Generated from protobuf field optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAdBreakId() + { + return isset($this->ad_break_id) ? $this->ad_break_id : ''; + } + + public function hasAdBreakId() + { + return isset($this->ad_break_id); + } + + public function clearAdBreakId() + { + unset($this->ad_break_id); + } + + /** + * Optional. Immutable. `AdBreak` ID. + * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs + * have a maximum length of 63 characters. + * If not set, an ad break ID is generated as a UUID string. + * + * Generated from protobuf field optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAdBreakId($var) + { + GPBUtil::checkString($var, True); + $this->ad_break_id = $var; + + return $this; + } + + /** + * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad + * break belongs to. Either an asset key or a custom asset key must be + * provided for creation. + * + * Generated from protobuf field optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAssetKey() + { + return isset($this->asset_key) ? $this->asset_key : ''; + } + + public function hasAssetKey() + { + return isset($this->asset_key); + } + + public function clearAssetKey() + { + unset($this->asset_key); + } + + /** + * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad + * break belongs to. Either an asset key or a custom asset key must be + * provided for creation. + * + * Generated from protobuf field optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAssetKey($var) + { + GPBUtil::checkString($var, True); + $this->asset_key = $var; + + return $this; + } + + /** + * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the + * ad break belongs to. Either an asset key or a custom asset key must be + * provided for creation. + * + * Generated from protobuf field optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getCustomAssetKey() + { + return isset($this->custom_asset_key) ? $this->custom_asset_key : ''; + } + + public function hasCustomAssetKey() + { + return isset($this->custom_asset_key); + } + + public function clearCustomAssetKey() + { + unset($this->custom_asset_key); + } + + /** + * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the + * ad break belongs to. Either an asset key or a custom asset key must be + * provided for creation. + * + * Generated from protobuf field optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setCustomAssetKey($var) + { + GPBUtil::checkString($var, True); + $this->custom_asset_key = $var; + + return $this; + } + + /** + * Optional. The expected start time of the ad break. + * When set, the scheduled ad break will be decisioned shortly before the + * expected start time. + * If this field is not set, ad decisioning begins immediately. + * An ad break can be created up to six hours before the expected start time. + * + * Generated from protobuf field optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpectedStartTime() + { + return $this->expected_start_time; + } + + public function hasExpectedStartTime() + { + return isset($this->expected_start_time); + } + + public function clearExpectedStartTime() + { + unset($this->expected_start_time); + } + + /** + * Optional. The expected start time of the ad break. + * When set, the scheduled ad break will be decisioned shortly before the + * expected start time. + * If this field is not set, ad decisioning begins immediately. + * An ad break can be created up to six hours before the expected start time. + * + * Generated from protobuf field optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpectedStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expected_start_time = $var; + + return $this; + } + + /** + * Required. The duration of the `AdBreak`. + * An expected duration in seconds with up to nine fractional digits, ending + * with `s`, for example, `3.5s`. This value will be updated to match the + * actual duration from the manifest or pod request after the ad break's state + * is + * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE]. + * + * Generated from protobuf field optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Duration|null + */ + public function getDuration() + { + return $this->duration; + } + + public function hasDuration() + { + return isset($this->duration); + } + + public function clearDuration() + { + unset($this->duration); + } + + /** + * Required. The duration of the `AdBreak`. + * An expected duration in seconds with up to nine fractional digits, ending + * with `s`, for example, `3.5s`. This value will be updated to match the + * actual duration from the manifest or pod request after the ad break's state + * is + * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE]. + * + * Generated from protobuf field optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->duration = $var; + + return $this; + } + + /** + * Output only. The state of the `AdBreak`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getBreakState() + { + return isset($this->break_state) ? $this->break_state : 0; + } + + public function hasBreakState() + { + return isset($this->break_state); + } + + public function clearBreakState() + { + unset($this->break_state); + } + + /** + * Output only. The state of the `AdBreak`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setBreakState($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\AdBreakStateEnum\AdBreakState::class); + $this->break_state = $var; + + return $this; + } + + /** + * Output only. The sequence id of the `AdBreak`. + * The unique sequence number of the created ad break. This value is only set + * after the `AdBreak` starts decisioning indicated by the ad break state's + * being + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED] + * . + * + * Generated from protobuf field optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getBreakSequence() + { + return isset($this->break_sequence) ? $this->break_sequence : 0; + } + + public function hasBreakSequence() + { + return isset($this->break_sequence); + } + + public function clearBreakSequence() + { + unset($this->break_sequence); + } + + /** + * Output only. The sequence id of the `AdBreak`. + * The unique sequence number of the created ad break. This value is only set + * after the `AdBreak` starts decisioning indicated by the ad break state's + * being + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED] + * . + * + * Generated from protobuf field optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setBreakSequence($var) + { + GPBUtil::checkInt64($var); + $this->break_sequence = $var; + + return $this; + } + + /** + * Optional. The pod template name of the `AdBreak`. + * This field is the required unique name across all pod templates in the + * network, not the display name. + * + * Generated from protobuf field optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPodTemplateName() + { + return isset($this->pod_template_name) ? $this->pod_template_name : ''; + } + + public function hasPodTemplateName() + { + return isset($this->pod_template_name); + } + + public function clearPodTemplateName() + { + unset($this->pod_template_name); + } + + /** + * Optional. The pod template name of the `AdBreak`. + * This field is the required unique name across all pod templates in the + * network, not the display name. + * + * Generated from protobuf field optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPodTemplateName($var) + { + GPBUtil::checkString($var, True); + $this->pod_template_name = $var; + + return $this; + } + + /** + * Optional. The key-value pairs to be included on the ad requests for this + * `AdBreak`. Key-value pairs to include on ad requests for this break for + * custom criteria targeting in Google Ad Manager, separated by `=` and joined + * by + * `&`. + * Format:"key1=value&key2=value" + * + * Generated from protobuf field optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCustomParams() + { + return isset($this->custom_params) ? $this->custom_params : ''; + } + + public function hasCustomParams() + { + return isset($this->custom_params); + } + + public function clearCustomParams() + { + unset($this->custom_params); + } + + /** + * Optional. The key-value pairs to be included on the ad requests for this + * `AdBreak`. Key-value pairs to include on ad requests for this break for + * custom criteria targeting in Google Ad Manager, separated by `=` and joined + * by + * `&`. + * Format:"key1=value&key2=value" + * + * Generated from protobuf field optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCustomParams($var) + { + GPBUtil::checkString($var, True); + $this->custom_params = $var; + + return $this; + } + + /** + * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`. + * This field can include the `splice_insert()` or `time_signal()` command. + * **Examples** + * * `time_signal()` + * ``` + * /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg== + * ``` + * * `splice_insert()` + * ``` + * /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo= + * ``` + * + * Generated from protobuf field optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getScte35CueOut() + { + return isset($this->scte_35_cue_out) ? $this->scte_35_cue_out : ''; + } + + public function hasScte35CueOut() + { + return isset($this->scte_35_cue_out); + } + + public function clearScte35CueOut() + { + unset($this->scte_35_cue_out); + } + + /** + * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`. + * This field can include the `splice_insert()` or `time_signal()` command. + * **Examples** + * * `time_signal()` + * ``` + * /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg== + * ``` + * * `splice_insert()` + * ``` + * /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo= + * ``` + * + * Generated from protobuf field optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setScte35CueOut($var) + { + GPBUtil::checkString($var, True); + $this->scte_35_cue_out = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum.php new file mode 100644 index 000000000000..7aab2ff96454 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.AdBreakStateEnum + */ +class AdBreakStateEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EarlyAdBreakNotificationEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum/AdBreakState.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum/AdBreakState.php new file mode 100644 index 000000000000..18aba728fca4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum/AdBreakState.php @@ -0,0 +1,74 @@ +google.ads.admanager.v1.AdBreakStateEnum.AdBreakState + */ +class AdBreakState +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum AD_BREAK_STATE_UNSPECIFIED = 0; + */ + const AD_BREAK_STATE_UNSPECIFIED = 0; + /** + * The ad break's decisioning has finished. You can delete, but not update + * the ad break. + * + * Generated from protobuf enum DECISIONED = 1; + */ + const DECISIONED = 1; + /** + * The ad break has started serving to users. You cannot delete or update + * the ad break. + * + * Generated from protobuf enum COMPLETE = 2; + */ + const COMPLETE = 2; + /** + * The ad break is scheduled and decisioning will start later. You can + * delete or update the ad break. + * + * Generated from protobuf enum SCHEDULED = 3; + */ + const SCHEDULED = 3; + + private static $valueToName = [ + self::AD_BREAK_STATE_UNSPECIFIED => 'AD_BREAK_STATE_UNSPECIFIED', + self::DECISIONED => 'DECISIONED', + self::COMPLETE => 'COMPLETE', + self::SCHEDULED => 'SCHEDULED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AdBreakState::class, \Google\Ads\AdManager\V1\AdBreakStateEnum_AdBreakState::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php new file mode 100644 index 000000000000..2db8e2369455 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php @@ -0,0 +1,241 @@ +google.ads.admanager.v1.AdManagerError + */ +class AdManagerError extends \Google\Protobuf\Internal\Message +{ + /** + * The unique identifying string for this error. + * + * Generated from protobuf field string error_code = 1; + */ + protected $error_code = ''; + /** + * A publisher appropriate explanation of this error. + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + /** + * The field path that triggered this error. + * + * Generated from protobuf field string field_path = 3; + */ + protected $field_path = ''; + /** + * The value that triggered this error. + * + * Generated from protobuf field string trigger = 4; + */ + protected $trigger = ''; + /** + * The stack trace that accompanies this error. + * + * Generated from protobuf field string stack_trace = 5; + */ + protected $stack_trace = ''; + /** + * A list of messages that carry any additional error details. + * + * Generated from protobuf field repeated .google.protobuf.Any details = 6; + */ + private $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $error_code + * The unique identifying string for this error. + * @type string $message + * A publisher appropriate explanation of this error. + * @type string $field_path + * The field path that triggered this error. + * @type string $trigger + * The value that triggered this error. + * @type string $stack_trace + * The stack trace that accompanies this error. + * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $details + * A list of messages that carry any additional error details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdmanagerError::initOnce(); + parent::__construct($data); + } + + /** + * The unique identifying string for this error. + * + * Generated from protobuf field string error_code = 1; + * @return string + */ + public function getErrorCode() + { + return $this->error_code; + } + + /** + * The unique identifying string for this error. + * + * Generated from protobuf field string error_code = 1; + * @param string $var + * @return $this + */ + public function setErrorCode($var) + { + GPBUtil::checkString($var, True); + $this->error_code = $var; + + return $this; + } + + /** + * A publisher appropriate explanation of this error. + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * A publisher appropriate explanation of this error. + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The field path that triggered this error. + * + * Generated from protobuf field string field_path = 3; + * @return string + */ + public function getFieldPath() + { + return $this->field_path; + } + + /** + * The field path that triggered this error. + * + * Generated from protobuf field string field_path = 3; + * @param string $var + * @return $this + */ + public function setFieldPath($var) + { + GPBUtil::checkString($var, True); + $this->field_path = $var; + + return $this; + } + + /** + * The value that triggered this error. + * + * Generated from protobuf field string trigger = 4; + * @return string + */ + public function getTrigger() + { + return $this->trigger; + } + + /** + * The value that triggered this error. + * + * Generated from protobuf field string trigger = 4; + * @param string $var + * @return $this + */ + public function setTrigger($var) + { + GPBUtil::checkString($var, True); + $this->trigger = $var; + + return $this; + } + + /** + * The stack trace that accompanies this error. + * + * Generated from protobuf field string stack_trace = 5; + * @return string + */ + public function getStackTrace() + { + return $this->stack_trace; + } + + /** + * The stack trace that accompanies this error. + * + * Generated from protobuf field string stack_trace = 5; + * @param string $var + * @return $this + */ + public function setStackTrace($var) + { + GPBUtil::checkString($var, True); + $this->stack_trace = $var; + + return $this; + } + + /** + * A list of messages that carry any additional error details. + * + * Generated from protobuf field repeated .google.protobuf.Any details = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDetails() + { + return $this->details; + } + + /** + * A list of messages that carry any additional error details. + * + * Generated from protobuf field repeated .google.protobuf.Any details = 6; + * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->details = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAd.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAd.php new file mode 100644 index 000000000000..484822fd3018 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAd.php @@ -0,0 +1,234 @@ +google.ads.admanager.v1.AdReviewCenterAd + */ +class AdReviewCenterAd extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the AdReviewCenterAd. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. `AdReviewCenterAd` ID. + * + * Generated from protobuf field string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ad_review_center_ad_id = ''; + /** + * Output only. Specifies the ExchangeSyndicationProduct for this + * AdReviewCenterAd. + * + * Generated from protobuf field .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $product_type = 0; + /** + * The status of the AdReviewCenterAd. + * + * Generated from protobuf field .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + */ + protected $status = 0; + /** + * Output only. The preview URL that can be embedded or accessed directly + * which will present the rendered contents of the ad. (This URL expires 72 + * hours after being retrieved.). + * + * Generated from protobuf field optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $preview_url = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the AdReviewCenterAd. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * @type string $ad_review_center_ad_id + * Output only. `AdReviewCenterAd` ID. + * @type int $product_type + * Output only. Specifies the ExchangeSyndicationProduct for this + * AdReviewCenterAd. + * @type int $status + * The status of the AdReviewCenterAd. + * @type string $preview_url + * Output only. The preview URL that can be embedded or accessed directly + * which will present the rendered contents of the ad. (This URL expires 72 + * hours after being retrieved.). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the AdReviewCenterAd. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the AdReviewCenterAd. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. `AdReviewCenterAd` ID. + * + * Generated from protobuf field string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAdReviewCenterAdId() + { + return $this->ad_review_center_ad_id; + } + + /** + * Output only. `AdReviewCenterAd` ID. + * + * Generated from protobuf field string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAdReviewCenterAdId($var) + { + GPBUtil::checkString($var, True); + $this->ad_review_center_ad_id = $var; + + return $this; + } + + /** + * Output only. Specifies the ExchangeSyndicationProduct for this + * AdReviewCenterAd. + * + * Generated from protobuf field .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getProductType() + { + return $this->product_type; + } + + /** + * Output only. Specifies the ExchangeSyndicationProduct for this + * AdReviewCenterAd. + * + * Generated from protobuf field .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setProductType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ExchangeSyndicationProductEnum\ExchangeSyndicationProduct::class); + $this->product_type = $var; + + return $this; + } + + /** + * The status of the AdReviewCenterAd. + * + * Generated from protobuf field .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * The status of the AdReviewCenterAd. + * + * Generated from protobuf field .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\AdReviewCenterAdStatusEnum\AdReviewCenterAdStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Output only. The preview URL that can be embedded or accessed directly + * which will present the rendered contents of the ad. (This URL expires 72 + * hours after being retrieved.). + * + * Generated from protobuf field optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPreviewUrl() + { + return isset($this->preview_url) ? $this->preview_url : ''; + } + + public function hasPreviewUrl() + { + return isset($this->preview_url); + } + + public function clearPreviewUrl() + { + unset($this->preview_url); + } + + /** + * Output only. The preview URL that can be embedded or accessed directly + * which will present the rendered contents of the ad. (This URL expires 72 + * hours after being retrieved.). + * + * Generated from protobuf field optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPreviewUrl($var) + { + GPBUtil::checkString($var, True); + $this->preview_url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum.php new file mode 100644 index 000000000000..3803c007729b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.AdReviewCenterAdStatusEnum + */ +class AdReviewCenterAdStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php new file mode 100644 index 000000000000..9caf266030dd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus + */ +class AdReviewCenterAdStatus +{ + /** + * Not specified value + * + * Generated from protobuf enum AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED = 0; + */ + const AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED = 0; + /** + * This ad has been explicitly allowed to serve. + * + * Generated from protobuf enum ALLOWED = 1; + */ + const ALLOWED = 1; + /** + * This ad has been explicitly blocked from serving. + * + * Generated from protobuf enum BLOCKED = 2; + */ + const BLOCKED = 2; + /** + * This ad is allowed to serve by default and has not been reviewed. + * + * Generated from protobuf enum UNREVIEWED = 3; + */ + const UNREVIEWED = 3; + + private static $valueToName = [ + self::AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED => 'AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED', + self::ALLOWED => 'ALLOWED', + self::BLOCKED => 'BLOCKED', + self::UNREVIEWED => 'UNREVIEWED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AdReviewCenterAdStatus::class, \Google\Ads\AdManager\V1\AdReviewCenterAdStatusEnum_AdReviewCenterAdStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php new file mode 100644 index 000000000000..55051c449b90 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php @@ -0,0 +1,1180 @@ +google.ads.admanager.v1.AdUnit + */ +class AdUnit extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the AdUnit. + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. AdUnit ID. + * + * Generated from protobuf field int64 ad_unit_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ad_unit_id = 0; + /** + * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except + * for the root ad unit, which is created by Google. Format: + * "networks/{network_code}/adUnits/{ad_unit_id}" + * + * Generated from protobuf field optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $parent_ad_unit = null; + /** + * Output only. The path to this AdUnit in the ad unit hierarchy represented + * as a list from the root to this ad unit's parent. For root ad units, this + * list is empty. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $parent_path; + /** + * Required. The display name of the ad unit. Its maximum length is 255 + * characters. + * + * Generated from protobuf field optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. Immutable. A string used to uniquely identify the ad unit for the + * purposes of serving the ad. This attribute can be set during ad unit + * creation. If it is not provided, it will be assigned by Google based on the + * ad unit ID. + * + * Generated from protobuf field optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $ad_unit_code = null; + /** + * Output only. The status of this ad unit. It defaults to ACTIVE. + * + * Generated from protobuf field optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Optional. The target window directly applied to this AdUnit. + * If this field is not set, this AdUnit uses the target window specified in + * effectiveTargetWindow. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $applied_target_window = null; + /** + * Output only. Non-empty default. The target window of this AdUnit. This + * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit + * in the hierarchy specifies it. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $effective_target_window = null; + /** + * Optional. The resource names of Teams directly applied to this AdUnit. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $applied_teams; + /** + * Output only. The resource names of all Teams that this AdUnit is on as well + * as those inherited from parent AdUnits. Format: + * "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + private $teams; + /** + * Optional. A description of the ad unit. The maximum length is 65,535 + * characters. + * + * Generated from protobuf field optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = null; + /** + * Optional. If this field is set to true, then the AdUnit will not be + * implicitly targeted when its parent is. Traffickers must explicitly + * target such an AdUnit or else no line items will serve to it. This + * feature is only available for Ad Manager 360 accounts. + * + * Generated from protobuf field optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $explicitly_targeted = null; + /** + * Output only. This field is set to true if the ad unit has any children. + * + * Generated from protobuf field optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $has_children = null; + /** + * Output only. The time this AdUnit was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. The sizes that can be served inside this ad unit. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $ad_unit_sizes; + /** + * Optional. Determines what set top box video on demand channel this ad unit + * corresponds to in an external set top box ad campaign system. + * + * Generated from protobuf field optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $external_set_top_box_channel_id = null; + /** + * Optional. The duration after which an Ad Unit will automatically refresh. + * This is only valid for ad units in mobile apps. If not set, the ad unit + * will not refresh. + * + * Generated from protobuf field optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $refresh_delay = null; + /** + * Optional. The set of labels applied directly to this ad unit. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $applied_labels; + /** + * Output only. Contains the set of labels applied directly to the ad unit as + * well as those inherited from the parent ad units. If a label has been + * negated, only the negated label is returned. This attribute is assigned by + * Google. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $effective_applied_labels; + /** + * Optional. The set of label frequency caps applied directly to this ad unit. + * There is a limit of 10 label frequency caps per ad unit. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $applied_label_frequency_caps; + /** + * Output only. The label frequency caps applied directly to the ad unit as + * well as those inherited from parent ad units. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $effective_label_frequency_caps; + /** + * Optional. Non-empty default. The smart size mode for this ad unit. This + * attribute defaults to SmartSizeMode.NONE for fixed sizes. + * + * Generated from protobuf field optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + */ + protected $smart_size_mode = null; + /** + * Optional. The value of AdSense enabled directly applied to this ad unit. If + * not specified this ad unit will inherit the value of + * effectiveAdsenseEnabled from its ancestors. + * + * Generated from protobuf field optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $applied_adsense_enabled = null; + /** + * Output only. Specifies whether or not the AdUnit is enabled for serving ads + * from the AdSense content network. This attribute defaults to the ad unit's + * parent or ancestor's setting if one has been set. If no ancestor of the ad + * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. + * + * Generated from protobuf field optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $effective_adsense_enabled = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the AdUnit. + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * @type int|string $ad_unit_id + * Output only. AdUnit ID. + * @type string $parent_ad_unit + * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except + * for the root ad unit, which is created by Google. Format: + * "networks/{network_code}/adUnits/{ad_unit_id}" + * @type array<\Google\Ads\AdManager\V1\AdUnitParent>|\Google\Protobuf\Internal\RepeatedField $parent_path + * Output only. The path to this AdUnit in the ad unit hierarchy represented + * as a list from the root to this ad unit's parent. For root ad units, this + * list is empty. + * @type string $display_name + * Required. The display name of the ad unit. Its maximum length is 255 + * characters. + * @type string $ad_unit_code + * Optional. Immutable. A string used to uniquely identify the ad unit for the + * purposes of serving the ad. This attribute can be set during ad unit + * creation. If it is not provided, it will be assigned by Google based on the + * ad unit ID. + * @type int $status + * Output only. The status of this ad unit. It defaults to ACTIVE. + * @type int $applied_target_window + * Optional. The target window directly applied to this AdUnit. + * If this field is not set, this AdUnit uses the target window specified in + * effectiveTargetWindow. + * @type int $effective_target_window + * Output only. Non-empty default. The target window of this AdUnit. This + * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit + * in the hierarchy specifies it. + * @type array|\Google\Protobuf\Internal\RepeatedField $applied_teams + * Optional. The resource names of Teams directly applied to this AdUnit. + * Format: "networks/{network_code}/teams/{team_id}" + * @type array|\Google\Protobuf\Internal\RepeatedField $teams + * Output only. The resource names of all Teams that this AdUnit is on as well + * as those inherited from parent AdUnits. Format: + * "networks/{network_code}/teams/{team_id}" + * @type string $description + * Optional. A description of the ad unit. The maximum length is 65,535 + * characters. + * @type bool $explicitly_targeted + * Optional. If this field is set to true, then the AdUnit will not be + * implicitly targeted when its parent is. Traffickers must explicitly + * target such an AdUnit or else no line items will serve to it. This + * feature is only available for Ad Manager 360 accounts. + * @type bool $has_children + * Output only. This field is set to true if the ad unit has any children. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time this AdUnit was last modified. + * @type array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $ad_unit_sizes + * Optional. The sizes that can be served inside this ad unit. + * @type string $external_set_top_box_channel_id + * Optional. Determines what set top box video on demand channel this ad unit + * corresponds to in an external set top box ad campaign system. + * @type \Google\Protobuf\Duration $refresh_delay + * Optional. The duration after which an Ad Unit will automatically refresh. + * This is only valid for ad units in mobile apps. If not set, the ad unit + * will not refresh. + * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $applied_labels + * Optional. The set of labels applied directly to this ad unit. + * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $effective_applied_labels + * Output only. Contains the set of labels applied directly to the ad unit as + * well as those inherited from the parent ad units. If a label has been + * negated, only the negated label is returned. This attribute is assigned by + * Google. + * @type array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $applied_label_frequency_caps + * Optional. The set of label frequency caps applied directly to this ad unit. + * There is a limit of 10 label frequency caps per ad unit. + * @type array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $effective_label_frequency_caps + * Output only. The label frequency caps applied directly to the ad unit as + * well as those inherited from parent ad units. + * @type int $smart_size_mode + * Optional. Non-empty default. The smart size mode for this ad unit. This + * attribute defaults to SmartSizeMode.NONE for fixed sizes. + * @type bool $applied_adsense_enabled + * Optional. The value of AdSense enabled directly applied to this ad unit. If + * not specified this ad unit will inherit the value of + * effectiveAdsenseEnabled from its ancestors. + * @type bool $effective_adsense_enabled + * Output only. Specifies whether or not the AdUnit is enabled for serving ads + * from the AdSense content network. This attribute defaults to the ad unit's + * parent or ancestor's setting if one has been set. If no ancestor of the ad + * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the AdUnit. + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the AdUnit. + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. AdUnit ID. + * + * Generated from protobuf field int64 ad_unit_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getAdUnitId() + { + return $this->ad_unit_id; + } + + /** + * Output only. AdUnit ID. + * + * Generated from protobuf field int64 ad_unit_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setAdUnitId($var) + { + GPBUtil::checkInt64($var); + $this->ad_unit_id = $var; + + return $this; + } + + /** + * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except + * for the root ad unit, which is created by Google. Format: + * "networks/{network_code}/adUnits/{ad_unit_id}" + * + * Generated from protobuf field optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getParentAdUnit() + { + return isset($this->parent_ad_unit) ? $this->parent_ad_unit : ''; + } + + public function hasParentAdUnit() + { + return isset($this->parent_ad_unit); + } + + public function clearParentAdUnit() + { + unset($this->parent_ad_unit); + } + + /** + * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except + * for the root ad unit, which is created by Google. Format: + * "networks/{network_code}/adUnits/{ad_unit_id}" + * + * Generated from protobuf field optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParentAdUnit($var) + { + GPBUtil::checkString($var, True); + $this->parent_ad_unit = $var; + + return $this; + } + + /** + * Output only. The path to this AdUnit in the ad unit hierarchy represented + * as a list from the root to this ad unit's parent. For root ad units, this + * list is empty. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getParentPath() + { + return $this->parent_path; + } + + /** + * Output only. The path to this AdUnit in the ad unit hierarchy represented + * as a list from the root to this ad unit's parent. For root ad units, this + * list is empty. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Ads\AdManager\V1\AdUnitParent>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setParentPath($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitParent::class); + $this->parent_path = $arr; + + return $this; + } + + /** + * Required. The display name of the ad unit. Its maximum length is 255 + * characters. + * + * Generated from protobuf field optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The display name of the ad unit. Its maximum length is 255 + * characters. + * + * Generated from protobuf field optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Immutable. A string used to uniquely identify the ad unit for the + * purposes of serving the ad. This attribute can be set during ad unit + * creation. If it is not provided, it will be assigned by Google based on the + * ad unit ID. + * + * Generated from protobuf field optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAdUnitCode() + { + return isset($this->ad_unit_code) ? $this->ad_unit_code : ''; + } + + public function hasAdUnitCode() + { + return isset($this->ad_unit_code); + } + + public function clearAdUnitCode() + { + unset($this->ad_unit_code); + } + + /** + * Optional. Immutable. A string used to uniquely identify the ad unit for the + * purposes of serving the ad. This attribute can be set during ad unit + * creation. If it is not provided, it will be assigned by Google based on the + * ad unit ID. + * + * Generated from protobuf field optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAdUnitCode($var) + { + GPBUtil::checkString($var, True); + $this->ad_unit_code = $var; + + return $this; + } + + /** + * Output only. The status of this ad unit. It defaults to ACTIVE. + * + * Generated from protobuf field optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of this ad unit. It defaults to ACTIVE. + * + * Generated from protobuf field optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\AdUnitStatusEnum\AdUnitStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. The target window directly applied to this AdUnit. + * If this field is not set, this AdUnit uses the target window specified in + * effectiveTargetWindow. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getAppliedTargetWindow() + { + return isset($this->applied_target_window) ? $this->applied_target_window : 0; + } + + public function hasAppliedTargetWindow() + { + return isset($this->applied_target_window); + } + + public function clearAppliedTargetWindow() + { + unset($this->applied_target_window); + } + + /** + * Optional. The target window directly applied to this AdUnit. + * If this field is not set, this AdUnit uses the target window specified in + * effectiveTargetWindow. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setAppliedTargetWindow($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TargetWindowEnum\TargetWindow::class); + $this->applied_target_window = $var; + + return $this; + } + + /** + * Output only. Non-empty default. The target window of this AdUnit. This + * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit + * in the hierarchy specifies it. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEffectiveTargetWindow() + { + return isset($this->effective_target_window) ? $this->effective_target_window : 0; + } + + public function hasEffectiveTargetWindow() + { + return isset($this->effective_target_window); + } + + public function clearEffectiveTargetWindow() + { + unset($this->effective_target_window); + } + + /** + * Output only. Non-empty default. The target window of this AdUnit. This + * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit + * in the hierarchy specifies it. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEffectiveTargetWindow($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TargetWindowEnum\TargetWindow::class); + $this->effective_target_window = $var; + + return $this; + } + + /** + * Optional. The resource names of Teams directly applied to this AdUnit. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAppliedTeams() + { + return $this->applied_teams; + } + + /** + * Optional. The resource names of Teams directly applied to this AdUnit. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAppliedTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->applied_teams = $arr; + + return $this; + } + + /** + * Output only. The resource names of all Teams that this AdUnit is on as well + * as those inherited from parent AdUnits. Format: + * "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTeams() + { + return $this->teams; + } + + /** + * Output only. The resource names of all Teams that this AdUnit is on as well + * as those inherited from parent AdUnits. Format: + * "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->teams = $arr; + + return $this; + } + + /** + * Optional. A description of the ad unit. The maximum length is 65,535 + * characters. + * + * Generated from protobuf field optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Optional. A description of the ad unit. The maximum length is 65,535 + * characters. + * + * Generated from protobuf field optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. If this field is set to true, then the AdUnit will not be + * implicitly targeted when its parent is. Traffickers must explicitly + * target such an AdUnit or else no line items will serve to it. This + * feature is only available for Ad Manager 360 accounts. + * + * Generated from protobuf field optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getExplicitlyTargeted() + { + return isset($this->explicitly_targeted) ? $this->explicitly_targeted : false; + } + + public function hasExplicitlyTargeted() + { + return isset($this->explicitly_targeted); + } + + public function clearExplicitlyTargeted() + { + unset($this->explicitly_targeted); + } + + /** + * Optional. If this field is set to true, then the AdUnit will not be + * implicitly targeted when its parent is. Traffickers must explicitly + * target such an AdUnit or else no line items will serve to it. This + * feature is only available for Ad Manager 360 accounts. + * + * Generated from protobuf field optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setExplicitlyTargeted($var) + { + GPBUtil::checkBool($var); + $this->explicitly_targeted = $var; + + return $this; + } + + /** + * Output only. This field is set to true if the ad unit has any children. + * + * Generated from protobuf field optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getHasChildren() + { + return isset($this->has_children) ? $this->has_children : false; + } + + public function hasHasChildren() + { + return isset($this->has_children); + } + + public function clearHasChildren() + { + unset($this->has_children); + } + + /** + * Output only. This field is set to true if the ad unit has any children. + * + * Generated from protobuf field optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setHasChildren($var) + { + GPBUtil::checkBool($var); + $this->has_children = $var; + + return $this; + } + + /** + * Output only. The time this AdUnit was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time this AdUnit was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. The sizes that can be served inside this ad unit. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdUnitSizes() + { + return $this->ad_unit_sizes; + } + + /** + * Optional. The sizes that can be served inside this ad unit. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdUnitSizes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitSize::class); + $this->ad_unit_sizes = $arr; + + return $this; + } + + /** + * Optional. Determines what set top box video on demand channel this ad unit + * corresponds to in an external set top box ad campaign system. + * + * Generated from protobuf field optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return string + * @deprecated + */ + public function getExternalSetTopBoxChannelId() + { + if (isset($this->external_set_top_box_channel_id)) { + @trigger_error('external_set_top_box_channel_id is deprecated.', E_USER_DEPRECATED); + } + return isset($this->external_set_top_box_channel_id) ? $this->external_set_top_box_channel_id : ''; + } + + public function hasExternalSetTopBoxChannelId() + { + if (isset($this->external_set_top_box_channel_id)) { + @trigger_error('external_set_top_box_channel_id is deprecated.', E_USER_DEPRECATED); + } + return isset($this->external_set_top_box_channel_id); + } + + public function clearExternalSetTopBoxChannelId() + { + @trigger_error('external_set_top_box_channel_id is deprecated.', E_USER_DEPRECATED); + unset($this->external_set_top_box_channel_id); + } + + /** + * Optional. Determines what set top box video on demand channel this ad unit + * corresponds to in an external set top box ad campaign system. + * + * Generated from protobuf field optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + * @deprecated + */ + public function setExternalSetTopBoxChannelId($var) + { + @trigger_error('external_set_top_box_channel_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->external_set_top_box_channel_id = $var; + + return $this; + } + + /** + * Optional. The duration after which an Ad Unit will automatically refresh. + * This is only valid for ad units in mobile apps. If not set, the ad unit + * will not refresh. + * + * Generated from protobuf field optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getRefreshDelay() + { + return $this->refresh_delay; + } + + public function hasRefreshDelay() + { + return isset($this->refresh_delay); + } + + public function clearRefreshDelay() + { + unset($this->refresh_delay); + } + + /** + * Optional. The duration after which an Ad Unit will automatically refresh. + * This is only valid for ad units in mobile apps. If not set, the ad unit + * will not refresh. + * + * Generated from protobuf field optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setRefreshDelay($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->refresh_delay = $var; + + return $this; + } + + /** + * Optional. The set of labels applied directly to this ad unit. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAppliedLabels() + { + return $this->applied_labels; + } + + /** + * Optional. The set of labels applied directly to this ad unit. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAppliedLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); + $this->applied_labels = $arr; + + return $this; + } + + /** + * Output only. Contains the set of labels applied directly to the ad unit as + * well as those inherited from the parent ad units. If a label has been + * negated, only the negated label is returned. This attribute is assigned by + * Google. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEffectiveAppliedLabels() + { + return $this->effective_applied_labels; + } + + /** + * Output only. Contains the set of labels applied directly to the ad unit as + * well as those inherited from the parent ad units. If a label has been + * negated, only the negated label is returned. This attribute is assigned by + * Google. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEffectiveAppliedLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); + $this->effective_applied_labels = $arr; + + return $this; + } + + /** + * Optional. The set of label frequency caps applied directly to this ad unit. + * There is a limit of 10 label frequency caps per ad unit. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAppliedLabelFrequencyCaps() + { + return $this->applied_label_frequency_caps; + } + + /** + * Optional. The set of label frequency caps applied directly to this ad unit. + * There is a limit of 10 label frequency caps per ad unit. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAppliedLabelFrequencyCaps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\LabelFrequencyCap::class); + $this->applied_label_frequency_caps = $arr; + + return $this; + } + + /** + * Output only. The label frequency caps applied directly to the ad unit as + * well as those inherited from parent ad units. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEffectiveLabelFrequencyCaps() + { + return $this->effective_label_frequency_caps; + } + + /** + * Output only. The label frequency caps applied directly to the ad unit as + * well as those inherited from parent ad units. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEffectiveLabelFrequencyCaps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\LabelFrequencyCap::class); + $this->effective_label_frequency_caps = $arr; + + return $this; + } + + /** + * Optional. Non-empty default. The smart size mode for this ad unit. This + * attribute defaults to SmartSizeMode.NONE for fixed sizes. + * + * Generated from protobuf field optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * @return int + */ + public function getSmartSizeMode() + { + return isset($this->smart_size_mode) ? $this->smart_size_mode : 0; + } + + public function hasSmartSizeMode() + { + return isset($this->smart_size_mode); + } + + public function clearSmartSizeMode() + { + unset($this->smart_size_mode); + } + + /** + * Optional. Non-empty default. The smart size mode for this ad unit. This + * attribute defaults to SmartSizeMode.NONE for fixed sizes. + * + * Generated from protobuf field optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * @param int $var + * @return $this + */ + public function setSmartSizeMode($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\SmartSizeModeEnum\SmartSizeMode::class); + $this->smart_size_mode = $var; + + return $this; + } + + /** + * Optional. The value of AdSense enabled directly applied to this ad unit. If + * not specified this ad unit will inherit the value of + * effectiveAdsenseEnabled from its ancestors. + * + * Generated from protobuf field optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAppliedAdsenseEnabled() + { + return isset($this->applied_adsense_enabled) ? $this->applied_adsense_enabled : false; + } + + public function hasAppliedAdsenseEnabled() + { + return isset($this->applied_adsense_enabled); + } + + public function clearAppliedAdsenseEnabled() + { + unset($this->applied_adsense_enabled); + } + + /** + * Optional. The value of AdSense enabled directly applied to this ad unit. If + * not specified this ad unit will inherit the value of + * effectiveAdsenseEnabled from its ancestors. + * + * Generated from protobuf field optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAppliedAdsenseEnabled($var) + { + GPBUtil::checkBool($var); + $this->applied_adsense_enabled = $var; + + return $this; + } + + /** + * Output only. Specifies whether or not the AdUnit is enabled for serving ads + * from the AdSense content network. This attribute defaults to the ad unit's + * parent or ancestor's setting if one has been set. If no ancestor of the ad + * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. + * + * Generated from protobuf field optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getEffectiveAdsenseEnabled() + { + return isset($this->effective_adsense_enabled) ? $this->effective_adsense_enabled : false; + } + + public function hasEffectiveAdsenseEnabled() + { + return isset($this->effective_adsense_enabled); + } + + public function clearEffectiveAdsenseEnabled() + { + unset($this->effective_adsense_enabled); + } + + /** + * Output only. Specifies whether or not the AdUnit is enabled for serving ads + * from the AdSense content network. This attribute defaults to the ad unit's + * parent or ancestor's setting if one has been set. If no ancestor of the ad + * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. + * + * Generated from protobuf field optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setEffectiveAdsenseEnabled($var) + { + GPBUtil::checkBool($var); + $this->effective_adsense_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php new file mode 100644 index 000000000000..769f73062c74 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php @@ -0,0 +1,173 @@ +google.ads.admanager.v1.AdUnitParent + */ +class AdUnitParent extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The parent of the current AdUnit + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * + * Generated from protobuf field optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $parent_ad_unit = null; + /** + * Output only. The display name of the parent AdUnit. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + /** + * Output only. A string used to uniquely identify the ad unit for the + * purposes of serving the ad. + * + * Generated from protobuf field optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ad_unit_code = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent_ad_unit + * Output only. The parent of the current AdUnit + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * @type string $display_name + * Output only. The display name of the parent AdUnit. + * @type string $ad_unit_code + * Output only. A string used to uniquely identify the ad unit for the + * purposes of serving the ad. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The parent of the current AdUnit + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * + * Generated from protobuf field optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getParentAdUnit() + { + return isset($this->parent_ad_unit) ? $this->parent_ad_unit : ''; + } + + public function hasParentAdUnit() + { + return isset($this->parent_ad_unit); + } + + public function clearParentAdUnit() + { + unset($this->parent_ad_unit); + } + + /** + * Output only. The parent of the current AdUnit + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * + * Generated from protobuf field optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParentAdUnit($var) + { + GPBUtil::checkString($var, True); + $this->parent_ad_unit = $var; + + return $this; + } + + /** + * Output only. The display name of the parent AdUnit. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The display name of the parent AdUnit. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. A string used to uniquely identify the ad unit for the + * purposes of serving the ad. + * + * Generated from protobuf field optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAdUnitCode() + { + return isset($this->ad_unit_code) ? $this->ad_unit_code : ''; + } + + public function hasAdUnitCode() + { + return isset($this->ad_unit_code); + } + + public function clearAdUnitCode() + { + unset($this->ad_unit_code); + } + + /** + * Output only. A string used to uniquely identify the ad unit for the + * purposes of serving the ad. + * + * Generated from protobuf field optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAdUnitCode($var) + { + GPBUtil::checkString($var, True); + $this->ad_unit_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php new file mode 100644 index 000000000000..5e828df22a2c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php @@ -0,0 +1,163 @@ +google.ads.admanager.v1.AdUnitSize + */ +class AdUnitSize extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Size of the AdUnit. + * + * Generated from protobuf field optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $size = null; + /** + * Required. The EnvironmentType of the AdUnit + * + * Generated from protobuf field optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $environment_type = null; + /** + * The companions for this ad unit size. Companions are only valid if the + * environment is + * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Size companions = 3; + */ + private $companions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Size $size + * Required. The Size of the AdUnit. + * @type int $environment_type + * Required. The EnvironmentType of the AdUnit + * @type array<\Google\Ads\AdManager\V1\Size>|\Google\Protobuf\Internal\RepeatedField $companions + * The companions for this ad unit size. Companions are only valid if the + * environment is + * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Size of the AdUnit. + * + * Generated from protobuf field optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Size|null + */ + public function getSize() + { + return $this->size; + } + + public function hasSize() + { + return isset($this->size); + } + + public function clearSize() + { + unset($this->size); + } + + /** + * Required. The Size of the AdUnit. + * + * Generated from protobuf field optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Size $var + * @return $this + */ + public function setSize($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Size::class); + $this->size = $var; + + return $this; + } + + /** + * Required. The EnvironmentType of the AdUnit + * + * Generated from protobuf field optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getEnvironmentType() + { + return isset($this->environment_type) ? $this->environment_type : 0; + } + + public function hasEnvironmentType() + { + return isset($this->environment_type); + } + + public function clearEnvironmentType() + { + unset($this->environment_type); + } + + /** + * Required. The EnvironmentType of the AdUnit + * + * Generated from protobuf field optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setEnvironmentType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\EnvironmentTypeEnum\EnvironmentType::class); + $this->environment_type = $var; + + return $this; + } + + /** + * The companions for this ad unit size. Companions are only valid if the + * environment is + * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Size companions = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCompanions() + { + return $this->companions; + } + + /** + * The companions for this ad unit size. Companions are only valid if the + * environment is + * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Size companions = 3; + * @param array<\Google\Ads\AdManager\V1\Size>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCompanions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Size::class); + $this->companions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php new file mode 100644 index 000000000000..0b955366976a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.AdUnitStatusEnum + */ +class AdUnitStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php new file mode 100644 index 000000000000..33bd1c779c3f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus + */ +class AdUnitStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum AD_UNIT_STATUS_UNSPECIFIED = 0; + */ + const AD_UNIT_STATUS_UNSPECIFIED = 0; + /** + * The ad unit is active, available for targeting, and serving. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The ad unit will be visible in the UI, but ignored by serving. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + /** + * The ad unit will be hidden in the UI and ignored by serving. + * + * Generated from protobuf enum ARCHIVED = 3; + */ + const ARCHIVED = 3; + + private static $valueToName = [ + self::AD_UNIT_STATUS_UNSPECIFIED => 'AD_UNIT_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + self::ARCHIVED => 'ARCHIVED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AdUnitStatus::class, \Google\Ads\AdManager\V1\AdUnitStatusEnum_AdUnitStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitTargeting.php new file mode 100644 index 000000000000..874e6ed0a8fa --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitTargeting.php @@ -0,0 +1,121 @@ +google.ads.admanager.v1.AdUnitTargeting + */ +class AdUnitTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Whether this ad unit's children should be targeted/excluded as well. + * + * Generated from protobuf field optional bool include_descendants = 1; + */ + protected $include_descendants = null; + /** + * Optional. The resource name of this ad unit. + * + * Generated from protobuf field optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $ad_unit = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $include_descendants + * Whether this ad unit's children should be targeted/excluded as well. + * @type string $ad_unit + * Optional. The resource name of this ad unit. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Whether this ad unit's children should be targeted/excluded as well. + * + * Generated from protobuf field optional bool include_descendants = 1; + * @return bool + */ + public function getIncludeDescendants() + { + return isset($this->include_descendants) ? $this->include_descendants : false; + } + + public function hasIncludeDescendants() + { + return isset($this->include_descendants); + } + + public function clearIncludeDescendants() + { + unset($this->include_descendants); + } + + /** + * Whether this ad unit's children should be targeted/excluded as well. + * + * Generated from protobuf field optional bool include_descendants = 1; + * @param bool $var + * @return $this + */ + public function setIncludeDescendants($var) + { + GPBUtil::checkBool($var); + $this->include_descendants = $var; + + return $this; + } + + /** + * Optional. The resource name of this ad unit. + * + * Generated from protobuf field optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAdUnit() + { + return isset($this->ad_unit) ? $this->ad_unit : ''; + } + + public function hasAdUnit() + { + return isset($this->ad_unit); + } + + public function clearAdUnit() + { + unset($this->ad_unit); + } + + /** + * Optional. The resource name of this ad unit. + * + * Generated from protobuf field optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAdUnit($var) + { + GPBUtil::checkString($var, True); + $this->ad_unit = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Application.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Application.php new file mode 100644 index 000000000000..e84631bece78 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Application.php @@ -0,0 +1,120 @@ +google.ads.admanager.v1.Application + */ +class Application extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Application`. + * Format: `networks/{network_code}/applications/{application_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. The display name of the application. This attribute is required + * and has a maximum length of 80 characters. + * + * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Application`. + * Format: `networks/{network_code}/applications/{application_id}` + * @type string $display_name + * Optional. The display name of the application. This attribute is required + * and has a maximum length of 80 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ApplicationMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Application`. + * Format: `networks/{network_code}/applications/{application_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Application`. + * Format: `networks/{network_code}/applications/{application_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The display name of the application. This attribute is required + * and has a maximum length of 80 characters. + * + * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Optional. The display name of the application. This attribute is required + * and has a maximum length of 80 characters. + * + * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php new file mode 100644 index 000000000000..1bb8c2533c8d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php @@ -0,0 +1,105 @@ +google.ads.admanager.v1.AppliedLabel + */ +class AppliedLabel extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The label to be applied. + * Format: "networks/{network_code}/labels/{label_id}" + * + * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $label = ''; + /** + * Specifies whether or not to negate the effects of the label. + * + * Generated from protobuf field bool negated = 2; + */ + protected $negated = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $label + * Required. The label to be applied. + * Format: "networks/{network_code}/labels/{label_id}" + * @type bool $negated + * Specifies whether or not to negate the effects of the label. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AppliedLabel::initOnce(); + parent::__construct($data); + } + + /** + * Required. The label to be applied. + * Format: "networks/{network_code}/labels/{label_id}" + * + * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Required. The label to be applied. + * Format: "networks/{network_code}/labels/{label_id}" + * + * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Specifies whether or not to negate the effects of the label. + * + * Generated from protobuf field bool negated = 2; + * @return bool + */ + public function getNegated() + { + return $this->negated; + } + + /** + * Specifies whether or not to negate the effects of the label. + * + * Generated from protobuf field bool negated = 2; + * @param bool $var + * @return $this + */ + public function setNegated($var) + { + GPBUtil::checkBool($var); + $this->negated = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegment.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegment.php new file mode 100644 index 000000000000..2692e2aea4cd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegment.php @@ -0,0 +1,131 @@ +google.ads.admanager.v1.AudienceSegment + */ +class AudienceSegment extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `AudienceSegment`. + * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + * The `audience_segment_id` may have up to 1 of the following suffixes: + * - `~direct` for directly licensed third-party segments + * - `~global` for globally licensed third-party segments + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Display name of the `AudienceSegment`. The attribute has a + * maximum length of 255 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `AudienceSegment`. + * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + * The `audience_segment_id` may have up to 1 of the following suffixes: + * - `~direct` for directly licensed third-party segments + * - `~global` for globally licensed third-party segments + * @type string $display_name + * Required. Display name of the `AudienceSegment`. The attribute has a + * maximum length of 255 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AudienceSegmentMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `AudienceSegment`. + * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + * The `audience_segment_id` may have up to 1 of the following suffixes: + * - `~direct` for directly licensed third-party segments + * - `~global` for globally licensed third-party segments + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `AudienceSegment`. + * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + * The `audience_segment_id` may have up to 1 of the following suffixes: + * - `~direct` for directly licensed third-party segments + * - `~global` for globally licensed third-party segments + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Display name of the `AudienceSegment`. The attribute has a + * maximum length of 255 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. Display name of the `AudienceSegment`. The attribute has a + * maximum length of 255 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegmentTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegmentTargeting.php new file mode 100644 index 000000000000..78f0635e1c92 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegmentTargeting.php @@ -0,0 +1,136 @@ +google.ads.admanager.v1.AudienceSegmentTargeting + */ +class AudienceSegmentTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * + * Generated from protobuf field optional bool negative = 1; + */ + protected $negative = null; + /** + * Optional. The targeted audience segments. + * This is either the resource name of a first-party audience segment or an + * alias to the effective third-party audience segment. Third-party audience + * segment resource names containing `~direct` or `~global` will be normalized + * by the server. For example, `networks/1234/audienceSegments/4567~direct` + * will be normalized to `networks/1234/audienceSegments/4567`. + * + * Generated from protobuf field repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $audience_segments; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $negative + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * @type array|\Google\Protobuf\Internal\RepeatedField $audience_segments + * Optional. The targeted audience segments. + * This is either the resource name of a first-party audience segment or an + * alias to the effective third-party audience segment. Third-party audience + * segment resource names containing `~direct` or `~global` will be normalized + * by the server. For example, `networks/1234/audienceSegments/4567~direct` + * will be normalized to `networks/1234/audienceSegments/4567`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * + * Generated from protobuf field optional bool negative = 1; + * @return bool + */ + public function getNegative() + { + return isset($this->negative) ? $this->negative : false; + } + + public function hasNegative() + { + return isset($this->negative); + } + + public function clearNegative() + { + unset($this->negative); + } + + /** + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * + * Generated from protobuf field optional bool negative = 1; + * @param bool $var + * @return $this + */ + public function setNegative($var) + { + GPBUtil::checkBool($var); + $this->negative = $var; + + return $this; + } + + /** + * Optional. The targeted audience segments. + * This is either the resource name of a first-party audience segment or an + * alias to the effective third-party audience segment. Third-party audience + * segment resource names containing `~direct` or `~global` will be normalized + * by the server. For example, `networks/1234/audienceSegments/4567~direct` + * will be normalized to `networks/1234/audienceSegments/4567`. + * + * Generated from protobuf field repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAudienceSegments() + { + return $this->audience_segments; + } + + /** + * Optional. The targeted audience segments. + * This is either the resource name of a first-party audience segment or an + * alias to the effective third-party audience segment. Third-party audience + * segment resource names containing `~direct` or `~global` will be normalized + * by the server. For example, `networks/1234/audienceSegments/4567~direct` + * will be normalized to `networks/1234/audienceSegments/4567`. + * + * Generated from protobuf field repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAudienceSegments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->audience_segments = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthGroup.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthGroup.php new file mode 100644 index 000000000000..6d70141ab645 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthGroup.php @@ -0,0 +1,126 @@ +google.ads.admanager.v1.BandwidthGroup + */ +class BandwidthGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `BandwidthGroup`. + * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * + * Generated from protobuf field optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = null; + /** + * Output only. The localized name of the bandwidth group. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `BandwidthGroup`. + * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * @type string $display_name + * Output only. The localized name of the bandwidth group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BandwidthGroupMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `BandwidthGroup`. + * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * + * Generated from protobuf field optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return isset($this->name) ? $this->name : ''; + } + + public function hasName() + { + return isset($this->name); + } + + public function clearName() + { + unset($this->name); + } + + /** + * Identifier. The resource name of the `BandwidthGroup`. + * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * + * Generated from protobuf field optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The localized name of the bandwidth group. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The localized name of the bandwidth group. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthTargeting.php new file mode 100644 index 000000000000..d2ac819d4ca4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthTargeting.php @@ -0,0 +1,112 @@ +google.ads.admanager.v1.BandwidthTargeting + */ +class BandwidthTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of resource names of the bandwidth groups that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_bandwidth_groups; + /** + * Optional. A list of resource names of the bandwidth groups that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_bandwidth_groups; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_bandwidth_groups + * Optional. A list of resource names of the bandwidth groups that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_bandwidth_groups + * Optional. A list of resource names of the bandwidth groups that should be + * excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of resource names of the bandwidth groups that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedBandwidthGroups() + { + return $this->targeted_bandwidth_groups; + } + + /** + * Optional. A list of resource names of the bandwidth groups that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedBandwidthGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_bandwidth_groups = $arr; + + return $this; + } + + /** + * Optional. A list of resource names of the bandwidth groups that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedBandwidthGroups() + { + return $this->excluded_bandwidth_groups; + } + + /** + * Optional. A list of resource names of the bandwidth groups that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedBandwidthGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_bandwidth_groups = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsRequest.php new file mode 100644 index 000000000000..c22b27d4bb20 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsRequest.php @@ -0,0 +1,123 @@ +google.ads.admanager.v1.BatchActivateCustomFieldsRequest + */ +class BatchActivateCustomFieldsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the `CustomField` objects to activate. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see CustomFieldServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The resource names of the `CustomField` objects to activate. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * Please see {@see CustomFieldServiceClient::customFieldName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchActivateCustomFieldsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The resource names of the `CustomField` objects to activate. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the `CustomField` objects to activate. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the `CustomField` objects to activate. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsResponse.php new file mode 100644 index 000000000000..5160bb39e9d9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchActivateCustomFieldsResponse + */ +class BatchActivateCustomFieldsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsRequest.php new file mode 100644 index 000000000000..060ac81adebe --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsRequest.php @@ -0,0 +1,123 @@ +google.ads.admanager.v1.BatchActivatePlacementsRequest + */ +class BatchActivatePlacementsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The names of the `Placement` objects to activate. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see PlacementServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The names of the `Placement` objects to activate. + * Format: `networks/{network_code}/placements/{placement_id}` + * Please see {@see PlacementServiceClient::placementName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchActivatePlacementsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The names of the `Placement` objects to activate. + * Format: `networks/{network_code}/placements/{placement_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The names of the `Placement` objects to activate. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The names of the `Placement` objects to activate. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsResponse.php new file mode 100644 index 000000000000..feb3c8a2bef6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchActivatePlacementsResponse + */ +class BatchActivatePlacementsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsRequest.php new file mode 100644 index 000000000000..ffb18294ed16 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsRequest.php @@ -0,0 +1,123 @@ +google.ads.admanager.v1.BatchActivateTeamsRequest + */ +class BatchActivateTeamsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the `Team`s to activate. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see TeamServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The resource names of the `Team`s to activate. + * Format: `networks/{network_code}/teams/{team_id}` + * Please see {@see TeamServiceClient::teamName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchActivateTeamsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The resource names of the `Team`s to activate. + * Format: `networks/{network_code}/teams/{team_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the `Team`s to activate. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the `Team`s to activate. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsResponse.php new file mode 100644 index 000000000000..e3d800fd9df4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchActivateTeamsResponse + */ +class BatchActivateTeamsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAdReviewCenterAdsOperationMetadata.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAdReviewCenterAdsOperationMetadata.php new file mode 100644 index 000000000000..28edd5b90bb6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAdReviewCenterAdsOperationMetadata.php @@ -0,0 +1,72 @@ +google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata + */ +class BatchAdReviewCenterAdsOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The status of each failed request, keyed by the index of the corresponding + * request in the batch request. + * + * Generated from protobuf field map failed_requests = 1; + */ + private $failed_requests; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $failed_requests + * The status of each failed request, keyed by the index of the corresponding + * request in the batch request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdService::initOnce(); + parent::__construct($data); + } + + /** + * The status of each failed request, keyed by the index of the corresponding + * request in the batch request. + * + * Generated from protobuf field map failed_requests = 1; + * @return \Google\Protobuf\Internal\MapField + */ + public function getFailedRequests() + { + return $this->failed_requests; + } + + /** + * The status of each failed request, keyed by the index of the corresponding + * request in the batch request. + * + * Generated from protobuf field map failed_requests = 1; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setFailedRequests($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT32, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->failed_requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsRequest.php new file mode 100644 index 000000000000..4bcfaf3f372f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsRequest.php @@ -0,0 +1,168 @@ +google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest + */ +class BatchAllowAdReviewCenterAdsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the `AdReviewCenterAd`s to allow. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * + * `networks/{network_code}/webProperties/display` + * + * `networks/{network_code}/webProperties/videoAndAudio` + * + * `networks/{network_code}/webProperties/mobileApp` + * + * `networks/{network_code}/webProperties/games` + * Please see {@see AdReviewCenterAdServiceClient::webPropertyName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchAllowAdReviewCenterAdsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The resource names of the `AdReviewCenterAd`s to allow. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the `AdReviewCenterAd`s to allow. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the `AdReviewCenterAd`s to allow. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsResponse.php new file mode 100644 index 000000000000..b161bfc12d77 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse + */ +class BatchAllowAdReviewCenterAdsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsRequest.php new file mode 100644 index 000000000000..035188fb150f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsRequest.php @@ -0,0 +1,123 @@ +google.ads.admanager.v1.BatchArchivePlacementsRequest + */ +class BatchArchivePlacementsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The names of the `Placement` objects to archive. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see PlacementServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The names of the `Placement` objects to archive. + * Format: `networks/{network_code}/placements/{placement_id}` + * Please see {@see PlacementServiceClient::placementName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchArchivePlacementsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The names of the `Placement` objects to archive. + * Format: `networks/{network_code}/placements/{placement_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The names of the `Placement` objects to archive. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The names of the `Placement` objects to archive. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsResponse.php new file mode 100644 index 000000000000..dcded5d2f034 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchArchivePlacementsResponse + */ +class BatchArchivePlacementsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsRequest.php new file mode 100644 index 000000000000..d2d7dd0d45d4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsRequest.php @@ -0,0 +1,168 @@ +google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest + */ +class BatchBlockAdReviewCenterAdsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the `AdReviewCenterAd`s to block. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * + * `networks/{network_code}/webProperties/display` + * + * `networks/{network_code}/webProperties/videoAndAudio` + * + * `networks/{network_code}/webProperties/mobileApp` + * + * `networks/{network_code}/webProperties/games` + * Please see {@see AdReviewCenterAdServiceClient::webPropertyName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchBlockAdReviewCenterAdsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The resource names of the `AdReviewCenterAd`s to block. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the `AdReviewCenterAd`s to block. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the `AdReviewCenterAd`s to block. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsResponse.php new file mode 100644 index 000000000000..d2e38343adce --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse + */ +class BatchBlockAdReviewCenterAdsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsRequest.php new file mode 100644 index 000000000000..a7ba7b527108 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchCreateContactsRequest + */ +class BatchCreateContactsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `Contacts` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateContactRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Contact` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `Contacts` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateContactRequest must match this + * field. Please see + * {@see ContactServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateContactRequest[] $requests Required. The `Contact` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateContactsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `Contacts` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateContactRequest must match this + * field. + * @type array<\Google\Ads\AdManager\V1\CreateContactRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `Contact` objects to create. + * A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `Contacts` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateContactRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `Contacts` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateContactRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Contact` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `Contact` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\CreateContactRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateContactRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsResponse.php new file mode 100644 index 000000000000..50790d5194f9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchCreateContactsResponse + */ +class BatchCreateContactsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Contact` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + private $contacts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Contact>|\Google\Protobuf\Internal\RepeatedField $contacts + * The `Contact` objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactService::initOnce(); + parent::__construct($data); + } + + /** + * The `Contact` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Contact contacts = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getContacts() + { + return $this->contacts; + } + + /** + * The `Contact` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Contact contacts = 1; + * @param array<\Google\Ads\AdManager\V1\Contact>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setContacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Contact::class); + $this->contacts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsRequest.php new file mode 100644 index 000000000000..f1d58a0125a6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchCreateCustomFieldsRequest + */ +class BatchCreateCustomFieldsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `CustomFields` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCustomFieldRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `CustomField` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `CustomFields` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCustomFieldRequest must match this + * field. Please see + * {@see CustomFieldServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateCustomFieldRequest[] $requests Required. The `CustomField` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateCustomFieldsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `CustomFields` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCustomFieldRequest must match this + * field. + * @type array<\Google\Ads\AdManager\V1\CreateCustomFieldRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `CustomField` objects to create. + * A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `CustomFields` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCustomFieldRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `CustomFields` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCustomFieldRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `CustomField` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `CustomField` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\CreateCustomFieldRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateCustomFieldRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsResponse.php new file mode 100644 index 000000000000..6cda005ff91d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchCreateCustomFieldsResponse + */ +class BatchCreateCustomFieldsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CustomField` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + private $custom_fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\CustomField>|\Google\Protobuf\Internal\RepeatedField $custom_fields + * The `CustomField` objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * The `CustomField` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomFields() + { + return $this->custom_fields; + } + + /** + * The `CustomField` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + * @param array<\Google\Ads\AdManager\V1\CustomField>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomField::class); + $this->custom_fields = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php new file mode 100644 index 000000000000..abf061199fc7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequest + */ +class BatchCreateEntitySignalsMappingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `EntitySignalsMappings` will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateEntitySignalsMappingRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `EntitySignalsMapping` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `EntitySignalsMappings` will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateEntitySignalsMappingRequest must match this field. Please see + * {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest[] $requests Required. The `EntitySignalsMapping` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateEntitySignalsMappingsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `EntitySignalsMappings` will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateEntitySignalsMappingRequest must match this field. + * @type array<\Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `EntitySignalsMapping` objects to create. + * A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `EntitySignalsMappings` will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateEntitySignalsMappingRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `EntitySignalsMappings` will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateEntitySignalsMappingRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `EntitySignalsMapping` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `EntitySignalsMapping` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php new file mode 100644 index 000000000000..1b346912c6ce --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse + */ +class BatchCreateEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `EntitySignalsMapping` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; + */ + private $entity_signals_mappings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $entity_signals_mappings + * The `EntitySignalsMapping` objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); + parent::__construct($data); + } + + /** + * The `EntitySignalsMapping` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntitySignalsMappings() + { + return $this->entity_signals_mappings; + } + + /** + * The `EntitySignalsMapping` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; + * @param array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntitySignalsMappings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); + $this->entity_signals_mappings = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsRequest.php new file mode 100644 index 000000000000..eb5d7fef82c6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchCreatePlacementsRequest + */ +class BatchCreatePlacementsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where the `Placement`s will be created. + * Format: `networks/{network_code}` + * The parent field in the CreatePlacementRequest messages match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Placement` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where the `Placement`s will be created. + * Format: `networks/{network_code}` + * The parent field in the CreatePlacementRequest messages match this + * field. Please see + * {@see PlacementServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreatePlacementRequest[] $requests Required. The `Placement` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreatePlacementsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where the `Placement`s will be created. + * Format: `networks/{network_code}` + * The parent field in the CreatePlacementRequest messages match this + * field. + * @type array<\Google\Ads\AdManager\V1\CreatePlacementRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `Placement` objects to create. + * A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where the `Placement`s will be created. + * Format: `networks/{network_code}` + * The parent field in the CreatePlacementRequest messages match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where the `Placement`s will be created. + * Format: `networks/{network_code}` + * The parent field in the CreatePlacementRequest messages match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Placement` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `Placement` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\CreatePlacementRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreatePlacementRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsResponse.php new file mode 100644 index 000000000000..8db789ef1069 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchCreatePlacementsResponse + */ +class BatchCreatePlacementsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Placement` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; + */ + private $placements; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $placements + * The `Placement` objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * The `Placement` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPlacements() + { + return $this->placements; + } + + /** + * The `Placement` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; + * @param array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPlacements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Placement::class); + $this->placements = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesRequest.php new file mode 100644 index 000000000000..7e12c092835c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchCreateSitesRequest + */ +class BatchCreateSitesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `Sites` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateSiteRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Site` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `Sites` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateSiteRequest must match this + * field. Please see + * {@see SiteServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateSiteRequest[] $requests Required. The `Site` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateSitesRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `Sites` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateSiteRequest must match this + * field. + * @type array<\Google\Ads\AdManager\V1\CreateSiteRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `Site` objects to create. + * A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `Sites` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateSiteRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `Sites` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateSiteRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Site` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `Site` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\CreateSiteRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateSiteRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesResponse.php new file mode 100644 index 000000000000..60c33abbaef9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchCreateSitesResponse + */ +class BatchCreateSitesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Site` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Site sites = 1; + */ + private $sites; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Site>|\Google\Protobuf\Internal\RepeatedField $sites + * The `Site` objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * The `Site` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Site sites = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSites() + { + return $this->sites; + } + + /** + * The `Site` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Site sites = 1; + * @param array<\Google\Ads\AdManager\V1\Site>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSites($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Site::class); + $this->sites = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsRequest.php new file mode 100644 index 000000000000..848f190acfce --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchCreateTeamsRequest + */ +class BatchCreateTeamsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `Teams` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateTeamRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Team` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `Teams` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateTeamRequest must match this + * field. Please see + * {@see TeamServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateTeamRequest[] $requests Required. The `Team` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateTeamsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `Teams` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateTeamRequest must match this + * field. + * @type array<\Google\Ads\AdManager\V1\CreateTeamRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `Team` objects to create. + * A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `Teams` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateTeamRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `Teams` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateTeamRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Team` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `Team` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\CreateTeamRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateTeamRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsResponse.php new file mode 100644 index 000000000000..ae5a9b5e95a4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchCreateTeamsResponse + */ +class BatchCreateTeamsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Team` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Team teams = 1; + */ + private $teams; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Team>|\Google\Protobuf\Internal\RepeatedField $teams + * The `Team` objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * The `Team` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Team teams = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTeams() + { + return $this->teams; + } + + /** + * The `Team` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Team teams = 1; + * @param array<\Google\Ads\AdManager\V1\Team>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Team::class); + $this->teams = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsRequest.php new file mode 100644 index 000000000000..e7a3bfc62a21 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsRequest.php @@ -0,0 +1,123 @@ +google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest + */ +class BatchDeactivateCustomFieldsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the `CustomField` objects to deactivate. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see CustomFieldServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The resource names of the `CustomField` objects to deactivate. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * Please see {@see CustomFieldServiceClient::customFieldName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchDeactivateCustomFieldsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The resource names of the `CustomField` objects to deactivate. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the `CustomField` objects to deactivate. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the `CustomField` objects to deactivate. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsResponse.php new file mode 100644 index 000000000000..f81e91ecb4cc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse + */ +class BatchDeactivateCustomFieldsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsRequest.php new file mode 100644 index 000000000000..3940c8307af1 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsRequest.php @@ -0,0 +1,123 @@ +google.ads.admanager.v1.BatchDeactivatePlacementsRequest + */ +class BatchDeactivatePlacementsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The names of the `Placement` objects to deactivate. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see PlacementServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The names of the `Placement` objects to deactivate. + * Format: `networks/{network_code}/placements/{placement_id}` + * Please see {@see PlacementServiceClient::placementName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchDeactivatePlacementsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The names of the `Placement` objects to deactivate. + * Format: `networks/{network_code}/placements/{placement_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The names of the `Placement` objects to deactivate. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The names of the `Placement` objects to deactivate. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsResponse.php new file mode 100644 index 000000000000..a8efb235cb2e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchDeactivatePlacementsResponse + */ +class BatchDeactivatePlacementsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesRequest.php new file mode 100644 index 000000000000..cafc463b9278 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesRequest.php @@ -0,0 +1,117 @@ +google.ads.admanager.v1.BatchDeactivateSitesRequest + */ +class BatchDeactivateSitesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the `Site` objects to deactivate. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see SiteServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The resource names of the `Site` objects to deactivate. + * + * @return \Google\Ads\AdManager\V1\BatchDeactivateSitesRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The resource names of the `Site` objects to deactivate. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the `Site` objects to deactivate. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the `Site` objects to deactivate. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesResponse.php new file mode 100644 index 000000000000..311d9f641eca --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchDeactivateSitesResponse + */ +class BatchDeactivateSitesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsRequest.php new file mode 100644 index 000000000000..d329134510a6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsRequest.php @@ -0,0 +1,123 @@ +google.ads.admanager.v1.BatchDeactivateTeamsRequest + */ +class BatchDeactivateTeamsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the `Team`s to deactivate. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see TeamServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The resource names of the `Team`s to deactivate. + * Format: `networks/{network_code}/teams/{team_id}` + * Please see {@see TeamServiceClient::teamName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchDeactivateTeamsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The resource names of the `Team`s to deactivate. + * Format: `networks/{network_code}/teams/{team_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the `Team`s to deactivate. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the `Team`s to deactivate. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsResponse.php new file mode 100644 index 000000000000..d8f2612512ac --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchDeactivateTeamsResponse + */ +class BatchDeactivateTeamsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalRequest.php new file mode 100644 index 000000000000..fcb675e6a45f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalRequest.php @@ -0,0 +1,117 @@ +google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest + */ +class BatchSubmitSitesForApprovalRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the `Site` objects to submit for approval. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see SiteServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The resource names of the `Site` objects to submit for approval. + * + * @return \Google\Ads\AdManager\V1\BatchSubmitSitesForApprovalRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The resource names of the `Site` objects to submit for approval. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the `Site` objects to submit for approval. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the `Site` objects to submit for approval. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalResponse.php new file mode 100644 index 000000000000..c8b2bc89dc43 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse + */ +class BatchSubmitSitesForApprovalResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsRequest.php new file mode 100644 index 000000000000..2eeceaa77333 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchUpdateContactsRequest + */ +class BatchUpdateContactsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `Contacts` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateContactRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Contact` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `Contacts` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateContactRequest must match this + * field. Please see + * {@see ContactServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateContactRequest[] $requests Required. The `Contact` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateContactsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `Contacts` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateContactRequest must match this + * field. + * @type array<\Google\Ads\AdManager\V1\UpdateContactRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `Contact` objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `Contacts` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateContactRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `Contacts` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateContactRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Contact` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `Contact` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\UpdateContactRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateContactRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsResponse.php new file mode 100644 index 000000000000..f47fe7abc6ca --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdateContactsResponse + */ +class BatchUpdateContactsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Contact` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + private $contacts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Contact>|\Google\Protobuf\Internal\RepeatedField $contacts + * The `Contact` objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactService::initOnce(); + parent::__construct($data); + } + + /** + * The `Contact` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Contact contacts = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getContacts() + { + return $this->contacts; + } + + /** + * The `Contact` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Contact contacts = 1; + * @param array<\Google\Ads\AdManager\V1\Contact>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setContacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Contact::class); + $this->contacts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsRequest.php new file mode 100644 index 000000000000..b25ce9819255 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchUpdateCustomFieldsRequest + */ +class BatchUpdateCustomFieldsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `CustomFields` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCustomFieldRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `CustomField` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `CustomFields` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCustomFieldRequest must match this + * field. Please see + * {@see CustomFieldServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateCustomFieldRequest[] $requests Required. The `CustomField` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateCustomFieldsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `CustomFields` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCustomFieldRequest must match this + * field. + * @type array<\Google\Ads\AdManager\V1\UpdateCustomFieldRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `CustomField` objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `CustomFields` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCustomFieldRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `CustomFields` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCustomFieldRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `CustomField` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `CustomField` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\UpdateCustomFieldRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateCustomFieldRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsResponse.php new file mode 100644 index 000000000000..f0b1bf1cd5f0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdateCustomFieldsResponse + */ +class BatchUpdateCustomFieldsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CustomField` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + private $custom_fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\CustomField>|\Google\Protobuf\Internal\RepeatedField $custom_fields + * The `CustomField` objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * The `CustomField` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomFields() + { + return $this->custom_fields; + } + + /** + * The `CustomField` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + * @param array<\Google\Ads\AdManager\V1\CustomField>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomField::class); + $this->custom_fields = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php new file mode 100644 index 000000000000..546c88476ab6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequest + */ +class BatchUpdateEntitySignalsMappingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `EntitySignalsMappings` will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateEntitySignalsMappingRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `EntitySignalsMapping` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `EntitySignalsMappings` will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateEntitySignalsMappingRequest must match this field. Please see + * {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest[] $requests Required. The `EntitySignalsMapping` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateEntitySignalsMappingsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `EntitySignalsMappings` will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateEntitySignalsMappingRequest must match this field. + * @type array<\Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `EntitySignalsMapping` objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `EntitySignalsMappings` will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateEntitySignalsMappingRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `EntitySignalsMappings` will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateEntitySignalsMappingRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `EntitySignalsMapping` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `EntitySignalsMapping` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php new file mode 100644 index 000000000000..0e3e8a5cff75 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse + */ +class BatchUpdateEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `EntitySignalsMapping` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; + */ + private $entity_signals_mappings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $entity_signals_mappings + * The `EntitySignalsMapping` objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); + parent::__construct($data); + } + + /** + * The `EntitySignalsMapping` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntitySignalsMappings() + { + return $this->entity_signals_mappings; + } + + /** + * The `EntitySignalsMapping` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; + * @param array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntitySignalsMappings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); + $this->entity_signals_mappings = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsRequest.php new file mode 100644 index 000000000000..e51bc22fb062 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchUpdatePlacementsRequest + */ +class BatchUpdatePlacementsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `Placements` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdatePlacementsRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Placement` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `Placements` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdatePlacementsRequest must match this + * field. Please see + * {@see PlacementServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdatePlacementRequest[] $requests Required. The `Placement` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdatePlacementsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `Placements` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdatePlacementsRequest must match this + * field. + * @type array<\Google\Ads\AdManager\V1\UpdatePlacementRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `Placement` objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `Placements` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdatePlacementsRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `Placements` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdatePlacementsRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Placement` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `Placement` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\UpdatePlacementRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdatePlacementRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsResponse.php new file mode 100644 index 000000000000..c202bae33996 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdatePlacementsResponse + */ +class BatchUpdatePlacementsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Placement` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; + */ + private $placements; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $placements + * The `Placement` objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * The `Placement` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPlacements() + { + return $this->placements; + } + + /** + * The `Placement` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; + * @param array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPlacements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Placement::class); + $this->placements = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesRequest.php new file mode 100644 index 000000000000..ed319ae0f987 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchUpdateSitesRequest + */ +class BatchUpdateSitesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `Sites` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateSiteRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Site` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `Sites` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateSiteRequest must match this + * field. Please see + * {@see SiteServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateSiteRequest[] $requests Required. The `Site` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateSitesRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `Sites` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateSiteRequest must match this + * field. + * @type array<\Google\Ads\AdManager\V1\UpdateSiteRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `Site` objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `Sites` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateSiteRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `Sites` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateSiteRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Site` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `Site` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\UpdateSiteRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateSiteRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesResponse.php new file mode 100644 index 000000000000..50aed984bbee --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdateSitesResponse + */ +class BatchUpdateSitesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Site` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Site sites = 1; + */ + private $sites; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Site>|\Google\Protobuf\Internal\RepeatedField $sites + * The `Site` objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * The `Site` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Site sites = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSites() + { + return $this->sites; + } + + /** + * The `Site` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Site sites = 1; + * @param array<\Google\Ads\AdManager\V1\Site>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSites($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Site::class); + $this->sites = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsRequest.php new file mode 100644 index 000000000000..5171cafc91d8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchUpdateTeamsRequest + */ +class BatchUpdateTeamsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `Teams` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateTeamRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Team` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `Teams` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateTeamRequest must match this + * field. Please see + * {@see TeamServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateTeamRequest[] $requests Required. The `Team` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateTeamsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `Teams` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateTeamRequest must match this + * field. + * @type array<\Google\Ads\AdManager\V1\UpdateTeamRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The `Team` objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `Teams` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateTeamRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `Teams` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateTeamRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Team` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `Team` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\UpdateTeamRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateTeamRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsResponse.php new file mode 100644 index 000000000000..0ac8d23aec42 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdateTeamsResponse + */ +class BatchUpdateTeamsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Team` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Team teams = 1; + */ + private $teams; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Team>|\Google\Protobuf\Internal\RepeatedField $teams + * The `Team` objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * The `Team` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Team teams = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTeams() + { + return $this->teams; + } + + /** + * The `Team` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Team teams = 1; + * @param array<\Google\Ads\AdManager\V1\Team>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Team::class); + $this->teams = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Browser.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Browser.php new file mode 100644 index 000000000000..d5eb1a7d51f7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Browser.php @@ -0,0 +1,203 @@ +google.ads.admanager.v1.Browser + */ +class Browser extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Browser`. + * Format: `networks/{network_code}/browsers/{browser}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The display name of the browser, including version info. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + /** + * Output only. The major version of the browser. + * + * Generated from protobuf field optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $major_version = null; + /** + * Output only. The minor version of the browser. + * + * Generated from protobuf field optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $minor_version = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Browser`. + * Format: `networks/{network_code}/browsers/{browser}` + * @type string $display_name + * Output only. The display name of the browser, including version info. + * @type string $major_version + * Output only. The major version of the browser. + * @type string $minor_version + * Output only. The minor version of the browser. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BrowserMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Browser`. + * Format: `networks/{network_code}/browsers/{browser}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Browser`. + * Format: `networks/{network_code}/browsers/{browser}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The display name of the browser, including version info. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The display name of the browser, including version info. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The major version of the browser. + * + * Generated from protobuf field optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMajorVersion() + { + return isset($this->major_version) ? $this->major_version : ''; + } + + public function hasMajorVersion() + { + return isset($this->major_version); + } + + public function clearMajorVersion() + { + unset($this->major_version); + } + + /** + * Output only. The major version of the browser. + * + * Generated from protobuf field optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMajorVersion($var) + { + GPBUtil::checkString($var, True); + $this->major_version = $var; + + return $this; + } + + /** + * Output only. The minor version of the browser. + * + * Generated from protobuf field optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMinorVersion() + { + return isset($this->minor_version) ? $this->minor_version : ''; + } + + public function hasMinorVersion() + { + return isset($this->minor_version); + } + + public function clearMinorVersion() + { + unset($this->minor_version); + } + + /** + * Output only. The minor version of the browser. + * + * Generated from protobuf field optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMinorVersion($var) + { + GPBUtil::checkString($var, True); + $this->minor_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguage.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguage.php new file mode 100644 index 000000000000..9a0f0f2d8399 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguage.php @@ -0,0 +1,115 @@ +google.ads.admanager.v1.BrowserLanguage + */ +class BrowserLanguage extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `BrowserLanguage`. + * Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The name of the browser language, localized. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `BrowserLanguage`. + * Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + * @type string $display_name + * Output only. The name of the browser language, localized. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BrowserLanguageMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `BrowserLanguage`. + * Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `BrowserLanguage`. + * Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The name of the browser language, localized. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The name of the browser language, localized. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguageTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguageTargeting.php new file mode 100644 index 000000000000..2102f17b3534 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguageTargeting.php @@ -0,0 +1,113 @@ +google.ads.admanager.v1.BrowserLanguageTargeting + */ +class BrowserLanguageTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of browser language resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_browser_languages; + /** + * Optional. A list of browser language resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_browser_languages; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_browser_languages + * Optional. A list of browser language resource names that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_browser_languages + * Optional. A list of browser language resource names that should be + * excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of browser language resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedBrowserLanguages() + { + return $this->targeted_browser_languages; + } + + /** + * Optional. A list of browser language resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedBrowserLanguages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_browser_languages = $arr; + + return $this; + } + + /** + * Optional. A list of browser language resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedBrowserLanguages() + { + return $this->excluded_browser_languages; + } + + /** + * Optional. A list of browser language resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedBrowserLanguages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_browser_languages = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserTargeting.php new file mode 100644 index 000000000000..c32bd0a26abe --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserTargeting.php @@ -0,0 +1,109 @@ + + * Browser). + * + * Generated from protobuf message google.ads.admanager.v1.BrowserTargeting + */ +class BrowserTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of browser resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_browsers; + /** + * Optional. A list of browser resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_browsers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_browsers + * Optional. A list of browser resource names that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_browsers + * Optional. A list of browser resource names that should be excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of browser resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedBrowsers() + { + return $this->targeted_browsers; + } + + /** + * Optional. A list of browser resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedBrowsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_browsers = $arr; + + return $this; + } + + /** + * Optional. A list of browser resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedBrowsers() + { + return $this->excluded_browsers; + } + + /** + * Optional. A list of browser resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedBrowsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_browsers = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKey.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKey.php new file mode 100644 index 000000000000..641ea3b2ca9f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKey.php @@ -0,0 +1,139 @@ +google.ads.admanager.v1.CmsMetadataKey + */ +class CmsMetadataKey extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `CmsMetadataKey`. + * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The key of a key-value pair. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. The status of this CMS metadata key. + * + * Generated from protobuf field .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `CmsMetadataKey`. + * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * @type string $display_name + * Required. The key of a key-value pair. + * @type int $status + * Output only. The status of this CMS metadata key. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataKeyMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `CmsMetadataKey`. + * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `CmsMetadataKey`. + * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The key of a key-value pair. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The key of a key-value pair. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The status of this CMS metadata key. + * + * Generated from protobuf field .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * Output only. The status of this CMS metadata key. + * + * Generated from protobuf field .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CmsMetadataKeyStatusEnum\CmsMetadataKeyStatus::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum.php new file mode 100644 index 000000000000..37e9684c3508 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CmsMetadataKeyStatusEnum + */ +class CmsMetadataKeyStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataKeyEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php new file mode 100644 index 000000000000..3c772fe94b1e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus + */ +class CmsMetadataKeyStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CMS_METADATA_KEY_STATUS_UNSPECIFIED = 0; + */ + const CMS_METADATA_KEY_STATUS_UNSPECIFIED = 0; + /** + * The key is active. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The key is not active. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + + private static $valueToName = [ + self::CMS_METADATA_KEY_STATUS_UNSPECIFIED => 'CMS_METADATA_KEY_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CmsMetadataKeyStatus::class, \Google\Ads\AdManager\V1\CmsMetadataKeyStatusEnum_CmsMetadataKeyStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataTargeting.php new file mode 100644 index 000000000000..909f7e2ef81e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataTargeting.php @@ -0,0 +1,115 @@ +google.ads.admanager.v1.CmsMetadataTargeting + */ +class CmsMetadataTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * + * Generated from protobuf field optional bool negative = 1; + */ + protected $negative = null; + /** + * Optional. The resource names of the targeted CMS metadata values. + * + * Generated from protobuf field repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $cms_metadata_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $negative + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * @type array|\Google\Protobuf\Internal\RepeatedField $cms_metadata_values + * Optional. The resource names of the targeted CMS metadata values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * + * Generated from protobuf field optional bool negative = 1; + * @return bool + */ + public function getNegative() + { + return isset($this->negative) ? $this->negative : false; + } + + public function hasNegative() + { + return isset($this->negative); + } + + public function clearNegative() + { + unset($this->negative); + } + + /** + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * + * Generated from protobuf field optional bool negative = 1; + * @param bool $var + * @return $this + */ + public function setNegative($var) + { + GPBUtil::checkBool($var); + $this->negative = $var; + + return $this; + } + + /** + * Optional. The resource names of the targeted CMS metadata values. + * + * Generated from protobuf field repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCmsMetadataValues() + { + return $this->cms_metadata_values; + } + + /** + * Optional. The resource names of the targeted CMS metadata values. + * + * Generated from protobuf field repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCmsMetadataValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->cms_metadata_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValue.php new file mode 100644 index 000000000000..aee6552cfc96 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValue.php @@ -0,0 +1,181 @@ +google.ads.admanager.v1.CmsMetadataValue + */ +class CmsMetadataValue extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `CmsMetadataValue`. + * Format: + * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The value of this key-value pair. + * + * Generated from protobuf field string display_name = 3; + */ + protected $display_name = ''; + /** + * Required. Immutable. The resource name of the CmsMetadataKey. + * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}" + * + * Generated from protobuf field string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $key = ''; + /** + * Output only. The status of this CMS metadata value. + * + * Generated from protobuf field .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `CmsMetadataValue`. + * Format: + * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * @type string $display_name + * The value of this key-value pair. + * @type string $key + * Required. Immutable. The resource name of the CmsMetadataKey. + * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}" + * @type int $status + * Output only. The status of this CMS metadata value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataValueMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `CmsMetadataValue`. + * Format: + * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `CmsMetadataValue`. + * Format: + * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The value of this key-value pair. + * + * Generated from protobuf field string display_name = 3; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The value of this key-value pair. + * + * Generated from protobuf field string display_name = 3; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. Immutable. The resource name of the CmsMetadataKey. + * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}" + * + * Generated from protobuf field string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Required. Immutable. The resource name of the CmsMetadataKey. + * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}" + * + * Generated from protobuf field string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Output only. The status of this CMS metadata value. + * + * Generated from protobuf field .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * Output only. The status of this CMS metadata value. + * + * Generated from protobuf field .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CmsMetadataValueStatusEnum\CmsMetadataValueStatus::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum.php new file mode 100644 index 000000000000..d2665a199dcf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CmsMetadataValueStatusEnum + */ +class CmsMetadataValueStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataValueEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php new file mode 100644 index 000000000000..c9702e744e8b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus + */ +class CmsMetadataValueStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CMS_METADATA_VALUE_STATUS_UNSPECIFIED = 0; + */ + const CMS_METADATA_VALUE_STATUS_UNSPECIFIED = 0; + /** + * The value is active. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The value is archived. + * + * Generated from protobuf enum ARCHIVED = 2; + */ + const ARCHIVED = 2; + /** + * The value is not active. + * + * Generated from protobuf enum INACTIVE = 3; + */ + const INACTIVE = 3; + + private static $valueToName = [ + self::CMS_METADATA_VALUE_STATUS_UNSPECIFIED => 'CMS_METADATA_VALUE_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::ARCHIVED => 'ARCHIVED', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CmsMetadataValueStatus::class, \Google\Ads\AdManager\V1\CmsMetadataValueStatusEnum_CmsMetadataValueStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php new file mode 100644 index 000000000000..af97bfc26467 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php @@ -0,0 +1,759 @@ +google.ads.admanager.v1.Company + */ +class Company extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Company`. + * Format: `networks/{network_code}/companies/{company_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. `Company` ID. + * + * Generated from protobuf field optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $company_id = null; + /** + * Required. The display name of the `Company`. + * This value has a maximum length of 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Required. The type of the `Company`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = null; + /** + * Optional. The address for the `Company`. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $address = null; + /** + * Optional. The email for the `Company`. + * This value has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $email = null; + /** + * Optional. The fax number for the `Company`. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fax = null; + /** + * Optional. The phone number for the `Company`. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $phone = null; + /** + * Optional. The external ID for the `Company`. + * This value has a maximum length of 255 characters. + * + * Generated from protobuf field optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $external_id = null; + /** + * Optional. Comments about the `Company`. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $comment = null; + /** + * Optional. The credit status of the `Company`. + * This attribute defaults to `ACTIVE` if basic settings are enabled and + * `ON_HOLD` if advance settings are enabled. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $credit_status = null; + /** + * Optional. The labels that are directly applied to the `Company`. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $applied_labels; + /** + * Optional. The resource names of primary Contact of the `Company`. + * Format: "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $primary_contact = null; + /** + * Optional. The resource names of Teams that are directly associated with the + * `Company`. Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $applied_teams; + /** + * Optional. The ID of the Google-recognized canonicalized form of the + * `Company`. + * + * Generated from protobuf field optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $third_party_company_id = null; + /** + * Output only. The time the `Company` was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Company`. + * Format: `networks/{network_code}/companies/{company_id}` + * @type int|string $company_id + * Output only. `Company` ID. + * @type string $display_name + * Required. The display name of the `Company`. + * This value has a maximum length of 127 characters. + * @type int $type + * Required. The type of the `Company`. + * @type string $address + * Optional. The address for the `Company`. + * This value has a maximum length of 1024 characters. + * @type string $email + * Optional. The email for the `Company`. + * This value has a maximum length of 128 characters. + * @type string $fax + * Optional. The fax number for the `Company`. + * This value has a maximum length of 63 characters. + * @type string $phone + * Optional. The phone number for the `Company`. + * This value has a maximum length of 63 characters. + * @type string $external_id + * Optional. The external ID for the `Company`. + * This value has a maximum length of 255 characters. + * @type string $comment + * Optional. Comments about the `Company`. + * This value has a maximum length of 1024 characters. + * @type int $credit_status + * Optional. The credit status of the `Company`. + * This attribute defaults to `ACTIVE` if basic settings are enabled and + * `ON_HOLD` if advance settings are enabled. + * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $applied_labels + * Optional. The labels that are directly applied to the `Company`. + * @type string $primary_contact + * Optional. The resource names of primary Contact of the `Company`. + * Format: "networks/{network_code}/contacts/{contact_id}" + * @type array|\Google\Protobuf\Internal\RepeatedField $applied_teams + * Optional. The resource names of Teams that are directly associated with the + * `Company`. Format: "networks/{network_code}/teams/{team_id}" + * @type int|string $third_party_company_id + * Optional. The ID of the Google-recognized canonicalized form of the + * `Company`. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time the `Company` was last modified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Company`. + * Format: `networks/{network_code}/companies/{company_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Company`. + * Format: `networks/{network_code}/companies/{company_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. `Company` ID. + * + * Generated from protobuf field optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getCompanyId() + { + return isset($this->company_id) ? $this->company_id : 0; + } + + public function hasCompanyId() + { + return isset($this->company_id); + } + + public function clearCompanyId() + { + unset($this->company_id); + } + + /** + * Output only. `Company` ID. + * + * Generated from protobuf field optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setCompanyId($var) + { + GPBUtil::checkInt64($var); + $this->company_id = $var; + + return $this; + } + + /** + * Required. The display name of the `Company`. + * This value has a maximum length of 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The display name of the `Company`. + * This value has a maximum length of 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. The type of the `Company`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return isset($this->type) ? $this->type : 0; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * Required. The type of the `Company`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CompanyTypeEnum\CompanyType::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. The address for the `Company`. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAddress() + { + return isset($this->address) ? $this->address : ''; + } + + public function hasAddress() + { + return isset($this->address); + } + + public function clearAddress() + { + unset($this->address); + } + + /** + * Optional. The address for the `Company`. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAddress($var) + { + GPBUtil::checkString($var, True); + $this->address = $var; + + return $this; + } + + /** + * Optional. The email for the `Company`. + * This value has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEmail() + { + return isset($this->email) ? $this->email : ''; + } + + public function hasEmail() + { + return isset($this->email); + } + + public function clearEmail() + { + unset($this->email); + } + + /** + * Optional. The email for the `Company`. + * This value has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + + /** + * Optional. The fax number for the `Company`. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFax() + { + return isset($this->fax) ? $this->fax : ''; + } + + public function hasFax() + { + return isset($this->fax); + } + + public function clearFax() + { + unset($this->fax); + } + + /** + * Optional. The fax number for the `Company`. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFax($var) + { + GPBUtil::checkString($var, True); + $this->fax = $var; + + return $this; + } + + /** + * Optional. The phone number for the `Company`. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPhone() + { + return isset($this->phone) ? $this->phone : ''; + } + + public function hasPhone() + { + return isset($this->phone); + } + + public function clearPhone() + { + unset($this->phone); + } + + /** + * Optional. The phone number for the `Company`. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPhone($var) + { + GPBUtil::checkString($var, True); + $this->phone = $var; + + return $this; + } + + /** + * Optional. The external ID for the `Company`. + * This value has a maximum length of 255 characters. + * + * Generated from protobuf field optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getExternalId() + { + return isset($this->external_id) ? $this->external_id : ''; + } + + public function hasExternalId() + { + return isset($this->external_id); + } + + public function clearExternalId() + { + unset($this->external_id); + } + + /** + * Optional. The external ID for the `Company`. + * This value has a maximum length of 255 characters. + * + * Generated from protobuf field optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setExternalId($var) + { + GPBUtil::checkString($var, True); + $this->external_id = $var; + + return $this; + } + + /** + * Optional. Comments about the `Company`. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getComment() + { + return isset($this->comment) ? $this->comment : ''; + } + + public function hasComment() + { + return isset($this->comment); + } + + public function clearComment() + { + unset($this->comment); + } + + /** + * Optional. Comments about the `Company`. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setComment($var) + { + GPBUtil::checkString($var, True); + $this->comment = $var; + + return $this; + } + + /** + * Optional. The credit status of the `Company`. + * This attribute defaults to `ACTIVE` if basic settings are enabled and + * `ON_HOLD` if advance settings are enabled. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCreditStatus() + { + return isset($this->credit_status) ? $this->credit_status : 0; + } + + public function hasCreditStatus() + { + return isset($this->credit_status); + } + + public function clearCreditStatus() + { + unset($this->credit_status); + } + + /** + * Optional. The credit status of the `Company`. + * This attribute defaults to `ACTIVE` if basic settings are enabled and + * `ON_HOLD` if advance settings are enabled. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCreditStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CompanyCreditStatusEnum\CompanyCreditStatus::class); + $this->credit_status = $var; + + return $this; + } + + /** + * Optional. The labels that are directly applied to the `Company`. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAppliedLabels() + { + return $this->applied_labels; + } + + /** + * Optional. The labels that are directly applied to the `Company`. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAppliedLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); + $this->applied_labels = $arr; + + return $this; + } + + /** + * Optional. The resource names of primary Contact of the `Company`. + * Format: "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getPrimaryContact() + { + return isset($this->primary_contact) ? $this->primary_contact : ''; + } + + public function hasPrimaryContact() + { + return isset($this->primary_contact); + } + + public function clearPrimaryContact() + { + unset($this->primary_contact); + } + + /** + * Optional. The resource names of primary Contact of the `Company`. + * Format: "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setPrimaryContact($var) + { + GPBUtil::checkString($var, True); + $this->primary_contact = $var; + + return $this; + } + + /** + * Optional. The resource names of Teams that are directly associated with the + * `Company`. Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAppliedTeams() + { + return $this->applied_teams; + } + + /** + * Optional. The resource names of Teams that are directly associated with the + * `Company`. Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAppliedTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->applied_teams = $arr; + + return $this; + } + + /** + * Optional. The ID of the Google-recognized canonicalized form of the + * `Company`. + * + * Generated from protobuf field optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getThirdPartyCompanyId() + { + return isset($this->third_party_company_id) ? $this->third_party_company_id : 0; + } + + public function hasThirdPartyCompanyId() + { + return isset($this->third_party_company_id); + } + + public function clearThirdPartyCompanyId() + { + unset($this->third_party_company_id); + } + + /** + * Optional. The ID of the Google-recognized canonicalized form of the + * `Company`. + * + * Generated from protobuf field optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setThirdPartyCompanyId($var) + { + GPBUtil::checkInt64($var); + $this->third_party_company_id = $var; + + return $this; + } + + /** + * Output only. The time the `Company` was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time the `Company` was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php new file mode 100644 index 000000000000..e868e3b2a50a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CompanyCreditStatusEnum + */ +class CompanyCreditStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php new file mode 100644 index 000000000000..7370fcf65e43 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php @@ -0,0 +1,119 @@ +google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus + */ +class CompanyCreditStatus +{ + /** + * No value specified + * + * Generated from protobuf enum COMPANY_CREDIT_STATUS_UNSPECIFIED = 0; + */ + const COMPANY_CREDIT_STATUS_UNSPECIFIED = 0; + /** + * The company's credit status is active. + * Line items belonging to the company can serve. + * This credit status is the default for basic settings and is available in + * both basic and advance settings. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The company's credit status is inactive. + * Line items belonging to the company cannot be activated. However, line + * items that were activated before the credit status changed will remain + * active. New orders or line items belonging to the company cannot be + * created. + * Companies with this credit status will be hidden by default in company + * search results. + * This credit status is available in both basic and advance settings. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + /** + * The company's credit status is on hold. + * Line items belonging to the company cannot be activated. However, line + * items that were activated before the credit status changed will remain + * active. New orders or line items belonging to the company can be + * created. + * This credit status is the default in advance settings and is only + * available in advance settings. + * + * Generated from protobuf enum ON_HOLD = 3; + */ + const ON_HOLD = 3; + /** + * The company's credit status is stopped. + * Line items belonging to the company cannot be activated. However, line + * items that were activated before the credit status changed will remain + * active. New orders or line items belonging to the company cannot be + * created. + * This credit status is only available in advance settings. + * + * Generated from protobuf enum STOP = 4; + */ + const STOP = 4; + /** + * The company's credit status is blocked. + * All active line items belonging to the company will stop serving with + * immediate effect. Line items belonging to the company cannot be + * activated, and new orders or line items belonging to the company cannot + * be created. + * This credit status is only available in advance settings. + * + * Generated from protobuf enum BLOCKED = 5; + */ + const BLOCKED = 5; + + private static $valueToName = [ + self::COMPANY_CREDIT_STATUS_UNSPECIFIED => 'COMPANY_CREDIT_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + self::ON_HOLD => 'ON_HOLD', + self::STOP => 'STOP', + self::BLOCKED => 'BLOCKED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CompanyCreditStatus::class, \Google\Ads\AdManager\V1\CompanyCreditStatusEnum_CompanyCreditStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php new file mode 100644 index 000000000000..78a6e7498356 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CompanyTypeEnum + */ +class CompanyTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php new file mode 100644 index 000000000000..acd0809696d1 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.CompanyTypeEnum.CompanyType + */ +class CompanyType +{ + /** + * No value specified + * + * Generated from protobuf enum COMPANY_TYPE_UNSPECIFIED = 0; + */ + const COMPANY_TYPE_UNSPECIFIED = 0; + /** + * A business entity that purchases ad inventory. + * + * Generated from protobuf enum ADVERTISER = 1; + */ + const ADVERTISER = 1; + /** + * A company representing the publisher's own advertiser for house ads. + * + * Generated from protobuf enum HOUSE_ADVERTISER = 2; + */ + const HOUSE_ADVERTISER = 2; + /** + * An organization that manages ad accounts and offers services, such as ad + * creation, placement, and management to advertisers. + * + * Generated from protobuf enum AGENCY = 3; + */ + const AGENCY = 3; + /** + * A company representing the publisher's own agency. + * + * Generated from protobuf enum HOUSE_AGENCY = 4; + */ + const HOUSE_AGENCY = 4; + /** + * A company representing multiple advertisers and agencies. + * + * Generated from protobuf enum AD_NETWORK = 5; + */ + const AD_NETWORK = 5; + + private static $valueToName = [ + self::COMPANY_TYPE_UNSPECIFIED => 'COMPANY_TYPE_UNSPECIFIED', + self::ADVERTISER => 'ADVERTISER', + self::HOUSE_ADVERTISER => 'HOUSE_ADVERTISER', + self::AGENCY => 'AGENCY', + self::HOUSE_AGENCY => 'HOUSE_AGENCY', + self::AD_NETWORK => 'AD_NETWORK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CompanyType::class, \Google\Ads\AdManager\V1\CompanyTypeEnum_CompanyType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php new file mode 100644 index 000000000000..354f867b6fbf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php @@ -0,0 +1,550 @@ +google.ads.admanager.v1.Contact + */ +class Contact extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Contact`. + * Format: `networks/{network_code}/contacts/{contact_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The name of the contact. This attribute has a maximum length of + * 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Required. Immutable. The resource name of the Company. + * Format: "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $company = null; + /** + * Output only. The status of the contact. This attribute is assigned by + * Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Optional. The address of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $address = null; + /** + * Optional. The cell phone number where the contact can be reached. + * + * Generated from protobuf field optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cell_phone = null; + /** + * Optional. A free-form text comment for the contact. This attribute has a + * maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $comment = null; + /** + * Optional. The e-mail address where the contact can be reached. This + * attribute has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $email = null; + /** + * Optional. The fax number where the contact can be reached. This attribute + * has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fax = null; + /** + * Optional. The job title of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $title = null; + /** + * Optional. The work phone number where the contact can be reached. This + * attribute has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $work_phone = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Contact`. + * Format: `networks/{network_code}/contacts/{contact_id}` + * @type string $display_name + * Required. The name of the contact. This attribute has a maximum length of + * 127 characters. + * @type string $company + * Required. Immutable. The resource name of the Company. + * Format: "networks/{network_code}/companies/{company_id}" + * @type int $status + * Output only. The status of the contact. This attribute is assigned by + * Google. + * @type string $address + * Optional. The address of the contact. This attribute has a maximum length + * of 1024 characters. + * @type string $cell_phone + * Optional. The cell phone number where the contact can be reached. + * @type string $comment + * Optional. A free-form text comment for the contact. This attribute has a + * maximum length of 1024 characters. + * @type string $email + * Optional. The e-mail address where the contact can be reached. This + * attribute has a maximum length of 128 characters. + * @type string $fax + * Optional. The fax number where the contact can be reached. This attribute + * has a maximum length of 1024 characters. + * @type string $title + * Optional. The job title of the contact. This attribute has a maximum length + * of 1024 characters. + * @type string $work_phone + * Optional. The work phone number where the contact can be reached. This + * attribute has a maximum length of 1024 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Contact`. + * Format: `networks/{network_code}/contacts/{contact_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Contact`. + * Format: `networks/{network_code}/contacts/{contact_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The name of the contact. This attribute has a maximum length of + * 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The name of the contact. This attribute has a maximum length of + * 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. Immutable. The resource name of the Company. + * Format: "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getCompany() + { + return isset($this->company) ? $this->company : ''; + } + + public function hasCompany() + { + return isset($this->company); + } + + public function clearCompany() + { + unset($this->company); + } + + /** + * Required. Immutable. The resource name of the Company. + * Format: "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCompany($var) + { + GPBUtil::checkString($var, True); + $this->company = $var; + + return $this; + } + + /** + * Output only. The status of the contact. This attribute is assigned by + * Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the contact. This attribute is assigned by + * Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ContactStatusEnum\ContactStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. The address of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAddress() + { + return isset($this->address) ? $this->address : ''; + } + + public function hasAddress() + { + return isset($this->address); + } + + public function clearAddress() + { + unset($this->address); + } + + /** + * Optional. The address of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAddress($var) + { + GPBUtil::checkString($var, True); + $this->address = $var; + + return $this; + } + + /** + * Optional. The cell phone number where the contact can be reached. + * + * Generated from protobuf field optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCellPhone() + { + return isset($this->cell_phone) ? $this->cell_phone : ''; + } + + public function hasCellPhone() + { + return isset($this->cell_phone); + } + + public function clearCellPhone() + { + unset($this->cell_phone); + } + + /** + * Optional. The cell phone number where the contact can be reached. + * + * Generated from protobuf field optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCellPhone($var) + { + GPBUtil::checkString($var, True); + $this->cell_phone = $var; + + return $this; + } + + /** + * Optional. A free-form text comment for the contact. This attribute has a + * maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getComment() + { + return isset($this->comment) ? $this->comment : ''; + } + + public function hasComment() + { + return isset($this->comment); + } + + public function clearComment() + { + unset($this->comment); + } + + /** + * Optional. A free-form text comment for the contact. This attribute has a + * maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setComment($var) + { + GPBUtil::checkString($var, True); + $this->comment = $var; + + return $this; + } + + /** + * Optional. The e-mail address where the contact can be reached. This + * attribute has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEmail() + { + return isset($this->email) ? $this->email : ''; + } + + public function hasEmail() + { + return isset($this->email); + } + + public function clearEmail() + { + unset($this->email); + } + + /** + * Optional. The e-mail address where the contact can be reached. This + * attribute has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + + /** + * Optional. The fax number where the contact can be reached. This attribute + * has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFax() + { + return isset($this->fax) ? $this->fax : ''; + } + + public function hasFax() + { + return isset($this->fax); + } + + public function clearFax() + { + unset($this->fax); + } + + /** + * Optional. The fax number where the contact can be reached. This attribute + * has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFax($var) + { + GPBUtil::checkString($var, True); + $this->fax = $var; + + return $this; + } + + /** + * Optional. The job title of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTitle() + { + return isset($this->title) ? $this->title : ''; + } + + public function hasTitle() + { + return isset($this->title); + } + + public function clearTitle() + { + unset($this->title); + } + + /** + * Optional. The job title of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * Optional. The work phone number where the contact can be reached. This + * attribute has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getWorkPhone() + { + return isset($this->work_phone) ? $this->work_phone : ''; + } + + public function hasWorkPhone() + { + return isset($this->work_phone); + } + + public function clearWorkPhone() + { + unset($this->work_phone); + } + + /** + * Optional. The work phone number where the contact can be reached. This + * attribute has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setWorkPhone($var) + { + GPBUtil::checkString($var, True); + $this->work_phone = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum.php new file mode 100644 index 000000000000..95b3d48e1ffa --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.ContactStatusEnum + */ +class ContactStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum/ContactStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum/ContactStatus.php new file mode 100644 index 000000000000..cb0fd857e73f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum/ContactStatus.php @@ -0,0 +1,96 @@ +google.ads.admanager.v1.ContactStatusEnum.ContactStatus + */ +class ContactStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CONTACT_STATUS_UNSPECIFIED = 0; + */ + const CONTACT_STATUS_UNSPECIFIED = 0; + /** + * The contact was invited to see their orders, but the invitation was + * cancelled. + * + * Generated from protobuf enum INVITE_CANCELED = 1; + */ + const INVITE_CANCELED = 1; + /** + * The contact has been invited to see their orders, but the invitation has + * already expired. + * + * Generated from protobuf enum INVITE_EXPIRED = 2; + */ + const INVITE_EXPIRED = 2; + /** + * The contact has been invited to see their orders, but has not yet + * accepted the invitation. + * + * Generated from protobuf enum INVITE_PENDING = 3; + */ + const INVITE_PENDING = 3; + /** + * The contact has not been invited to see their orders. + * + * Generated from protobuf enum UNINVITED = 4; + */ + const UNINVITED = 4; + /** + * The contact has access to login and view their orders. + * + * Generated from protobuf enum USER_ACTIVE = 5; + */ + const USER_ACTIVE = 5; + /** + * The contact accepted an invitation to see their orders, but their access + * was later revoked. + * + * Generated from protobuf enum USER_DISABLED = 6; + */ + const USER_DISABLED = 6; + + private static $valueToName = [ + self::CONTACT_STATUS_UNSPECIFIED => 'CONTACT_STATUS_UNSPECIFIED', + self::INVITE_CANCELED => 'INVITE_CANCELED', + self::INVITE_EXPIRED => 'INVITE_EXPIRED', + self::INVITE_PENDING => 'INVITE_PENDING', + self::UNINVITED => 'UNINVITED', + self::USER_ACTIVE => 'USER_ACTIVE', + self::USER_DISABLED => 'USER_DISABLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ContactStatus::class, \Google\Ads\AdManager\V1\ContactStatusEnum_ContactStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Content.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Content.php new file mode 100644 index 000000000000..b93eb8506fc0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Content.php @@ -0,0 +1,115 @@ +google.ads.admanager.v1.Content + */ +class Content extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Content`. + * Format: `networks/{network_code}/content/{content_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The name of the `Content`. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Content`. + * Format: `networks/{network_code}/content/{content_id}` + * @type string $display_name + * Output only. The name of the `Content`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Content`. + * Format: `networks/{network_code}/content/{content_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Content`. + * Format: `networks/{network_code}/content/{content_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The name of the `Content`. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The name of the `Content`. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentBundle.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentBundle.php new file mode 100644 index 000000000000..a435ec884076 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentBundle.php @@ -0,0 +1,122 @@ +google.ads.admanager.v1.ContentBundle + */ +class ContentBundle extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the + * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format: + * `networks/{network_code}/contentBundles/{content_bundle_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The name of the + * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is + * required and has a maximum length of 255 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the + * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format: + * `networks/{network_code}/contentBundles/{content_bundle_id}` + * @type string $display_name + * Required. The name of the + * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is + * required and has a maximum length of 255 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentBundleMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the + * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format: + * `networks/{network_code}/contentBundles/{content_bundle_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the + * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format: + * `networks/{network_code}/contentBundles/{content_bundle_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The name of the + * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is + * required and has a maximum length of 255 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The name of the + * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is + * required and has a maximum length of 255 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentLabel.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentLabel.php new file mode 100644 index 000000000000..bb39593fa234 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentLabel.php @@ -0,0 +1,105 @@ +google.ads.admanager.v1.ContentLabel + */ +class ContentLabel extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `ContentLabel`. + * Format: `networks/{network_code}/contentLabels/{content_label_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. The display name of the `ContentLabel`. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `ContentLabel`. + * Format: `networks/{network_code}/contentLabels/{content_label_id}` + * @type string $display_name + * Optional. The display name of the `ContentLabel`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentLabelMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `ContentLabel`. + * Format: `networks/{network_code}/contentLabels/{content_label_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `ContentLabel`. + * Format: `networks/{network_code}/contentLabels/{content_label_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The display name of the `ContentLabel`. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. The display name of the `ContentLabel`. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentTargeting.php new file mode 100644 index 000000000000..435f0fc08c5b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentTargeting.php @@ -0,0 +1,202 @@ +google.ads.admanager.v1.ContentTargeting + */ +class ContentTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The resource names of the + * [Content][google.ads.admanager.v1.Content] that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_content; + /** + * Optional. The resource names of the + * [Content][google.ads.admanager.v1.Content] that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_content; + /** + * Optional. The resource names of the + * [ContentBundles][google.ads.admanager.v1.ContentBundle] that + * should be targeted/included. + * + * Generated from protobuf field repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_content_bundles; + /** + * Optional. The resource names of the + * [ContentBundles][google.ads.admanager.v1.ContentBundle] that + * should be excluded. + * + * Generated from protobuf field repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_content_bundles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_content + * Optional. The resource names of the + * [Content][google.ads.admanager.v1.Content] that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_content + * Optional. The resource names of the + * [Content][google.ads.admanager.v1.Content] that should be + * excluded. + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_content_bundles + * Optional. The resource names of the + * [ContentBundles][google.ads.admanager.v1.ContentBundle] that + * should be targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_content_bundles + * Optional. The resource names of the + * [ContentBundles][google.ads.admanager.v1.ContentBundle] that + * should be excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The resource names of the + * [Content][google.ads.admanager.v1.Content] that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedContent() + { + return $this->targeted_content; + } + + /** + * Optional. The resource names of the + * [Content][google.ads.admanager.v1.Content] that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedContent($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_content = $arr; + + return $this; + } + + /** + * Optional. The resource names of the + * [Content][google.ads.admanager.v1.Content] that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedContent() + { + return $this->excluded_content; + } + + /** + * Optional. The resource names of the + * [Content][google.ads.admanager.v1.Content] that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedContent($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_content = $arr; + + return $this; + } + + /** + * Optional. The resource names of the + * [ContentBundles][google.ads.admanager.v1.ContentBundle] that + * should be targeted/included. + * + * Generated from protobuf field repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedContentBundles() + { + return $this->targeted_content_bundles; + } + + /** + * Optional. The resource names of the + * [ContentBundles][google.ads.admanager.v1.ContentBundle] that + * should be targeted/included. + * + * Generated from protobuf field repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedContentBundles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_content_bundles = $arr; + + return $this; + } + + /** + * Optional. The resource names of the + * [ContentBundles][google.ads.admanager.v1.ContentBundle] that + * should be excluded. + * + * Generated from protobuf field repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedContentBundles() + { + return $this->excluded_content_bundles; + } + + /** + * Optional. The resource names of the + * [ContentBundles][google.ads.admanager.v1.ContentBundle] that + * should be excluded. + * + * Generated from protobuf field repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedContentBundles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_content_bundles = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateAdBreakRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateAdBreakRequest.php new file mode 100644 index 000000000000..4a76f7af5b01 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateAdBreakRequest.php @@ -0,0 +1,148 @@ +google.ads.admanager.v1.CreateAdBreakRequest + */ +class CreateAdBreakRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `AdBreak` will be created + * identified by an asset key or custom asset key. + * Formats: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `AdBreak` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ad_break = null; + + /** + * @param string $parent Required. The parent resource where this `AdBreak` will be created + * identified by an asset key or custom asset key. + * + * Formats: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * Please see {@see AdBreakServiceClient::liveStreamEventName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\AdBreak $adBreak Required. The `AdBreak` to create. + * + * @return \Google\Ads\AdManager\V1\CreateAdBreakRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\AdBreak $adBreak): self + { + return (new self()) + ->setParent($parent) + ->setAdBreak($adBreak); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `AdBreak` will be created + * identified by an asset key or custom asset key. + * Formats: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * @type \Google\Ads\AdManager\V1\AdBreak $ad_break + * Required. The `AdBreak` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `AdBreak` will be created + * identified by an asset key or custom asset key. + * Formats: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `AdBreak` will be created + * identified by an asset key or custom asset key. + * Formats: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `AdBreak` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\AdBreak|null + */ + public function getAdBreak() + { + return $this->ad_break; + } + + public function hasAdBreak() + { + return isset($this->ad_break); + } + + public function clearAdBreak() + { + unset($this->ad_break); + } + + /** + * Required. The `AdBreak` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\AdBreak $var + * @return $this + */ + public function setAdBreak($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\AdBreak::class); + $this->ad_break = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateContactRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateContactRequest.php new file mode 100644 index 000000000000..433bb80b98c8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateContactRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreateContactRequest + */ +class CreateContactRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `Contact` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Contact` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $contact = null; + + /** + * @param string $parent Required. The parent resource where this `Contact` will be created. + * Format: `networks/{network_code}` + * Please see {@see ContactServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\Contact $contact Required. The `Contact` to create. + * + * @return \Google\Ads\AdManager\V1\CreateContactRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\Contact $contact): self + { + return (new self()) + ->setParent($parent) + ->setContact($contact); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `Contact` will be created. + * Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\Contact $contact + * Required. The `Contact` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `Contact` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `Contact` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Contact` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Contact|null + */ + public function getContact() + { + return $this->contact; + } + + public function hasContact() + { + return isset($this->contact); + } + + public function clearContact() + { + unset($this->contact); + } + + /** + * Required. The `Contact` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Contact $var + * @return $this + */ + public function setContact($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Contact::class); + $this->contact = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateCustomFieldRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateCustomFieldRequest.php new file mode 100644 index 000000000000..01c2c4d60a80 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateCustomFieldRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreateCustomFieldRequest + */ +class CreateCustomFieldRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `CustomField` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `CustomField` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_field = null; + + /** + * @param string $parent Required. The parent resource where this `CustomField` will be created. + * Format: `networks/{network_code}` + * Please see {@see CustomFieldServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CustomField $customField Required. The `CustomField` to create. + * + * @return \Google\Ads\AdManager\V1\CreateCustomFieldRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\CustomField $customField): self + { + return (new self()) + ->setParent($parent) + ->setCustomField($customField); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `CustomField` will be created. + * Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\CustomField $custom_field + * Required. The `CustomField` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `CustomField` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `CustomField` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `CustomField` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\CustomField|null + */ + public function getCustomField() + { + return $this->custom_field; + } + + public function hasCustomField() + { + return isset($this->custom_field); + } + + public function clearCustomField() + { + unset($this->custom_field); + } + + /** + * Required. The `CustomField` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CustomField $var + * @return $this + */ + public function setCustomField($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CustomField::class); + $this->custom_field = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php new file mode 100644 index 000000000000..35f125049dec --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreateEntitySignalsMappingRequest + */ +class CreateEntitySignalsMappingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this EntitySignalsMapping will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The EntitySignalsMapping object to create. + * + * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entity_signals_mapping = null; + + /** + * @param string $parent Required. The parent resource where this EntitySignalsMapping will be + * created. Format: `networks/{network_code}` + * Please see {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping Required. The EntitySignalsMapping object to create. + * + * @return \Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping): self + { + return (new self()) + ->setParent($parent) + ->setEntitySignalsMapping($entitySignalsMapping); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this EntitySignalsMapping will be + * created. Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\EntitySignalsMapping $entity_signals_mapping + * Required. The EntitySignalsMapping object to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this EntitySignalsMapping will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this EntitySignalsMapping will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The EntitySignalsMapping object to create. + * + * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\EntitySignalsMapping|null + */ + public function getEntitySignalsMapping() + { + return $this->entity_signals_mapping; + } + + public function hasEntitySignalsMapping() + { + return isset($this->entity_signals_mapping); + } + + public function clearEntitySignalsMapping() + { + unset($this->entity_signals_mapping); + } + + /** + * Required. The EntitySignalsMapping object to create. + * + * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $var + * @return $this + */ + public function setEntitySignalsMapping($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); + $this->entity_signals_mapping = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePlacementRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePlacementRequest.php new file mode 100644 index 000000000000..138aa95a4538 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePlacementRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreatePlacementRequest + */ +class CreatePlacementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `Placement` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Placement` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $placement = null; + + /** + * @param string $parent Required. The parent resource where this `Placement` will be created. + * Format: `networks/{network_code}` + * Please see {@see PlacementServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\Placement $placement Required. The `Placement` to create. + * + * @return \Google\Ads\AdManager\V1\CreatePlacementRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\Placement $placement): self + { + return (new self()) + ->setParent($parent) + ->setPlacement($placement); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `Placement` will be created. + * Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\Placement $placement + * Required. The `Placement` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `Placement` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `Placement` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Placement` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Placement|null + */ + public function getPlacement() + { + return $this->placement; + } + + public function hasPlacement() + { + return isset($this->placement); + } + + public function clearPlacement() + { + unset($this->placement); + } + + /** + * Required. The `Placement` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Placement $var + * @return $this + */ + public function setPlacement($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Placement::class); + $this->placement = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionDealRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionDealRequest.php new file mode 100644 index 000000000000..b37f7199767a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionDealRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreatePrivateAuctionDealRequest + */ +class CreatePrivateAuctionDealRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `PrivateAuctionDeal` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `PrivateAuctionDeal` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $private_auction_deal = null; + + /** + * @param string $parent Required. The parent resource where this `PrivateAuctionDeal` will be + * created. Format: `networks/{network_code}` + * Please see {@see PrivateAuctionDealServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\PrivateAuctionDeal $privateAuctionDeal Required. The `PrivateAuctionDeal` to create. + * + * @return \Google\Ads\AdManager\V1\CreatePrivateAuctionDealRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\PrivateAuctionDeal $privateAuctionDeal): self + { + return (new self()) + ->setParent($parent) + ->setPrivateAuctionDeal($privateAuctionDeal); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `PrivateAuctionDeal` will be + * created. Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\PrivateAuctionDeal $private_auction_deal + * Required. The `PrivateAuctionDeal` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `PrivateAuctionDeal` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `PrivateAuctionDeal` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `PrivateAuctionDeal` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\PrivateAuctionDeal|null + */ + public function getPrivateAuctionDeal() + { + return $this->private_auction_deal; + } + + public function hasPrivateAuctionDeal() + { + return isset($this->private_auction_deal); + } + + public function clearPrivateAuctionDeal() + { + unset($this->private_auction_deal); + } + + /** + * Required. The `PrivateAuctionDeal` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\PrivateAuctionDeal $var + * @return $this + */ + public function setPrivateAuctionDeal($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\PrivateAuctionDeal::class); + $this->private_auction_deal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionRequest.php new file mode 100644 index 000000000000..2f79a498d14f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreatePrivateAuctionRequest + */ +class CreatePrivateAuctionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `PrivateAuction` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `PrivateAuction` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $private_auction = null; + + /** + * @param string $parent Required. The parent resource where this `PrivateAuction` will be + * created. Format: `networks/{network_code}` + * Please see {@see PrivateAuctionServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\PrivateAuction $privateAuction Required. The `PrivateAuction` to create. + * + * @return \Google\Ads\AdManager\V1\CreatePrivateAuctionRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\PrivateAuction $privateAuction): self + { + return (new self()) + ->setParent($parent) + ->setPrivateAuction($privateAuction); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `PrivateAuction` will be + * created. Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\PrivateAuction $private_auction + * Required. The `PrivateAuction` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `PrivateAuction` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `PrivateAuction` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `PrivateAuction` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\PrivateAuction|null + */ + public function getPrivateAuction() + { + return $this->private_auction; + } + + public function hasPrivateAuction() + { + return isset($this->private_auction); + } + + public function clearPrivateAuction() + { + unset($this->private_auction); + } + + /** + * Required. The `PrivateAuction` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\PrivateAuction $var + * @return $this + */ + public function setPrivateAuction($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\PrivateAuction::class); + $this->private_auction = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php new file mode 100644 index 000000000000..6d466eb38e48 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreateReportRequest + */ +class CreateReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `Report` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Report` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Report report = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $report = null; + + /** + * @param string $parent Required. The parent resource where this `Report` will be created. + * Format: `networks/{network_code}` + * Please see {@see ReportServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\Report $report Required. The `Report` to create. + * + * @return \Google\Ads\AdManager\V1\CreateReportRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\Report $report): self + { + return (new self()) + ->setParent($parent) + ->setReport($report); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `Report` will be created. + * Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\Report $report + * Required. The `Report` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `Report` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `Report` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Report` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Report report = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Report|null + */ + public function getReport() + { + return $this->report; + } + + public function hasReport() + { + return isset($this->report); + } + + public function clearReport() + { + unset($this->report); + } + + /** + * Required. The `Report` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Report report = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Report $var + * @return $this + */ + public function setReport($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report::class); + $this->report = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateSiteRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateSiteRequest.php new file mode 100644 index 000000000000..cb46fc8015fb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateSiteRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreateSiteRequest + */ +class CreateSiteRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `Site` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Site` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $site = null; + + /** + * @param string $parent Required. The parent resource where this `Site` will be created. + * Format: `networks/{network_code}` + * Please see {@see SiteServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\Site $site Required. The `Site` to create. + * + * @return \Google\Ads\AdManager\V1\CreateSiteRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\Site $site): self + { + return (new self()) + ->setParent($parent) + ->setSite($site); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `Site` will be created. + * Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\Site $site + * Required. The `Site` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `Site` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `Site` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Site` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Site|null + */ + public function getSite() + { + return $this->site; + } + + public function hasSite() + { + return isset($this->site); + } + + public function clearSite() + { + unset($this->site); + } + + /** + * Required. The `Site` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Site $var + * @return $this + */ + public function setSite($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Site::class); + $this->site = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateTeamRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateTeamRequest.php new file mode 100644 index 000000000000..576ff5a95666 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateTeamRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreateTeamRequest + */ +class CreateTeamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `Team` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `Team` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $team = null; + + /** + * @param string $parent Required. The parent resource where this `Team` will be created. + * Format: `networks/{network_code}` + * Please see {@see TeamServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\Team $team Required. The `Team` to create. + * + * @return \Google\Ads\AdManager\V1\CreateTeamRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\Team $team): self + { + return (new self()) + ->setParent($parent) + ->setTeam($team); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `Team` will be created. + * Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\Team $team + * Required. The `Team` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `Team` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `Team` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `Team` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Team|null + */ + public function getTeam() + { + return $this->team; + } + + public function hasTeam() + { + return isset($this->team); + } + + public function clearTeam() + { + unset($this->team); + } + + /** + * Required. The `Team` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Team $var + * @return $this + */ + public function setTeam($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Team::class); + $this->team = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplate.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplate.php new file mode 100644 index 000000000000..5def9566d8c7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplate.php @@ -0,0 +1,537 @@ +google.ads.admanager.v1.CreativeTemplate + */ +class CreativeTemplate extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the creative template. + * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The display name of the creative template. This has a maximum + * length of 255 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. The description of the creative template. + * + * Generated from protobuf field optional string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = null; + /** + * Required. The code snippet of the creative template, with placeholders for + * the associated variables. + * + * Generated from protobuf field optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $snippet = null; + /** + * Output only. The status of the creative template. This attribute is + * assigned by Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Optional. The type of the creative template. Users can only create or + * update `CreativeTemplateType.CUSTOM` templates. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type = null; + /** + * Optional. `True` if this creative template produces out-of-page creatives. + * Creative templates with this setting enabled must include the viewed + * impression macro. + * + * Generated from protobuf field optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $interstitial = null; + /** + * Optional. `True` if this creative template produces native-eligible + * creatives. + * + * Generated from protobuf field optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $native_eligible = null; + /** + * Optional. `True` if this creative template produces native video-eligible + * creatives. + * + * Generated from protobuf field optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $native_video_eligible = null; + /** + * Optional. Whether the Creative produced is compatible for SafeFrame + * rendering. This attribute defaults to `True`. + * + * Generated from protobuf field optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $safe_frame_compatible = null; + /** + * Required. The list of creative template variables. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + */ + private $variables; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the creative template. + * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + * @type string $display_name + * Required. The display name of the creative template. This has a maximum + * length of 255 characters. + * @type string $description + * Optional. The description of the creative template. + * @type string $snippet + * Required. The code snippet of the creative template, with placeholders for + * the associated variables. + * @type int $status + * Output only. The status of the creative template. This attribute is + * assigned by Google. + * @type int $type + * Optional. The type of the creative template. Users can only create or + * update `CreativeTemplateType.CUSTOM` templates. + * @type bool $interstitial + * Optional. `True` if this creative template produces out-of-page creatives. + * Creative templates with this setting enabled must include the viewed + * impression macro. + * @type bool $native_eligible + * Optional. `True` if this creative template produces native-eligible + * creatives. + * @type bool $native_video_eligible + * Optional. `True` if this creative template produces native video-eligible + * creatives. + * @type bool $safe_frame_compatible + * Optional. Whether the Creative produced is compatible for SafeFrame + * rendering. This attribute defaults to `True`. + * @type array<\Google\Ads\AdManager\V1\CreativeTemplateVariable>|\Google\Protobuf\Internal\RepeatedField $variables + * Required. The list of creative template variables. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the creative template. + * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the creative template. + * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the creative template. This has a maximum + * length of 255 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The display name of the creative template. This has a maximum + * length of 255 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The description of the creative template. + * + * Generated from protobuf field optional string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Optional. The description of the creative template. + * + * Generated from protobuf field optional string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. The code snippet of the creative template, with placeholders for + * the associated variables. + * + * Generated from protobuf field optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSnippet() + { + return isset($this->snippet) ? $this->snippet : ''; + } + + public function hasSnippet() + { + return isset($this->snippet); + } + + public function clearSnippet() + { + unset($this->snippet); + } + + /** + * Required. The code snippet of the creative template, with placeholders for + * the associated variables. + * + * Generated from protobuf field optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSnippet($var) + { + GPBUtil::checkString($var, True); + $this->snippet = $var; + + return $this; + } + + /** + * Output only. The status of the creative template. This attribute is + * assigned by Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the creative template. This attribute is + * assigned by Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CreativeTemplateStatusEnum\CreativeTemplateStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. The type of the creative template. Users can only create or + * update `CreativeTemplateType.CUSTOM` templates. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getType() + { + return isset($this->type) ? $this->type : 0; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * Optional. The type of the creative template. Users can only create or + * update `CreativeTemplateType.CUSTOM` templates. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CreativeTemplateTypeEnum\CreativeTemplateType::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. `True` if this creative template produces out-of-page creatives. + * Creative templates with this setting enabled must include the viewed + * impression macro. + * + * Generated from protobuf field optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getInterstitial() + { + return isset($this->interstitial) ? $this->interstitial : false; + } + + public function hasInterstitial() + { + return isset($this->interstitial); + } + + public function clearInterstitial() + { + unset($this->interstitial); + } + + /** + * Optional. `True` if this creative template produces out-of-page creatives. + * Creative templates with this setting enabled must include the viewed + * impression macro. + * + * Generated from protobuf field optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setInterstitial($var) + { + GPBUtil::checkBool($var); + $this->interstitial = $var; + + return $this; + } + + /** + * Optional. `True` if this creative template produces native-eligible + * creatives. + * + * Generated from protobuf field optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getNativeEligible() + { + return isset($this->native_eligible) ? $this->native_eligible : false; + } + + public function hasNativeEligible() + { + return isset($this->native_eligible); + } + + public function clearNativeEligible() + { + unset($this->native_eligible); + } + + /** + * Optional. `True` if this creative template produces native-eligible + * creatives. + * + * Generated from protobuf field optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setNativeEligible($var) + { + GPBUtil::checkBool($var); + $this->native_eligible = $var; + + return $this; + } + + /** + * Optional. `True` if this creative template produces native video-eligible + * creatives. + * + * Generated from protobuf field optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getNativeVideoEligible() + { + return isset($this->native_video_eligible) ? $this->native_video_eligible : false; + } + + public function hasNativeVideoEligible() + { + return isset($this->native_video_eligible); + } + + public function clearNativeVideoEligible() + { + unset($this->native_video_eligible); + } + + /** + * Optional. `True` if this creative template produces native video-eligible + * creatives. + * + * Generated from protobuf field optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setNativeVideoEligible($var) + { + GPBUtil::checkBool($var); + $this->native_video_eligible = $var; + + return $this; + } + + /** + * Optional. Whether the Creative produced is compatible for SafeFrame + * rendering. This attribute defaults to `True`. + * + * Generated from protobuf field optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getSafeFrameCompatible() + { + return isset($this->safe_frame_compatible) ? $this->safe_frame_compatible : false; + } + + public function hasSafeFrameCompatible() + { + return isset($this->safe_frame_compatible); + } + + public function clearSafeFrameCompatible() + { + unset($this->safe_frame_compatible); + } + + /** + * Optional. Whether the Creative produced is compatible for SafeFrame + * rendering. This attribute defaults to `True`. + * + * Generated from protobuf field optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setSafeFrameCompatible($var) + { + GPBUtil::checkBool($var); + $this->safe_frame_compatible = $var; + + return $this; + } + + /** + * Required. The list of creative template variables. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVariables() + { + return $this->variables; + } + + /** + * Required. The list of creative template variables. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\CreativeTemplateVariable>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVariables($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreativeTemplateVariable::class); + $this->variables = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum.php new file mode 100644 index 000000000000..307bd65b603c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CreativeTemplateStatusEnum + */ +class CreativeTemplateStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php new file mode 100644 index 000000000000..7cdcd5e60b04 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php @@ -0,0 +1,73 @@ +google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus + */ +class CreativeTemplateStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CREATIVE_TEMPLATE_STATUS_UNSPECIFIED = 0; + */ + const CREATIVE_TEMPLATE_STATUS_UNSPECIFIED = 0; + /** + * The CreativeTemplate is active + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The CreativeTemplate is deleted. Creatives created from this + * CreativeTemplate can no longer serve. + * + * Generated from protobuf enum DELETED = 2; + */ + const DELETED = 2; + /** + * The CreativeTemplate is inactive. Users cannot create new creatives + * from this template, but existing ones can be edited and continue to serve + * + * Generated from protobuf enum INACTIVE = 3; + */ + const INACTIVE = 3; + + private static $valueToName = [ + self::CREATIVE_TEMPLATE_STATUS_UNSPECIFIED => 'CREATIVE_TEMPLATE_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::DELETED => 'DELETED', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CreativeTemplateStatus::class, \Google\Ads\AdManager\V1\CreativeTemplateStatusEnum_CreativeTemplateStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum.php new file mode 100644 index 000000000000..cdbe9cbb3d89 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CreativeTemplateTypeEnum + */ +class CreativeTemplateTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php new file mode 100644 index 000000000000..78579d87b556 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php @@ -0,0 +1,65 @@ +google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType + */ +class CreativeTemplateType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CREATIVE_TEMPLATE_TYPE_UNSPECIFIED = 0; + */ + const CREATIVE_TEMPLATE_TYPE_UNSPECIFIED = 0; + /** + * Creative templates that are included in Ad Manager by default. + * + * Generated from protobuf enum STANDARD = 1; + */ + const STANDARD = 1; + /** + * Creative templates created by an administrator or other user in the + * network. + * + * Generated from protobuf enum CUSTOM = 2; + */ + const CUSTOM = 2; + + private static $valueToName = [ + self::CREATIVE_TEMPLATE_TYPE_UNSPECIFIED => 'CREATIVE_TEMPLATE_TYPE_UNSPECIFIED', + self::STANDARD => 'STANDARD', + self::CUSTOM => 'CUSTOM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CreativeTemplateType::class, \Google\Ads\AdManager\V1\CreativeTemplateTypeEnum_CreativeTemplateType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable.php new file mode 100644 index 000000000000..1fa71b2c13fa --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable.php @@ -0,0 +1,402 @@ +google.ads.admanager.v1.CreativeTemplateVariable + */ +class CreativeTemplateVariable extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Label that is displayed to users when creating from the creative + * template. This has a maximum length of 127 characters. + * + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $label = null; + /** + * Output only. Unique name used to identify the variable. This attribute is + * assigned by Google when a creative template variable is created. + * + * Generated from protobuf field optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $unique_display_name = null; + /** + * Required. A descriptive help text that is displayed to users along with the + * label. This attribute has a maximum length of 255 characters. + * + * Generated from protobuf field optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $description = null; + /** + * Optional. `True` if this variable is required to be filled in by users when + * creating a creative from the creative template. + * + * Generated from protobuf field optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $required = null; + protected $SubType; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\CreativeTemplateVariable\AssetCreativeTemplateVariable $asset_variable + * Optional. Represents a file asset variable defined in a creative + * template. + * @type \Google\Ads\AdManager\V1\CreativeTemplateVariable\ListStringCreativeTemplateVariable $list_string_variable + * Optional. Represents a list variable defined in a creative template. + * @type \Google\Ads\AdManager\V1\CreativeTemplateVariable\LongCreativeTemplateVariable $long_variable + * Optional. Represents a long variable defined in a creative template. + * @type \Google\Ads\AdManager\V1\CreativeTemplateVariable\StringCreativeTemplateVariable $string_variable + * Optional. Represents a string variable defined in a creative template. + * @type \Google\Ads\AdManager\V1\CreativeTemplateVariable\UrlCreativeTemplateVariable $url_variable + * Optional. Represents a url variable defined in a creative template. + * @type string $label + * Required. Label that is displayed to users when creating from the creative + * template. This has a maximum length of 127 characters. + * @type string $unique_display_name + * Output only. Unique name used to identify the variable. This attribute is + * assigned by Google when a creative template variable is created. + * @type string $description + * Required. A descriptive help text that is displayed to users along with the + * label. This attribute has a maximum length of 255 characters. + * @type bool $required + * Optional. `True` if this variable is required to be filled in by users when + * creating a creative from the creative template. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateMessages::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Represents a file asset variable defined in a creative + * template. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\CreativeTemplateVariable\AssetCreativeTemplateVariable|null + */ + public function getAssetVariable() + { + return $this->readOneof(5); + } + + public function hasAssetVariable() + { + return $this->hasOneof(5); + } + + /** + * Optional. Represents a file asset variable defined in a creative + * template. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\CreativeTemplateVariable\AssetCreativeTemplateVariable $var + * @return $this + */ + public function setAssetVariable($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CreativeTemplateVariable\AssetCreativeTemplateVariable::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Optional. Represents a list variable defined in a creative template. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\CreativeTemplateVariable\ListStringCreativeTemplateVariable|null + */ + public function getListStringVariable() + { + return $this->readOneof(7); + } + + public function hasListStringVariable() + { + return $this->hasOneof(7); + } + + /** + * Optional. Represents a list variable defined in a creative template. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\CreativeTemplateVariable\ListStringCreativeTemplateVariable $var + * @return $this + */ + public function setListStringVariable($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CreativeTemplateVariable\ListStringCreativeTemplateVariable::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Optional. Represents a long variable defined in a creative template. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\CreativeTemplateVariable\LongCreativeTemplateVariable|null + */ + public function getLongVariable() + { + return $this->readOneof(8); + } + + public function hasLongVariable() + { + return $this->hasOneof(8); + } + + /** + * Optional. Represents a long variable defined in a creative template. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\CreativeTemplateVariable\LongCreativeTemplateVariable $var + * @return $this + */ + public function setLongVariable($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CreativeTemplateVariable\LongCreativeTemplateVariable::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Optional. Represents a string variable defined in a creative template. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\CreativeTemplateVariable\StringCreativeTemplateVariable|null + */ + public function getStringVariable() + { + return $this->readOneof(9); + } + + public function hasStringVariable() + { + return $this->hasOneof(9); + } + + /** + * Optional. Represents a string variable defined in a creative template. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\CreativeTemplateVariable\StringCreativeTemplateVariable $var + * @return $this + */ + public function setStringVariable($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CreativeTemplateVariable\StringCreativeTemplateVariable::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Optional. Represents a url variable defined in a creative template. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\CreativeTemplateVariable\UrlCreativeTemplateVariable|null + */ + public function getUrlVariable() + { + return $this->readOneof(10); + } + + public function hasUrlVariable() + { + return $this->hasOneof(10); + } + + /** + * Optional. Represents a url variable defined in a creative template. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\CreativeTemplateVariable\UrlCreativeTemplateVariable $var + * @return $this + */ + public function setUrlVariable($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CreativeTemplateVariable\UrlCreativeTemplateVariable::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Required. Label that is displayed to users when creating from the creative + * template. This has a maximum length of 127 characters. + * + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLabel() + { + return isset($this->label) ? $this->label : ''; + } + + public function hasLabel() + { + return isset($this->label); + } + + public function clearLabel() + { + unset($this->label); + } + + /** + * Required. Label that is displayed to users when creating from the creative + * template. This has a maximum length of 127 characters. + * + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Output only. Unique name used to identify the variable. This attribute is + * assigned by Google when a creative template variable is created. + * + * Generated from protobuf field optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUniqueDisplayName() + { + return isset($this->unique_display_name) ? $this->unique_display_name : ''; + } + + public function hasUniqueDisplayName() + { + return isset($this->unique_display_name); + } + + public function clearUniqueDisplayName() + { + unset($this->unique_display_name); + } + + /** + * Output only. Unique name used to identify the variable. This attribute is + * assigned by Google when a creative template variable is created. + * + * Generated from protobuf field optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUniqueDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->unique_display_name = $var; + + return $this; + } + + /** + * Required. A descriptive help text that is displayed to users along with the + * label. This attribute has a maximum length of 255 characters. + * + * Generated from protobuf field optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Required. A descriptive help text that is displayed to users along with the + * label. This attribute has a maximum length of 255 characters. + * + * Generated from protobuf field optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. `True` if this variable is required to be filled in by users when + * creating a creative from the creative template. + * + * Generated from protobuf field optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getRequired() + { + return isset($this->required) ? $this->required : false; + } + + public function hasRequired() + { + return isset($this->required); + } + + public function clearRequired() + { + unset($this->required); + } + + /** + * Optional. `True` if this variable is required to be filled in by users when + * creating a creative from the creative template. + * + * Generated from protobuf field optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setRequired($var) + { + GPBUtil::checkBool($var); + $this->required = $var; + + return $this; + } + + /** + * @return string + */ + public function getSubType() + { + return $this->whichOneof("SubType"); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php new file mode 100644 index 000000000000..c2edc2100cdb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php @@ -0,0 +1,77 @@ +google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + */ +class AssetCreativeTemplateVariable extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The set of allowed MIME types. If unspecified, all MIME types + * are allowed. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $mime_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $mime_types + * Optional. The set of allowed MIME types. If unspecified, all MIME types + * are allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateMessages::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The set of allowed MIME types. If unspecified, all MIME types + * are allowed. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMimeTypes() + { + return $this->mime_types; + } + + /** + * Optional. The set of allowed MIME types. If unspecified, all MIME types + * are allowed. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMimeTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\CreativeTemplateVariable\AssetCreativeTemplateVariable\MimeType::class); + $this->mime_types = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AssetCreativeTemplateVariable::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_AssetCreativeTemplateVariable::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php new file mode 100644 index 000000000000..0a3903dbecde --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType + */ +class MimeType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum MIME_TYPE_UNSPECIFIED = 0; + */ + const MIME_TYPE_UNSPECIFIED = 0; + /** + * The `image/jpeg` MIME type. + * + * Generated from protobuf enum JPG = 1; + */ + const JPG = 1; + /** + * The `image/png` MIME type. + * + * Generated from protobuf enum PNG = 2; + */ + const PNG = 2; + /** + * The `image/gif` MIME type. + * + * Generated from protobuf enum GIF = 3; + */ + const GIF = 3; + + private static $valueToName = [ + self::MIME_TYPE_UNSPECIFIED => 'MIME_TYPE_UNSPECIFIED', + self::JPG => 'JPG', + self::PNG => 'PNG', + self::GIF => 'GIF', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MimeType::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_AssetCreativeTemplateVariable_MimeType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php new file mode 100644 index 000000000000..183a4112d8c5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php @@ -0,0 +1,228 @@ +google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + */ +class ListStringCreativeTemplateVariable extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_value = null; + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sample_value = null; + /** + * Optional. The selectable values that the user can choose from. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $choices; + /** + * Optional. `True` if a user can specify an 'other' value. For example, if + * a variable called backgroundColor is defined as a list with values: red, + * green, blue, this boolean can be set to allow a user to enter a value not + * on the list such as purple. + * + * Generated from protobuf field optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_other_choice = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_value + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * @type string $sample_value + * Optional. Sample value that is used when previewing the template in the + * UI. + * @type array<\Google\Ads\AdManager\V1\CreativeTemplateVariable\ListStringCreativeTemplateVariable\VariableChoice>|\Google\Protobuf\Internal\RepeatedField $choices + * Optional. The selectable values that the user can choose from. + * @type bool $allow_other_choice + * Optional. `True` if a user can specify an 'other' value. For example, if + * a variable called backgroundColor is defined as a list with values: red, + * green, blue, this boolean can be set to allow a user to enter a value not + * on the list such as purple. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateMessages::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultValue() + { + return isset($this->default_value) ? $this->default_value : ''; + } + + public function hasDefaultValue() + { + return isset($this->default_value); + } + + public function clearDefaultValue() + { + unset($this->default_value); + } + + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultValue($var) + { + GPBUtil::checkString($var, True); + $this->default_value = $var; + + return $this; + } + + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSampleValue() + { + return isset($this->sample_value) ? $this->sample_value : ''; + } + + public function hasSampleValue() + { + return isset($this->sample_value); + } + + public function clearSampleValue() + { + unset($this->sample_value); + } + + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSampleValue($var) + { + GPBUtil::checkString($var, True); + $this->sample_value = $var; + + return $this; + } + + /** + * Optional. The selectable values that the user can choose from. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChoices() + { + return $this->choices; + } + + /** + * Optional. The selectable values that the user can choose from. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\CreativeTemplateVariable\ListStringCreativeTemplateVariable\VariableChoice>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChoices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreativeTemplateVariable\ListStringCreativeTemplateVariable\VariableChoice::class); + $this->choices = $arr; + + return $this; + } + + /** + * Optional. `True` if a user can specify an 'other' value. For example, if + * a variable called backgroundColor is defined as a list with values: red, + * green, blue, this boolean can be set to allow a user to enter a value not + * on the list such as purple. + * + * Generated from protobuf field optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowOtherChoice() + { + return isset($this->allow_other_choice) ? $this->allow_other_choice : false; + } + + public function hasAllowOtherChoice() + { + return isset($this->allow_other_choice); + } + + public function clearAllowOtherChoice() + { + unset($this->allow_other_choice); + } + + /** + * Optional. `True` if a user can specify an 'other' value. For example, if + * a variable called backgroundColor is defined as a list with values: red, + * green, blue, this boolean can be set to allow a user to enter a value not + * on the list such as purple. + * + * Generated from protobuf field optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowOtherChoice($var) + { + GPBUtil::checkBool($var); + $this->allow_other_choice = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ListStringCreativeTemplateVariable::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_ListStringCreativeTemplateVariable::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php new file mode 100644 index 000000000000..783163aac991 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php @@ -0,0 +1,144 @@ +google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice + */ +class VariableChoice extends \Google\Protobuf\Internal\Message +{ + /** + * Required. A label is displayed to users when creating a + * [TemplateCreative][]. This attribute is intended to be more descriptive + * than value. This attribute has a maximum length of 255 characters. + * + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $label = null; + /** + * Required. When creating a [TemplateCreative][], the value in + * [StringCreativeTemplateVariableValue][] should match this value, if you + * intend to select this value. This attribute has a maximum length of 255 + * characters. + * + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $label + * Required. A label is displayed to users when creating a + * [TemplateCreative][]. This attribute is intended to be more descriptive + * than value. This attribute has a maximum length of 255 characters. + * @type string $value + * Required. When creating a [TemplateCreative][], the value in + * [StringCreativeTemplateVariableValue][] should match this value, if you + * intend to select this value. This attribute has a maximum length of 255 + * characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateMessages::initOnce(); + parent::__construct($data); + } + + /** + * Required. A label is displayed to users when creating a + * [TemplateCreative][]. This attribute is intended to be more descriptive + * than value. This attribute has a maximum length of 255 characters. + * + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLabel() + { + return isset($this->label) ? $this->label : ''; + } + + public function hasLabel() + { + return isset($this->label); + } + + public function clearLabel() + { + unset($this->label); + } + + /** + * Required. A label is displayed to users when creating a + * [TemplateCreative][]. This attribute is intended to be more descriptive + * than value. This attribute has a maximum length of 255 characters. + * + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Required. When creating a [TemplateCreative][], the value in + * [StringCreativeTemplateVariableValue][] should match this value, if you + * intend to select this value. This attribute has a maximum length of 255 + * characters. + * + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return isset($this->value) ? $this->value : ''; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Required. When creating a [TemplateCreative][], the value in + * [StringCreativeTemplateVariableValue][] should match this value, if you + * intend to select this value. This attribute has a maximum length of 255 + * characters. + * + * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VariableChoice::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php new file mode 100644 index 000000000000..4935e30c5f9a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php @@ -0,0 +1,135 @@ +google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + */ +class LongCreativeTemplateVariable extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_value = null; + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sample_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $default_value + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * @type int|string $sample_value + * Optional. Sample value that is used when previewing the template in the + * UI. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateMessages::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getDefaultValue() + { + return isset($this->default_value) ? $this->default_value : 0; + } + + public function hasDefaultValue() + { + return isset($this->default_value); + } + + public function clearDefaultValue() + { + unset($this->default_value); + } + + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setDefaultValue($var) + { + GPBUtil::checkInt64($var); + $this->default_value = $var; + + return $this; + } + + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getSampleValue() + { + return isset($this->sample_value) ? $this->sample_value : 0; + } + + public function hasSampleValue() + { + return isset($this->sample_value); + } + + public function clearSampleValue() + { + unset($this->sample_value); + } + + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setSampleValue($var) + { + GPBUtil::checkInt64($var); + $this->sample_value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LongCreativeTemplateVariable::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_LongCreativeTemplateVariable::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php new file mode 100644 index 000000000000..d86245b29743 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php @@ -0,0 +1,135 @@ +google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + */ +class StringCreativeTemplateVariable extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_value = null; + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sample_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_value + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * @type string $sample_value + * Optional. Sample value that is used when previewing the template in the + * UI. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateMessages::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultValue() + { + return isset($this->default_value) ? $this->default_value : ''; + } + + public function hasDefaultValue() + { + return isset($this->default_value); + } + + public function clearDefaultValue() + { + unset($this->default_value); + } + + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultValue($var) + { + GPBUtil::checkString($var, True); + $this->default_value = $var; + + return $this; + } + + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSampleValue() + { + return isset($this->sample_value) ? $this->sample_value : ''; + } + + public function hasSampleValue() + { + return isset($this->sample_value); + } + + public function clearSampleValue() + { + unset($this->sample_value); + } + + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSampleValue($var) + { + GPBUtil::checkString($var, True); + $this->sample_value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(StringCreativeTemplateVariable::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_StringCreativeTemplateVariable::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php new file mode 100644 index 000000000000..502b2b00c5c5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php @@ -0,0 +1,183 @@ +google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + */ +class UrlCreativeTemplateVariable extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_value = null; + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sample_value = null; + /** + * Optional. The type of URL that this variable represents. Different types + * of URLs may be handled differently at rendering time. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $url_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_value + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * @type string $sample_value + * Optional. Sample value that is used when previewing the template in the + * UI. + * @type int $url_type + * Optional. The type of URL that this variable represents. Different types + * of URLs may be handled differently at rendering time. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateMessages::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultValue() + { + return isset($this->default_value) ? $this->default_value : ''; + } + + public function hasDefaultValue() + { + return isset($this->default_value); + } + + public function clearDefaultValue() + { + unset($this->default_value); + } + + /** + * Optional. Default value to be filled in when creating creatives from the + * creative template. + * + * Generated from protobuf field optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultValue($var) + { + GPBUtil::checkString($var, True); + $this->default_value = $var; + + return $this; + } + + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSampleValue() + { + return isset($this->sample_value) ? $this->sample_value : ''; + } + + public function hasSampleValue() + { + return isset($this->sample_value); + } + + public function clearSampleValue() + { + unset($this->sample_value); + } + + /** + * Optional. Sample value that is used when previewing the template in the + * UI. + * + * Generated from protobuf field optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSampleValue($var) + { + GPBUtil::checkString($var, True); + $this->sample_value = $var; + + return $this; + } + + /** + * Optional. The type of URL that this variable represents. Different types + * of URLs may be handled differently at rendering time. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getUrlType() + { + return isset($this->url_type) ? $this->url_type : 0; + } + + public function hasUrlType() + { + return isset($this->url_type); + } + + public function clearUrlType() + { + unset($this->url_type); + } + + /** + * Optional. The type of URL that this variable represents. Different types + * of URLs may be handled differently at rendering time. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setUrlType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CreativeTemplateVariableUrlTypeEnum\CreativeTemplateVariableUrlType::class); + $this->url_type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(UrlCreativeTemplateVariable::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_UrlCreativeTemplateVariable::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum.php new file mode 100644 index 000000000000..7fc9ae07a5d9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + */ +class CreativeTemplateVariableUrlTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateVariableUrlTypeEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php new file mode 100644 index 000000000000..81f975cb193d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php @@ -0,0 +1,78 @@ +google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType + */ +class CreativeTemplateVariableUrlType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED = 0; + */ + const CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED = 0; + /** + * Click tracking URL. + * + * Generated from protobuf enum CLICK_TRACKER = 1; + */ + const CLICK_TRACKER = 1; + /** + * Deep-link URL. + * + * Generated from protobuf enum DEEPLINK = 2; + */ + const DEEPLINK = 2; + /** + * Impression tracking URL. + * + * Generated from protobuf enum IMPRESSION_TRACKER = 3; + */ + const IMPRESSION_TRACKER = 3; + /** + * Standard HTTP URL. + * + * Generated from protobuf enum STANDARD_HTTP = 4; + */ + const STANDARD_HTTP = 4; + + private static $valueToName = [ + self::CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED => 'CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED', + self::CLICK_TRACKER => 'CLICK_TRACKER', + self::DEEPLINK => 'DEEPLINK', + self::IMPRESSION_TRACKER => 'IMPRESSION_TRACKER', + self::STANDARD_HTTP => 'STANDARD_HTTP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CreativeTemplateVariableUrlType::class, \Google\Ads\AdManager\V1\CreativeTemplateVariableUrlTypeEnum_CreativeTemplateVariableUrlType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php new file mode 100644 index 000000000000..40f2e3e4c9d4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php @@ -0,0 +1,425 @@ +google.ads.admanager.v1.CustomField + */ +class CustomField extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `CustomField`. + * Format: `networks/{network_code}/customFields/{custom_field}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Unique ID of the CustomField. This attribute is assigned by + * Google. + * + * Generated from protobuf field optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $custom_field_id = null; + /** + * Required. Name of the CustomField. The max length is 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. A description of the custom field. The maximum length is 511 + * characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = null; + /** + * Output only. The status of the `CustomField`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Required. The type of entity the `CustomField` can be applied to. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entity_type = null; + /** + * Required. The data type of the `CustomField`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_type = null; + /** + * Required. The visibility of the `CustomField`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $visibility = null; + /** + * Optional. The drop-down options for the `CustomField`. + * Only applicable for `CustomField` with the drop-down data type. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldOption options = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `CustomField`. + * Format: `networks/{network_code}/customFields/{custom_field}` + * @type int|string $custom_field_id + * Output only. Unique ID of the CustomField. This attribute is assigned by + * Google. + * @type string $display_name + * Required. Name of the CustomField. The max length is 127 characters. + * @type string $description + * Optional. A description of the custom field. The maximum length is 511 + * characters. + * @type int $status + * Output only. The status of the `CustomField`. + * @type int $entity_type + * Required. The type of entity the `CustomField` can be applied to. + * @type int $data_type + * Required. The data type of the `CustomField`. + * @type int $visibility + * Required. The visibility of the `CustomField`. + * @type array<\Google\Ads\AdManager\V1\CustomFieldOption>|\Google\Protobuf\Internal\RepeatedField $options + * Optional. The drop-down options for the `CustomField`. + * Only applicable for `CustomField` with the drop-down data type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `CustomField`. + * Format: `networks/{network_code}/customFields/{custom_field}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `CustomField`. + * Format: `networks/{network_code}/customFields/{custom_field}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Unique ID of the CustomField. This attribute is assigned by + * Google. + * + * Generated from protobuf field optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getCustomFieldId() + { + return isset($this->custom_field_id) ? $this->custom_field_id : 0; + } + + public function hasCustomFieldId() + { + return isset($this->custom_field_id); + } + + public function clearCustomFieldId() + { + unset($this->custom_field_id); + } + + /** + * Output only. Unique ID of the CustomField. This attribute is assigned by + * Google. + * + * Generated from protobuf field optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setCustomFieldId($var) + { + GPBUtil::checkInt64($var); + $this->custom_field_id = $var; + + return $this; + } + + /** + * Required. Name of the CustomField. The max length is 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. Name of the CustomField. The max length is 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. A description of the custom field. The maximum length is 511 + * characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Optional. A description of the custom field. The maximum length is 511 + * characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. The status of the `CustomField`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the `CustomField`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldStatusEnum\CustomFieldStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Required. The type of entity the `CustomField` can be applied to. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getEntityType() + { + return isset($this->entity_type) ? $this->entity_type : 0; + } + + public function hasEntityType() + { + return isset($this->entity_type); + } + + public function clearEntityType() + { + unset($this->entity_type); + } + + /** + * Required. The type of entity the `CustomField` can be applied to. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setEntityType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldEntityTypeEnum\CustomFieldEntityType::class); + $this->entity_type = $var; + + return $this; + } + + /** + * Required. The data type of the `CustomField`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getDataType() + { + return isset($this->data_type) ? $this->data_type : 0; + } + + public function hasDataType() + { + return isset($this->data_type); + } + + public function clearDataType() + { + unset($this->data_type); + } + + /** + * Required. The data type of the `CustomField`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setDataType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldDataTypeEnum\CustomFieldDataType::class); + $this->data_type = $var; + + return $this; + } + + /** + * Required. The visibility of the `CustomField`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getVisibility() + { + return isset($this->visibility) ? $this->visibility : 0; + } + + public function hasVisibility() + { + return isset($this->visibility); + } + + public function clearVisibility() + { + unset($this->visibility); + } + + /** + * Required. The visibility of the `CustomField`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setVisibility($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldVisibilityEnum\CustomFieldVisibility::class); + $this->visibility = $var; + + return $this; + } + + /** + * Optional. The drop-down options for the `CustomField`. + * Only applicable for `CustomField` with the drop-down data type. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldOption options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Optional. The drop-down options for the `CustomField`. + * Only applicable for `CustomField` with the drop-down data type. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldOption options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\CustomFieldOption>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomFieldOption::class); + $this->options = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php new file mode 100644 index 000000000000..a9ef8a168597 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CustomFieldDataTypeEnum + */ +class CustomFieldDataTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php new file mode 100644 index 000000000000..dfb53ccb9f52 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php @@ -0,0 +1,79 @@ +google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType + */ +class CustomFieldDataType +{ + /** + * No value specified + * + * Generated from protobuf enum CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED = 0; + */ + const CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED = 0; + /** + * A string field + * The max length is 255 characters. + * + * Generated from protobuf enum STRING = 1; + */ + const STRING = 1; + /** + * A number field. + * + * Generated from protobuf enum NUMBER = 2; + */ + const NUMBER = 2; + /** + * A "Yes" or "No" toggle field. + * + * Generated from protobuf enum TOGGLE = 3; + */ + const TOGGLE = 3; + /** + * A drop-down field. + * + * Generated from protobuf enum DROP_DOWN = 4; + */ + const DROP_DOWN = 4; + + private static $valueToName = [ + self::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED => 'CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED', + self::STRING => 'STRING', + self::NUMBER => 'NUMBER', + self::TOGGLE => 'TOGGLE', + self::DROP_DOWN => 'DROP_DOWN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CustomFieldDataType::class, \Google\Ads\AdManager\V1\CustomFieldDataTypeEnum_CustomFieldDataType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php new file mode 100644 index 000000000000..c37b1c9f4229 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CustomFieldEntityTypeEnum + */ +class CustomFieldEntityTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php new file mode 100644 index 000000000000..aa575dd7ead0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php @@ -0,0 +1,85 @@ +google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType + */ +class CustomFieldEntityType +{ + /** + * No value specified + * + * Generated from protobuf enum CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED = 0; + */ + const CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED = 0; + /** + * The CustomField is applied to LineItems. + * + * Generated from protobuf enum LINE_ITEM = 1; + */ + const LINE_ITEM = 1; + /** + * The CustomField is applied to Orders. + * + * Generated from protobuf enum ORDER = 2; + */ + const ORDER = 2; + /** + * The CustomField is applied to Creatives. + * + * Generated from protobuf enum CREATIVE = 3; + */ + const CREATIVE = 3; + /** + * The CustomField is applied to Proposals. + * + * Generated from protobuf enum PROPOSAL = 4; + */ + const PROPOSAL = 4; + /** + * The CustomField is applied to ProposalLineItems. + * + * Generated from protobuf enum PROPOSAL_LINE_ITEM = 5; + */ + const PROPOSAL_LINE_ITEM = 5; + + private static $valueToName = [ + self::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED => 'CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED', + self::LINE_ITEM => 'LINE_ITEM', + self::ORDER => 'ORDER', + self::CREATIVE => 'CREATIVE', + self::PROPOSAL => 'PROPOSAL', + self::PROPOSAL_LINE_ITEM => 'PROPOSAL_LINE_ITEM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CustomFieldEntityType::class, \Google\Ads\AdManager\V1\CustomFieldEntityTypeEnum_CustomFieldEntityType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php new file mode 100644 index 000000000000..9b4ffb8ccc50 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php @@ -0,0 +1,105 @@ +google.ads.admanager.v1.CustomFieldOption + */ +class CustomFieldOption extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Non-empty default. `CustomFieldOption` ID. + * + * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + */ + protected $custom_field_option_id = 0; + /** + * Required. The display name of the `CustomFieldOption`. + * This value has a maximum length of 127 characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $custom_field_option_id + * Optional. Non-empty default. `CustomFieldOption` ID. + * @type string $display_name + * Required. The display name of the `CustomFieldOption`. + * This value has a maximum length of 127 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldMessages::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Non-empty default. `CustomFieldOption` ID. + * + * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * @return int|string + */ + public function getCustomFieldOptionId() + { + return $this->custom_field_option_id; + } + + /** + * Optional. Non-empty default. `CustomFieldOption` ID. + * + * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * @param int|string $var + * @return $this + */ + public function setCustomFieldOptionId($var) + { + GPBUtil::checkInt64($var); + $this->custom_field_option_id = $var; + + return $this; + } + + /** + * Required. The display name of the `CustomFieldOption`. + * This value has a maximum length of 127 characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of the `CustomFieldOption`. + * This value has a maximum length of 127 characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php new file mode 100644 index 000000000000..0ad861f4eb8f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CustomFieldStatusEnum + */ +class CustomFieldStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php new file mode 100644 index 000000000000..3100bdce0634 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus + */ +class CustomFieldStatus +{ + /** + * No value specified + * + * Generated from protobuf enum CUSTOM_FIELD_STATUS_UNSPECIFIED = 0; + */ + const CUSTOM_FIELD_STATUS_UNSPECIFIED = 0; + /** + * The CustomField is active. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The CustomField is inactive. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + + private static $valueToName = [ + self::CUSTOM_FIELD_STATUS_UNSPECIFIED => 'CUSTOM_FIELD_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CustomFieldStatus::class, \Google\Ads\AdManager\V1\CustomFieldStatusEnum_CustomFieldStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php new file mode 100644 index 000000000000..9a40b22f768f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php @@ -0,0 +1,115 @@ +google.ads.admanager.v1.CustomFieldValue + */ +class CustomFieldValue extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The custom field for which this is a value. + * Format: "networks/{network_code}/customFields/{custom_field_id}" + * + * Generated from protobuf field string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $custom_field = ''; + /** + * Required. A typed value representation of the value. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $custom_field + * Required. The custom field for which this is a value. + * Format: "networks/{network_code}/customFields/{custom_field_id}" + * @type \Google\Ads\AdManager\V1\CustomFieldValue\Value $value + * Required. A typed value representation of the value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldValue::initOnce(); + parent::__construct($data); + } + + /** + * Required. The custom field for which this is a value. + * Format: "networks/{network_code}/customFields/{custom_field_id}" + * + * Generated from protobuf field string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getCustomField() + { + return $this->custom_field; + } + + /** + * Required. The custom field for which this is a value. + * Format: "networks/{network_code}/customFields/{custom_field_id}" + * + * Generated from protobuf field string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCustomField($var) + { + GPBUtil::checkString($var, True); + $this->custom_field = $var; + + return $this; + } + + /** + * Required. A typed value representation of the value. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\CustomFieldValue\Value|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Required. A typed value representation of the value. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CustomFieldValue\Value $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CustomFieldValue\Value::class); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php new file mode 100644 index 000000000000..84fa151afac7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php @@ -0,0 +1,177 @@ +google.ads.admanager.v1.CustomFieldValue.Value + */ +class Value extends \Google\Protobuf\Internal\Message +{ + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $dropdown_value + * The custom_field_option_id, if the CustomFieldDataType is DROPDOWN. + * @type string $string_value + * The value, if the CustomFieldDataType is STRING. + * @type float $number_value + * The value, if the CustomFieldDataType is NUMBER. + * @type bool $toggle_value + * The value, if the CustomFieldDataType is TOGGLE. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldValue::initOnce(); + parent::__construct($data); + } + + /** + * The custom_field_option_id, if the CustomFieldDataType is DROPDOWN. + * + * Generated from protobuf field int64 dropdown_value = 1; + * @return int|string + */ + public function getDropdownValue() + { + return $this->readOneof(1); + } + + public function hasDropdownValue() + { + return $this->hasOneof(1); + } + + /** + * The custom_field_option_id, if the CustomFieldDataType is DROPDOWN. + * + * Generated from protobuf field int64 dropdown_value = 1; + * @param int|string $var + * @return $this + */ + public function setDropdownValue($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The value, if the CustomFieldDataType is STRING. + * + * Generated from protobuf field string string_value = 2; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(2); + } + + public function hasStringValue() + { + return $this->hasOneof(2); + } + + /** + * The value, if the CustomFieldDataType is STRING. + * + * Generated from protobuf field string string_value = 2; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The value, if the CustomFieldDataType is NUMBER. + * + * Generated from protobuf field double number_value = 3; + * @return float + */ + public function getNumberValue() + { + return $this->readOneof(3); + } + + public function hasNumberValue() + { + return $this->hasOneof(3); + } + + /** + * The value, if the CustomFieldDataType is NUMBER. + * + * Generated from protobuf field double number_value = 3; + * @param float $var + * @return $this + */ + public function setNumberValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * The value, if the CustomFieldDataType is TOGGLE. + * + * Generated from protobuf field bool toggle_value = 4; + * @return bool + */ + public function getToggleValue() + { + return $this->readOneof(4); + } + + public function hasToggleValue() + { + return $this->hasOneof(4); + } + + /** + * The value, if the CustomFieldDataType is TOGGLE. + * + * Generated from protobuf field bool toggle_value = 4; + * @param bool $var + * @return $this + */ + public function setToggleValue($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Value::class, \Google\Ads\AdManager\V1\CustomFieldValue_Value::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php new file mode 100644 index 000000000000..3b68d3b5e3bb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CustomFieldVisibilityEnum + */ +class CustomFieldVisibilityEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php new file mode 100644 index 000000000000..ab5626373f6f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php @@ -0,0 +1,72 @@ +google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility + */ +class CustomFieldVisibility +{ + /** + * No value specified + * + * Generated from protobuf enum CUSTOM_FIELD_VISIBILITY_UNSPECIFIED = 0; + */ + const CUSTOM_FIELD_VISIBILITY_UNSPECIFIED = 0; + /** + * The CustomField is not visible in the UI and only visible through the + * API. + * + * Generated from protobuf enum HIDDEN = 1; + */ + const HIDDEN = 1; + /** + * The CustomField is visible in the UI and only editable through the API. + * + * Generated from protobuf enum READ_ONLY = 2; + */ + const READ_ONLY = 2; + /** + * The CustomField is visible and editable in both the API and UI. + * + * Generated from protobuf enum EDITABLE = 3; + */ + const EDITABLE = 3; + + private static $valueToName = [ + self::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED => 'CUSTOM_FIELD_VISIBILITY_UNSPECIFIED', + self::HIDDEN => 'HIDDEN', + self::READ_ONLY => 'READ_ONLY', + self::EDITABLE => 'EDITABLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CustomFieldVisibility::class, \Google\Ads\AdManager\V1\CustomFieldVisibilityEnum_CustomFieldVisibility::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargeting.php new file mode 100644 index 000000000000..ecef4408e9d1 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargeting.php @@ -0,0 +1,68 @@ +google.ads.admanager.v1.CustomTargeting + */ +class CustomTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. These clauses are all ORed together. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $custom_targeting_clauses; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\CustomTargetingClause>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_clauses + * Optional. These clauses are all ORed together. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. These clauses are all ORed together. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomTargetingClauses() + { + return $this->custom_targeting_clauses; + } + + /** + * Optional. These clauses are all ORed together. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\CustomTargetingClause>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomTargetingClauses($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomTargetingClause::class); + $this->custom_targeting_clauses = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingClause.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingClause.php new file mode 100644 index 000000000000..ac5b782d3038 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingClause.php @@ -0,0 +1,135 @@ +google.ads.admanager.v1.CustomTargetingClause + */ +class CustomTargetingClause extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Leaf targeting expressions for custom key/values. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $custom_targeting_literals; + /** + * Optional. Leaf targeting expressions for audience segments. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $audience_segment_targetings; + /** + * Optional. Leaf targeting expressions for cms metadata. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $cms_metadata_targetings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\CustomTargetingLiteral>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_literals + * Optional. Leaf targeting expressions for custom key/values. + * @type array<\Google\Ads\AdManager\V1\AudienceSegmentTargeting>|\Google\Protobuf\Internal\RepeatedField $audience_segment_targetings + * Optional. Leaf targeting expressions for audience segments. + * @type array<\Google\Ads\AdManager\V1\CmsMetadataTargeting>|\Google\Protobuf\Internal\RepeatedField $cms_metadata_targetings + * Optional. Leaf targeting expressions for cms metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Leaf targeting expressions for custom key/values. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomTargetingLiterals() + { + return $this->custom_targeting_literals; + } + + /** + * Optional. Leaf targeting expressions for custom key/values. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\CustomTargetingLiteral>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomTargetingLiterals($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomTargetingLiteral::class); + $this->custom_targeting_literals = $arr; + + return $this; + } + + /** + * Optional. Leaf targeting expressions for audience segments. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAudienceSegmentTargetings() + { + return $this->audience_segment_targetings; + } + + /** + * Optional. Leaf targeting expressions for audience segments. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\AudienceSegmentTargeting>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAudienceSegmentTargetings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AudienceSegmentTargeting::class); + $this->audience_segment_targetings = $arr; + + return $this; + } + + /** + * Optional. Leaf targeting expressions for cms metadata. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCmsMetadataTargetings() + { + return $this->cms_metadata_targetings; + } + + /** + * Optional. Leaf targeting expressions for cms metadata. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\CmsMetadataTargeting>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCmsMetadataTargetings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CmsMetadataTargeting::class); + $this->cms_metadata_targetings = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php new file mode 100644 index 000000000000..abaefc021afb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php @@ -0,0 +1,355 @@ +google.ads.admanager.v1.CustomTargetingKey + */ +class CustomTargetingKey extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `CustomTargetingKey`. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. `CustomTargetingKey` ID. + * + * Generated from protobuf field optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $custom_targeting_key_id = null; + /** + * Immutable. Name of the key. Keys can contain up to 10 characters each. You + * can use alphanumeric characters and symbols other than the following: + * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. + * + * Generated from protobuf field optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $ad_tag_name = null; + /** + * Optional. Descriptive name for the `CustomTargetingKey`. + * + * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = null; + /** + * Required. Indicates whether users will select from predefined values or + * create new targeting values, while specifying targeting criteria for a line + * item. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = null; + /** + * Output only. Status of the `CustomTargetingKey`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Required. Reportable state of the `CustomTargetingKey`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reportable_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `CustomTargetingKey`. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * @type int|string $custom_targeting_key_id + * Output only. `CustomTargetingKey` ID. + * @type string $ad_tag_name + * Immutable. Name of the key. Keys can contain up to 10 characters each. You + * can use alphanumeric characters and symbols other than the following: + * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. + * @type string $display_name + * Optional. Descriptive name for the `CustomTargetingKey`. + * @type int $type + * Required. Indicates whether users will select from predefined values or + * create new targeting values, while specifying targeting criteria for a line + * item. + * @type int $status + * Output only. Status of the `CustomTargetingKey`. + * @type int $reportable_type + * Required. Reportable state of the `CustomTargetingKey`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `CustomTargetingKey`. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `CustomTargetingKey`. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. `CustomTargetingKey` ID. + * + * Generated from protobuf field optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getCustomTargetingKeyId() + { + return isset($this->custom_targeting_key_id) ? $this->custom_targeting_key_id : 0; + } + + public function hasCustomTargetingKeyId() + { + return isset($this->custom_targeting_key_id); + } + + public function clearCustomTargetingKeyId() + { + unset($this->custom_targeting_key_id); + } + + /** + * Output only. `CustomTargetingKey` ID. + * + * Generated from protobuf field optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setCustomTargetingKeyId($var) + { + GPBUtil::checkInt64($var); + $this->custom_targeting_key_id = $var; + + return $this; + } + + /** + * Immutable. Name of the key. Keys can contain up to 10 characters each. You + * can use alphanumeric characters and symbols other than the following: + * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. + * + * Generated from protobuf field optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAdTagName() + { + return isset($this->ad_tag_name) ? $this->ad_tag_name : ''; + } + + public function hasAdTagName() + { + return isset($this->ad_tag_name); + } + + public function clearAdTagName() + { + unset($this->ad_tag_name); + } + + /** + * Immutable. Name of the key. Keys can contain up to 10 characters each. You + * can use alphanumeric characters and symbols other than the following: + * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. + * + * Generated from protobuf field optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAdTagName($var) + { + GPBUtil::checkString($var, True); + $this->ad_tag_name = $var; + + return $this; + } + + /** + * Optional. Descriptive name for the `CustomTargetingKey`. + * + * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Optional. Descriptive name for the `CustomTargetingKey`. + * + * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. Indicates whether users will select from predefined values or + * create new targeting values, while specifying targeting criteria for a line + * item. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return isset($this->type) ? $this->type : 0; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * Required. Indicates whether users will select from predefined values or + * create new targeting values, while specifying targeting criteria for a line + * item. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingKeyTypeEnum\CustomTargetingKeyType::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. Status of the `CustomTargetingKey`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. Status of the `CustomTargetingKey`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingKeyStatusEnum\CustomTargetingKeyStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Required. Reportable state of the `CustomTargetingKey`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getReportableType() + { + return isset($this->reportable_type) ? $this->reportable_type : 0; + } + + public function hasReportableType() + { + return isset($this->reportable_type); + } + + public function clearReportableType() + { + unset($this->reportable_type); + } + + /** + * Required. Reportable state of the `CustomTargetingKey`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setReportableType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingKeyReportableTypeEnum\CustomTargetingKeyReportableType::class); + $this->reportable_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php new file mode 100644 index 000000000000..b2162fa94cad --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum + */ +class CustomTargetingKeyReportableTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php new file mode 100644 index 000000000000..2b99b0f4dfac --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType + */ +class CustomTargetingKeyReportableType +{ + /** + * Not specified value. + * + * Generated from protobuf enum CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED = 0; + */ + const CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED = 0; + /** + * Not available for reporting in the Ad Manager query tool. + * + * Generated from protobuf enum OFF = 1; + */ + const OFF = 1; + /** + * Available for reporting in the Ad Manager query tool. + * + * Generated from protobuf enum ON = 2; + */ + const ON = 2; + /** + * Custom dimension available for reporting in the AdManager query tool. + * + * Generated from protobuf enum CUSTOM_DIMENSION = 3; + */ + const CUSTOM_DIMENSION = 3; + + private static $valueToName = [ + self::CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED => 'CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED', + self::OFF => 'OFF', + self::ON => 'ON', + self::CUSTOM_DIMENSION => 'CUSTOM_DIMENSION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CustomTargetingKeyReportableType::class, \Google\Ads\AdManager\V1\CustomTargetingKeyReportableTypeEnum_CustomTargetingKeyReportableType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php new file mode 100644 index 000000000000..fa3d998db1df --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CustomTargetingKeyStatusEnum + */ +class CustomTargetingKeyStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php new file mode 100644 index 000000000000..fb15ff972000 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus + */ +class CustomTargetingKeyStatus +{ + /** + * Not specified value. + * + * Generated from protobuf enum CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED = 0; + */ + const CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED = 0; + /** + * Custom targeting key is active. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * Custom targeting key is inactive. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + + private static $valueToName = [ + self::CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED => 'CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CustomTargetingKeyStatus::class, \Google\Ads\AdManager\V1\CustomTargetingKeyStatusEnum_CustomTargetingKeyStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php new file mode 100644 index 000000000000..5fa9dc725a74 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CustomTargetingKeyTypeEnum + */ +class CustomTargetingKeyTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php new file mode 100644 index 000000000000..014d9fb54424 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType + */ +class CustomTargetingKeyType +{ + /** + * Not specified value. + * + * Generated from protobuf enum CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED = 0; + */ + const CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED = 0; + /** + * Key with a fixed set of values. + * + * Generated from protobuf enum PREDEFINED = 1; + */ + const PREDEFINED = 1; + /** + * Key without a fixed set of values + * + * Generated from protobuf enum FREEFORM = 2; + */ + const FREEFORM = 2; + + private static $valueToName = [ + self::CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED => 'CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED', + self::PREDEFINED => 'PREDEFINED', + self::FREEFORM => 'FREEFORM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CustomTargetingKeyType::class, \Google\Ads\AdManager\V1\CustomTargetingKeyTypeEnum_CustomTargetingKeyType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingLiteral.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingLiteral.php new file mode 100644 index 000000000000..b5c7bafc9dca --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingLiteral.php @@ -0,0 +1,159 @@ +google.ads.admanager.v1.CustomTargetingLiteral + */ +class CustomTargetingLiteral extends \Google\Protobuf\Internal\Message +{ + /** + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * + * Generated from protobuf field optional bool negative = 1; + */ + protected $negative = null; + /** + * Optional. The resource name of the targeted CustomKey. + * + * Generated from protobuf field optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $custom_targeting_key = null; + /** + * Optional. The resource names of the targeted CustomValues. + * + * Generated from protobuf field repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $custom_targeting_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $negative + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * @type string $custom_targeting_key + * Optional. The resource name of the targeted CustomKey. + * @type array|\Google\Protobuf\Internal\RepeatedField $custom_targeting_values + * Optional. The resource names of the targeted CustomValues. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * + * Generated from protobuf field optional bool negative = 1; + * @return bool + */ + public function getNegative() + { + return isset($this->negative) ? $this->negative : false; + } + + public function hasNegative() + { + return isset($this->negative); + } + + public function clearNegative() + { + unset($this->negative); + } + + /** + * Whether this expression is negatively targeted, meaning it matches + * ad requests that exclude the below values. + * + * Generated from protobuf field optional bool negative = 1; + * @param bool $var + * @return $this + */ + public function setNegative($var) + { + GPBUtil::checkBool($var); + $this->negative = $var; + + return $this; + } + + /** + * Optional. The resource name of the targeted CustomKey. + * + * Generated from protobuf field optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getCustomTargetingKey() + { + return isset($this->custom_targeting_key) ? $this->custom_targeting_key : ''; + } + + public function hasCustomTargetingKey() + { + return isset($this->custom_targeting_key); + } + + public function clearCustomTargetingKey() + { + unset($this->custom_targeting_key); + } + + /** + * Optional. The resource name of the targeted CustomKey. + * + * Generated from protobuf field optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCustomTargetingKey($var) + { + GPBUtil::checkString($var, True); + $this->custom_targeting_key = $var; + + return $this; + } + + /** + * Optional. The resource names of the targeted CustomValues. + * + * Generated from protobuf field repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomTargetingValues() + { + return $this->custom_targeting_values; + } + + /** + * Optional. The resource names of the targeted CustomValues. + * + * Generated from protobuf field repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomTargetingValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->custom_targeting_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php new file mode 100644 index 000000000000..844841b82ffe --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php @@ -0,0 +1,323 @@ +google.ads.admanager.v1.CustomTargetingValue + */ +class CustomTargetingValue extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `CustomTargetingValue`. + * Format: + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Immutable. The resource name of the `CustomTargetingKey`. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * + * Generated from protobuf field optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $custom_targeting_key = null; + /** + * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 + * characters each. You can use alphanumeric characters and symbols other than + * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are + * not data-specific; all values are treated as strings. For example, instead + * of using "age>=18 AND <=34", try "18-34" + * + * Generated from protobuf field optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $ad_tag_name = null; + /** + * Optional. Descriptive name for the `CustomTargetingValue`. + * + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = null; + /** + * Required. Immutable. The way in which the CustomTargetingValue.name strings + * will be matched. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + */ + protected $match_type = null; + /** + * Output only. Status of the `CustomTargetingValue`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `CustomTargetingValue`. + * Format: + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` + * @type string $custom_targeting_key + * Required. Immutable. The resource name of the `CustomTargetingKey`. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * @type string $ad_tag_name + * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 + * characters each. You can use alphanumeric characters and symbols other than + * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are + * not data-specific; all values are treated as strings. For example, instead + * of using "age>=18 AND <=34", try "18-34" + * @type string $display_name + * Optional. Descriptive name for the `CustomTargetingValue`. + * @type int $match_type + * Required. Immutable. The way in which the CustomTargetingValue.name strings + * will be matched. + * @type int $status + * Output only. Status of the `CustomTargetingValue`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `CustomTargetingValue`. + * Format: + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `CustomTargetingValue`. + * Format: + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. The resource name of the `CustomTargetingKey`. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * + * Generated from protobuf field optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getCustomTargetingKey() + { + return isset($this->custom_targeting_key) ? $this->custom_targeting_key : ''; + } + + public function hasCustomTargetingKey() + { + return isset($this->custom_targeting_key); + } + + public function clearCustomTargetingKey() + { + unset($this->custom_targeting_key); + } + + /** + * Required. Immutable. The resource name of the `CustomTargetingKey`. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * + * Generated from protobuf field optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCustomTargetingKey($var) + { + GPBUtil::checkString($var, True); + $this->custom_targeting_key = $var; + + return $this; + } + + /** + * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 + * characters each. You can use alphanumeric characters and symbols other than + * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are + * not data-specific; all values are treated as strings. For example, instead + * of using "age>=18 AND <=34", try "18-34" + * + * Generated from protobuf field optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAdTagName() + { + return isset($this->ad_tag_name) ? $this->ad_tag_name : ''; + } + + public function hasAdTagName() + { + return isset($this->ad_tag_name); + } + + public function clearAdTagName() + { + unset($this->ad_tag_name); + } + + /** + * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 + * characters each. You can use alphanumeric characters and symbols other than + * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are + * not data-specific; all values are treated as strings. For example, instead + * of using "age>=18 AND <=34", try "18-34" + * + * Generated from protobuf field optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAdTagName($var) + { + GPBUtil::checkString($var, True); + $this->ad_tag_name = $var; + + return $this; + } + + /** + * Optional. Descriptive name for the `CustomTargetingValue`. + * + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Optional. Descriptive name for the `CustomTargetingValue`. + * + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. Immutable. The way in which the CustomTargetingValue.name strings + * will be matched. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMatchType() + { + return isset($this->match_type) ? $this->match_type : 0; + } + + public function hasMatchType() + { + return isset($this->match_type); + } + + public function clearMatchType() + { + unset($this->match_type); + } + + /** + * Required. Immutable. The way in which the CustomTargetingValue.name strings + * will be matched. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingValueMatchTypeEnum\CustomTargetingValueMatchType::class); + $this->match_type = $var; + + return $this; + } + + /** + * Output only. Status of the `CustomTargetingValue`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. Status of the `CustomTargetingValue`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingValueStatusEnum\CustomTargetingValueStatus::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php new file mode 100644 index 000000000000..8889014cf2ac --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum + */ +class CustomTargetingValueMatchTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php new file mode 100644 index 000000000000..4393c282fdcb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php @@ -0,0 +1,113 @@ +google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType + */ +class CustomTargetingValueMatchType +{ + /** + * Not specified value. + * + * Generated from protobuf enum CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED = 0; + */ + const CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED = 0; + /** + * Used for exact matching. For example, the targeting value car=honda will + * only match to the ad request car=honda. + * + * Generated from protobuf enum EXACT = 1; + */ + const EXACT = 1; + /** + * Used for lenient matching when at least one of the words in the ad + * request matches the targeted value. The targeting value car=honda will + * match to ad requests containing the word honda. So ad requests car=honda + * or car=honda civic or car=buy honda or car=how much does a honda cost + * will all have the line item delivered. + * This match type can not be used within an audience segment rule. + * + * Generated from protobuf enum BROAD = 2; + */ + const BROAD = 2; + /** + * Used for 'starts with' matching when the first few characters in the ad + * request match all of the characters in the targeted value. The targeting + * value car=honda will match to ad requests car=honda or car=hondas for + * sale but not to car=I want a honda. + * + * Generated from protobuf enum PREFIX = 3; + */ + const PREFIX = 3; + /** + * This is a combination of MatchType#BROAD and MatchType#PREFIX matching. + * The targeting value car=honda will match to ad requests that contain + * words that start with the characters in the targeted value, for example + * with car=civic hondas. + * This match type can not be used within an audience segment rule. + * + * Generated from protobuf enum BROAD_PREFIX = 4; + */ + const BROAD_PREFIX = 4; + /** + * Used for 'ends with' matching when the last characters in the ad request + * match all of the characters in the targeted value. The targeting value + * car=honda will match with ad requests car=honda or car=I want a honda but + * not to car=hondas for sale. + * This match type can not be used within line item targeting. + * + * Generated from protobuf enum SUFFIX = 5; + */ + const SUFFIX = 5; + /** + * Used for 'within' matching when the string in the ad request contains the + * string in the targeted value. The targeting value car=honda will match + * with ad requests car=honda, car=I want a honda, and also with car=hondas + * for sale, but not with car=misspelled hond a. This match type can not be + * used within line item targeting. + * + * Generated from protobuf enum CONTAINS = 6; + */ + const CONTAINS = 6; + + private static $valueToName = [ + self::CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED => 'CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED', + self::EXACT => 'EXACT', + self::BROAD => 'BROAD', + self::PREFIX => 'PREFIX', + self::BROAD_PREFIX => 'BROAD_PREFIX', + self::SUFFIX => 'SUFFIX', + self::CONTAINS => 'CONTAINS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CustomTargetingValueMatchType::class, \Google\Ads\AdManager\V1\CustomTargetingValueMatchTypeEnum_CustomTargetingValueMatchType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php new file mode 100644 index 000000000000..43c17351d951 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CustomTargetingValueStatusEnum + */ +class CustomTargetingValueStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php new file mode 100644 index 000000000000..90f6956737e0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus + */ +class CustomTargetingValueStatus +{ + /** + * Not specified value. + * + * Generated from protobuf enum CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED = 0; + */ + const CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED = 0; + /** + * Custom targeting value is active. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * Custom targeting value is inactive. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + + private static $valueToName = [ + self::CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED => 'CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CustomTargetingValueStatus::class, \Google\Ads\AdManager\V1\CustomTargetingValueStatusEnum_CustomTargetingValueStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DataSegmentTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DataSegmentTargeting.php new file mode 100644 index 000000000000..d1b2de8b54c4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DataSegmentTargeting.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.DataSegmentTargeting + */ +class DataSegmentTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Whether any data segments are currently targeted. + * + * Generated from protobuf field bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $has_data_segment_targeting = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $has_data_segment_targeting + * Output only. Whether any data segments are currently targeted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Whether any data segments are currently targeted. + * + * Generated from protobuf field bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getHasDataSegmentTargeting() + { + return $this->has_data_segment_targeting; + } + + /** + * Output only. Whether any data segments are currently targeted. + * + * Generated from protobuf field bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setHasDataSegmentTargeting($var) + { + GPBUtil::checkBool($var); + $this->has_data_segment_targeting = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum.php new file mode 100644 index 000000000000..d7421940f7ff --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.DealBuyerPermissionTypeEnum + */ +class DealBuyerPermissionTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DealBuyerPermissionTypeEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum/DealBuyerPermissionType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum/DealBuyerPermissionType.php new file mode 100644 index 000000000000..84033d050984 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum/DealBuyerPermissionType.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType + */ +class DealBuyerPermissionType +{ + /** + * No value specified. + * + * Generated from protobuf enum DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED = 0; + */ + const DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED = 0; + /** + * The deal only transacts with the buyer specified. + * + * Generated from protobuf enum NEGOTIATOR_ONLY = 1; + */ + const NEGOTIATOR_ONLY = 1; + /** + * The deal transacts with all buyers under the same bidder. + * + * Generated from protobuf enum BIDDER = 2; + */ + const BIDDER = 2; + + private static $valueToName = [ + self::DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED => 'DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED', + self::NEGOTIATOR_ONLY => 'NEGOTIATOR_ONLY', + self::BIDDER => 'BIDDER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DealBuyerPermissionType::class, \Google\Ads\AdManager\V1\DealBuyerPermissionTypeEnum_DealBuyerPermissionType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeleteAdBreakRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeleteAdBreakRequest.php new file mode 100644 index 000000000000..7de009578545 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeleteAdBreakRequest.php @@ -0,0 +1,92 @@ +google.ads.admanager.v1.DeleteAdBreakRequest + */ +class DeleteAdBreakRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the ad break to delete. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the ad break to delete. + * + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` + * Please see {@see AdBreakServiceClient::adBreakName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\DeleteAdBreakRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the ad break to delete. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the ad break to delete. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the ad break to delete. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapability.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapability.php new file mode 100644 index 000000000000..e2d9a5a356fb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapability.php @@ -0,0 +1,115 @@ +google.ads.admanager.v1.DeviceCapability + */ +class DeviceCapability extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `DeviceCapability`. + * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The localized name of the device capability. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `DeviceCapability`. + * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * @type string $display_name + * Output only. The localized name of the device capability. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceCapabilityMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `DeviceCapability`. + * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `DeviceCapability`. + * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The localized name of the device capability. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The localized name of the device capability. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapabilityTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapabilityTargeting.php new file mode 100644 index 000000000000..3acce537b1c8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapabilityTargeting.php @@ -0,0 +1,113 @@ +google.ads.admanager.v1.DeviceCapabilityTargeting + */ +class DeviceCapabilityTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of device capability resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_capabilities; + /** + * Optional. A list of device capability resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_capabilities; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_capabilities + * Optional. A list of device capability resource names that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_capabilities + * Optional. A list of device capability resource names that should be + * excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of device capability resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedCapabilities() + { + return $this->targeted_capabilities; + } + + /** + * Optional. A list of device capability resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedCapabilities($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_capabilities = $arr; + + return $this; + } + + /** + * Optional. A list of device capability resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedCapabilities() + { + return $this->excluded_capabilities; + } + + /** + * Optional. A list of device capability resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedCapabilities($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_capabilities = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategory.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategory.php new file mode 100644 index 000000000000..49df97f42f03 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategory.php @@ -0,0 +1,115 @@ +google.ads.admanager.v1.DeviceCategory + */ +class DeviceCategory extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `DeviceCategory`. + * Format: `networks/{network_code}/deviceCategories/{device_category}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The display name of the device category. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `DeviceCategory`. + * Format: `networks/{network_code}/deviceCategories/{device_category}` + * @type string $display_name + * Output only. The display name of the device category. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceCategoryMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `DeviceCategory`. + * Format: `networks/{network_code}/deviceCategories/{device_category}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `DeviceCategory`. + * Format: `networks/{network_code}/deviceCategories/{device_category}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The display name of the device category. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The display name of the device category. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategoryTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategoryTargeting.php new file mode 100644 index 000000000000..1ea89eb1000d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategoryTargeting.php @@ -0,0 +1,105 @@ +google.ads.admanager.v1.DeviceCategoryTargeting + */ +class DeviceCategoryTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of device category resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_categories; + /** + * Optional. A list of device category resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_categories; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_categories + * Optional. A list of device category resource names that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_categories + * Optional. A list of device category resource names that should be excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of device category resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedCategories() + { + return $this->targeted_categories; + } + + /** + * Optional. A list of device category resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_categories = $arr; + + return $this; + } + + /** + * Optional. A list of device category resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedCategories() + { + return $this->excluded_categories; + } + + /** + * Optional. A list of device category resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_categories = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturer.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturer.php new file mode 100644 index 000000000000..f59124bb2c98 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturer.php @@ -0,0 +1,119 @@ +google.ads.admanager.v1.DeviceManufacturer + */ +class DeviceManufacturer extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `DeviceManufacturer`. + * Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The localized name of the device manufacturer. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `DeviceManufacturer`. + * Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer}` + * @type string $display_name + * Output only. The localized name of the device manufacturer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceManufacturerMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `DeviceManufacturer`. + * Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `DeviceManufacturer`. + * Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The localized name of the device manufacturer. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The localized name of the device manufacturer. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturerTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturerTargeting.php new file mode 100644 index 000000000000..fae5b700bef1 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturerTargeting.php @@ -0,0 +1,261 @@ + + * Device manufacturer"). + * + * Generated from protobuf message google.ads.admanager.v1.DeviceManufacturerTargeting + */ +class DeviceManufacturerTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of device manufacturer resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_device_manufacturers; + /** + * Optional. A list of device manufacturer resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_device_manufacturers; + /** + * Optional. A list of mobile device resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_mobile_devices; + /** + * Optional. A list of mobile device resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_mobile_devices; + /** + * Optional. A list of mobile device submodel resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_mobile_device_submodels; + /** + * Optional. A list of mobile device submodel resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_mobile_device_submodels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_device_manufacturers + * Optional. A list of device manufacturer resource names that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_device_manufacturers + * Optional. A list of device manufacturer resource names that should be + * excluded. + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_mobile_devices + * Optional. A list of mobile device resource names that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_mobile_devices + * Optional. A list of mobile device resource names that should be excluded. + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_mobile_device_submodels + * Optional. A list of mobile device submodel resource names that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_mobile_device_submodels + * Optional. A list of mobile device submodel resource names that should be + * excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of device manufacturer resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedDeviceManufacturers() + { + return $this->targeted_device_manufacturers; + } + + /** + * Optional. A list of device manufacturer resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedDeviceManufacturers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_device_manufacturers = $arr; + + return $this; + } + + /** + * Optional. A list of device manufacturer resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedDeviceManufacturers() + { + return $this->excluded_device_manufacturers; + } + + /** + * Optional. A list of device manufacturer resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedDeviceManufacturers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_device_manufacturers = $arr; + + return $this; + } + + /** + * Optional. A list of mobile device resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedMobileDevices() + { + return $this->targeted_mobile_devices; + } + + /** + * Optional. A list of mobile device resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedMobileDevices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_mobile_devices = $arr; + + return $this; + } + + /** + * Optional. A list of mobile device resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedMobileDevices() + { + return $this->excluded_mobile_devices; + } + + /** + * Optional. A list of mobile device resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedMobileDevices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_mobile_devices = $arr; + + return $this; + } + + /** + * Optional. A list of mobile device submodel resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedMobileDeviceSubmodels() + { + return $this->targeted_mobile_device_submodels; + } + + /** + * Optional. A list of mobile device submodel resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedMobileDeviceSubmodels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_mobile_device_submodels = $arr; + + return $this; + } + + /** + * Optional. A list of mobile device submodel resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedMobileDeviceSubmodels() + { + return $this->excluded_mobile_device_submodels; + } + + /** + * Optional. A list of mobile device submodel resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedMobileDeviceSubmodels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_mobile_device_submodels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DisapprovalReason.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DisapprovalReason.php new file mode 100644 index 000000000000..9435f7599389 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DisapprovalReason.php @@ -0,0 +1,121 @@ +google.ads.admanager.v1.DisapprovalReason + */ +class DisapprovalReason extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The type of policy violation found for the Site. + * + * Generated from protobuf field optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = null; + /** + * Output only. Additional details for the disapproval of the Site. + * + * Generated from protobuf field optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $details = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Output only. The type of policy violation found for the Site. + * @type string $details + * Output only. Additional details for the disapproval of the Site. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteMessages::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The type of policy violation found for the Site. + * + * Generated from protobuf field optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return isset($this->type) ? $this->type : 0; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * Output only. The type of policy violation found for the Site. + * + * Generated from protobuf field optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\SiteDisapprovalReasonEnum\SiteDisapprovalReason::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. Additional details for the disapproval of the Site. + * + * Generated from protobuf field optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDetails() + { + return isset($this->details) ? $this->details : ''; + } + + public function hasDetails() + { + return isset($this->details); + } + + public function clearDetails() + { + unset($this->details); + } + + /** + * Output only. Additional details for the disapproval of the Site. + * + * Generated from protobuf field optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDetails($var) + { + GPBUtil::checkString($var, True); + $this->details = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php new file mode 100644 index 000000000000..78a70a0ba94a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php @@ -0,0 +1,265 @@ +google.ads.admanager.v1.EntitySignalsMapping + */ +class EntitySignalsMapping extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `EntitySignalsMapping`. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. `EntitySignalsMapping` ID. + * + * Generated from protobuf field optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $entity_signals_mapping_id = null; + /** + * Optional. The IDs of the categories that are associated with the + * referencing entity. + * + * Generated from protobuf field repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $taxonomy_category_ids; + protected $entity; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $audience_segment_id + * ID of an AudienceSegment that this mapping belongs to. + * @type int|string $content_bundle_id + * ID of a ContentBundle that this mapping belongs to. + * @type int|string $custom_targeting_value_id + * ID of a CustomValue that this mapping belongs to. + * @type string $name + * Identifier. The resource name of the `EntitySignalsMapping`. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` + * @type int|string $entity_signals_mapping_id + * Output only. `EntitySignalsMapping` ID. + * @type array|array|\Google\Protobuf\Internal\RepeatedField $taxonomy_category_ids + * Optional. The IDs of the categories that are associated with the + * referencing entity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingMessages::initOnce(); + parent::__construct($data); + } + + /** + * ID of an AudienceSegment that this mapping belongs to. + * + * Generated from protobuf field int64 audience_segment_id = 3; + * @return int|string + */ + public function getAudienceSegmentId() + { + return $this->readOneof(3); + } + + public function hasAudienceSegmentId() + { + return $this->hasOneof(3); + } + + /** + * ID of an AudienceSegment that this mapping belongs to. + * + * Generated from protobuf field int64 audience_segment_id = 3; + * @param int|string $var + * @return $this + */ + public function setAudienceSegmentId($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * ID of a ContentBundle that this mapping belongs to. + * + * Generated from protobuf field int64 content_bundle_id = 4; + * @return int|string + */ + public function getContentBundleId() + { + return $this->readOneof(4); + } + + public function hasContentBundleId() + { + return $this->hasOneof(4); + } + + /** + * ID of a ContentBundle that this mapping belongs to. + * + * Generated from protobuf field int64 content_bundle_id = 4; + * @param int|string $var + * @return $this + */ + public function setContentBundleId($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * ID of a CustomValue that this mapping belongs to. + * + * Generated from protobuf field int64 custom_targeting_value_id = 5; + * @return int|string + */ + public function getCustomTargetingValueId() + { + return $this->readOneof(5); + } + + public function hasCustomTargetingValueId() + { + return $this->hasOneof(5); + } + + /** + * ID of a CustomValue that this mapping belongs to. + * + * Generated from protobuf field int64 custom_targeting_value_id = 5; + * @param int|string $var + * @return $this + */ + public function setCustomTargetingValueId($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Identifier. The resource name of the `EntitySignalsMapping`. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `EntitySignalsMapping`. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. `EntitySignalsMapping` ID. + * + * Generated from protobuf field optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getEntitySignalsMappingId() + { + return isset($this->entity_signals_mapping_id) ? $this->entity_signals_mapping_id : 0; + } + + public function hasEntitySignalsMappingId() + { + return isset($this->entity_signals_mapping_id); + } + + public function clearEntitySignalsMappingId() + { + unset($this->entity_signals_mapping_id); + } + + /** + * Output only. `EntitySignalsMapping` ID. + * + * Generated from protobuf field optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setEntitySignalsMappingId($var) + { + GPBUtil::checkInt64($var); + $this->entity_signals_mapping_id = $var; + + return $this; + } + + /** + * Optional. The IDs of the categories that are associated with the + * referencing entity. + * + * Generated from protobuf field repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaxonomyCategoryIds() + { + return $this->taxonomy_category_ids; + } + + /** + * Optional. The IDs of the categories that are associated with the + * referencing entity. + * + * Generated from protobuf field repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaxonomyCategoryIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->taxonomy_category_ids = $arr; + + return $this; + } + + /** + * @return string + */ + public function getEntity() + { + return $this->whichOneof("entity"); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php new file mode 100644 index 000000000000..eb19e59df821 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.EnvironmentTypeEnum + */ +class EnvironmentTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EnvironmentTypeEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php new file mode 100644 index 000000000000..4454399e1eb3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType + */ +class EnvironmentType +{ + /** + * No value specified + * + * Generated from protobuf enum ENVIRONMENT_TYPE_UNSPECIFIED = 0; + */ + const ENVIRONMENT_TYPE_UNSPECIFIED = 0; + /** + * A regular web browser. + * + * Generated from protobuf enum BROWSER = 1; + */ + const BROWSER = 1; + /** + * Video players. + * + * Generated from protobuf enum VIDEO_PLAYER = 2; + */ + const VIDEO_PLAYER = 2; + + private static $valueToName = [ + self::ENVIRONMENT_TYPE_UNSPECIFIED => 'ENVIRONMENT_TYPE_UNSPECIFIED', + self::BROWSER => 'BROWSER', + self::VIDEO_PLAYER => 'VIDEO_PLAYER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EnvironmentType::class, \Google\Ads\AdManager\V1\EnvironmentTypeEnum_EnvironmentType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum.php new file mode 100644 index 000000000000..1c3190b11c41 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.ExchangeSyndicationProductEnum + */ +class ExchangeSyndicationProductEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ExchangeSyndicationProductEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php new file mode 100644 index 000000000000..c5b4aa65a01b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php @@ -0,0 +1,78 @@ +google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + */ +class ExchangeSyndicationProduct +{ + /** + * No value specified + * + * Generated from protobuf enum EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED = 0; + */ + const EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED = 0; + /** + * Property serves in-browser. + * + * Generated from protobuf enum DISPLAY = 1; + */ + const DISPLAY = 1; + /** + * Property serves on mobile applications (includes JS and SDK). + * + * Generated from protobuf enum MOBILE_APP = 2; + */ + const MOBILE_APP = 2; + /** + * Property serves video (includes audio). + * + * Generated from protobuf enum VIDEO_AND_AUDIO = 3; + */ + const VIDEO_AND_AUDIO = 3; + /** + * Property serves for games. + * + * Generated from protobuf enum GAMES = 4; + */ + const GAMES = 4; + + private static $valueToName = [ + self::EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED => 'EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED', + self::DISPLAY => 'DISPLAY', + self::MOBILE_APP => 'MOBILE_APP', + self::VIDEO_AND_AUDIO => 'VIDEO_AND_AUDIO', + self::GAMES => 'GAMES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ExchangeSyndicationProduct::class, \Google\Ads\AdManager\V1\ExchangeSyndicationProductEnum_ExchangeSyndicationProduct::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php new file mode 100644 index 000000000000..b23277077000 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php @@ -0,0 +1,174 @@ +google.ads.admanager.v1.FetchReportResultRowsRequest + */ +class FetchReportResultRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The report result being fetched. + * Format: + * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Optional. The maximum number of rows to return. The service may return + * fewer than this value. If unspecified, at most 1,000 rows will be returned. + * The maximum value is 10,000; values greater than 10,000 will be reduced to + * 10,000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `FetchReportResultRows` + * call. Provide this to retrieve the second and subsequent batches of rows. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $name The report result being fetched. + * Format: + * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` + * + * @return \Google\Ads\AdManager\V1\FetchReportResultRowsRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The report result being fetched. + * Format: + * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` + * @type int $page_size + * Optional. The maximum number of rows to return. The service may return + * fewer than this value. If unspecified, at most 1,000 rows will be returned. + * The maximum value is 10,000; values greater than 10,000 will be reduced to + * 10,000. + * @type string $page_token + * Optional. A page token, received from a previous `FetchReportResultRows` + * call. Provide this to retrieve the second and subsequent batches of rows. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); + parent::__construct($data); + } + + /** + * The report result being fetched. + * Format: + * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The report result being fetched. + * Format: + * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The maximum number of rows to return. The service may return + * fewer than this value. If unspecified, at most 1,000 rows will be returned. + * The maximum value is 10,000; values greater than 10,000 will be reduced to + * 10,000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of rows to return. The service may return + * fewer than this value. If unspecified, at most 1,000 rows will be returned. + * The maximum value is 10,000; values greater than 10,000 will be reduced to + * 10,000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `FetchReportResultRows` + * call. Provide this to retrieve the second and subsequent batches of rows. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `FetchReportResultRows` + * call. Provide this to retrieve the second and subsequent batches of rows. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php new file mode 100644 index 000000000000..fc893a549109 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php @@ -0,0 +1,283 @@ +google.ads.admanager.v1.FetchReportResultRowsResponse + */ +class FetchReportResultRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Up to `page_size` rows of report data. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; + */ + private $rows; + /** + * The time at which the report was scheduled to run. For non-scheduled + * reports, this is the time at which the report was requested to be run. + * + * Generated from protobuf field .google.protobuf.Timestamp run_time = 2; + */ + protected $run_time = null; + /** + * The computed fixed date ranges this report includes. + * Only returned with the first page of results (when page_token is not + * included in the request). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + */ + private $date_ranges; + /** + * The computed comparison fixed date ranges this report includes. + * Only returned with the first page of results (when page_token is not + * included in the request). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; + */ + private $comparison_date_ranges; + /** + * The total number of rows available from this report. Useful for + * pagination. + * Only returned with the first page of results (when page_token is not + * included in the request). + * + * Generated from protobuf field int32 total_row_count = 5; + */ + protected $total_row_count = 0; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 6; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\ReportDataTable\Row>|\Google\Protobuf\Internal\RepeatedField $rows + * Up to `page_size` rows of report data. + * @type \Google\Protobuf\Timestamp $run_time + * The time at which the report was scheduled to run. For non-scheduled + * reports, this is the time at which the report was requested to be run. + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges + * The computed fixed date ranges this report includes. + * Only returned with the first page of results (when page_token is not + * included in the request). + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $comparison_date_ranges + * The computed comparison fixed date ranges this report includes. + * Only returned with the first page of results (when page_token is not + * included in the request). + * @type int $total_row_count + * The total number of rows available from this report. Useful for + * pagination. + * Only returned with the first page of results (when page_token is not + * included in the request). + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); + parent::__construct($data); + } + + /** + * Up to `page_size` rows of report data. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRows() + { + return $this->rows; + } + + /** + * Up to `page_size` rows of report data. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; + * @param array<\Google\Ads\AdManager\V1\ReportDataTable\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDataTable\Row::class); + $this->rows = $arr; + + return $this; + } + + /** + * The time at which the report was scheduled to run. For non-scheduled + * reports, this is the time at which the report was requested to be run. + * + * Generated from protobuf field .google.protobuf.Timestamp run_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRunTime() + { + return $this->run_time; + } + + public function hasRunTime() + { + return isset($this->run_time); + } + + public function clearRunTime() + { + unset($this->run_time); + } + + /** + * The time at which the report was scheduled to run. For non-scheduled + * reports, this is the time at which the report was requested to be run. + * + * Generated from protobuf field .google.protobuf.Timestamp run_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRunTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->run_time = $var; + + return $this; + } + + /** + * The computed fixed date ranges this report includes. + * Only returned with the first page of results (when page_token is not + * included in the request). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDateRanges() + { + return $this->date_ranges; + } + + /** + * The computed fixed date ranges this report includes. + * Only returned with the first page of results (when page_token is not + * included in the request). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDateRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange::class); + $this->date_ranges = $arr; + + return $this; + } + + /** + * The computed comparison fixed date ranges this report includes. + * Only returned with the first page of results (when page_token is not + * included in the request). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getComparisonDateRanges() + { + return $this->comparison_date_ranges; + } + + /** + * The computed comparison fixed date ranges this report includes. + * Only returned with the first page of results (when page_token is not + * included in the request). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setComparisonDateRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange::class); + $this->comparison_date_ranges = $arr; + + return $this; + } + + /** + * The total number of rows available from this report. Useful for + * pagination. + * Only returned with the first page of results (when page_token is not + * included in the request). + * + * Generated from protobuf field int32 total_row_count = 5; + * @return int + */ + public function getTotalRowCount() + { + return $this->total_row_count; + } + + /** + * The total number of rows available from this report. Useful for + * pagination. + * Only returned with the first page of results (when page_token is not + * included in the request). + * + * Generated from protobuf field int32 total_row_count = 5; + * @param int $var + * @return $this + */ + public function setTotalRowCount($var) + { + GPBUtil::checkInt32($var); + $this->total_row_count = $var; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 6; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 6; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FirstPartyMobileApplicationTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FirstPartyMobileApplicationTargeting.php new file mode 100644 index 000000000000..105717038c5f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FirstPartyMobileApplicationTargeting.php @@ -0,0 +1,109 @@ +google.ads.admanager.v1.FirstPartyMobileApplicationTargeting + */ +class FirstPartyMobileApplicationTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The resource names of the first-party applications that should be + * targeted. + * + * Generated from protobuf field repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_applications; + /** + * Optional. The resource names of the first-party applications that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_applications; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_applications + * Optional. The resource names of the first-party applications that should be + * targeted. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_applications + * Optional. The resource names of the first-party applications that should be + * excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The resource names of the first-party applications that should be + * targeted. + * + * Generated from protobuf field repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedApplications() + { + return $this->targeted_applications; + } + + /** + * Optional. The resource names of the first-party applications that should be + * targeted. + * + * Generated from protobuf field repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedApplications($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_applications = $arr; + + return $this; + } + + /** + * Optional. The resource names of the first-party applications that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedApplications() + { + return $this->excluded_applications; + } + + /** + * Optional. The resource names of the first-party applications that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedApplications($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_applications = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php new file mode 100644 index 000000000000..168ab1cb5f0c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php @@ -0,0 +1,165 @@ +google.ads.admanager.v1.FrequencyCap + */ +class FrequencyCap extends \Google\Protobuf\Internal\Message +{ + /** + * The maximum number of impressions for this frequency cap. + * + * Generated from protobuf field optional int64 max_impressions = 1; + */ + protected $max_impressions = null; + /** + * The number of time units over which the frequency cap is effective. + * + * Generated from protobuf field optional int64 time_amount = 2; + */ + protected $time_amount = null; + /** + * The units of time of this frequency cap. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3; + */ + protected $time_unit = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $max_impressions + * The maximum number of impressions for this frequency cap. + * @type int|string $time_amount + * The number of time units over which the frequency cap is effective. + * @type int $time_unit + * The units of time of this frequency cap. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\FrequencyCap::initOnce(); + parent::__construct($data); + } + + /** + * The maximum number of impressions for this frequency cap. + * + * Generated from protobuf field optional int64 max_impressions = 1; + * @return int|string + */ + public function getMaxImpressions() + { + return isset($this->max_impressions) ? $this->max_impressions : 0; + } + + public function hasMaxImpressions() + { + return isset($this->max_impressions); + } + + public function clearMaxImpressions() + { + unset($this->max_impressions); + } + + /** + * The maximum number of impressions for this frequency cap. + * + * Generated from protobuf field optional int64 max_impressions = 1; + * @param int|string $var + * @return $this + */ + public function setMaxImpressions($var) + { + GPBUtil::checkInt64($var); + $this->max_impressions = $var; + + return $this; + } + + /** + * The number of time units over which the frequency cap is effective. + * + * Generated from protobuf field optional int64 time_amount = 2; + * @return int|string + */ + public function getTimeAmount() + { + return isset($this->time_amount) ? $this->time_amount : 0; + } + + public function hasTimeAmount() + { + return isset($this->time_amount); + } + + public function clearTimeAmount() + { + unset($this->time_amount); + } + + /** + * The number of time units over which the frequency cap is effective. + * + * Generated from protobuf field optional int64 time_amount = 2; + * @param int|string $var + * @return $this + */ + public function setTimeAmount($var) + { + GPBUtil::checkInt64($var); + $this->time_amount = $var; + + return $this; + } + + /** + * The units of time of this frequency cap. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3; + * @return int + */ + public function getTimeUnit() + { + return isset($this->time_unit) ? $this->time_unit : 0; + } + + public function hasTimeUnit() + { + return isset($this->time_unit); + } + + public function clearTimeUnit() + { + unset($this->time_unit); + } + + /** + * The units of time of this frequency cap. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3; + * @param int $var + * @return $this + */ + public function setTimeUnit($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TimeUnitEnum\TimeUnit::class); + $this->time_unit = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTarget.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTarget.php new file mode 100644 index 000000000000..6973b263c149 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTarget.php @@ -0,0 +1,345 @@ +google.ads.admanager.v1.GeoTarget + */ +class GeoTarget extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `GeoTarget`. + * Format: `networks/{network_code}/geoTargets/{geo_target_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The display name of the GeoTarget. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + /** + * Output only. The name of the direct parent that defines the canonical name + * of the geo target. For example, if the current geo target is "San + * Francisco", its canonical name would be "San Francisco, California, United + * States" thus the canonical_parent would be the name of California and the + * canonical_parent of California would be the name of United states Format: + * `networks/{network_code}/geoTargets/{geo_target}` + * + * Generated from protobuf field optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $canonical_parent = null; + /** + * Output only. All parents of the geo target ordered by ascending size. + * + * Generated from protobuf field repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $parent_names; + /** + * Output only. The Unicode CLDR region code of the geo target. + * + * Generated from protobuf field optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $region_code = null; + /** + * Output only. The location type (unlocalized) for this geographical entity. + * + * Generated from protobuf field optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = null; + /** + * Output only. Whether the geo target is targetable. + * + * Generated from protobuf field optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $targetable = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `GeoTarget`. + * Format: `networks/{network_code}/geoTargets/{geo_target_id}` + * @type string $display_name + * Output only. The display name of the GeoTarget. + * @type string $canonical_parent + * Output only. The name of the direct parent that defines the canonical name + * of the geo target. For example, if the current geo target is "San + * Francisco", its canonical name would be "San Francisco, California, United + * States" thus the canonical_parent would be the name of California and the + * canonical_parent of California would be the name of United states Format: + * `networks/{network_code}/geoTargets/{geo_target}` + * @type array|\Google\Protobuf\Internal\RepeatedField $parent_names + * Output only. All parents of the geo target ordered by ascending size. + * @type string $region_code + * Output only. The Unicode CLDR region code of the geo target. + * @type string $type + * Output only. The location type (unlocalized) for this geographical entity. + * @type bool $targetable + * Output only. Whether the geo target is targetable. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\GeoTargetMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `GeoTarget`. + * Format: `networks/{network_code}/geoTargets/{geo_target_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `GeoTarget`. + * Format: `networks/{network_code}/geoTargets/{geo_target_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The display name of the GeoTarget. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The display name of the GeoTarget. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The name of the direct parent that defines the canonical name + * of the geo target. For example, if the current geo target is "San + * Francisco", its canonical name would be "San Francisco, California, United + * States" thus the canonical_parent would be the name of California and the + * canonical_parent of California would be the name of United states Format: + * `networks/{network_code}/geoTargets/{geo_target}` + * + * Generated from protobuf field optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getCanonicalParent() + { + return isset($this->canonical_parent) ? $this->canonical_parent : ''; + } + + public function hasCanonicalParent() + { + return isset($this->canonical_parent); + } + + public function clearCanonicalParent() + { + unset($this->canonical_parent); + } + + /** + * Output only. The name of the direct parent that defines the canonical name + * of the geo target. For example, if the current geo target is "San + * Francisco", its canonical name would be "San Francisco, California, United + * States" thus the canonical_parent would be the name of California and the + * canonical_parent of California would be the name of United states Format: + * `networks/{network_code}/geoTargets/{geo_target}` + * + * Generated from protobuf field optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCanonicalParent($var) + { + GPBUtil::checkString($var, True); + $this->canonical_parent = $var; + + return $this; + } + + /** + * Output only. All parents of the geo target ordered by ascending size. + * + * Generated from protobuf field repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getParentNames() + { + return $this->parent_names; + } + + /** + * Output only. All parents of the geo target ordered by ascending size. + * + * Generated from protobuf field repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setParentNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->parent_names = $arr; + + return $this; + } + + /** + * Output only. The Unicode CLDR region code of the geo target. + * + * Generated from protobuf field optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRegionCode() + { + return isset($this->region_code) ? $this->region_code : ''; + } + + public function hasRegionCode() + { + return isset($this->region_code); + } + + public function clearRegionCode() + { + unset($this->region_code); + } + + /** + * Output only. The Unicode CLDR region code of the geo target. + * + * Generated from protobuf field optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Output only. The location type (unlocalized) for this geographical entity. + * + * Generated from protobuf field optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getType() + { + return isset($this->type) ? $this->type : ''; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * Output only. The location type (unlocalized) for this geographical entity. + * + * Generated from protobuf field optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Output only. Whether the geo target is targetable. + * + * Generated from protobuf field optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getTargetable() + { + return isset($this->targetable) ? $this->targetable : false; + } + + public function hasTargetable() + { + return isset($this->targetable); + } + + public function clearTargetable() + { + unset($this->targetable); + } + + /** + * Output only. Whether the geo target is targetable. + * + * Generated from protobuf field optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setTargetable($var) + { + GPBUtil::checkBool($var); + $this->targetable = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTargeting.php new file mode 100644 index 000000000000..0b36d557278d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTargeting.php @@ -0,0 +1,101 @@ +google.ads.admanager.v1.GeoTargeting + */ +class GeoTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of geo resource names that should be targeted/included. + * + * Generated from protobuf field repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_geos; + /** + * Optional. A list of geo resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_geos; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_geos + * Optional. A list of geo resource names that should be targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_geos + * Optional. A list of geo resource names that should be excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of geo resource names that should be targeted/included. + * + * Generated from protobuf field repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedGeos() + { + return $this->targeted_geos; + } + + /** + * Optional. A list of geo resource names that should be targeted/included. + * + * Generated from protobuf field repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedGeos($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_geos = $arr; + + return $this; + } + + /** + * Optional. A list of geo resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedGeos() + { + return $this->excluded_geos; + } + + /** + * Optional. A list of geo resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedGeos($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_geos = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdBreakRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdBreakRequest.php new file mode 100644 index 000000000000..c266d0f08b88 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdBreakRequest.php @@ -0,0 +1,102 @@ +google.ads.admanager.v1.GetAdBreakRequest + */ +class GetAdBreakRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the AdBreak using the asset key or custom + * asset key. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the AdBreak using the asset key or custom + * asset key. + * + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` + * Please see {@see AdBreakServiceClient::adBreakName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetAdBreakRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the AdBreak using the asset key or custom + * asset key. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the AdBreak using the asset key or custom + * asset key. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the AdBreak using the asset key or custom + * asset key. + * Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php new file mode 100644 index 000000000000..a359f1d3acaf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetAdUnitRequest + */ +class GetAdUnitRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the AdUnit. + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the AdUnit. + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * Please see {@see AdUnitServiceClient::adUnitName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetAdUnitRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the AdUnit. + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the AdUnit. + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the AdUnit. + * Format: `networks/{network_code}/adUnits/{ad_unit_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetApplicationRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetApplicationRequest.php new file mode 100644 index 000000000000..eb816d6561cc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetApplicationRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetApplicationRequest + */ +class GetApplicationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Application. + * Format: `networks/{network_code}/applications/{application_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Application. + * Format: `networks/{network_code}/applications/{application_id}` + * Please see {@see ApplicationServiceClient::applicationName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetApplicationRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Application. + * Format: `networks/{network_code}/applications/{application_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ApplicationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Application. + * Format: `networks/{network_code}/applications/{application_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Application. + * Format: `networks/{network_code}/applications/{application_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAudienceSegmentRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAudienceSegmentRequest.php new file mode 100644 index 000000000000..60546c0d5697 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAudienceSegmentRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetAudienceSegmentRequest + */ +class GetAudienceSegmentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the AudienceSegment. + * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the AudienceSegment. + * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + * Please see {@see AudienceSegmentServiceClient::audienceSegmentName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetAudienceSegmentRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the AudienceSegment. + * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AudienceSegmentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the AudienceSegment. + * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the AudienceSegment. + * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBandwidthGroupRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBandwidthGroupRequest.php new file mode 100644 index 000000000000..33bd890c8708 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBandwidthGroupRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetBandwidthGroupRequest + */ +class GetBandwidthGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the BandwidthGroup. + * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the BandwidthGroup. + * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * Please see {@see BandwidthGroupServiceClient::bandwidthGroupName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetBandwidthGroupRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the BandwidthGroup. + * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BandwidthGroupService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the BandwidthGroup. + * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the BandwidthGroup. + * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserLanguageRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserLanguageRequest.php new file mode 100644 index 000000000000..41c1f2705ed8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserLanguageRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetBrowserLanguageRequest + */ +class GetBrowserLanguageRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the BrowserLanguage. + * Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the BrowserLanguage. + * Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + * Please see {@see BrowserLanguageServiceClient::browserLanguageName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetBrowserLanguageRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the BrowserLanguage. + * Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BrowserLanguageService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the BrowserLanguage. + * Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the BrowserLanguage. + * Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserRequest.php new file mode 100644 index 000000000000..e89455c2fcd9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetBrowserRequest + */ +class GetBrowserRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Browser. + * Format: `networks/{network_code}/browsers/{browser_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Browser. + * Format: `networks/{network_code}/browsers/{browser_id}` + * Please see {@see BrowserServiceClient::browserName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetBrowserRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Browser. + * Format: `networks/{network_code}/browsers/{browser_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BrowserService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Browser. + * Format: `networks/{network_code}/browsers/{browser_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Browser. + * Format: `networks/{network_code}/browsers/{browser_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataKeyRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataKeyRequest.php new file mode 100644 index 000000000000..9a473dbf3b81 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataKeyRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetCmsMetadataKeyRequest + */ +class GetCmsMetadataKeyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the CmsMetadataKey. + * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the CmsMetadataKey. + * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * Please see {@see CmsMetadataKeyServiceClient::cmsMetadataKeyName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetCmsMetadataKeyRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the CmsMetadataKey. + * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the CmsMetadataKey. + * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the CmsMetadataKey. + * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataValueRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataValueRequest.php new file mode 100644 index 000000000000..0120929642ae --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataValueRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetCmsMetadataValueRequest + */ +class GetCmsMetadataValueRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the CmsMetadataKey. + * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the CmsMetadataKey. + * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * Please see {@see CmsMetadataValueServiceClient::cmsMetadataValueName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetCmsMetadataValueRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the CmsMetadataKey. + * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataValueService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the CmsMetadataKey. + * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the CmsMetadataKey. + * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php new file mode 100644 index 000000000000..6fe5c202376a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetCompanyRequest + */ +class GetCompanyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Company. + * Format: `networks/{network_code}/companies/{company_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Company. + * Format: `networks/{network_code}/companies/{company_id}` + * Please see {@see CompanyServiceClient::companyName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetCompanyRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Company. + * Format: `networks/{network_code}/companies/{company_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Company. + * Format: `networks/{network_code}/companies/{company_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Company. + * Format: `networks/{network_code}/companies/{company_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContactRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContactRequest.php new file mode 100644 index 000000000000..e07fbb8381d8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContactRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetContactRequest + */ +class GetContactRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Contact. + * Format: `networks/{network_code}/contacts/{contact_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Contact. + * Format: `networks/{network_code}/contacts/{contact_id}` + * Please see {@see ContactServiceClient::contactName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetContactRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Contact. + * Format: `networks/{network_code}/contacts/{contact_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Contact. + * Format: `networks/{network_code}/contacts/{contact_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Contact. + * Format: `networks/{network_code}/contacts/{contact_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentBundleRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentBundleRequest.php new file mode 100644 index 000000000000..24d01ad4a5a7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentBundleRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetContentBundleRequest + */ +class GetContentBundleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the ContentBundle. + * Format: `networks/{network_code}/contentBundles/{content_bundle_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the ContentBundle. + * Format: `networks/{network_code}/contentBundles/{content_bundle_id}` + * Please see {@see ContentBundleServiceClient::contentBundleName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetContentBundleRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the ContentBundle. + * Format: `networks/{network_code}/contentBundles/{content_bundle_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentBundleService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the ContentBundle. + * Format: `networks/{network_code}/contentBundles/{content_bundle_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the ContentBundle. + * Format: `networks/{network_code}/contentBundles/{content_bundle_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentLabelRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentLabelRequest.php new file mode 100644 index 000000000000..b4cc1ba3aa40 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentLabelRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetContentLabelRequest + */ +class GetContentLabelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the ContentLabel. + * Format: `networks/{network_code}/contentLabels/{content_label_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the ContentLabel. + * Format: `networks/{network_code}/contentLabels/{content_label_id}` + * Please see {@see ContentLabelServiceClient::contentLabelName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetContentLabelRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the ContentLabel. + * Format: `networks/{network_code}/contentLabels/{content_label_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentLabelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the ContentLabel. + * Format: `networks/{network_code}/contentLabels/{content_label_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the ContentLabel. + * Format: `networks/{network_code}/contentLabels/{content_label_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentRequest.php new file mode 100644 index 000000000000..f939b11c5693 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetContentRequest + */ +class GetContentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Content. + * Format: `networks/{network_code}/content/{content_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Content. + * Format: `networks/{network_code}/content/{content_id}` + * Please see {@see ContentServiceClient::contentName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetContentRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Content. + * Format: `networks/{network_code}/content/{content_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Content. + * Format: `networks/{network_code}/content/{content_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Content. + * Format: `networks/{network_code}/content/{content_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCreativeTemplateRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCreativeTemplateRequest.php new file mode 100644 index 000000000000..67ab39dfcb17 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCreativeTemplateRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetCreativeTemplateRequest + */ +class GetCreativeTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the CreativeTemplate. + * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the CreativeTemplate. + * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + * Please see {@see CreativeTemplateServiceClient::creativeTemplateName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetCreativeTemplateRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the CreativeTemplate. + * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the CreativeTemplate. + * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the CreativeTemplate. + * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php new file mode 100644 index 000000000000..493ec5fcc0d9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetCustomFieldRequest + */ +class GetCustomFieldRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the CustomField. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the CustomField. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * Please see {@see CustomFieldServiceClient::customFieldName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetCustomFieldRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the CustomField. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the CustomField. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the CustomField. + * Format: `networks/{network_code}/customFields/{custom_field_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php new file mode 100644 index 000000000000..9499837ddb77 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetCustomTargetingKeyRequest + */ +class GetCustomTargetingKeyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the CustomTargetingKey. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the CustomTargetingKey. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * Please see {@see CustomTargetingKeyServiceClient::customTargetingKeyName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetCustomTargetingKeyRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the CustomTargetingKey. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the CustomTargetingKey. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the CustomTargetingKey. + * Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php new file mode 100644 index 000000000000..7292b27a278d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetCustomTargetingValueRequest + */ +class GetCustomTargetingValueRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the CustomTargetingValue. + * Format: + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the CustomTargetingValue. + * Format: + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` + * Please see {@see CustomTargetingValueServiceClient::customTargetingValueName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetCustomTargetingValueRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the CustomTargetingValue. + * Format: + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the CustomTargetingValue. + * Format: + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the CustomTargetingValue. + * Format: + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCapabilityRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCapabilityRequest.php new file mode 100644 index 000000000000..d56347865ccb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCapabilityRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetDeviceCapabilityRequest + */ +class GetDeviceCapabilityRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DeviceCapability. + * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the DeviceCapability. + * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * Please see {@see DeviceCapabilityServiceClient::deviceCapabilityName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetDeviceCapabilityRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the DeviceCapability. + * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceCapabilityService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DeviceCapability. + * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the DeviceCapability. + * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCategoryRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCategoryRequest.php new file mode 100644 index 000000000000..36cd0abfc491 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCategoryRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetDeviceCategoryRequest + */ +class GetDeviceCategoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DeviceCategory. + * Format: `networks/{network_code}/deviceCategories/{device_category_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the DeviceCategory. + * Format: `networks/{network_code}/deviceCategories/{device_category_id}` + * Please see {@see DeviceCategoryServiceClient::deviceCategoryName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetDeviceCategoryRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the DeviceCategory. + * Format: `networks/{network_code}/deviceCategories/{device_category_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceCategoryService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DeviceCategory. + * Format: `networks/{network_code}/deviceCategories/{device_category_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the DeviceCategory. + * Format: `networks/{network_code}/deviceCategories/{device_category_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceManufacturerRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceManufacturerRequest.php new file mode 100644 index 000000000000..2ecc3c740979 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceManufacturerRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetDeviceManufacturerRequest + */ +class GetDeviceManufacturerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DeviceManufacturer. + * Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the DeviceManufacturer. + * Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}` + * Please see {@see DeviceManufacturerServiceClient::deviceManufacturerName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetDeviceManufacturerRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the DeviceManufacturer. + * Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceManufacturerService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DeviceManufacturer. + * Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the DeviceManufacturer. + * Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php new file mode 100644 index 000000000000..f0b13fadda72 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetEntitySignalsMappingRequest + */ +class GetEntitySignalsMappingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntitySignalsMapping. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the EntitySignalsMapping. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` + * Please see {@see EntitySignalsMappingServiceClient::entitySignalsMappingName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetEntitySignalsMappingRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the EntitySignalsMapping. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the EntitySignalsMapping. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the EntitySignalsMapping. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetGeoTargetRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetGeoTargetRequest.php new file mode 100644 index 000000000000..7b07fd6cdc24 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetGeoTargetRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetGeoTargetRequest + */ +class GetGeoTargetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the GeoTarget. + * Format: `networks/{network_code}/geoTargets/{geo_target_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the GeoTarget. + * Format: `networks/{network_code}/geoTargets/{geo_target_id}` + * Please see {@see GeoTargetServiceClient::geoTargetName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetGeoTargetRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the GeoTarget. + * Format: `networks/{network_code}/geoTargets/{geo_target_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\GeoTargetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the GeoTarget. + * Format: `networks/{network_code}/geoTargets/{geo_target_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the GeoTarget. + * Format: `networks/{network_code}/geoTargets/{geo_target_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileCarrierRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileCarrierRequest.php new file mode 100644 index 000000000000..0e257c6b4525 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileCarrierRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetMobileCarrierRequest + */ +class GetMobileCarrierRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the MobileCarrier. + * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the MobileCarrier. + * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}` + * Please see {@see MobileCarrierServiceClient::mobileCarrierName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetMobileCarrierRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the MobileCarrier. + * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileCarrierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the MobileCarrier. + * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the MobileCarrier. + * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceRequest.php new file mode 100644 index 000000000000..d8246fc722a4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetMobileDeviceRequest + */ +class GetMobileDeviceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the MobileDevice. + * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the MobileDevice. + * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}` + * Please see {@see MobileDeviceServiceClient::mobileDeviceName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetMobileDeviceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the MobileDevice. + * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileDeviceService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the MobileDevice. + * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the MobileDevice. + * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceSubmodelRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceSubmodelRequest.php new file mode 100644 index 000000000000..c117b1b43cb3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceSubmodelRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetMobileDeviceSubmodelRequest + */ +class GetMobileDeviceSubmodelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the MobileDeviceSubmodel. + * Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the MobileDeviceSubmodel. + * Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}` + * Please see {@see MobileDeviceSubmodelServiceClient::mobileDeviceSubmodelName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetMobileDeviceSubmodelRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the MobileDeviceSubmodel. + * Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileDeviceSubmodelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the MobileDeviceSubmodel. + * Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the MobileDeviceSubmodel. + * Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php new file mode 100644 index 000000000000..f091d5459079 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetNetworkRequest + */ +class GetNetworkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of Network. + * Format: networks/{network_code} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of Network. + * Format: networks/{network_code} + * Please see {@see NetworkServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetNetworkRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of Network. + * Format: networks/{network_code} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\NetworkService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of Network. + * Format: networks/{network_code} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of Network. + * Format: networks/{network_code} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemRequest.php new file mode 100644 index 000000000000..e83cf0f9ec54 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetOperatingSystemRequest + */ +class GetOperatingSystemRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the OperatingSystem. + * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the OperatingSystem. + * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + * Please see {@see OperatingSystemServiceClient::operatingSystemName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetOperatingSystemRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the OperatingSystem. + * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the OperatingSystem. + * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the OperatingSystem. + * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemVersionRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemVersionRequest.php new file mode 100644 index 000000000000..f9085908fa69 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemVersionRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetOperatingSystemVersionRequest + */ +class GetOperatingSystemVersionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the OperatingSystemVersion. + * Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the OperatingSystemVersion. + * Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * Please see {@see OperatingSystemVersionServiceClient::operatingSystemVersionName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetOperatingSystemVersionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the OperatingSystemVersion. + * Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemVersionService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the OperatingSystemVersion. + * Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the OperatingSystemVersion. + * Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php new file mode 100644 index 000000000000..b2ad956f8023 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetOrderRequest + */ +class GetOrderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Order. + * Format: `networks/{network_code}/orders/{order_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Order. + * Format: `networks/{network_code}/orders/{order_id}` + * Please see {@see OrderServiceClient::orderName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetOrderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Order. + * Format: `networks/{network_code}/orders/{order_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OrderService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Order. + * Format: `networks/{network_code}/orders/{order_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Order. + * Format: `networks/{network_code}/orders/{order_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php new file mode 100644 index 000000000000..dc0b6f37f542 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetPlacementRequest + */ +class GetPlacementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Placement. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Placement. + * Format: `networks/{network_code}/placements/{placement_id}` + * Please see {@see PlacementServiceClient::placementName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetPlacementRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Placement. + * Format: `networks/{network_code}/placements/{placement_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Placement. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Placement. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionDealRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionDealRequest.php new file mode 100644 index 000000000000..8da4871cea62 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionDealRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetPrivateAuctionDealRequest + */ +class GetPrivateAuctionDealRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the PrivateAuctionDeal. + * Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the PrivateAuctionDeal. + * Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * Please see {@see PrivateAuctionDealServiceClient::privateAuctionDealName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetPrivateAuctionDealRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the PrivateAuctionDeal. + * Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the PrivateAuctionDeal. + * Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the PrivateAuctionDeal. + * Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionRequest.php new file mode 100644 index 000000000000..59895bd7a3a7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetPrivateAuctionRequest + */ +class GetPrivateAuctionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the PrivateAuction. + * Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the PrivateAuction. + * Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * Please see {@see PrivateAuctionServiceClient::privateAuctionName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetPrivateAuctionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the PrivateAuction. + * Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the PrivateAuction. + * Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the PrivateAuction. + * Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetProgrammaticBuyerRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetProgrammaticBuyerRequest.php new file mode 100644 index 000000000000..6353f429cb7c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetProgrammaticBuyerRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetProgrammaticBuyerRequest + */ +class GetProgrammaticBuyerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the ProgrammaticBuyer. + * Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the ProgrammaticBuyer. + * Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * Please see {@see ProgrammaticBuyerServiceClient::programmaticBuyerName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetProgrammaticBuyerRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the ProgrammaticBuyer. + * Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ProgrammaticBuyerService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the ProgrammaticBuyer. + * Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the ProgrammaticBuyer. + * Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php new file mode 100644 index 000000000000..796bc7046179 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetReportRequest + */ +class GetReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the report. + * Format: `networks/{network_code}/reports/{report_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the report. + * Format: `networks/{network_code}/reports/{report_id}` + * Please see {@see ReportServiceClient::reportName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetReportRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the report. + * Format: `networks/{network_code}/reports/{report_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the report. + * Format: `networks/{network_code}/reports/{report_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the report. + * Format: `networks/{network_code}/reports/{report_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php new file mode 100644 index 000000000000..5b5ef57b0bc8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetRoleRequest + */ +class GetRoleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Role. + * Format: `networks/{network_code}/roles/{role_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Role. + * Format: `networks/{network_code}/roles/{role_id}` + * Please see {@see RoleServiceClient::roleName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetRoleRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Role. + * Format: `networks/{network_code}/roles/{role_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\RoleService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Role. + * Format: `networks/{network_code}/roles/{role_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Role. + * Format: `networks/{network_code}/roles/{role_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetSiteRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetSiteRequest.php new file mode 100644 index 000000000000..e8b680dadd78 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetSiteRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetSiteRequest + */ +class GetSiteRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Site. + * Format: `networks/{network_code}/sites/{site_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Site. + * Format: `networks/{network_code}/sites/{site_id}` + * Please see {@see SiteServiceClient::siteName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetSiteRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Site. + * Format: `networks/{network_code}/sites/{site_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Site. + * Format: `networks/{network_code}/sites/{site_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Site. + * Format: `networks/{network_code}/sites/{site_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php new file mode 100644 index 000000000000..b0e943d63698 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetTaxonomyCategoryRequest + */ +class GetTaxonomyCategoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the TaxonomyCategory. + * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the TaxonomyCategory. + * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` + * Please see {@see TaxonomyCategoryServiceClient::taxonomyCategoryName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetTaxonomyCategoryRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the TaxonomyCategory. + * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the TaxonomyCategory. + * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the TaxonomyCategory. + * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTeamRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTeamRequest.php new file mode 100644 index 000000000000..31b95f5d3299 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTeamRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetTeamRequest + */ +class GetTeamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Team. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Team. + * Format: `networks/{network_code}/teams/{team_id}` + * Please see {@see TeamServiceClient::teamName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetTeamRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Team. + * Format: `networks/{network_code}/teams/{team_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Team. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Team. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php new file mode 100644 index 000000000000..602f87ff62d3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetUserRequest + */ +class GetUserRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the User. + * Format: `networks/{network_code}/users/{user_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the User. + * Format: `networks/{network_code}/users/{user_id}` + * Please see {@see UserServiceClient::userName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetUserRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the User. + * Format: `networks/{network_code}/users/{user_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\UserService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the User. + * Format: `networks/{network_code}/users/{user_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the User. + * Format: `networks/{network_code}/users/{user_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/InventoryTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/InventoryTargeting.php new file mode 100644 index 000000000000..b123aee6d83c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/InventoryTargeting.php @@ -0,0 +1,153 @@ +google.ads.admanager.v1.InventoryTargeting + */ +class InventoryTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of ad units that should be targeted/included. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $targeted_ad_units; + /** + * Optional. A list of ad units that should be excluded. + * Excluded AUs take precedence over targeted AUs. In fact an AU can be + * excluded only if one of its ancestors is targeted. Subsequently child + * AUs of an excluded AU can not be targeted (except via a placement). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $excluded_ad_units; + /** + * Optional. The resource names of the placements that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_placements; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\AdUnitTargeting>|\Google\Protobuf\Internal\RepeatedField $targeted_ad_units + * Optional. A list of ad units that should be targeted/included. + * @type array<\Google\Ads\AdManager\V1\AdUnitTargeting>|\Google\Protobuf\Internal\RepeatedField $excluded_ad_units + * Optional. A list of ad units that should be excluded. + * Excluded AUs take precedence over targeted AUs. In fact an AU can be + * excluded only if one of its ancestors is targeted. Subsequently child + * AUs of an excluded AU can not be targeted (except via a placement). + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_placements + * Optional. The resource names of the placements that should be + * targeted/included. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of ad units that should be targeted/included. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedAdUnits() + { + return $this->targeted_ad_units; + } + + /** + * Optional. A list of ad units that should be targeted/included. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\AdUnitTargeting>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedAdUnits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitTargeting::class); + $this->targeted_ad_units = $arr; + + return $this; + } + + /** + * Optional. A list of ad units that should be excluded. + * Excluded AUs take precedence over targeted AUs. In fact an AU can be + * excluded only if one of its ancestors is targeted. Subsequently child + * AUs of an excluded AU can not be targeted (except via a placement). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedAdUnits() + { + return $this->excluded_ad_units; + } + + /** + * Optional. A list of ad units that should be excluded. + * Excluded AUs take precedence over targeted AUs. In fact an AU can be + * excluded only if one of its ancestors is targeted. Subsequently child + * AUs of an excluded AU can not be targeted (except via a placement). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\AdUnitTargeting>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedAdUnits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitTargeting::class); + $this->excluded_ad_units = $arr; + + return $this; + } + + /** + * Optional. The resource names of the placements that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedPlacements() + { + return $this->targeted_placements; + } + + /** + * Optional. The resource names of the placements that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedPlacements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_placements = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php new file mode 100644 index 000000000000..246b02a2b2c7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.Label + */ +class Label extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Label`. + * Format: `networks/{network_code}/labels/{label_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Label`. + * Format: `networks/{network_code}/labels/{label_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\LabelMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Label`. + * Format: `networks/{network_code}/labels/{label_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Label`. + * Format: `networks/{network_code}/labels/{label_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php new file mode 100644 index 000000000000..e64694387979 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php @@ -0,0 +1,125 @@ +google.ads.admanager.v1.LabelFrequencyCap + */ +class LabelFrequencyCap extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The label to used for frequency capping. + * Format: "networks/{network_code}/labels/{label_id}" + * + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $label = null; + /** + * The frequency cap. + * + * Generated from protobuf field optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + */ + protected $frequency_cap = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $label + * Required. The label to used for frequency capping. + * Format: "networks/{network_code}/labels/{label_id}" + * @type \Google\Ads\AdManager\V1\FrequencyCap $frequency_cap + * The frequency cap. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); + parent::__construct($data); + } + + /** + * Required. The label to used for frequency capping. + * Format: "networks/{network_code}/labels/{label_id}" + * + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getLabel() + { + return isset($this->label) ? $this->label : ''; + } + + public function hasLabel() + { + return isset($this->label); + } + + public function clearLabel() + { + unset($this->label); + } + + /** + * Required. The label to used for frequency capping. + * Format: "networks/{network_code}/labels/{label_id}" + * + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * The frequency cap. + * + * Generated from protobuf field optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * @return \Google\Ads\AdManager\V1\FrequencyCap|null + */ + public function getFrequencyCap() + { + return $this->frequency_cap; + } + + public function hasFrequencyCap() + { + return isset($this->frequency_cap); + } + + public function clearFrequencyCap() + { + unset($this->frequency_cap); + } + + /** + * The frequency cap. + * + * Generated from protobuf field optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * @param \Google\Ads\AdManager\V1\FrequencyCap $var + * @return $this + */ + public function setFrequencyCap($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\FrequencyCap::class); + $this->frequency_cap = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksRequest.php new file mode 100644 index 000000000000..4be9b9b02823 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksRequest.php @@ -0,0 +1,307 @@ +google.ads.admanager.v1.ListAdBreaksRequest + */ +class ListAdBreaksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of AdBreaks. + * Formats: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `AdBreaks` to return. The service might + * return fewer than this value. If unspecified, at most 10 ad breaks are + * returned. The maximum value is `100`. Values above `100` are coerced to + * `100`. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListAdBreaks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdBreaks` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of AdBreaks. + * + * Formats: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * Please see {@see AdBreakServiceClient::liveStreamEventName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListAdBreaksRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of AdBreaks. + * Formats: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * @type int $page_size + * Optional. The maximum number of `AdBreaks` to return. The service might + * return fewer than this value. If unspecified, at most 10 ad breaks are + * returned. The maximum value is `100`. Values above `100` are coerced to + * `100`. + * @type string $page_token + * Optional. A page token, received from a previous `ListAdBreaks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdBreaks` must match + * the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of AdBreaks. + * Formats: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of AdBreaks. + * Formats: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `AdBreaks` to return. The service might + * return fewer than this value. If unspecified, at most 10 ad breaks are + * returned. The maximum value is `100`. Values above `100` are coerced to + * `100`. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `AdBreaks` to return. The service might + * return fewer than this value. If unspecified, at most 10 ad breaks are + * returned. The maximum value is `100`. Values above `100` are coerced to + * `100`. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListAdBreaks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdBreaks` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListAdBreaks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdBreaks` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksResponse.php new file mode 100644 index 000000000000..07f1234b86cf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksResponse.php @@ -0,0 +1,176 @@ +google.ads.admanager.v1.ListAdBreaksResponse + */ +class ListAdBreaksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `AdBreak` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + private $ad_breaks; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. This field expires + * after five minutes. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `AdBreak` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\AdBreak>|\Google\Protobuf\Internal\RepeatedField $ad_breaks + * The `AdBreak` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. This field expires + * after five minutes. + * @type int $total_size + * Total number of `AdBreak` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); + parent::__construct($data); + } + + /** + * The `AdBreak` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdBreaks() + { + return $this->ad_breaks; + } + + /** + * The `AdBreak` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + * @param array<\Google\Ads\AdManager\V1\AdBreak>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdBreaks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdBreak::class); + $this->ad_breaks = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. This field expires + * after five minutes. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. This field expires + * after five minutes. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `AdBreak` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `AdBreak` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php new file mode 100644 index 000000000000..0738fead7604 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListAdUnitSizesRequest + */ +class ListAdUnitSizesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of AdUnitSizes. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of AdUnitSizes to return. The service may + * return fewer than this value. If unspecified, at most 50 ad unit sizes will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListAdUnitSizes` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdUnitSizes` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of AdUnitSizes. + * Format: `networks/{network_code}` + * Please see {@see AdUnitServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListAdUnitSizesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of AdUnitSizes. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of AdUnitSizes to return. The service may + * return fewer than this value. If unspecified, at most 50 ad unit sizes will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListAdUnitSizes` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdUnitSizes` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of AdUnitSizes. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of AdUnitSizes. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of AdUnitSizes to return. The service may + * return fewer than this value. If unspecified, at most 50 ad unit sizes will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of AdUnitSizes to return. The service may + * return fewer than this value. If unspecified, at most 50 ad unit sizes will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListAdUnitSizes` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdUnitSizes` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListAdUnitSizes` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdUnitSizes` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php new file mode 100644 index 000000000000..471fe5e27ba6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php @@ -0,0 +1,171 @@ +google.ads.admanager.v1.ListAdUnitSizesResponse + */ +class ListAdUnitSizesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The AdUnitSizes from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1; + */ + private $ad_unit_sizes; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of AdUnitSizes. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $ad_unit_sizes + * The AdUnitSizes from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of AdUnitSizes. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); + parent::__construct($data); + } + + /** + * The AdUnitSizes from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdUnitSizes() + { + return $this->ad_unit_sizes; + } + + /** + * The AdUnitSizes from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1; + * @param array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdUnitSizes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitSize::class); + $this->ad_unit_sizes = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of AdUnitSizes. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of AdUnitSizes. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php new file mode 100644 index 000000000000..727ea00d649d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListAdUnitsRequest + */ +class ListAdUnitsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of AdUnits. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of AdUnits to return. The service may return + * fewer than this value. If unspecified, at most 50 ad units will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListAdUnits` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdUnits` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of AdUnits. + * Format: `networks/{network_code}` + * Please see {@see AdUnitServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListAdUnitsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of AdUnits. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of AdUnits to return. The service may return + * fewer than this value. If unspecified, at most 50 ad units will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListAdUnits` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdUnits` must match + * the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of AdUnits. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of AdUnits. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of AdUnits to return. The service may return + * fewer than this value. If unspecified, at most 50 ad units will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of AdUnits to return. The service may return + * fewer than this value. If unspecified, at most 50 ad units will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListAdUnits` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdUnits` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListAdUnits` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdUnits` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php new file mode 100644 index 000000000000..fdbd1e40affd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php @@ -0,0 +1,171 @@ +google.ads.admanager.v1.ListAdUnitsResponse + */ +class ListAdUnitsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The AdUnit from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + private $ad_units; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of AdUnits. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\AdUnit>|\Google\Protobuf\Internal\RepeatedField $ad_units + * The AdUnit from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of AdUnits. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); + parent::__construct($data); + } + + /** + * The AdUnit from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdUnits() + { + return $this->ad_units; + } + + /** + * The AdUnit from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + * @param array<\Google\Ads\AdManager\V1\AdUnit>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdUnits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnit::class); + $this->ad_units = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of AdUnits. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of AdUnits. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsRequest.php new file mode 100644 index 000000000000..4fb765bf8cc7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListApplicationsRequest + */ +class ListApplicationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of Applications. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Applications` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Applications` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListApplications` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListApplications` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of Applications. + * Format: `networks/{network_code}` + * Please see {@see ApplicationServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListApplicationsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of Applications. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Applications` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Applications` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListApplications` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListApplications` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ApplicationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of Applications. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of Applications. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Applications` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Applications` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Applications` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Applications` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListApplications` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListApplications` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListApplications` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListApplications` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsResponse.php new file mode 100644 index 000000000000..78cec3199daf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListApplicationsResponse + */ +class ListApplicationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Application` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Application applications = 1; + */ + private $applications; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Application` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Application>|\Google\Protobuf\Internal\RepeatedField $applications + * The `Application` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Application` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ApplicationService::initOnce(); + parent::__construct($data); + } + + /** + * The `Application` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Application applications = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getApplications() + { + return $this->applications; + } + + /** + * The `Application` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Application applications = 1; + * @param array<\Google\Ads\AdManager\V1\Application>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setApplications($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Application::class); + $this->applications = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Application` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Application` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsRequest.php new file mode 100644 index 000000000000..76542e3e7d28 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListAudienceSegmentsRequest + */ +class ListAudienceSegmentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent publisher network associated with these audience + * segments. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `AudienceSegments` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `AudienceSegments` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListAudienceSegments` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAudienceSegments` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent publisher network associated with these audience + * segments. Format: `networks/{network_code}` + * Please see {@see AudienceSegmentServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListAudienceSegmentsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent publisher network associated with these audience + * segments. Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `AudienceSegments` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `AudienceSegments` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListAudienceSegments` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAudienceSegments` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AudienceSegmentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent publisher network associated with these audience + * segments. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent publisher network associated with these audience + * segments. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `AudienceSegments` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `AudienceSegments` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `AudienceSegments` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `AudienceSegments` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListAudienceSegments` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAudienceSegments` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListAudienceSegments` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAudienceSegments` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsResponse.php new file mode 100644 index 000000000000..ede103f7fd5f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListAudienceSegmentsResponse + */ +class ListAudienceSegmentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `AudienceSegment` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + private $audience_segments; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `AudienceSegment` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\AudienceSegment>|\Google\Protobuf\Internal\RepeatedField $audience_segments + * The `AudienceSegment` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `AudienceSegment` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AudienceSegmentService::initOnce(); + parent::__construct($data); + } + + /** + * The `AudienceSegment` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAudienceSegments() + { + return $this->audience_segments; + } + + /** + * The `AudienceSegment` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + * @param array<\Google\Ads\AdManager\V1\AudienceSegment>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAudienceSegments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AudienceSegment::class); + $this->audience_segments = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `AudienceSegment` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `AudienceSegment` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsRequest.php new file mode 100644 index 000000000000..7558ac214e44 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListBandwidthGroupsRequest + */ +class ListBandwidthGroupsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of BandwidthGroups. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `BandwidthGroups` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `BandwidthGroups` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListBandwidthGroups` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBandwidthGroups` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of BandwidthGroups. + * Format: `networks/{network_code}` + * Please see {@see BandwidthGroupServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListBandwidthGroupsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of BandwidthGroups. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `BandwidthGroups` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `BandwidthGroups` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListBandwidthGroups` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBandwidthGroups` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BandwidthGroupService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of BandwidthGroups. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of BandwidthGroups. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `BandwidthGroups` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `BandwidthGroups` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `BandwidthGroups` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `BandwidthGroups` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListBandwidthGroups` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBandwidthGroups` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListBandwidthGroups` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBandwidthGroups` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsResponse.php new file mode 100644 index 000000000000..e9c271e781f6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListBandwidthGroupsResponse + */ +class ListBandwidthGroupsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `BandwidthGroup` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + private $bandwidth_groups; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `BandwidthGroup` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\BandwidthGroup>|\Google\Protobuf\Internal\RepeatedField $bandwidth_groups + * The `BandwidthGroup` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `BandwidthGroup` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BandwidthGroupService::initOnce(); + parent::__construct($data); + } + + /** + * The `BandwidthGroup` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBandwidthGroups() + { + return $this->bandwidth_groups; + } + + /** + * The `BandwidthGroup` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + * @param array<\Google\Ads\AdManager\V1\BandwidthGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBandwidthGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\BandwidthGroup::class); + $this->bandwidth_groups = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `BandwidthGroup` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `BandwidthGroup` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesRequest.php new file mode 100644 index 000000000000..eb0a1c17a674 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListBrowserLanguagesRequest + */ +class ListBrowserLanguagesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of BrowserLanguages. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `BrowserLanguages` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `BrowserLanguages` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListBrowserLanguages` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBrowserLanguages` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of BrowserLanguages. + * Format: `networks/{network_code}` + * Please see {@see BrowserLanguageServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListBrowserLanguagesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of BrowserLanguages. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `BrowserLanguages` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `BrowserLanguages` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListBrowserLanguages` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBrowserLanguages` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BrowserLanguageService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of BrowserLanguages. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of BrowserLanguages. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `BrowserLanguages` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `BrowserLanguages` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `BrowserLanguages` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `BrowserLanguages` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListBrowserLanguages` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBrowserLanguages` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListBrowserLanguages` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBrowserLanguages` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesResponse.php new file mode 100644 index 000000000000..a6514d2b4dda --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListBrowserLanguagesResponse + */ +class ListBrowserLanguagesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `BrowserLanguage` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + private $browser_languages; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `BrowserLanguage` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\BrowserLanguage>|\Google\Protobuf\Internal\RepeatedField $browser_languages + * The `BrowserLanguage` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `BrowserLanguage` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BrowserLanguageService::initOnce(); + parent::__construct($data); + } + + /** + * The `BrowserLanguage` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBrowserLanguages() + { + return $this->browser_languages; + } + + /** + * The `BrowserLanguage` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + * @param array<\Google\Ads\AdManager\V1\BrowserLanguage>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBrowserLanguages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\BrowserLanguage::class); + $this->browser_languages = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `BrowserLanguage` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `BrowserLanguage` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersRequest.php new file mode 100644 index 000000000000..036eb4f1f05b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListBrowsersRequest + */ +class ListBrowsersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of Browsers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Browsers` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Browsers` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListBrowsers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBrowsers` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of Browsers. + * Format: `networks/{network_code}` + * Please see {@see BrowserServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListBrowsersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of Browsers. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Browsers` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Browsers` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListBrowsers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBrowsers` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BrowserService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of Browsers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of Browsers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Browsers` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Browsers` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Browsers` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Browsers` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListBrowsers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBrowsers` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListBrowsers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBrowsers` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersResponse.php new file mode 100644 index 000000000000..98de4a70161f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListBrowsersResponse + */ +class ListBrowsersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Browser` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + private $browsers; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Browser` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Browser>|\Google\Protobuf\Internal\RepeatedField $browsers + * The `Browser` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Browser` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\BrowserService::initOnce(); + parent::__construct($data); + } + + /** + * The `Browser` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Browser browsers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBrowsers() + { + return $this->browsers; + } + + /** + * The `Browser` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Browser browsers = 1; + * @param array<\Google\Ads\AdManager\V1\Browser>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBrowsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Browser::class); + $this->browsers = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Browser` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Browser` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysRequest.php new file mode 100644 index 000000000000..5651c4404a96 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListCmsMetadataKeysRequest + */ +class ListCmsMetadataKeysRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of CmsMetadataKeys. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `CmsMetadataKeys` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CmsMetadataKeys` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListCmsMetadataKeys` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCmsMetadataKeys` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of CmsMetadataKeys. + * Format: `networks/{network_code}` + * Please see {@see CmsMetadataKeyServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListCmsMetadataKeysRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of CmsMetadataKeys. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `CmsMetadataKeys` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CmsMetadataKeys` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListCmsMetadataKeys` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCmsMetadataKeys` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of CmsMetadataKeys. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of CmsMetadataKeys. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `CmsMetadataKeys` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CmsMetadataKeys` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `CmsMetadataKeys` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CmsMetadataKeys` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListCmsMetadataKeys` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCmsMetadataKeys` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListCmsMetadataKeys` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCmsMetadataKeys` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysResponse.php new file mode 100644 index 000000000000..aab95dd57506 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListCmsMetadataKeysResponse + */ +class ListCmsMetadataKeysResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CmsMetadataKey` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + private $cms_metadata_keys; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `CmsMetadataKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\CmsMetadataKey>|\Google\Protobuf\Internal\RepeatedField $cms_metadata_keys + * The `CmsMetadataKey` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `CmsMetadataKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataKeyService::initOnce(); + parent::__construct($data); + } + + /** + * The `CmsMetadataKey` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCmsMetadataKeys() + { + return $this->cms_metadata_keys; + } + + /** + * The `CmsMetadataKey` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + * @param array<\Google\Ads\AdManager\V1\CmsMetadataKey>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCmsMetadataKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CmsMetadataKey::class); + $this->cms_metadata_keys = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `CmsMetadataKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `CmsMetadataKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesRequest.php new file mode 100644 index 000000000000..81a7b235dd5d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListCmsMetadataValuesRequest + */ +class ListCmsMetadataValuesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of CmsMetadataValues. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `CmsMetadataValues` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CmsMetadataValues` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListCmsMetadataValues` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCmsMetadataValues` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of CmsMetadataValues. + * Format: `networks/{network_code}` + * Please see {@see CmsMetadataValueServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListCmsMetadataValuesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of CmsMetadataValues. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `CmsMetadataValues` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CmsMetadataValues` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListCmsMetadataValues` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCmsMetadataValues` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataValueService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of CmsMetadataValues. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of CmsMetadataValues. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `CmsMetadataValues` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CmsMetadataValues` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `CmsMetadataValues` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CmsMetadataValues` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListCmsMetadataValues` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCmsMetadataValues` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListCmsMetadataValues` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCmsMetadataValues` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesResponse.php new file mode 100644 index 000000000000..772f9eb151e5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListCmsMetadataValuesResponse + */ +class ListCmsMetadataValuesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CmsMetadataValue` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + private $cms_metadata_values; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `CmsMetadataValue` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\CmsMetadataValue>|\Google\Protobuf\Internal\RepeatedField $cms_metadata_values + * The `CmsMetadataValue` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `CmsMetadataValue` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataValueService::initOnce(); + parent::__construct($data); + } + + /** + * The `CmsMetadataValue` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCmsMetadataValues() + { + return $this->cms_metadata_values; + } + + /** + * The `CmsMetadataValue` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + * @param array<\Google\Ads\AdManager\V1\CmsMetadataValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCmsMetadataValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CmsMetadataValue::class); + $this->cms_metadata_values = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `CmsMetadataValue` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `CmsMetadataValue` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php new file mode 100644 index 000000000000..c3b776eef434 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListCompaniesRequest + */ +class ListCompaniesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of Companies. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Companies` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Companies` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListCompanies` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCompanies` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of Companies. + * Format: `networks/{network_code}` + * Please see {@see CompanyServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListCompaniesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of Companies. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Companies` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Companies` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListCompanies` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCompanies` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of Companies. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of Companies. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Companies` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Companies` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Companies` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Companies` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListCompanies` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCompanies` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListCompanies` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCompanies` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php new file mode 100644 index 000000000000..69a940f8970d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListCompaniesResponse + */ +class ListCompaniesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Company` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; + */ + private $companies; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Company` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Company>|\Google\Protobuf\Internal\RepeatedField $companies + * The `Company` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Company` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); + parent::__construct($data); + } + + /** + * The `Company` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCompanies() + { + return $this->companies; + } + + /** + * The `Company` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; + * @param array<\Google\Ads\AdManager\V1\Company>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCompanies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Company::class); + $this->companies = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Company` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Company` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsRequest.php new file mode 100644 index 000000000000..6300afa50222 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListContactsRequest + */ +class ListContactsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of Contacts. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Contacts` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Contacts` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListContacts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContacts` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of Contacts. + * Format: `networks/{network_code}` + * Please see {@see ContactServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListContactsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of Contacts. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Contacts` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Contacts` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListContacts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContacts` must match + * the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of Contacts. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of Contacts. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Contacts` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Contacts` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Contacts` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Contacts` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListContacts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContacts` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListContacts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContacts` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsResponse.php new file mode 100644 index 000000000000..eb92fbf0369c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListContactsResponse + */ +class ListContactsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Contact` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + private $contacts; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Contact` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Contact>|\Google\Protobuf\Internal\RepeatedField $contacts + * The `Contact` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Contact` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactService::initOnce(); + parent::__construct($data); + } + + /** + * The `Contact` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Contact contacts = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getContacts() + { + return $this->contacts; + } + + /** + * The `Contact` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Contact contacts = 1; + * @param array<\Google\Ads\AdManager\V1\Contact>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setContacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Contact::class); + $this->contacts = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Contact` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Contact` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesRequest.php new file mode 100644 index 000000000000..8c4587a3285d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListContentBundlesRequest + */ +class ListContentBundlesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of ContentBundles. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `ContentBundles` to return. The service may + * return fewer than this value. If unspecified, at most 50 `ContentBundles` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListContentBundles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContentBundles` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of ContentBundles. + * Format: `networks/{network_code}` + * Please see {@see ContentBundleServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListContentBundlesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of ContentBundles. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `ContentBundles` to return. The service may + * return fewer than this value. If unspecified, at most 50 `ContentBundles` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListContentBundles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContentBundles` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentBundleService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of ContentBundles. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of ContentBundles. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `ContentBundles` to return. The service may + * return fewer than this value. If unspecified, at most 50 `ContentBundles` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `ContentBundles` to return. The service may + * return fewer than this value. If unspecified, at most 50 `ContentBundles` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListContentBundles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContentBundles` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListContentBundles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContentBundles` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesResponse.php new file mode 100644 index 000000000000..5c641394874b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListContentBundlesResponse + */ +class ListContentBundlesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `ContentBundle` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + private $content_bundles; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `ContentBundle` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\ContentBundle>|\Google\Protobuf\Internal\RepeatedField $content_bundles + * The `ContentBundle` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `ContentBundle` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentBundleService::initOnce(); + parent::__construct($data); + } + + /** + * The `ContentBundle` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getContentBundles() + { + return $this->content_bundles; + } + + /** + * The `ContentBundle` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + * @param array<\Google\Ads\AdManager\V1\ContentBundle>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setContentBundles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ContentBundle::class); + $this->content_bundles = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `ContentBundle` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `ContentBundle` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsRequest.php new file mode 100644 index 000000000000..663c18d1e117 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListContentLabelsRequest + */ +class ListContentLabelsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of ContentLabels. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `ContentLabels` to return. The service may + * return fewer than this value. If unspecified, at most 50 `ContentLabels` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListContentLabels` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContentLabels` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of ContentLabels. + * Format: `networks/{network_code}` + * Please see {@see ContentLabelServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListContentLabelsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of ContentLabels. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `ContentLabels` to return. The service may + * return fewer than this value. If unspecified, at most 50 `ContentLabels` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListContentLabels` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContentLabels` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentLabelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of ContentLabels. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of ContentLabels. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `ContentLabels` to return. The service may + * return fewer than this value. If unspecified, at most 50 `ContentLabels` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `ContentLabels` to return. The service may + * return fewer than this value. If unspecified, at most 50 `ContentLabels` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListContentLabels` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContentLabels` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListContentLabels` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContentLabels` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsResponse.php new file mode 100644 index 000000000000..5cdee14a06c7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListContentLabelsResponse + */ +class ListContentLabelsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `ContentLabel` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + private $content_labels; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `ContentLabel` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\ContentLabel>|\Google\Protobuf\Internal\RepeatedField $content_labels + * The `ContentLabel` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `ContentLabel` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentLabelService::initOnce(); + parent::__construct($data); + } + + /** + * The `ContentLabel` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getContentLabels() + { + return $this->content_labels; + } + + /** + * The `ContentLabel` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + * @param array<\Google\Ads\AdManager\V1\ContentLabel>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setContentLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ContentLabel::class); + $this->content_labels = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `ContentLabel` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `ContentLabel` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentRequest.php new file mode 100644 index 000000000000..faf057e29f9f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListContentRequest + */ +class ListContentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of Content. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Content` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Content` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListContent` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContent` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of Content. + * Format: `networks/{network_code}` + * Please see {@see ContentServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListContentRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of Content. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Content` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Content` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListContent` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContent` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of Content. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of Content. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Content` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Content` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Content` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Content` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListContent` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContent` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListContent` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListContent` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentResponse.php new file mode 100644 index 000000000000..78259996b02d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListContentResponse + */ +class ListContentResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Content` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Content content = 1; + */ + private $content; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Content` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Content>|\Google\Protobuf\Internal\RepeatedField $content + * The `Content` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Content` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContentService::initOnce(); + parent::__construct($data); + } + + /** + * The `Content` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Content content = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getContent() + { + return $this->content; + } + + /** + * The `Content` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Content content = 1; + * @param array<\Google\Ads\AdManager\V1\Content>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setContent($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Content::class); + $this->content = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Content` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Content` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesRequest.php new file mode 100644 index 000000000000..aa66046f623c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListCreativeTemplatesRequest + */ +class ListCreativeTemplatesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of CreativeTemplates. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `CreativeTemplates` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CreativeTemplates` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListCreativeTemplates` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCreativeTemplates` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of CreativeTemplates. + * Format: `networks/{network_code}` + * Please see {@see CreativeTemplateServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListCreativeTemplatesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of CreativeTemplates. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `CreativeTemplates` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CreativeTemplates` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListCreativeTemplates` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCreativeTemplates` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of CreativeTemplates. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of CreativeTemplates. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `CreativeTemplates` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CreativeTemplates` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `CreativeTemplates` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CreativeTemplates` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListCreativeTemplates` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCreativeTemplates` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListCreativeTemplates` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCreativeTemplates` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesResponse.php new file mode 100644 index 000000000000..7730360aad64 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListCreativeTemplatesResponse + */ +class ListCreativeTemplatesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CreativeTemplate` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + private $creative_templates; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `CreativeTemplate` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\CreativeTemplate>|\Google\Protobuf\Internal\RepeatedField $creative_templates + * The `CreativeTemplate` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `CreativeTemplate` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeTemplateService::initOnce(); + parent::__construct($data); + } + + /** + * The `CreativeTemplate` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCreativeTemplates() + { + return $this->creative_templates; + } + + /** + * The `CreativeTemplate` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + * @param array<\Google\Ads\AdManager\V1\CreativeTemplate>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCreativeTemplates($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreativeTemplate::class); + $this->creative_templates = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `CreativeTemplate` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `CreativeTemplate` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php new file mode 100644 index 000000000000..24f40056566b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListCustomFieldsRequest + */ +class ListCustomFieldsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of CustomFields. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `CustomFields` to return. The service may + * return fewer than this value. If unspecified, at most 50 `CustomFields` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListCustomFields` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomFields` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of CustomFields. + * Format: `networks/{network_code}` + * Please see {@see CustomFieldServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListCustomFieldsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of CustomFields. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `CustomFields` to return. The service may + * return fewer than this value. If unspecified, at most 50 `CustomFields` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListCustomFields` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomFields` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of CustomFields. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of CustomFields. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `CustomFields` to return. The service may + * return fewer than this value. If unspecified, at most 50 `CustomFields` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `CustomFields` to return. The service may + * return fewer than this value. If unspecified, at most 50 `CustomFields` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListCustomFields` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomFields` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListCustomFields` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomFields` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php new file mode 100644 index 000000000000..8ec896f118f9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListCustomFieldsResponse + */ +class ListCustomFieldsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CustomField` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + private $custom_fields; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `CustomField` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\CustomField>|\Google\Protobuf\Internal\RepeatedField $custom_fields + * The `CustomField` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `CustomField` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * The `CustomField` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomFields() + { + return $this->custom_fields; + } + + /** + * The `CustomField` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + * @param array<\Google\Ads\AdManager\V1\CustomField>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomField::class); + $this->custom_fields = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `CustomField` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `CustomField` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php new file mode 100644 index 000000000000..bf474f6a2a8f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListCustomTargetingKeysRequest + */ +class ListCustomTargetingKeysRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of CustomTargetingKeys. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `CustomTargetingKeys` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetingKeys` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListCustomTargetingKeys` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomTargetingKeys` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of CustomTargetingKeys. + * Format: `networks/{network_code}` + * Please see {@see CustomTargetingKeyServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListCustomTargetingKeysRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of CustomTargetingKeys. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `CustomTargetingKeys` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetingKeys` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListCustomTargetingKeys` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomTargetingKeys` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of CustomTargetingKeys. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of CustomTargetingKeys. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `CustomTargetingKeys` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetingKeys` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `CustomTargetingKeys` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetingKeys` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListCustomTargetingKeys` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomTargetingKeys` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListCustomTargetingKeys` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomTargetingKeys` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php new file mode 100644 index 000000000000..9f478cfee346 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListCustomTargetingKeysResponse + */ +class ListCustomTargetingKeysResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CustomTargetingKey` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + private $custom_targeting_keys; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `CustomTargetingKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\CustomTargetingKey>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_keys + * The `CustomTargetingKey` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `CustomTargetingKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyService::initOnce(); + parent::__construct($data); + } + + /** + * The `CustomTargetingKey` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomTargetingKeys() + { + return $this->custom_targeting_keys; + } + + /** + * The `CustomTargetingKey` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + * @param array<\Google\Ads\AdManager\V1\CustomTargetingKey>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomTargetingKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomTargetingKey::class); + $this->custom_targeting_keys = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `CustomTargetingKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `CustomTargetingKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php new file mode 100644 index 000000000000..2256be2a2f5f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php @@ -0,0 +1,309 @@ +google.ads.admanager.v1.ListCustomTargetingValuesRequest + */ +class ListCustomTargetingValuesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of CustomTargetingValues. + * Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `CustomTargetingValues` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetingValues` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListCustomTargetingValues` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of CustomTargetingValues. + * Format: + * `networks/{network_code}` + * Please see {@see CustomTargetingValueServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListCustomTargetingValuesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of CustomTargetingValues. + * Format: + * `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `CustomTargetingValues` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetingValues` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous + * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListCustomTargetingValues` must match the call that provided the page + * token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of CustomTargetingValues. + * Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of CustomTargetingValues. + * Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `CustomTargetingValues` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetingValues` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `CustomTargetingValues` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetingValues` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListCustomTargetingValues` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListCustomTargetingValues` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php new file mode 100644 index 000000000000..34765904f69e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListCustomTargetingValuesResponse + */ +class ListCustomTargetingValuesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CustomTargetingValue` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1; + */ + private $custom_targeting_values; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `CustomTargetingValue` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\CustomTargetingValue>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_values + * The `CustomTargetingValue` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `CustomTargetingValue` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueService::initOnce(); + parent::__construct($data); + } + + /** + * The `CustomTargetingValue` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomTargetingValues() + { + return $this->custom_targeting_values; + } + + /** + * The `CustomTargetingValue` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1; + * @param array<\Google\Ads\AdManager\V1\CustomTargetingValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomTargetingValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomTargetingValue::class); + $this->custom_targeting_values = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `CustomTargetingValue` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `CustomTargetingValue` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesRequest.php new file mode 100644 index 000000000000..a720626287cd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListDeviceCapabilitiesRequest + */ +class ListDeviceCapabilitiesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of DeviceCapabilities. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `DeviceCapabilities` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `DeviceCapabilities` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDeviceCapabilities` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceCapabilities` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of DeviceCapabilities. + * Format: `networks/{network_code}` + * Please see {@see DeviceCapabilityServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListDeviceCapabilitiesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of DeviceCapabilities. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `DeviceCapabilities` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `DeviceCapabilities` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListDeviceCapabilities` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceCapabilities` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceCapabilityService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of DeviceCapabilities. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of DeviceCapabilities. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `DeviceCapabilities` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `DeviceCapabilities` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `DeviceCapabilities` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `DeviceCapabilities` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDeviceCapabilities` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceCapabilities` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDeviceCapabilities` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceCapabilities` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesResponse.php new file mode 100644 index 000000000000..1e5c3d26cce4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListDeviceCapabilitiesResponse + */ +class ListDeviceCapabilitiesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DeviceCapability` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + private $device_capabilities; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `DeviceCapability` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\DeviceCapability>|\Google\Protobuf\Internal\RepeatedField $device_capabilities + * The `DeviceCapability` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `DeviceCapability` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceCapabilityService::initOnce(); + parent::__construct($data); + } + + /** + * The `DeviceCapability` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeviceCapabilities() + { + return $this->device_capabilities; + } + + /** + * The `DeviceCapability` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + * @param array<\Google\Ads\AdManager\V1\DeviceCapability>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeviceCapabilities($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DeviceCapability::class); + $this->device_capabilities = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `DeviceCapability` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `DeviceCapability` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesRequest.php new file mode 100644 index 000000000000..6489d950b751 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListDeviceCategoriesRequest + */ +class ListDeviceCategoriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of DeviceCategories. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `DeviceCategories` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `DeviceCategories` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDeviceCategories` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceCategories` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of DeviceCategories. + * Format: `networks/{network_code}` + * Please see {@see DeviceCategoryServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListDeviceCategoriesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of DeviceCategories. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `DeviceCategories` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `DeviceCategories` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListDeviceCategories` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceCategories` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceCategoryService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of DeviceCategories. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of DeviceCategories. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `DeviceCategories` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `DeviceCategories` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `DeviceCategories` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `DeviceCategories` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDeviceCategories` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceCategories` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDeviceCategories` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceCategories` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesResponse.php new file mode 100644 index 000000000000..535a42efdd64 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListDeviceCategoriesResponse + */ +class ListDeviceCategoriesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DeviceCategory` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + private $device_categories; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `DeviceCategory` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\DeviceCategory>|\Google\Protobuf\Internal\RepeatedField $device_categories + * The `DeviceCategory` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `DeviceCategory` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceCategoryService::initOnce(); + parent::__construct($data); + } + + /** + * The `DeviceCategory` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeviceCategories() + { + return $this->device_categories; + } + + /** + * The `DeviceCategory` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + * @param array<\Google\Ads\AdManager\V1\DeviceCategory>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeviceCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DeviceCategory::class); + $this->device_categories = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `DeviceCategory` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `DeviceCategory` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersRequest.php new file mode 100644 index 000000000000..a0f8efe1cd0e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListDeviceManufacturersRequest + */ +class ListDeviceManufacturersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of DeviceManufacturers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `DeviceManufacturers` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DeviceManufacturers` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDeviceManufacturers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceManufacturers` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of DeviceManufacturers. + * Format: `networks/{network_code}` + * Please see {@see DeviceManufacturerServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListDeviceManufacturersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of DeviceManufacturers. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `DeviceManufacturers` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DeviceManufacturers` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListDeviceManufacturers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceManufacturers` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceManufacturerService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of DeviceManufacturers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of DeviceManufacturers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `DeviceManufacturers` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DeviceManufacturers` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `DeviceManufacturers` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DeviceManufacturers` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDeviceManufacturers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceManufacturers` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDeviceManufacturers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeviceManufacturers` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersResponse.php new file mode 100644 index 000000000000..45d41aa9bcb7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListDeviceManufacturersResponse + */ +class ListDeviceManufacturersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DeviceManufacturer` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + private $device_manufacturers; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `DeviceManufacturer` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\DeviceManufacturer>|\Google\Protobuf\Internal\RepeatedField $device_manufacturers + * The `DeviceManufacturer` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `DeviceManufacturer` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DeviceManufacturerService::initOnce(); + parent::__construct($data); + } + + /** + * The `DeviceManufacturer` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeviceManufacturers() + { + return $this->device_manufacturers; + } + + /** + * The `DeviceManufacturer` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + * @param array<\Google\Ads\AdManager\V1\DeviceManufacturer>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeviceManufacturers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DeviceManufacturer::class); + $this->device_manufacturers = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `DeviceManufacturer` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `DeviceManufacturer` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php new file mode 100644 index 000000000000..a4a2945b87fe --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php @@ -0,0 +1,304 @@ +google.ads.admanager.v1.ListEntitySignalsMappingsRequest + */ +class ListEntitySignalsMappingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of EntitySignalsMappings. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `EntitySignalsMappings` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `EntitySignalsMappings` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListEntitySignalsMappings` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of EntitySignalsMappings. + * Format: `networks/{network_code}` + * Please see {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListEntitySignalsMappingsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of EntitySignalsMappings. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `EntitySignalsMappings` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `EntitySignalsMappings` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous + * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListEntitySignalsMappings` must match the call that provided the page + * token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of EntitySignalsMappings. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of EntitySignalsMappings. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `EntitySignalsMappings` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `EntitySignalsMappings` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `EntitySignalsMappings` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `EntitySignalsMappings` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListEntitySignalsMappings` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListEntitySignalsMappings` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php new file mode 100644 index 000000000000..e634bf1af866 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListEntitySignalsMappingsResponse + */ +class ListEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `EntitySignalsMapping` from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; + */ + private $entity_signals_mappings; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `EntitySignalsMappings`. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $entity_signals_mappings + * The `EntitySignalsMapping` from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `EntitySignalsMappings`. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); + parent::__construct($data); + } + + /** + * The `EntitySignalsMapping` from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntitySignalsMappings() + { + return $this->entity_signals_mappings; + } + + /** + * The `EntitySignalsMapping` from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; + * @param array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntitySignalsMappings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); + $this->entity_signals_mappings = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `EntitySignalsMappings`. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `EntitySignalsMappings`. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsRequest.php new file mode 100644 index 000000000000..ee35713eaa03 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListGeoTargetsRequest + */ +class ListGeoTargetsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of GeoTargets. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `GeoTargets` to return. The service may + * return fewer than this value. If unspecified, at most 50 `GeoTargets` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListGeoTargets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGeoTargets` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of GeoTargets. + * Format: `networks/{network_code}` + * Please see {@see GeoTargetServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListGeoTargetsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of GeoTargets. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `GeoTargets` to return. The service may + * return fewer than this value. If unspecified, at most 50 `GeoTargets` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListGeoTargets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGeoTargets` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\GeoTargetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of GeoTargets. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of GeoTargets. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `GeoTargets` to return. The service may + * return fewer than this value. If unspecified, at most 50 `GeoTargets` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `GeoTargets` to return. The service may + * return fewer than this value. If unspecified, at most 50 `GeoTargets` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListGeoTargets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGeoTargets` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListGeoTargets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGeoTargets` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsResponse.php new file mode 100644 index 000000000000..ad738b31f5bf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListGeoTargetsResponse + */ +class ListGeoTargetsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `GeoTarget` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + private $geo_targets; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `GeoTarget` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\GeoTarget>|\Google\Protobuf\Internal\RepeatedField $geo_targets + * The `GeoTarget` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `GeoTarget` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\GeoTargetService::initOnce(); + parent::__construct($data); + } + + /** + * The `GeoTarget` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGeoTargets() + { + return $this->geo_targets; + } + + /** + * The `GeoTarget` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + * @param array<\Google\Ads\AdManager\V1\GeoTarget>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGeoTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\GeoTarget::class); + $this->geo_targets = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `GeoTarget` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `GeoTarget` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersRequest.php new file mode 100644 index 000000000000..1471aee51a1d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListMobileCarriersRequest + */ +class ListMobileCarriersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of MobileCarriers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `MobileCarriers` to return. The service may + * return fewer than this value. If unspecified, at most 50 `MobileCarriers` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListMobileCarriers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMobileCarriers` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of MobileCarriers. + * Format: `networks/{network_code}` + * Please see {@see MobileCarrierServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListMobileCarriersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of MobileCarriers. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `MobileCarriers` to return. The service may + * return fewer than this value. If unspecified, at most 50 `MobileCarriers` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListMobileCarriers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMobileCarriers` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileCarrierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of MobileCarriers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of MobileCarriers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `MobileCarriers` to return. The service may + * return fewer than this value. If unspecified, at most 50 `MobileCarriers` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `MobileCarriers` to return. The service may + * return fewer than this value. If unspecified, at most 50 `MobileCarriers` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListMobileCarriers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMobileCarriers` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListMobileCarriers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMobileCarriers` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersResponse.php new file mode 100644 index 000000000000..fbc4f3851a55 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListMobileCarriersResponse + */ +class ListMobileCarriersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `MobileCarrier` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + private $mobile_carriers; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `MobileCarrier` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\MobileCarrier>|\Google\Protobuf\Internal\RepeatedField $mobile_carriers + * The `MobileCarrier` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `MobileCarrier` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileCarrierService::initOnce(); + parent::__construct($data); + } + + /** + * The `MobileCarrier` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMobileCarriers() + { + return $this->mobile_carriers; + } + + /** + * The `MobileCarrier` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + * @param array<\Google\Ads\AdManager\V1\MobileCarrier>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMobileCarriers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\MobileCarrier::class); + $this->mobile_carriers = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `MobileCarrier` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `MobileCarrier` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsRequest.php new file mode 100644 index 000000000000..02f07bcf3f4c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsRequest.php @@ -0,0 +1,304 @@ +google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest + */ +class ListMobileDeviceSubmodelsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of MobileDeviceSubmodels. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `MobileDeviceSubmodels` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `MobileDeviceSubmodels` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListMobileDeviceSubmodels` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of MobileDeviceSubmodels. + * Format: `networks/{network_code}` + * Please see {@see MobileDeviceSubmodelServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListMobileDeviceSubmodelsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of MobileDeviceSubmodels. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `MobileDeviceSubmodels` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `MobileDeviceSubmodels` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous + * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListMobileDeviceSubmodels` must match the call that provided the page + * token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileDeviceSubmodelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of MobileDeviceSubmodels. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of MobileDeviceSubmodels. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `MobileDeviceSubmodels` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `MobileDeviceSubmodels` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `MobileDeviceSubmodels` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `MobileDeviceSubmodels` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListMobileDeviceSubmodels` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListMobileDeviceSubmodels` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsResponse.php new file mode 100644 index 000000000000..bfa8f32ccead --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse + */ +class ListMobileDeviceSubmodelsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `MobileDeviceSubmodel` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + */ + private $mobile_device_submodels; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `MobileDeviceSubmodel` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\MobileDeviceSubmodel>|\Google\Protobuf\Internal\RepeatedField $mobile_device_submodels + * The `MobileDeviceSubmodel` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `MobileDeviceSubmodel` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileDeviceSubmodelService::initOnce(); + parent::__construct($data); + } + + /** + * The `MobileDeviceSubmodel` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMobileDeviceSubmodels() + { + return $this->mobile_device_submodels; + } + + /** + * The `MobileDeviceSubmodel` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * @param array<\Google\Ads\AdManager\V1\MobileDeviceSubmodel>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMobileDeviceSubmodels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\MobileDeviceSubmodel::class); + $this->mobile_device_submodels = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `MobileDeviceSubmodel` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `MobileDeviceSubmodel` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesRequest.php new file mode 100644 index 000000000000..45b107b1bf08 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListMobileDevicesRequest + */ +class ListMobileDevicesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of MobileDevices. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `MobileDevices` to return. The service may + * return fewer than this value. If unspecified, at most 50 `MobileDevices` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListMobileDevices` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMobileDevices` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of MobileDevices. + * Format: `networks/{network_code}` + * Please see {@see MobileDeviceServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListMobileDevicesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of MobileDevices. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `MobileDevices` to return. The service may + * return fewer than this value. If unspecified, at most 50 `MobileDevices` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListMobileDevices` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMobileDevices` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileDeviceService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of MobileDevices. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of MobileDevices. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `MobileDevices` to return. The service may + * return fewer than this value. If unspecified, at most 50 `MobileDevices` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `MobileDevices` to return. The service may + * return fewer than this value. If unspecified, at most 50 `MobileDevices` + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListMobileDevices` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMobileDevices` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListMobileDevices` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMobileDevices` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesResponse.php new file mode 100644 index 000000000000..308102cb3ebe --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListMobileDevicesResponse + */ +class ListMobileDevicesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `MobileDevice` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + private $mobile_devices; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `MobileDevice` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\MobileDevice>|\Google\Protobuf\Internal\RepeatedField $mobile_devices + * The `MobileDevice` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `MobileDevice` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileDeviceService::initOnce(); + parent::__construct($data); + } + + /** + * The `MobileDevice` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMobileDevices() + { + return $this->mobile_devices; + } + + /** + * The `MobileDevice` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + * @param array<\Google\Ads\AdManager\V1\MobileDevice>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMobileDevices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\MobileDevice::class); + $this->mobile_devices = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `MobileDevice` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `MobileDevice` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php new file mode 100644 index 000000000000..533cdfe2486e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.ListNetworksRequest + */ +class ListNetworksRequest extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\NetworkService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php new file mode 100644 index 000000000000..0e19406e6bf5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.ListNetworksResponse + */ +class ListNetworksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Network`s a user has access to. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Network networks = 1; + */ + private $networks; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Network>|\Google\Protobuf\Internal\RepeatedField $networks + * The `Network`s a user has access to. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\NetworkService::initOnce(); + parent::__construct($data); + } + + /** + * The `Network`s a user has access to. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Network networks = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNetworks() + { + return $this->networks; + } + + /** + * The `Network`s a user has access to. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Network networks = 1; + * @param array<\Google\Ads\AdManager\V1\Network>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNetworks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Network::class); + $this->networks = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsRequest.php new file mode 100644 index 000000000000..79c4603bed4e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsRequest.php @@ -0,0 +1,304 @@ +google.ads.admanager.v1.ListOperatingSystemVersionsRequest + */ +class ListOperatingSystemVersionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of + * OperatingSystemVersions. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `OperatingSystemVersions` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `OperatingSystemVersions` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListOperatingSystemVersions` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of + * OperatingSystemVersions. Format: `networks/{network_code}` + * Please see {@see OperatingSystemVersionServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListOperatingSystemVersionsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of + * OperatingSystemVersions. Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `OperatingSystemVersions` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `OperatingSystemVersions` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous + * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListOperatingSystemVersions` must match the call that provided the page + * token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemVersionService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of + * OperatingSystemVersions. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of + * OperatingSystemVersions. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `OperatingSystemVersions` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `OperatingSystemVersions` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `OperatingSystemVersions` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `OperatingSystemVersions` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListOperatingSystemVersions` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListOperatingSystemVersions` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsResponse.php new file mode 100644 index 000000000000..34daa1fe6128 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListOperatingSystemVersionsResponse + */ +class ListOperatingSystemVersionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `OperatingSystemVersion` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + */ + private $operating_system_versions; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `OperatingSystemVersion` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\OperatingSystemVersion>|\Google\Protobuf\Internal\RepeatedField $operating_system_versions + * The `OperatingSystemVersion` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `OperatingSystemVersion` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemVersionService::initOnce(); + parent::__construct($data); + } + + /** + * The `OperatingSystemVersion` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOperatingSystemVersions() + { + return $this->operating_system_versions; + } + + /** + * The `OperatingSystemVersion` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * @param array<\Google\Ads\AdManager\V1\OperatingSystemVersion>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOperatingSystemVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\OperatingSystemVersion::class); + $this->operating_system_versions = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `OperatingSystemVersion` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `OperatingSystemVersion` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsRequest.php new file mode 100644 index 000000000000..24e2509af4e9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListOperatingSystemsRequest + */ +class ListOperatingSystemsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of OperatingSystems. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `OperatingSystems` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `OperatingSystems` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListOperatingSystems` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListOperatingSystems` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of OperatingSystems. + * Format: `networks/{network_code}` + * Please see {@see OperatingSystemServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListOperatingSystemsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of OperatingSystems. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `OperatingSystems` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `OperatingSystems` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListOperatingSystems` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListOperatingSystems` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of OperatingSystems. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of OperatingSystems. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `OperatingSystems` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `OperatingSystems` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `OperatingSystems` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `OperatingSystems` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListOperatingSystems` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListOperatingSystems` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListOperatingSystems` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListOperatingSystems` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsResponse.php new file mode 100644 index 000000000000..9e5a3456c49a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListOperatingSystemsResponse + */ +class ListOperatingSystemsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `OperatingSystem` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + private $operating_systems; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `OperatingSystem` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\OperatingSystem>|\Google\Protobuf\Internal\RepeatedField $operating_systems + * The `OperatingSystem` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `OperatingSystem` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemService::initOnce(); + parent::__construct($data); + } + + /** + * The `OperatingSystem` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOperatingSystems() + { + return $this->operating_systems; + } + + /** + * The `OperatingSystem` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + * @param array<\Google\Ads\AdManager\V1\OperatingSystem>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOperatingSystems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\OperatingSystem::class); + $this->operating_systems = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `OperatingSystem` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `OperatingSystem` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php new file mode 100644 index 000000000000..be867d697fcc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListOrdersRequest + */ +class ListOrdersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of Orders. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Orders` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Orders` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListOrders` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListOrders` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of Orders. + * Format: `networks/{network_code}` + * Please see {@see OrderServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListOrdersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of Orders. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Orders` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Orders` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListOrders` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListOrders` must match + * the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OrderService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of Orders. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of Orders. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Orders` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Orders` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Orders` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Orders` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListOrders` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListOrders` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListOrders` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListOrders` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php new file mode 100644 index 000000000000..02cb3bda5914 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListOrdersResponse + */ +class ListOrdersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Order` from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Order orders = 1; + */ + private $orders; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Orders`. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Order>|\Google\Protobuf\Internal\RepeatedField $orders + * The `Order` from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Orders`. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OrderService::initOnce(); + parent::__construct($data); + } + + /** + * The `Order` from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Order orders = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOrders() + { + return $this->orders; + } + + /** + * The `Order` from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Order orders = 1; + * @param array<\Google\Ads\AdManager\V1\Order>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOrders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Order::class); + $this->orders = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Orders`. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Orders`. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php new file mode 100644 index 000000000000..99ed2b60ebb7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListPlacementsRequest + */ +class ListPlacementsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of Placements. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Placements` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Placements` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListPlacements` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListPlacements` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of Placements. + * Format: `networks/{network_code}` + * Please see {@see PlacementServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListPlacementsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of Placements. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Placements` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Placements` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListPlacements` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListPlacements` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of Placements. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of Placements. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Placements` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Placements` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Placements` to return. The service may + * return fewer than this value. If unspecified, at most 50 `Placements` will + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListPlacements` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListPlacements` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListPlacements` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListPlacements` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php new file mode 100644 index 000000000000..33ead5a228c9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListPlacementsResponse + */ +class ListPlacementsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Placement` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; + */ + private $placements; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Placement` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $placements + * The `Placement` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Placement` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * The `Placement` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPlacements() + { + return $this->placements; + } + + /** + * The `Placement` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; + * @param array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPlacements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Placement::class); + $this->placements = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Placement` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Placement` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsRequest.php new file mode 100644 index 000000000000..871cfed21011 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsRequest.php @@ -0,0 +1,305 @@ +google.ads.admanager.v1.ListPrivateAuctionDealsRequest + */ +class ListPrivateAuctionDealsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of PrivateAuctionDeals. + * Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `PrivateAuctionDeals` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `PrivateAuctionDeals` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListPrivateAuctionDeals` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListPrivateAuctionDeals` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of PrivateAuctionDeals. + * Format: + * `networks/{network_code}` + * Please see {@see PrivateAuctionDealServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListPrivateAuctionDealsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of PrivateAuctionDeals. + * Format: + * `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `PrivateAuctionDeals` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `PrivateAuctionDeals` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListPrivateAuctionDeals` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListPrivateAuctionDeals` must match the call that provided the page + * token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of PrivateAuctionDeals. + * Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of PrivateAuctionDeals. + * Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `PrivateAuctionDeals` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `PrivateAuctionDeals` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `PrivateAuctionDeals` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `PrivateAuctionDeals` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListPrivateAuctionDeals` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListPrivateAuctionDeals` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListPrivateAuctionDeals` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListPrivateAuctionDeals` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsResponse.php new file mode 100644 index 000000000000..1855104b1b70 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListPrivateAuctionDealsResponse + */ +class ListPrivateAuctionDealsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `PrivateAuctionDeal` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + private $private_auction_deals; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `PrivateAuctionDeal` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\PrivateAuctionDeal>|\Google\Protobuf\Internal\RepeatedField $private_auction_deals + * The `PrivateAuctionDeal` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `PrivateAuctionDeal` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealService::initOnce(); + parent::__construct($data); + } + + /** + * The `PrivateAuctionDeal` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPrivateAuctionDeals() + { + return $this->private_auction_deals; + } + + /** + * The `PrivateAuctionDeal` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + * @param array<\Google\Ads\AdManager\V1\PrivateAuctionDeal>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPrivateAuctionDeals($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\PrivateAuctionDeal::class); + $this->private_auction_deals = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `PrivateAuctionDeal` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `PrivateAuctionDeal` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsRequest.php new file mode 100644 index 000000000000..381c9c2be4e2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsRequest.php @@ -0,0 +1,300 @@ +google.ads.admanager.v1.ListPrivateAuctionsRequest + */ +class ListPrivateAuctionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of PrivateAuctions. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `PrivateAuctions` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `PrivateAuctions` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListPrivateAuctions` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListPrivateAuctions` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of PrivateAuctions. + * Format: `networks/{network_code}` + * Please see {@see PrivateAuctionServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListPrivateAuctionsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of PrivateAuctions. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `PrivateAuctions` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `PrivateAuctions` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListPrivateAuctions` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListPrivateAuctions` must match the call that provided the + * page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of PrivateAuctions. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of PrivateAuctions. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `PrivateAuctions` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `PrivateAuctions` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `PrivateAuctions` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `PrivateAuctions` will be returned. The maximum value is 1000; + * values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListPrivateAuctions` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListPrivateAuctions` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListPrivateAuctions` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListPrivateAuctions` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsResponse.php new file mode 100644 index 000000000000..63c0a21fbdf0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListPrivateAuctionsResponse + */ +class ListPrivateAuctionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `PrivateAuction` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + private $private_auctions; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `PrivateAuction` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\PrivateAuction>|\Google\Protobuf\Internal\RepeatedField $private_auctions + * The `PrivateAuction` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `PrivateAuction` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionService::initOnce(); + parent::__construct($data); + } + + /** + * The `PrivateAuction` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPrivateAuctions() + { + return $this->private_auctions; + } + + /** + * The `PrivateAuction` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + * @param array<\Google\Ads\AdManager\V1\PrivateAuction>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPrivateAuctions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\PrivateAuction::class); + $this->private_auctions = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `PrivateAuction` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `PrivateAuction` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersRequest.php new file mode 100644 index 000000000000..ed1ef25de090 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListProgrammaticBuyersRequest + */ +class ListProgrammaticBuyersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of ProgrammaticBuyers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `ProgrammaticBuyers` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `ProgrammaticBuyers` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListProgrammaticBuyers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProgrammaticBuyers` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of ProgrammaticBuyers. + * Format: `networks/{network_code}` + * Please see {@see ProgrammaticBuyerServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListProgrammaticBuyersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of ProgrammaticBuyers. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `ProgrammaticBuyers` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `ProgrammaticBuyers` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListProgrammaticBuyers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProgrammaticBuyers` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ProgrammaticBuyerService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of ProgrammaticBuyers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of ProgrammaticBuyers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `ProgrammaticBuyers` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `ProgrammaticBuyers` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `ProgrammaticBuyers` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `ProgrammaticBuyers` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListProgrammaticBuyers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProgrammaticBuyers` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListProgrammaticBuyers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProgrammaticBuyers` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersResponse.php new file mode 100644 index 000000000000..51c9ce753278 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListProgrammaticBuyersResponse + */ +class ListProgrammaticBuyersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `ProgrammaticBuyer` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + private $programmatic_buyers; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `ProgrammaticBuyer` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\ProgrammaticBuyer>|\Google\Protobuf\Internal\RepeatedField $programmatic_buyers + * The `ProgrammaticBuyer` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `ProgrammaticBuyer` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ProgrammaticBuyerService::initOnce(); + parent::__construct($data); + } + + /** + * The `ProgrammaticBuyer` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProgrammaticBuyers() + { + return $this->programmatic_buyers; + } + + /** + * The `ProgrammaticBuyer` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + * @param array<\Google\Ads\AdManager\V1\ProgrammaticBuyer>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProgrammaticBuyers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ProgrammaticBuyer::class); + $this->programmatic_buyers = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `ProgrammaticBuyer` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `ProgrammaticBuyer` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php new file mode 100644 index 000000000000..d669dd54c4a4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListReportsRequest + */ +class ListReportsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of reports. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Reports` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Reports` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListReports` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReports` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of reports. + * Format: `networks/{network_code}` + * Please see {@see ReportServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListReportsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of reports. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Reports` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Reports` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListReports` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReports` must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of reports. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of reports. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Reports` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Reports` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Reports` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Reports` will be + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListReports` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReports` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListReports` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReports` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php new file mode 100644 index 000000000000..d657eb5bb2ad --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListReportsResponse + */ +class ListReportsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Report` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Report reports = 1; + */ + private $reports; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Report` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Report>|\Google\Protobuf\Internal\RepeatedField $reports + * The `Report` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Report` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); + parent::__construct($data); + } + + /** + * The `Report` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Report reports = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getReports() + { + return $this->reports; + } + + /** + * The `Report` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Report reports = 1; + * @param array<\Google\Ads\AdManager\V1\Report>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setReports($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report::class); + $this->reports = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Report` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Report` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php new file mode 100644 index 000000000000..2ecdc519297e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListRolesRequest + */ +class ListRolesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of Roles. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Roles` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Roles` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListRoles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRoles` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of Roles. + * Format: `networks/{network_code}` + * Please see {@see RoleServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListRolesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of Roles. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Roles` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Roles` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListRoles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRoles` must match + * the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\RoleService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of Roles. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of Roles. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Roles` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Roles` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Roles` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Roles` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListRoles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRoles` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListRoles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRoles` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php new file mode 100644 index 000000000000..f7830a172031 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php @@ -0,0 +1,171 @@ +google.ads.admanager.v1.ListRolesResponse + */ +class ListRolesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Role` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Role roles = 1; + */ + private $roles; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Role` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Role>|\Google\Protobuf\Internal\RepeatedField $roles + * The `Role` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Role` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\RoleService::initOnce(); + parent::__construct($data); + } + + /** + * The `Role` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Role roles = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRoles() + { + return $this->roles; + } + + /** + * The `Role` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Role roles = 1; + * @param array<\Google\Ads\AdManager\V1\Role>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Role::class); + $this->roles = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Role` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Role` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesRequest.php new file mode 100644 index 000000000000..ecc2f63f9fbc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListSitesRequest + */ +class ListSitesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of Sites. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Sites` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Sites` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListSites` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSites` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of Sites. + * Format: `networks/{network_code}` + * Please see {@see SiteServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListSitesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of Sites. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Sites` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Sites` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListSites` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSites` must match + * the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of Sites. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of Sites. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Sites` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Sites` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Sites` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Sites` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListSites` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSites` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListSites` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSites` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesResponse.php new file mode 100644 index 000000000000..d32bdedcf98d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesResponse.php @@ -0,0 +1,171 @@ +google.ads.admanager.v1.ListSitesResponse + */ +class ListSitesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Site` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Site sites = 1; + */ + private $sites; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Site` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Site>|\Google\Protobuf\Internal\RepeatedField $sites + * The `Site` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Site` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * The `Site` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Site sites = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSites() + { + return $this->sites; + } + + /** + * The `Site` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Site sites = 1; + * @param array<\Google\Ads\AdManager\V1\Site>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSites($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Site::class); + $this->sites = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Site` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Site` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php new file mode 100644 index 000000000000..fcbb1bb1167d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListTaxonomyCategoriesRequest + */ +class ListTaxonomyCategoriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of TaxonomyCategories. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `TaxonomyCategories` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `TaxonomyCategories` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListTaxonomyCategories` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListTaxonomyCategories` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of TaxonomyCategories. + * Format: `networks/{network_code}` + * Please see {@see TaxonomyCategoryServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListTaxonomyCategoriesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of TaxonomyCategories. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `TaxonomyCategories` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `TaxonomyCategories` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListTaxonomyCategories` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListTaxonomyCategories` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of TaxonomyCategories. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of TaxonomyCategories. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `TaxonomyCategories` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `TaxonomyCategories` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `TaxonomyCategories` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `TaxonomyCategories` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListTaxonomyCategories` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListTaxonomyCategories` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListTaxonomyCategories` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListTaxonomyCategories` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php new file mode 100644 index 000000000000..64472ff15193 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListTaxonomyCategoriesResponse + */ +class ListTaxonomyCategoriesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `TaxonomyCategory` objects. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.TaxonomyCategory taxonomy_categories = 1; + */ + private $taxonomy_categories; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `TaxonomyCategory` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\TaxonomyCategory>|\Google\Protobuf\Internal\RepeatedField $taxonomy_categories + * The `TaxonomyCategory` objects. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `TaxonomyCategory` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryService::initOnce(); + parent::__construct($data); + } + + /** + * The `TaxonomyCategory` objects. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.TaxonomyCategory taxonomy_categories = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaxonomyCategories() + { + return $this->taxonomy_categories; + } + + /** + * The `TaxonomyCategory` objects. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.TaxonomyCategory taxonomy_categories = 1; + * @param array<\Google\Ads\AdManager\V1\TaxonomyCategory>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaxonomyCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\TaxonomyCategory::class); + $this->taxonomy_categories = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `TaxonomyCategory` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `TaxonomyCategory` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsRequest.php new file mode 100644 index 000000000000..996f65fc2f39 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsRequest.php @@ -0,0 +1,296 @@ +google.ads.admanager.v1.ListTeamsRequest + */ +class ListTeamsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of Teams. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Teams` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Teams` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListTeams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListTeams` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of Teams. + * Format: `networks/{network_code}` + * Please see {@see TeamServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListTeamsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of Teams. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `Teams` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Teams` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListTeams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListTeams` must match + * the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of Teams. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of Teams. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Teams` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Teams` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Teams` to return. The service may return + * fewer than this value. If unspecified, at most 50 `Teams` will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListTeams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListTeams` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListTeams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListTeams` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsResponse.php new file mode 100644 index 000000000000..5eb89120ec22 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsResponse.php @@ -0,0 +1,171 @@ +google.ads.admanager.v1.ListTeamsResponse + */ +class ListTeamsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Team` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Team teams = 1; + */ + private $teams; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `Team` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\Team>|\Google\Protobuf\Internal\RepeatedField $teams + * The `Team` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `Team` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * The `Team` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Team teams = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTeams() + { + return $this->teams; + } + + /** + * The `Team` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Team teams = 1; + * @param array<\Google\Ads\AdManager\V1\Team>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Team::class); + $this->teams = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `Team` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `Team` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LiveStreamEvent.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LiveStreamEvent.php new file mode 100644 index 000000000000..fee5f508b387 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LiveStreamEvent.php @@ -0,0 +1,76 @@ +google.ads.admanager.v1.LiveStreamEvent + */ +class LiveStreamEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `LiveStreamEvent`. + * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `LiveStreamEvent`. + * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\LiveStreamEventMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `LiveStreamEvent`. + * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `LiveStreamEvent`. + * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileApplicationTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileApplicationTargeting.php new file mode 100644 index 000000000000..d8a0315e83db --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileApplicationTargeting.php @@ -0,0 +1,75 @@ +google.ads.admanager.v1.MobileApplicationTargeting + */ +class MobileApplicationTargeting extends \Google\Protobuf\Internal\Message +{ + protected $targeting; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\FirstPartyMobileApplicationTargeting $first_party_targeting + * Optional. The targeted/excluded first-party mobile applications. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The targeted/excluded first-party mobile applications. + * + * Generated from protobuf field .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\FirstPartyMobileApplicationTargeting|null + */ + public function getFirstPartyTargeting() + { + return $this->readOneof(1); + } + + public function hasFirstPartyTargeting() + { + return $this->hasOneof(1); + } + + /** + * Optional. The targeted/excluded first-party mobile applications. + * + * Generated from protobuf field .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\FirstPartyMobileApplicationTargeting $var + * @return $this + */ + public function setFirstPartyTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\FirstPartyMobileApplicationTargeting::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getTargeting() + { + return $this->whichOneof("targeting"); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrier.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrier.php new file mode 100644 index 000000000000..3666af472e5f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrier.php @@ -0,0 +1,159 @@ +google.ads.admanager.v1.MobileCarrier + */ +class MobileCarrier extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `MobileCarrier`. + * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The localized name of the mobile carrier. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + /** + * Output only. The region code of the mobile carrier. + * + * Generated from protobuf field optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $region_code = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `MobileCarrier`. + * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}` + * @type string $display_name + * Output only. The localized name of the mobile carrier. + * @type string $region_code + * Output only. The region code of the mobile carrier. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileCarrierMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `MobileCarrier`. + * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `MobileCarrier`. + * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The localized name of the mobile carrier. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The localized name of the mobile carrier. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The region code of the mobile carrier. + * + * Generated from protobuf field optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRegionCode() + { + return isset($this->region_code) ? $this->region_code : ''; + } + + public function hasRegionCode() + { + return isset($this->region_code); + } + + public function clearRegionCode() + { + unset($this->region_code); + } + + /** + * Output only. The region code of the mobile carrier. + * + * Generated from protobuf field optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrierTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrierTargeting.php new file mode 100644 index 000000000000..87a6985d6ab1 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrierTargeting.php @@ -0,0 +1,107 @@ +google.ads.admanager.v1.MobileCarrierTargeting + */ +class MobileCarrierTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of mobile carrier resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_mobile_carriers; + /** + * Optional. A list of mobile carrier resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_mobile_carriers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_mobile_carriers + * Optional. A list of mobile carrier resource names that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_mobile_carriers + * Optional. A list of mobile carrier resource names that should be excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of mobile carrier resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedMobileCarriers() + { + return $this->targeted_mobile_carriers; + } + + /** + * Optional. A list of mobile carrier resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedMobileCarriers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_mobile_carriers = $arr; + + return $this; + } + + /** + * Optional. A list of mobile carrier resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedMobileCarriers() + { + return $this->excluded_mobile_carriers; + } + + /** + * Optional. A list of mobile carrier resource names that should be excluded. + * + * Generated from protobuf field repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedMobileCarriers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_mobile_carriers = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDevice.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDevice.php new file mode 100644 index 000000000000..287bd1bf4023 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDevice.php @@ -0,0 +1,163 @@ +google.ads.admanager.v1.MobileDevice + */ +class MobileDevice extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `MobileDevice`. + * Format: `networks/{network_code}/mobileDevices/{mobile_device}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The localized name of the mobile device. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + /** + * Output only. The manufacturer associated with the mobile device. + * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}` + * + * Generated from protobuf field optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $manufacturer = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `MobileDevice`. + * Format: `networks/{network_code}/mobileDevices/{mobile_device}` + * @type string $display_name + * Output only. The localized name of the mobile device. + * @type string $manufacturer + * Output only. The manufacturer associated with the mobile device. + * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileDeviceMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `MobileDevice`. + * Format: `networks/{network_code}/mobileDevices/{mobile_device}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `MobileDevice`. + * Format: `networks/{network_code}/mobileDevices/{mobile_device}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The localized name of the mobile device. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The localized name of the mobile device. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The manufacturer associated with the mobile device. + * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}` + * + * Generated from protobuf field optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getManufacturer() + { + return isset($this->manufacturer) ? $this->manufacturer : ''; + } + + public function hasManufacturer() + { + return isset($this->manufacturer); + } + + public function clearManufacturer() + { + unset($this->manufacturer); + } + + /** + * Output only. The manufacturer associated with the mobile device. + * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}` + * + * Generated from protobuf field optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setManufacturer($var) + { + GPBUtil::checkString($var, True); + $this->manufacturer = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDeviceSubmodel.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDeviceSubmodel.php new file mode 100644 index 000000000000..2b0ff3d1df58 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDeviceSubmodel.php @@ -0,0 +1,167 @@ +google.ads.admanager.v1.MobileDeviceSubmodel + */ +class MobileDeviceSubmodel extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `MobileDeviceSubmodel`. + * Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The display name of the mobile device submodel. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + /** + * Output only. The mobile device associated with the submodel. + * Format: `networks/{network_code}/mobileDevices/{mobile_device}` + * + * Generated from protobuf field optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $mobile_device = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `MobileDeviceSubmodel`. + * Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}` + * @type string $display_name + * Output only. The display name of the mobile device submodel. + * @type string $mobile_device + * Output only. The mobile device associated with the submodel. + * Format: `networks/{network_code}/mobileDevices/{mobile_device}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\MobileDeviceSubmodelMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `MobileDeviceSubmodel`. + * Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `MobileDeviceSubmodel`. + * Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The display name of the mobile device submodel. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The display name of the mobile device submodel. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The mobile device associated with the submodel. + * Format: `networks/{network_code}/mobileDevices/{mobile_device}` + * + * Generated from protobuf field optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getMobileDevice() + { + return isset($this->mobile_device) ? $this->mobile_device : ''; + } + + public function hasMobileDevice() + { + return isset($this->mobile_device); + } + + public function clearMobileDevice() + { + unset($this->mobile_device); + } + + /** + * Output only. The mobile device associated with the submodel. + * Format: `networks/{network_code}/mobileDevices/{mobile_device}` + * + * Generated from protobuf field optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setMobileDevice($var) + { + GPBUtil::checkString($var, True); + $this->mobile_device = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php new file mode 100644 index 000000000000..8d16b403c142 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php @@ -0,0 +1,393 @@ +google.ads.admanager.v1.Network + */ +class Network extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the Network. + * Format: networks/{network_code} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. Display name for Network. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. Network Code. + * + * Generated from protobuf field string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $network_code = ''; + /** + * Output only. Property code. + * + * Generated from protobuf field string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $property_code = ''; + /** + * Output only. Time zone associated with the delivery of orders and + * reporting. + * + * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $time_zone = ''; + /** + * Output only. Primary currency code, in ISO-4217 format. + * + * Generated from protobuf field string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $currency_code = ''; + /** + * Optional. Currency codes that can be used as an alternative to the primary + * currency code for trafficking Line Items. + * + * Generated from protobuf field repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $secondary_currency_codes; + /** + * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which + * descendant Ad Units can be added. + * Format: networks/{network_code}/adUnits/{ad_unit} + * + * Generated from protobuf field string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $effective_root_ad_unit = ''; + /** + * Output only. Whether this is a test network. + * + * Generated from protobuf field bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $test_network = false; + /** + * Output only. Network ID. + * + * Generated from protobuf field int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $network_id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the Network. + * Format: networks/{network_code} + * @type string $display_name + * Optional. Display name for Network. + * @type string $network_code + * Output only. Network Code. + * @type string $property_code + * Output only. Property code. + * @type string $time_zone + * Output only. Time zone associated with the delivery of orders and + * reporting. + * @type string $currency_code + * Output only. Primary currency code, in ISO-4217 format. + * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_currency_codes + * Optional. Currency codes that can be used as an alternative to the primary + * currency code for trafficking Line Items. + * @type string $effective_root_ad_unit + * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which + * descendant Ad Units can be added. + * Format: networks/{network_code}/adUnits/{ad_unit} + * @type bool $test_network + * Output only. Whether this is a test network. + * @type int|string $network_id + * Output only. Network ID. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\NetworkMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the Network. + * Format: networks/{network_code} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the Network. + * Format: networks/{network_code} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Display name for Network. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. Display name for Network. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Network Code. + * + * Generated from protobuf field string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getNetworkCode() + { + return $this->network_code; + } + + /** + * Output only. Network Code. + * + * Generated from protobuf field string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setNetworkCode($var) + { + GPBUtil::checkString($var, True); + $this->network_code = $var; + + return $this; + } + + /** + * Output only. Property code. + * + * Generated from protobuf field string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPropertyCode() + { + return $this->property_code; + } + + /** + * Output only. Property code. + * + * Generated from protobuf field string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPropertyCode($var) + { + GPBUtil::checkString($var, True); + $this->property_code = $var; + + return $this; + } + + /** + * Output only. Time zone associated with the delivery of orders and + * reporting. + * + * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * Output only. Time zone associated with the delivery of orders and + * reporting. + * + * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * Output only. Primary currency code, in ISO-4217 format. + * + * Generated from protobuf field string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCurrencyCode() + { + return $this->currency_code; + } + + /** + * Output only. Primary currency code, in ISO-4217 format. + * + * Generated from protobuf field string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCurrencyCode($var) + { + GPBUtil::checkString($var, True); + $this->currency_code = $var; + + return $this; + } + + /** + * Optional. Currency codes that can be used as an alternative to the primary + * currency code for trafficking Line Items. + * + * Generated from protobuf field repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSecondaryCurrencyCodes() + { + return $this->secondary_currency_codes; + } + + /** + * Optional. Currency codes that can be used as an alternative to the primary + * currency code for trafficking Line Items. + * + * Generated from protobuf field repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSecondaryCurrencyCodes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->secondary_currency_codes = $arr; + + return $this; + } + + /** + * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which + * descendant Ad Units can be added. + * Format: networks/{network_code}/adUnits/{ad_unit} + * + * Generated from protobuf field string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getEffectiveRootAdUnit() + { + return $this->effective_root_ad_unit; + } + + /** + * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which + * descendant Ad Units can be added. + * Format: networks/{network_code}/adUnits/{ad_unit} + * + * Generated from protobuf field string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEffectiveRootAdUnit($var) + { + GPBUtil::checkString($var, True); + $this->effective_root_ad_unit = $var; + + return $this; + } + + /** + * Output only. Whether this is a test network. + * + * Generated from protobuf field bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getTestNetwork() + { + return $this->test_network; + } + + /** + * Output only. Whether this is a test network. + * + * Generated from protobuf field bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setTestNetwork($var) + { + GPBUtil::checkBool($var); + $this->test_network = $var; + + return $this; + } + + /** + * Output only. Network ID. + * + * Generated from protobuf field int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getNetworkId() + { + return $this->network_id; + } + + /** + * Output only. Network ID. + * + * Generated from protobuf field int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setNetworkId($var) + { + GPBUtil::checkInt64($var); + $this->network_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystem.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystem.php new file mode 100644 index 000000000000..1ab598bbaf23 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystem.php @@ -0,0 +1,115 @@ +google.ads.admanager.v1.OperatingSystem + */ +class OperatingSystem extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `OperatingSystem`. + * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The name of the operating system. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `OperatingSystem`. + * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + * @type string $display_name + * Output only. The name of the operating system. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `OperatingSystem`. + * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `OperatingSystem`. + * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The name of the operating system. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The name of the operating system. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemTargeting.php new file mode 100644 index 000000000000..70180dcf10e4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemTargeting.php @@ -0,0 +1,185 @@ +google.ads.admanager.v1.OperatingSystemTargeting + */ +class OperatingSystemTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of operating system resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_operating_systems; + /** + * Optional. A list of operating system resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_operating_systems; + /** + * Optional. A list of operating system version resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_operating_system_versions; + /** + * Optional. A list of operating system version resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $excluded_operating_system_versions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_operating_systems + * Optional. A list of operating system resource names that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_operating_systems + * Optional. A list of operating system resource names that should be + * excluded. + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_operating_system_versions + * Optional. A list of operating system version resource names that should be + * targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_operating_system_versions + * Optional. A list of operating system version resource names that should be + * excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of operating system resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedOperatingSystems() + { + return $this->targeted_operating_systems; + } + + /** + * Optional. A list of operating system resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedOperatingSystems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_operating_systems = $arr; + + return $this; + } + + /** + * Optional. A list of operating system resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedOperatingSystems() + { + return $this->excluded_operating_systems; + } + + /** + * Optional. A list of operating system resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedOperatingSystems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_operating_systems = $arr; + + return $this; + } + + /** + * Optional. A list of operating system version resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedOperatingSystemVersions() + { + return $this->targeted_operating_system_versions; + } + + /** + * Optional. A list of operating system version resource names that should be + * targeted/included. + * + * Generated from protobuf field repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedOperatingSystemVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_operating_system_versions = $arr; + + return $this; + } + + /** + * Optional. A list of operating system version resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedOperatingSystemVersions() + { + return $this->excluded_operating_system_versions; + } + + /** + * Optional. A list of operating system version resource names that should be + * excluded. + * + * Generated from protobuf field repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedOperatingSystemVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_operating_system_versions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemVersion.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemVersion.php new file mode 100644 index 000000000000..a5d0cbfb53c1 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemVersion.php @@ -0,0 +1,207 @@ +google.ads.admanager.v1.OperatingSystemVersion + */ +class OperatingSystemVersion extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `OperatingSystemVersion`. + * Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The major version of the operating system. + * + * Generated from protobuf field optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $major_version = null; + /** + * Output only. The minor version of the operating system. + * + * Generated from protobuf field optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $minor_version = null; + /** + * Output only. The micro version of the operating system. + * + * Generated from protobuf field optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $micro_version = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `OperatingSystemVersion`. + * Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * @type int $major_version + * Output only. The major version of the operating system. + * @type int $minor_version + * Output only. The minor version of the operating system. + * @type int $micro_version + * Output only. The micro version of the operating system. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemVersionMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `OperatingSystemVersion`. + * Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `OperatingSystemVersion`. + * Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The major version of the operating system. + * + * Generated from protobuf field optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getMajorVersion() + { + return isset($this->major_version) ? $this->major_version : 0; + } + + public function hasMajorVersion() + { + return isset($this->major_version); + } + + public function clearMajorVersion() + { + unset($this->major_version); + } + + /** + * Output only. The major version of the operating system. + * + * Generated from protobuf field optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setMajorVersion($var) + { + GPBUtil::checkInt32($var); + $this->major_version = $var; + + return $this; + } + + /** + * Output only. The minor version of the operating system. + * + * Generated from protobuf field optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getMinorVersion() + { + return isset($this->minor_version) ? $this->minor_version : 0; + } + + public function hasMinorVersion() + { + return isset($this->minor_version); + } + + public function clearMinorVersion() + { + unset($this->minor_version); + } + + /** + * Output only. The minor version of the operating system. + * + * Generated from protobuf field optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setMinorVersion($var) + { + GPBUtil::checkInt32($var); + $this->minor_version = $var; + + return $this; + } + + /** + * Output only. The micro version of the operating system. + * + * Generated from protobuf field optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getMicroVersion() + { + return isset($this->micro_version) ? $this->micro_version : 0; + } + + public function hasMicroVersion() + { + return isset($this->micro_version); + } + + public function clearMicroVersion() + { + unset($this->micro_version); + } + + /** + * Output only. The micro version of the operating system. + * + * Generated from protobuf field optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setMicroVersion($var) + { + GPBUtil::checkInt32($var); + $this->micro_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php new file mode 100644 index 000000000000..25dbdd3777f6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php @@ -0,0 +1,1325 @@ +google.ads.admanager.v1.Order + */ +class Order extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Order`. + * Format: `networks/{network_code}/orders/{order_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Order ID. + * + * Generated from protobuf field optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $order_id = null; + /** + * Required. The display name of the Order. This value has a maximum length + * of 255 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. Specifies whether or not the Order is a programmatic order. + * + * Generated from protobuf field optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $programmatic = null; + /** + * Required. The resource name of the User responsible for trafficking the + * Order. Format: "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $trafficker = null; + /** + * Optional. The resource names of Contacts from the advertiser of this Order. + * Format: "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $advertiser_contacts; + /** + * Required. The resource name of the Company, which is of type + * Company.Type.ADVERTISER, to which this order belongs. Format: + * "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $advertiser = null; + /** + * Optional. The resource names of Contacts from the advertising Agency of + * this Order. Format: "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field repeated string agency_contacts = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $agency_contacts; + /** + * Optional. The resource name of the Company, which is of type + * Company.Type.AGENCY, with which this order is associated. Format: + * "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $agency = null; + /** + * Optional. The resource names of Teams directly applied to this Order. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $applied_teams; + /** + * Output only. The resource names of Teams applied to this Order including + * inherited values. Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string effective_teams = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + private $effective_teams; + /** + * Output only. The resource name of the User who created the Order on behalf + * of the advertiser. Format: "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $creator = null; + /** + * Output only. The ISO 4217 3-letter currency code for the currency used by + * the Order. This value is the network's currency code. + * + * Generated from protobuf field optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $currency_code = null; + /** + * Output only. The instant at which the Order and its associated Line items + * are eligible to begin serving. This attribute is derived from the Line item + * of the order that has the earliest `LineItem.start_time`. + * + * Generated from protobuf field optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. The instant at which the Order and its associated Line items + * stop being served. This attribute is derived from the Line item of the + * order that has the latest `LineItem.end_time`. + * + * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Indicates whether or not this Order has an end time. + * + * Generated from protobuf field optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $unlimited_end_time = null; + /** + * Optional. An arbitrary ID to associate to the Order, which can be used as a + * key to an external system. + * + * Generated from protobuf field optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $external_order_id = null; + /** + * Output only. The archival status of the Order. + * + * Generated from protobuf field optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $archived = null; + /** + * Output only. The application which modified this order. This attribute is + * assigned by Google. + * + * Generated from protobuf field optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_modified_by_app = null; + /** + * Output only. The instant this Order was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Provides any additional notes that may annotate the Order. This + * attribute has a maximum length of 65,535 characters. + * + * Generated from protobuf field optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $notes = null; + /** + * Optional. The purchase order number for the Order. This value has a maximum + * length of 63 characters. + * + * Generated from protobuf field optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $po_number = null; + /** + * Output only. The status of the Order. + * + * Generated from protobuf field optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Optional. The resource name of the User responsible for the sales of the + * Order. Format: "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $salesperson = null; + /** + * Optional. Unordered list. The resource names of the secondary salespeople + * associated with the order. Format: + * "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field repeated string secondary_salespeople = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { + */ + private $secondary_salespeople; + /** + * Optional. Unordered list. The resource names of the secondary traffickers + * associated with the order. Format: + * "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field repeated string secondary_traffickers = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { + */ + private $secondary_traffickers; + /** + * Optional. The set of labels applied directly to this order. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $applied_labels; + /** + * Output only. Contains the set of labels applied directly to the order as + * well as those inherited from the company that owns the order. If a label + * has been negated, only the negated label is returned. This field is + * assigned by Google. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $effective_applied_labels; + /** + * Optional. The set of custom field values to this order. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 38 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $custom_field_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Order`. + * Format: `networks/{network_code}/orders/{order_id}` + * @type int|string $order_id + * Output only. Order ID. + * @type string $display_name + * Required. The display name of the Order. This value has a maximum length + * of 255 characters. + * @type bool $programmatic + * Optional. Specifies whether or not the Order is a programmatic order. + * @type string $trafficker + * Required. The resource name of the User responsible for trafficking the + * Order. Format: "networks/{network_code}/users/{user_id}" + * @type array|\Google\Protobuf\Internal\RepeatedField $advertiser_contacts + * Optional. The resource names of Contacts from the advertiser of this Order. + * Format: "networks/{network_code}/contacts/{contact_id}" + * @type string $advertiser + * Required. The resource name of the Company, which is of type + * Company.Type.ADVERTISER, to which this order belongs. Format: + * "networks/{network_code}/companies/{company_id}" + * @type array|\Google\Protobuf\Internal\RepeatedField $agency_contacts + * Optional. The resource names of Contacts from the advertising Agency of + * this Order. Format: "networks/{network_code}/contacts/{contact_id}" + * @type string $agency + * Optional. The resource name of the Company, which is of type + * Company.Type.AGENCY, with which this order is associated. Format: + * "networks/{network_code}/companies/{company_id}" + * @type array|\Google\Protobuf\Internal\RepeatedField $applied_teams + * Optional. The resource names of Teams directly applied to this Order. + * Format: "networks/{network_code}/teams/{team_id}" + * @type array|\Google\Protobuf\Internal\RepeatedField $effective_teams + * Output only. The resource names of Teams applied to this Order including + * inherited values. Format: "networks/{network_code}/teams/{team_id}" + * @type string $creator + * Output only. The resource name of the User who created the Order on behalf + * of the advertiser. Format: "networks/{network_code}/users/{user_id}" + * @type string $currency_code + * Output only. The ISO 4217 3-letter currency code for the currency used by + * the Order. This value is the network's currency code. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. The instant at which the Order and its associated Line items + * are eligible to begin serving. This attribute is derived from the Line item + * of the order that has the earliest `LineItem.start_time`. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The instant at which the Order and its associated Line items + * stop being served. This attribute is derived from the Line item of the + * order that has the latest `LineItem.end_time`. + * @type bool $unlimited_end_time + * Output only. Indicates whether or not this Order has an end time. + * @type int $external_order_id + * Optional. An arbitrary ID to associate to the Order, which can be used as a + * key to an external system. + * @type bool $archived + * Output only. The archival status of the Order. + * @type string $last_modified_by_app + * Output only. The application which modified this order. This attribute is + * assigned by Google. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The instant this Order was last modified. + * @type string $notes + * Optional. Provides any additional notes that may annotate the Order. This + * attribute has a maximum length of 65,535 characters. + * @type string $po_number + * Optional. The purchase order number for the Order. This value has a maximum + * length of 63 characters. + * @type int $status + * Output only. The status of the Order. + * @type string $salesperson + * Optional. The resource name of the User responsible for the sales of the + * Order. Format: "networks/{network_code}/users/{user_id}" + * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_salespeople + * Optional. Unordered list. The resource names of the secondary salespeople + * associated with the order. Format: + * "networks/{network_code}/users/{user_id}" + * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_traffickers + * Optional. Unordered list. The resource names of the secondary traffickers + * associated with the order. Format: + * "networks/{network_code}/users/{user_id}" + * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $applied_labels + * Optional. The set of labels applied directly to this order. + * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $effective_applied_labels + * Output only. Contains the set of labels applied directly to the order as + * well as those inherited from the company that owns the order. If a label + * has been negated, only the negated label is returned. This field is + * assigned by Google. + * @type array<\Google\Ads\AdManager\V1\CustomFieldValue>|\Google\Protobuf\Internal\RepeatedField $custom_field_values + * Optional. The set of custom field values to this order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OrderMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Order`. + * Format: `networks/{network_code}/orders/{order_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Order`. + * Format: `networks/{network_code}/orders/{order_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Order ID. + * + * Generated from protobuf field optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getOrderId() + { + return isset($this->order_id) ? $this->order_id : 0; + } + + public function hasOrderId() + { + return isset($this->order_id); + } + + public function clearOrderId() + { + unset($this->order_id); + } + + /** + * Output only. Order ID. + * + * Generated from protobuf field optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setOrderId($var) + { + GPBUtil::checkInt64($var); + $this->order_id = $var; + + return $this; + } + + /** + * Required. The display name of the Order. This value has a maximum length + * of 255 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The display name of the Order. This value has a maximum length + * of 255 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Specifies whether or not the Order is a programmatic order. + * + * Generated from protobuf field optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getProgrammatic() + { + return isset($this->programmatic) ? $this->programmatic : false; + } + + public function hasProgrammatic() + { + return isset($this->programmatic); + } + + public function clearProgrammatic() + { + unset($this->programmatic); + } + + /** + * Optional. Specifies whether or not the Order is a programmatic order. + * + * Generated from protobuf field optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setProgrammatic($var) + { + GPBUtil::checkBool($var); + $this->programmatic = $var; + + return $this; + } + + /** + * Required. The resource name of the User responsible for trafficking the + * Order. Format: "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTrafficker() + { + return isset($this->trafficker) ? $this->trafficker : ''; + } + + public function hasTrafficker() + { + return isset($this->trafficker); + } + + public function clearTrafficker() + { + unset($this->trafficker); + } + + /** + * Required. The resource name of the User responsible for trafficking the + * Order. Format: "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTrafficker($var) + { + GPBUtil::checkString($var, True); + $this->trafficker = $var; + + return $this; + } + + /** + * Optional. The resource names of Contacts from the advertiser of this Order. + * Format: "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdvertiserContacts() + { + return $this->advertiser_contacts; + } + + /** + * Optional. The resource names of Contacts from the advertiser of this Order. + * Format: "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdvertiserContacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->advertiser_contacts = $arr; + + return $this; + } + + /** + * Required. The resource name of the Company, which is of type + * Company.Type.ADVERTISER, to which this order belongs. Format: + * "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getAdvertiser() + { + return isset($this->advertiser) ? $this->advertiser : ''; + } + + public function hasAdvertiser() + { + return isset($this->advertiser); + } + + public function clearAdvertiser() + { + unset($this->advertiser); + } + + /** + * Required. The resource name of the Company, which is of type + * Company.Type.ADVERTISER, to which this order belongs. Format: + * "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAdvertiser($var) + { + GPBUtil::checkString($var, True); + $this->advertiser = $var; + + return $this; + } + + /** + * Optional. The resource names of Contacts from the advertising Agency of + * this Order. Format: "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field repeated string agency_contacts = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAgencyContacts() + { + return $this->agency_contacts; + } + + /** + * Optional. The resource names of Contacts from the advertising Agency of + * this Order. Format: "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field repeated string agency_contacts = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAgencyContacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->agency_contacts = $arr; + + return $this; + } + + /** + * Optional. The resource name of the Company, which is of type + * Company.Type.AGENCY, with which this order is associated. Format: + * "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAgency() + { + return isset($this->agency) ? $this->agency : ''; + } + + public function hasAgency() + { + return isset($this->agency); + } + + public function clearAgency() + { + unset($this->agency); + } + + /** + * Optional. The resource name of the Company, which is of type + * Company.Type.AGENCY, with which this order is associated. Format: + * "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAgency($var) + { + GPBUtil::checkString($var, True); + $this->agency = $var; + + return $this; + } + + /** + * Optional. The resource names of Teams directly applied to this Order. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAppliedTeams() + { + return $this->applied_teams; + } + + /** + * Optional. The resource names of Teams directly applied to this Order. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAppliedTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->applied_teams = $arr; + + return $this; + } + + /** + * Output only. The resource names of Teams applied to this Order including + * inherited values. Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string effective_teams = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEffectiveTeams() + { + return $this->effective_teams; + } + + /** + * Output only. The resource names of Teams applied to this Order including + * inherited values. Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string effective_teams = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEffectiveTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->effective_teams = $arr; + + return $this; + } + + /** + * Output only. The resource name of the User who created the Order on behalf + * of the advertiser. Format: "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getCreator() + { + return isset($this->creator) ? $this->creator : ''; + } + + public function hasCreator() + { + return isset($this->creator); + } + + public function clearCreator() + { + unset($this->creator); + } + + /** + * Output only. The resource name of the User who created the Order on behalf + * of the advertiser. Format: "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCreator($var) + { + GPBUtil::checkString($var, True); + $this->creator = $var; + + return $this; + } + + /** + * Output only. The ISO 4217 3-letter currency code for the currency used by + * the Order. This value is the network's currency code. + * + * Generated from protobuf field optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCurrencyCode() + { + return isset($this->currency_code) ? $this->currency_code : ''; + } + + public function hasCurrencyCode() + { + return isset($this->currency_code); + } + + public function clearCurrencyCode() + { + unset($this->currency_code); + } + + /** + * Output only. The ISO 4217 3-letter currency code for the currency used by + * the Order. This value is the network's currency code. + * + * Generated from protobuf field optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCurrencyCode($var) + { + GPBUtil::checkString($var, True); + $this->currency_code = $var; + + return $this; + } + + /** + * Output only. The instant at which the Order and its associated Line items + * are eligible to begin serving. This attribute is derived from the Line item + * of the order that has the earliest `LineItem.start_time`. + * + * Generated from protobuf field optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Output only. The instant at which the Order and its associated Line items + * are eligible to begin serving. This attribute is derived from the Line item + * of the order that has the earliest `LineItem.start_time`. + * + * Generated from protobuf field optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. The instant at which the Order and its associated Line items + * stop being served. This attribute is derived from the Line item of the + * order that has the latest `LineItem.end_time`. + * + * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The instant at which the Order and its associated Line items + * stop being served. This attribute is derived from the Line item of the + * order that has the latest `LineItem.end_time`. + * + * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Indicates whether or not this Order has an end time. + * + * Generated from protobuf field optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getUnlimitedEndTime() + { + return isset($this->unlimited_end_time) ? $this->unlimited_end_time : false; + } + + public function hasUnlimitedEndTime() + { + return isset($this->unlimited_end_time); + } + + public function clearUnlimitedEndTime() + { + unset($this->unlimited_end_time); + } + + /** + * Output only. Indicates whether or not this Order has an end time. + * + * Generated from protobuf field optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setUnlimitedEndTime($var) + { + GPBUtil::checkBool($var); + $this->unlimited_end_time = $var; + + return $this; + } + + /** + * Optional. An arbitrary ID to associate to the Order, which can be used as a + * key to an external system. + * + * Generated from protobuf field optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getExternalOrderId() + { + return isset($this->external_order_id) ? $this->external_order_id : 0; + } + + public function hasExternalOrderId() + { + return isset($this->external_order_id); + } + + public function clearExternalOrderId() + { + unset($this->external_order_id); + } + + /** + * Optional. An arbitrary ID to associate to the Order, which can be used as a + * key to an external system. + * + * Generated from protobuf field optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setExternalOrderId($var) + { + GPBUtil::checkInt32($var); + $this->external_order_id = $var; + + return $this; + } + + /** + * Output only. The archival status of the Order. + * + * Generated from protobuf field optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getArchived() + { + return isset($this->archived) ? $this->archived : false; + } + + public function hasArchived() + { + return isset($this->archived); + } + + public function clearArchived() + { + unset($this->archived); + } + + /** + * Output only. The archival status of the Order. + * + * Generated from protobuf field optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setArchived($var) + { + GPBUtil::checkBool($var); + $this->archived = $var; + + return $this; + } + + /** + * Output only. The application which modified this order. This attribute is + * assigned by Google. + * + * Generated from protobuf field optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLastModifiedByApp() + { + return isset($this->last_modified_by_app) ? $this->last_modified_by_app : ''; + } + + public function hasLastModifiedByApp() + { + return isset($this->last_modified_by_app); + } + + public function clearLastModifiedByApp() + { + unset($this->last_modified_by_app); + } + + /** + * Output only. The application which modified this order. This attribute is + * assigned by Google. + * + * Generated from protobuf field optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLastModifiedByApp($var) + { + GPBUtil::checkString($var, True); + $this->last_modified_by_app = $var; + + return $this; + } + + /** + * Output only. The instant this Order was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The instant this Order was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Provides any additional notes that may annotate the Order. This + * attribute has a maximum length of 65,535 characters. + * + * Generated from protobuf field optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNotes() + { + return isset($this->notes) ? $this->notes : ''; + } + + public function hasNotes() + { + return isset($this->notes); + } + + public function clearNotes() + { + unset($this->notes); + } + + /** + * Optional. Provides any additional notes that may annotate the Order. This + * attribute has a maximum length of 65,535 characters. + * + * Generated from protobuf field optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNotes($var) + { + GPBUtil::checkString($var, True); + $this->notes = $var; + + return $this; + } + + /** + * Optional. The purchase order number for the Order. This value has a maximum + * length of 63 characters. + * + * Generated from protobuf field optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPoNumber() + { + return isset($this->po_number) ? $this->po_number : ''; + } + + public function hasPoNumber() + { + return isset($this->po_number); + } + + public function clearPoNumber() + { + unset($this->po_number); + } + + /** + * Optional. The purchase order number for the Order. This value has a maximum + * length of 63 characters. + * + * Generated from protobuf field optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPoNumber($var) + { + GPBUtil::checkString($var, True); + $this->po_number = $var; + + return $this; + } + + /** + * Output only. The status of the Order. + * + * Generated from protobuf field optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the Order. + * + * Generated from protobuf field optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\OrderStatusEnum\OrderStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. The resource name of the User responsible for the sales of the + * Order. Format: "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getSalesperson() + { + return isset($this->salesperson) ? $this->salesperson : ''; + } + + public function hasSalesperson() + { + return isset($this->salesperson); + } + + public function clearSalesperson() + { + unset($this->salesperson); + } + + /** + * Optional. The resource name of the User responsible for the sales of the + * Order. Format: "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setSalesperson($var) + { + GPBUtil::checkString($var, True); + $this->salesperson = $var; + + return $this; + } + + /** + * Optional. Unordered list. The resource names of the secondary salespeople + * associated with the order. Format: + * "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field repeated string secondary_salespeople = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSecondarySalespeople() + { + return $this->secondary_salespeople; + } + + /** + * Optional. Unordered list. The resource names of the secondary salespeople + * associated with the order. Format: + * "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field repeated string secondary_salespeople = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSecondarySalespeople($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->secondary_salespeople = $arr; + + return $this; + } + + /** + * Optional. Unordered list. The resource names of the secondary traffickers + * associated with the order. Format: + * "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field repeated string secondary_traffickers = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSecondaryTraffickers() + { + return $this->secondary_traffickers; + } + + /** + * Optional. Unordered list. The resource names of the secondary traffickers + * associated with the order. Format: + * "networks/{network_code}/users/{user_id}" + * + * Generated from protobuf field repeated string secondary_traffickers = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSecondaryTraffickers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->secondary_traffickers = $arr; + + return $this; + } + + /** + * Optional. The set of labels applied directly to this order. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAppliedLabels() + { + return $this->applied_labels; + } + + /** + * Optional. The set of labels applied directly to this order. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAppliedLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); + $this->applied_labels = $arr; + + return $this; + } + + /** + * Output only. Contains the set of labels applied directly to the order as + * well as those inherited from the company that owns the order. If a label + * has been negated, only the negated label is returned. This field is + * assigned by Google. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEffectiveAppliedLabels() + { + return $this->effective_applied_labels; + } + + /** + * Output only. Contains the set of labels applied directly to the order as + * well as those inherited from the company that owns the order. If a label + * has been negated, only the negated label is returned. This field is + * assigned by Google. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEffectiveAppliedLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); + $this->effective_applied_labels = $arr; + + return $this; + } + + /** + * Optional. The set of custom field values to this order. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomFieldValues() + { + return $this->custom_field_values; + } + + /** + * Optional. The set of custom field values to this order. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\CustomFieldValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomFieldValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomFieldValue::class); + $this->custom_field_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php new file mode 100644 index 000000000000..4ba75691537a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.OrderStatusEnum + */ +class OrderStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\OrderEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php new file mode 100644 index 000000000000..5b5b4ffaf2e6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php @@ -0,0 +1,102 @@ +google.ads.admanager.v1.OrderStatusEnum.OrderStatus + */ +class OrderStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum ORDER_STATUS_UNSPECIFIED = 0; + */ + const ORDER_STATUS_UNSPECIFIED = 0; + /** + * Indicates that the Order has just been created but no approval has been + * requested yet. + * + * Generated from protobuf enum DRAFT = 2; + */ + const DRAFT = 2; + /** + * Indicates that a request for approval for the Order has been made. + * + * Generated from protobuf enum PENDING_APPROVAL = 3; + */ + const PENDING_APPROVAL = 3; + /** + * Indicates that the Order has been approved and is ready to serve. + * + * Generated from protobuf enum APPROVED = 4; + */ + const APPROVED = 4; + /** + * Indicates that the Order has been disapproved and is not eligible to + * serve. + * + * Generated from protobuf enum DISAPPROVED = 5; + */ + const DISAPPROVED = 5; + /** + * This is a legacy state. Paused status should be checked on LineItems + * within the order. + * + * Generated from protobuf enum PAUSED = 6; + */ + const PAUSED = 6; + /** + * Indicates that the Order has been canceled and cannot serve. + * + * Generated from protobuf enum CANCELED = 7; + */ + const CANCELED = 7; + /** + * Indicates that the Order has been deleted. + * + * Generated from protobuf enum DELETED = 8; + */ + const DELETED = 8; + + private static $valueToName = [ + self::ORDER_STATUS_UNSPECIFIED => 'ORDER_STATUS_UNSPECIFIED', + self::DRAFT => 'DRAFT', + self::PENDING_APPROVAL => 'PENDING_APPROVAL', + self::APPROVED => 'APPROVED', + self::DISAPPROVED => 'DISAPPROVED', + self::PAUSED => 'PAUSED', + self::CANCELED => 'CANCELED', + self::DELETED => 'DELETED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OrderStatus::class, \Google\Ads\AdManager\V1\OrderStatusEnum_OrderStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php new file mode 100644 index 000000000000..f912ac7e45e2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php @@ -0,0 +1,375 @@ +google.ads.admanager.v1.Placement + */ +class Placement extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Placement`. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. `Placement` ID. + * + * Generated from protobuf field int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $placement_id = 0; + /** + * Required. The display name of the placement. This attribute has a maximum + * length of 255 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. A description of the Placement. This attribute has a maximum + * length of 65,535 characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = null; + /** + * Output only. A string used to uniquely identify the Placement for purposes + * of serving the ad. This attribute is assigned by Google. + * + * Generated from protobuf field optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $placement_code = null; + /** + * Output only. The status of the Placement. + * + * Generated from protobuf field optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Optional. The resource names of AdUnits that constitute the Placement. + * Format: "networks/{network_code}/adUnits/{ad_unit}" + * + * Generated from protobuf field repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $targeted_ad_units; + /** + * Output only. The instant this Placement was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Placement`. + * Format: `networks/{network_code}/placements/{placement_id}` + * @type int|string $placement_id + * Output only. `Placement` ID. + * @type string $display_name + * Required. The display name of the placement. This attribute has a maximum + * length of 255 characters. + * @type string $description + * Optional. A description of the Placement. This attribute has a maximum + * length of 65,535 characters. + * @type string $placement_code + * Output only. A string used to uniquely identify the Placement for purposes + * of serving the ad. This attribute is assigned by Google. + * @type int $status + * Output only. The status of the Placement. + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_ad_units + * Optional. The resource names of AdUnits that constitute the Placement. + * Format: "networks/{network_code}/adUnits/{ad_unit}" + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The instant this Placement was last modified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Placement`. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Placement`. + * Format: `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. `Placement` ID. + * + * Generated from protobuf field int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getPlacementId() + { + return $this->placement_id; + } + + /** + * Output only. `Placement` ID. + * + * Generated from protobuf field int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setPlacementId($var) + { + GPBUtil::checkInt64($var); + $this->placement_id = $var; + + return $this; + } + + /** + * Required. The display name of the placement. This attribute has a maximum + * length of 255 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The display name of the placement. This attribute has a maximum + * length of 255 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. A description of the Placement. This attribute has a maximum + * length of 65,535 characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Optional. A description of the Placement. This attribute has a maximum + * length of 65,535 characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. A string used to uniquely identify the Placement for purposes + * of serving the ad. This attribute is assigned by Google. + * + * Generated from protobuf field optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPlacementCode() + { + return isset($this->placement_code) ? $this->placement_code : ''; + } + + public function hasPlacementCode() + { + return isset($this->placement_code); + } + + public function clearPlacementCode() + { + unset($this->placement_code); + } + + /** + * Output only. A string used to uniquely identify the Placement for purposes + * of serving the ad. This attribute is assigned by Google. + * + * Generated from protobuf field optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPlacementCode($var) + { + GPBUtil::checkString($var, True); + $this->placement_code = $var; + + return $this; + } + + /** + * Output only. The status of the Placement. + * + * Generated from protobuf field optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the Placement. + * + * Generated from protobuf field optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\PlacementStatusEnum\PlacementStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. The resource names of AdUnits that constitute the Placement. + * Format: "networks/{network_code}/adUnits/{ad_unit}" + * + * Generated from protobuf field repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedAdUnits() + { + return $this->targeted_ad_units; + } + + /** + * Optional. The resource names of AdUnits that constitute the Placement. + * Format: "networks/{network_code}/adUnits/{ad_unit}" + * + * Generated from protobuf field repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedAdUnits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_ad_units = $arr; + + return $this; + } + + /** + * Output only. The instant this Placement was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The instant this Placement was last modified. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php new file mode 100644 index 000000000000..08bc6de84382 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.PlacementStatusEnum + */ +class PlacementStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php new file mode 100644 index 000000000000..21bdaea88d01 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus + */ +class PlacementStatus +{ + /** + * Not specified value. + * + * Generated from protobuf enum PLACEMENT_STATUS_UNSPECIFIED = 0; + */ + const PLACEMENT_STATUS_UNSPECIFIED = 0; + /** + * Stats are collected, user-visible. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * No stats collected, not user-visible. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + /** + * No stats collected, user-visible. + * + * Generated from protobuf enum ARCHIVED = 3; + */ + const ARCHIVED = 3; + + private static $valueToName = [ + self::PLACEMENT_STATUS_UNSPECIFIED => 'PLACEMENT_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + self::ARCHIVED => 'ARCHIVED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PlacementStatus::class, \Google\Ads\AdManager\V1\PlacementStatusEnum_PlacementStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuction.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuction.php new file mode 100644 index 000000000000..32ac9a76a096 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuction.php @@ -0,0 +1,385 @@ +google.ads.admanager.v1.PrivateAuction + */ +class PrivateAuction extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `PrivateAuction`. + * Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. `PrivateAuction` ID. + * + * Generated from protobuf field optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_auction_id = null; + /** + * Required. Display name of the `PrivateAuction`. This attribute has a + * maximum length of 255 bytes. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. Description of the `PrivateAuction`. This attribute has a + * maximum length of 4096 bytes. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = null; + /** + * Optional. The resource names of the seller contact users associated with + * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}` + * + * Generated from protobuf field repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $seller_contact_users; + /** + * Output only. Whether the `PrivateAuction` is archived. + * + * Generated from protobuf field optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $archived = null; + /** + * Output only. The instant at which the PrivateAuction was created. + * + * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The instant at which the PrivateAuction was last updated. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `PrivateAuction`. + * Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * @type int|string $private_auction_id + * Output only. `PrivateAuction` ID. + * @type string $display_name + * Required. Display name of the `PrivateAuction`. This attribute has a + * maximum length of 255 bytes. + * @type string $description + * Optional. Description of the `PrivateAuction`. This attribute has a + * maximum length of 4096 bytes. + * @type array|\Google\Protobuf\Internal\RepeatedField $seller_contact_users + * Optional. The resource names of the seller contact users associated with + * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}` + * @type bool $archived + * Output only. Whether the `PrivateAuction` is archived. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The instant at which the PrivateAuction was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The instant at which the PrivateAuction was last updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `PrivateAuction`. + * Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `PrivateAuction`. + * Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. `PrivateAuction` ID. + * + * Generated from protobuf field optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getPrivateAuctionId() + { + return isset($this->private_auction_id) ? $this->private_auction_id : 0; + } + + public function hasPrivateAuctionId() + { + return isset($this->private_auction_id); + } + + public function clearPrivateAuctionId() + { + unset($this->private_auction_id); + } + + /** + * Output only. `PrivateAuction` ID. + * + * Generated from protobuf field optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setPrivateAuctionId($var) + { + GPBUtil::checkInt64($var); + $this->private_auction_id = $var; + + return $this; + } + + /** + * Required. Display name of the `PrivateAuction`. This attribute has a + * maximum length of 255 bytes. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. Display name of the `PrivateAuction`. This attribute has a + * maximum length of 255 bytes. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description of the `PrivateAuction`. This attribute has a + * maximum length of 4096 bytes. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Optional. Description of the `PrivateAuction`. This attribute has a + * maximum length of 4096 bytes. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. The resource names of the seller contact users associated with + * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}` + * + * Generated from protobuf field repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSellerContactUsers() + { + return $this->seller_contact_users; + } + + /** + * Optional. The resource names of the seller contact users associated with + * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}` + * + * Generated from protobuf field repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSellerContactUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->seller_contact_users = $arr; + + return $this; + } + + /** + * Output only. Whether the `PrivateAuction` is archived. + * + * Generated from protobuf field optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getArchived() + { + return isset($this->archived) ? $this->archived : false; + } + + public function hasArchived() + { + return isset($this->archived); + } + + public function clearArchived() + { + unset($this->archived); + } + + /** + * Output only. Whether the `PrivateAuction` is archived. + * + * Generated from protobuf field optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setArchived($var) + { + GPBUtil::checkBool($var); + $this->archived = $var; + + return $this; + } + + /** + * Output only. The instant at which the PrivateAuction was created. + * + * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The instant at which the PrivateAuction was created. + * + * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The instant at which the PrivateAuction was last updated. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The instant at which the PrivateAuction was last updated. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal.php new file mode 100644 index 000000000000..1ce452d7549a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal.php @@ -0,0 +1,785 @@ +google.ads.admanager.v1.PrivateAuctionDeal + */ +class PrivateAuctionDeal extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `PrivateAuctionDeal`. + * Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. `PrivateAuctionDeal` ID. + * + * Generated from protobuf field optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_auction_deal_id = null; + /** + * Immutable. The ID of the + * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). + * + * Generated from protobuf field optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $private_auction_id = null; + /** + * Output only. The display name of the + * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). + * + * Generated from protobuf field optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_auction_display_name = null; + /** + * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $buyer_account_id = null; + /** + * Output only. The external ID of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $external_deal_id = null; + /** + * Optional. The targeting of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $targeting = null; + /** + * Optional. The end time of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $end_time = null; + /** + * Required. The floor price of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $floor_price = null; + /** + * Optional. The expected creative sizes of the `PrivateAuctionDeal`. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $creative_sizes; + /** + * Output only. The status of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Optional. Whether the deal is enabled with priority over open auction. + * + * Generated from protobuf field optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $auction_priority_enabled = null; + /** + * Optional. Whether the deal has block override enabled. + * + * Generated from protobuf field optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $block_override_enabled = null; + /** + * Optional. The buyer permission model defining how the deal would transact + * among all buyers under the same bidder. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $buyer_permission_type = null; + /** + * Optional. The buyer data required by the Marketplace API. + * + * Generated from protobuf field optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $buyer_data = null; + /** + * Output only. The instant at which the `PrivateAuctionDeal` was created. + * + * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The instant at which the `PrivateAuctionDeal` was last + * updated. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `PrivateAuctionDeal`. + * Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * @type int|string $private_auction_deal_id + * Output only. `PrivateAuctionDeal` ID. + * @type int|string $private_auction_id + * Immutable. The ID of the + * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). + * @type string $private_auction_display_name + * Output only. The display name of the + * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). + * @type int|string $buyer_account_id + * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`. + * @type int|string $external_deal_id + * Output only. The external ID of the `PrivateAuctionDeal`. + * @type \Google\Ads\AdManager\V1\Targeting $targeting + * Optional. The targeting of the `PrivateAuctionDeal`. + * @type \Google\Protobuf\Timestamp $end_time + * Optional. The end time of the `PrivateAuctionDeal`. + * @type \Google\Type\Money $floor_price + * Required. The floor price of the `PrivateAuctionDeal`. + * @type array<\Google\Ads\AdManager\V1\Size>|\Google\Protobuf\Internal\RepeatedField $creative_sizes + * Optional. The expected creative sizes of the `PrivateAuctionDeal`. + * @type int $status + * Output only. The status of the `PrivateAuctionDeal`. + * @type bool $auction_priority_enabled + * Optional. Whether the deal is enabled with priority over open auction. + * @type bool $block_override_enabled + * Optional. Whether the deal has block override enabled. + * @type int $buyer_permission_type + * Optional. The buyer permission model defining how the deal would transact + * among all buyers under the same bidder. + * @type \Google\Ads\AdManager\V1\PrivateAuctionDeal\BuyerData $buyer_data + * Optional. The buyer data required by the Marketplace API. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The instant at which the `PrivateAuctionDeal` was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The instant at which the `PrivateAuctionDeal` was last + * updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `PrivateAuctionDeal`. + * Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `PrivateAuctionDeal`. + * Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. `PrivateAuctionDeal` ID. + * + * Generated from protobuf field optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getPrivateAuctionDealId() + { + return isset($this->private_auction_deal_id) ? $this->private_auction_deal_id : 0; + } + + public function hasPrivateAuctionDealId() + { + return isset($this->private_auction_deal_id); + } + + public function clearPrivateAuctionDealId() + { + unset($this->private_auction_deal_id); + } + + /** + * Output only. `PrivateAuctionDeal` ID. + * + * Generated from protobuf field optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setPrivateAuctionDealId($var) + { + GPBUtil::checkInt64($var); + $this->private_auction_deal_id = $var; + + return $this; + } + + /** + * Immutable. The ID of the + * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). + * + * Generated from protobuf field optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int|string + */ + public function getPrivateAuctionId() + { + return isset($this->private_auction_id) ? $this->private_auction_id : 0; + } + + public function hasPrivateAuctionId() + { + return isset($this->private_auction_id); + } + + public function clearPrivateAuctionId() + { + unset($this->private_auction_id); + } + + /** + * Immutable. The ID of the + * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). + * + * Generated from protobuf field optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int|string $var + * @return $this + */ + public function setPrivateAuctionId($var) + { + GPBUtil::checkInt64($var); + $this->private_auction_id = $var; + + return $this; + } + + /** + * Output only. The display name of the + * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). + * + * Generated from protobuf field optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPrivateAuctionDisplayName() + { + return isset($this->private_auction_display_name) ? $this->private_auction_display_name : ''; + } + + public function hasPrivateAuctionDisplayName() + { + return isset($this->private_auction_display_name); + } + + public function clearPrivateAuctionDisplayName() + { + unset($this->private_auction_display_name); + } + + /** + * Output only. The display name of the + * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). + * + * Generated from protobuf field optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPrivateAuctionDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->private_auction_display_name = $var; + + return $this; + } + + /** + * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int|string + */ + public function getBuyerAccountId() + { + return isset($this->buyer_account_id) ? $this->buyer_account_id : 0; + } + + public function hasBuyerAccountId() + { + return isset($this->buyer_account_id); + } + + public function clearBuyerAccountId() + { + unset($this->buyer_account_id); + } + + /** + * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int|string $var + * @return $this + */ + public function setBuyerAccountId($var) + { + GPBUtil::checkInt64($var); + $this->buyer_account_id = $var; + + return $this; + } + + /** + * Output only. The external ID of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getExternalDealId() + { + return isset($this->external_deal_id) ? $this->external_deal_id : 0; + } + + public function hasExternalDealId() + { + return isset($this->external_deal_id); + } + + public function clearExternalDealId() + { + unset($this->external_deal_id); + } + + /** + * Output only. The external ID of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setExternalDealId($var) + { + GPBUtil::checkInt64($var); + $this->external_deal_id = $var; + + return $this; + } + + /** + * Optional. The targeting of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\Targeting|null + */ + public function getTargeting() + { + return $this->targeting; + } + + public function hasTargeting() + { + return isset($this->targeting); + } + + public function clearTargeting() + { + unset($this->targeting); + } + + /** + * Optional. The targeting of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\Targeting $var + * @return $this + */ + public function setTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Targeting::class); + $this->targeting = $var; + + return $this; + } + + /** + * Optional. The end time of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Optional. The end time of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Required. The floor price of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\Money|null + */ + public function getFloorPrice() + { + return $this->floor_price; + } + + public function hasFloorPrice() + { + return isset($this->floor_price); + } + + public function clearFloorPrice() + { + unset($this->floor_price); + } + + /** + * Required. The floor price of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\Money $var + * @return $this + */ + public function setFloorPrice($var) + { + GPBUtil::checkMessage($var, \Google\Type\Money::class); + $this->floor_price = $var; + + return $this; + } + + /** + * Optional. The expected creative sizes of the `PrivateAuctionDeal`. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCreativeSizes() + { + return $this->creative_sizes; + } + + /** + * Optional. The expected creative sizes of the `PrivateAuctionDeal`. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\Size>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCreativeSizes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Size::class); + $this->creative_sizes = $arr; + + return $this; + } + + /** + * Output only. The status of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the `PrivateAuctionDeal`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\PrivateMarketplaceDealStatusEnum\PrivateMarketplaceDealStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. Whether the deal is enabled with priority over open auction. + * + * Generated from protobuf field optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAuctionPriorityEnabled() + { + return isset($this->auction_priority_enabled) ? $this->auction_priority_enabled : false; + } + + public function hasAuctionPriorityEnabled() + { + return isset($this->auction_priority_enabled); + } + + public function clearAuctionPriorityEnabled() + { + unset($this->auction_priority_enabled); + } + + /** + * Optional. Whether the deal is enabled with priority over open auction. + * + * Generated from protobuf field optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAuctionPriorityEnabled($var) + { + GPBUtil::checkBool($var); + $this->auction_priority_enabled = $var; + + return $this; + } + + /** + * Optional. Whether the deal has block override enabled. + * + * Generated from protobuf field optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getBlockOverrideEnabled() + { + return isset($this->block_override_enabled) ? $this->block_override_enabled : false; + } + + public function hasBlockOverrideEnabled() + { + return isset($this->block_override_enabled); + } + + public function clearBlockOverrideEnabled() + { + unset($this->block_override_enabled); + } + + /** + * Optional. Whether the deal has block override enabled. + * + * Generated from protobuf field optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setBlockOverrideEnabled($var) + { + GPBUtil::checkBool($var); + $this->block_override_enabled = $var; + + return $this; + } + + /** + * Optional. The buyer permission model defining how the deal would transact + * among all buyers under the same bidder. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getBuyerPermissionType() + { + return isset($this->buyer_permission_type) ? $this->buyer_permission_type : 0; + } + + public function hasBuyerPermissionType() + { + return isset($this->buyer_permission_type); + } + + public function clearBuyerPermissionType() + { + unset($this->buyer_permission_type); + } + + /** + * Optional. The buyer permission model defining how the deal would transact + * among all buyers under the same bidder. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setBuyerPermissionType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\DealBuyerPermissionTypeEnum\DealBuyerPermissionType::class); + $this->buyer_permission_type = $var; + + return $this; + } + + /** + * Optional. The buyer data required by the Marketplace API. + * + * Generated from protobuf field optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\PrivateAuctionDeal\BuyerData|null + */ + public function getBuyerData() + { + return $this->buyer_data; + } + + public function hasBuyerData() + { + return isset($this->buyer_data); + } + + public function clearBuyerData() + { + unset($this->buyer_data); + } + + /** + * Optional. The buyer data required by the Marketplace API. + * + * Generated from protobuf field optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\PrivateAuctionDeal\BuyerData $var + * @return $this + */ + public function setBuyerData($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\PrivateAuctionDeal\BuyerData::class); + $this->buyer_data = $var; + + return $this; + } + + /** + * Output only. The instant at which the `PrivateAuctionDeal` was created. + * + * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The instant at which the `PrivateAuctionDeal` was created. + * + * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The instant at which the `PrivateAuctionDeal` was last + * updated. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The instant at which the `PrivateAuctionDeal` was last + * updated. + * + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal/BuyerData.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal/BuyerData.php new file mode 100644 index 000000000000..e67b325f919d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal/BuyerData.php @@ -0,0 +1,70 @@ +google.ads.admanager.v1.PrivateAuctionDeal.BuyerData + */ +class BuyerData extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`. + * + * Generated from protobuf field repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $buyer_emails; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $buyer_emails + * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealMessages::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`. + * + * Generated from protobuf field repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBuyerEmails() + { + return $this->buyer_emails; + } + + /** + * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`. + * + * Generated from protobuf field repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBuyerEmails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->buyer_emails = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BuyerData::class, \Google\Ads\AdManager\V1\PrivateAuctionDeal_BuyerData::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum.php new file mode 100644 index 000000000000..836848c98874 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum + */ +class PrivateMarketplaceDealStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateMarketplaceEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum/PrivateMarketplaceDealStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum/PrivateMarketplaceDealStatus.php new file mode 100644 index 000000000000..5f83ee3e81fa --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum/PrivateMarketplaceDealStatus.php @@ -0,0 +1,85 @@ +google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus + */ +class PrivateMarketplaceDealStatus +{ + /** + * No value specified. + * + * Generated from protobuf enum PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED = 0; + */ + const PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED = 0; + /** + * The deal is pending. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * The deal is active. + * + * Generated from protobuf enum ACTIVE = 2; + */ + const ACTIVE = 2; + /** + * The deal is canceled. + * + * Generated from protobuf enum CANCELED = 3; + */ + const CANCELED = 3; + /** + * The deal is paused by the seller. + * + * Generated from protobuf enum SELLER_PAUSED = 4; + */ + const SELLER_PAUSED = 4; + /** + * The deal is paused by the buyer. + * + * Generated from protobuf enum BUYER_PAUSED = 5; + */ + const BUYER_PAUSED = 5; + + private static $valueToName = [ + self::PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED => 'PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED', + self::PENDING => 'PENDING', + self::ACTIVE => 'ACTIVE', + self::CANCELED => 'CANCELED', + self::SELLER_PAUSED => 'SELLER_PAUSED', + self::BUYER_PAUSED => 'BUYER_PAUSED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PrivateMarketplaceDealStatus::class, \Google\Ads\AdManager\V1\PrivateMarketplaceDealStatusEnum_PrivateMarketplaceDealStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ProgrammaticBuyer.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ProgrammaticBuyer.php new file mode 100644 index 000000000000..9b18ceb51b62 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ProgrammaticBuyer.php @@ -0,0 +1,395 @@ +google.ads.admanager.v1.ProgrammaticBuyer + */ +class ProgrammaticBuyer extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `ProgrammaticBuyer`. + * Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The buyer account ID of the buyer. + * + * Generated from protobuf field optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $buyer_account_id = null; + /** + * Output only. The display name of the buyer. + * + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + /** + * Output only. The ID of the programmatic buyer's sponsor. If the buyer has + * no sponsor, this field will be -1. + * + * Generated from protobuf field optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $parent_account_id = null; + /** + * Output only. ID of the Display & Video 360 client buyer partner ID (if + * Display & Video 360) or Authorized Buyers client buyer account ID. + * + * Generated from protobuf field optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $partner_client_id = null; + /** + * Output only. Whether the buyer is an advertising agency. + * + * Generated from protobuf field optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $agency = null; + /** + * Output only. Whether the buyer is enabled for preferred deals. + * + * Generated from protobuf field optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $preferred_deals_enabled = null; + /** + * Output only. Whether the buyer is enabled for programmatic guaranteed + * deals. + * + * Generated from protobuf field optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $programmatic_guaranteed_enabled = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `ProgrammaticBuyer`. + * Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * @type int|string $buyer_account_id + * Output only. The buyer account ID of the buyer. + * @type string $display_name + * Output only. The display name of the buyer. + * @type int|string $parent_account_id + * Output only. The ID of the programmatic buyer's sponsor. If the buyer has + * no sponsor, this field will be -1. + * @type string $partner_client_id + * Output only. ID of the Display & Video 360 client buyer partner ID (if + * Display & Video 360) or Authorized Buyers client buyer account ID. + * @type bool $agency + * Output only. Whether the buyer is an advertising agency. + * @type bool $preferred_deals_enabled + * Output only. Whether the buyer is enabled for preferred deals. + * @type bool $programmatic_guaranteed_enabled + * Output only. Whether the buyer is enabled for programmatic guaranteed + * deals. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ProgrammaticBuyerMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `ProgrammaticBuyer`. + * Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `ProgrammaticBuyer`. + * Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The buyer account ID of the buyer. + * + * Generated from protobuf field optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getBuyerAccountId() + { + return isset($this->buyer_account_id) ? $this->buyer_account_id : 0; + } + + public function hasBuyerAccountId() + { + return isset($this->buyer_account_id); + } + + public function clearBuyerAccountId() + { + unset($this->buyer_account_id); + } + + /** + * Output only. The buyer account ID of the buyer. + * + * Generated from protobuf field optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setBuyerAccountId($var) + { + GPBUtil::checkInt64($var); + $this->buyer_account_id = $var; + + return $this; + } + + /** + * Output only. The display name of the buyer. + * + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. The display name of the buyer. + * + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The ID of the programmatic buyer's sponsor. If the buyer has + * no sponsor, this field will be -1. + * + * Generated from protobuf field optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getParentAccountId() + { + return isset($this->parent_account_id) ? $this->parent_account_id : 0; + } + + public function hasParentAccountId() + { + return isset($this->parent_account_id); + } + + public function clearParentAccountId() + { + unset($this->parent_account_id); + } + + /** + * Output only. The ID of the programmatic buyer's sponsor. If the buyer has + * no sponsor, this field will be -1. + * + * Generated from protobuf field optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setParentAccountId($var) + { + GPBUtil::checkInt64($var); + $this->parent_account_id = $var; + + return $this; + } + + /** + * Output only. ID of the Display & Video 360 client buyer partner ID (if + * Display & Video 360) or Authorized Buyers client buyer account ID. + * + * Generated from protobuf field optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPartnerClientId() + { + return isset($this->partner_client_id) ? $this->partner_client_id : ''; + } + + public function hasPartnerClientId() + { + return isset($this->partner_client_id); + } + + public function clearPartnerClientId() + { + unset($this->partner_client_id); + } + + /** + * Output only. ID of the Display & Video 360 client buyer partner ID (if + * Display & Video 360) or Authorized Buyers client buyer account ID. + * + * Generated from protobuf field optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPartnerClientId($var) + { + GPBUtil::checkString($var, True); + $this->partner_client_id = $var; + + return $this; + } + + /** + * Output only. Whether the buyer is an advertising agency. + * + * Generated from protobuf field optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getAgency() + { + return isset($this->agency) ? $this->agency : false; + } + + public function hasAgency() + { + return isset($this->agency); + } + + public function clearAgency() + { + unset($this->agency); + } + + /** + * Output only. Whether the buyer is an advertising agency. + * + * Generated from protobuf field optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setAgency($var) + { + GPBUtil::checkBool($var); + $this->agency = $var; + + return $this; + } + + /** + * Output only. Whether the buyer is enabled for preferred deals. + * + * Generated from protobuf field optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getPreferredDealsEnabled() + { + return isset($this->preferred_deals_enabled) ? $this->preferred_deals_enabled : false; + } + + public function hasPreferredDealsEnabled() + { + return isset($this->preferred_deals_enabled); + } + + public function clearPreferredDealsEnabled() + { + unset($this->preferred_deals_enabled); + } + + /** + * Output only. Whether the buyer is enabled for preferred deals. + * + * Generated from protobuf field optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setPreferredDealsEnabled($var) + { + GPBUtil::checkBool($var); + $this->preferred_deals_enabled = $var; + + return $this; + } + + /** + * Output only. Whether the buyer is enabled for programmatic guaranteed + * deals. + * + * Generated from protobuf field optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getProgrammaticGuaranteedEnabled() + { + return isset($this->programmatic_guaranteed_enabled) ? $this->programmatic_guaranteed_enabled : false; + } + + public function hasProgrammaticGuaranteedEnabled() + { + return isset($this->programmatic_guaranteed_enabled); + } + + public function clearProgrammaticGuaranteedEnabled() + { + unset($this->programmatic_guaranteed_enabled); + } + + /** + * Output only. Whether the buyer is enabled for programmatic guaranteed + * deals. + * + * Generated from protobuf field optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setProgrammaticGuaranteedEnabled($var) + { + GPBUtil::checkBool($var); + $this->programmatic_guaranteed_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php new file mode 100644 index 000000000000..3e9c1a2c1e8a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php @@ -0,0 +1,391 @@ +google.ads.admanager.v1.Report + */ +class Report extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the report. + * Report resource name have the form: + * `networks/{network_code}/reports/{report_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Report ID. + * + * Generated from protobuf field int64 report_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $report_id = 0; + /** + * Optional. The visibility of a report. + * + * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $visibility = 0; + /** + * Required. The report definition of the report. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition report_definition = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $report_definition = null; + /** + * Optional. Display name for the report. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. The instant this report was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The instant this report was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The locale of this report. Locale is set from the user's + * locale at the time of the request. Locale can't be modified. + * + * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $locale = ''; + /** + * Optional. The schedule options of this report. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions schedule_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schedule_options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the report. + * Report resource name have the form: + * `networks/{network_code}/reports/{report_id}` + * @type int|string $report_id + * Output only. Report ID. + * @type int $visibility + * Optional. The visibility of a report. + * @type \Google\Ads\AdManager\V1\ReportDefinition $report_definition + * Required. The report definition of the report. + * @type string $display_name + * Optional. Display name for the report. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The instant this report was last modified. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The instant this report was created. + * @type string $locale + * Output only. The locale of this report. Locale is set from the user's + * locale at the time of the request. Locale can't be modified. + * @type \Google\Ads\AdManager\V1\ScheduleOptions $schedule_options + * Optional. The schedule options of this report. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the report. + * Report resource name have the form: + * `networks/{network_code}/reports/{report_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the report. + * Report resource name have the form: + * `networks/{network_code}/reports/{report_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Report ID. + * + * Generated from protobuf field int64 report_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getReportId() + { + return $this->report_id; + } + + /** + * Output only. Report ID. + * + * Generated from protobuf field int64 report_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setReportId($var) + { + GPBUtil::checkInt64($var); + $this->report_id = $var; + + return $this; + } + + /** + * Optional. The visibility of a report. + * + * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getVisibility() + { + return $this->visibility; + } + + /** + * Optional. The visibility of a report. + * + * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setVisibility($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\Visibility::class); + $this->visibility = $var; + + return $this; + } + + /** + * Required. The report definition of the report. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition report_definition = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\ReportDefinition|null + */ + public function getReportDefinition() + { + return $this->report_definition; + } + + public function hasReportDefinition() + { + return isset($this->report_definition); + } + + public function clearReportDefinition() + { + unset($this->report_definition); + } + + /** + * Required. The report definition of the report. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition report_definition = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ReportDefinition $var + * @return $this + */ + public function setReportDefinition($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition::class); + $this->report_definition = $var; + + return $this; + } + + /** + * Optional. Display name for the report. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. Display name for the report. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The instant this report was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The instant this report was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The instant this report was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The instant this report was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The locale of this report. Locale is set from the user's + * locale at the time of the request. Locale can't be modified. + * + * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLocale() + { + return $this->locale; + } + + /** + * Output only. The locale of this report. Locale is set from the user's + * locale at the time of the request. Locale can't be modified. + * + * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLocale($var) + { + GPBUtil::checkString($var, True); + $this->locale = $var; + + return $this; + } + + /** + * Optional. The schedule options of this report. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions schedule_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\ScheduleOptions|null + */ + public function getScheduleOptions() + { + return $this->schedule_options; + } + + public function hasScheduleOptions() + { + return isset($this->schedule_options); + } + + public function clearScheduleOptions() + { + unset($this->schedule_options); + } + + /** + * Optional. The schedule options of this report. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions schedule_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\ScheduleOptions $var + * @return $this + */ + public function setScheduleOptions($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ScheduleOptions::class); + $this->schedule_options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php new file mode 100644 index 000000000000..51a72642795d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.Report.Visibility + */ +class Visibility +{ + /** + * Default value. Reports with hidden visibility won't appear in the Ad + * Manager UI. + * + * Generated from protobuf enum HIDDEN = 0; + */ + const HIDDEN = 0; + /** + * Reports with draft visibility will appear in the Ad Manager UI only if + * the user has configured the UI to show them. + * + * Generated from protobuf enum DRAFT = 1; + */ + const DRAFT = 1; + /** + * Reports with saved visibility will appear in the Ad Manager UI by + * default. + * + * Generated from protobuf enum SAVED = 2; + */ + const SAVED = 2; + + private static $valueToName = [ + self::HIDDEN => 'HIDDEN', + self::DRAFT => 'DRAFT', + self::SAVED => 'SAVED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Visibility::class, \Google\Ads\AdManager\V1\Report_Visibility::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable.php new file mode 100644 index 000000000000..e8943002eb21 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.ReportDataTable + */ +class ReportDataTable extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/MetricValueGroup.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/MetricValueGroup.php new file mode 100644 index 000000000000..72114fbbe6bf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/MetricValueGroup.php @@ -0,0 +1,289 @@ +google.ads.admanager.v1.ReportDataTable.MetricValueGroup + */ +class MetricValueGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Data for the PRIMARY MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + private $primary_values; + /** + * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + */ + private $primary_percent_of_total_values; + /** + * Data for the COMPARISON MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + private $comparison_values; + /** + * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + */ + private $comparison_percent_of_total_values; + /** + * Data for the ABSOLUTE_CHANGE MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + private $absolute_change_values; + /** + * Data for the RELATIVE_CHANGE MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + private $relative_change_values; + /** + * If true, the flag's conditions are met. If false, the flag's + * conditions are not met. flag_values has the same length as + * flags and index i of flag_values represents the flag at index i + * of flags. + * + * Generated from protobuf field repeated bool flag_values = 7; + */ + private $flag_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $primary_values + * Data for the PRIMARY MetricValueType. + * @type array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $primary_percent_of_total_values + * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. + * @type array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $comparison_values + * Data for the COMPARISON MetricValueType. + * @type array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $comparison_percent_of_total_values + * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. + * @type array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $absolute_change_values + * Data for the ABSOLUTE_CHANGE MetricValueType. + * @type array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $relative_change_values + * Data for the RELATIVE_CHANGE MetricValueType. + * @type array|\Google\Protobuf\Internal\RepeatedField $flag_values + * If true, the flag's conditions are met. If false, the flag's + * conditions are not met. flag_values has the same length as + * flags and index i of flag_values represents the flag at index i + * of flags. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); + parent::__construct($data); + } + + /** + * Data for the PRIMARY MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPrimaryValues() + { + return $this->primary_values; + } + + /** + * Data for the PRIMARY MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + * @param array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPrimaryValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportValue::class); + $this->primary_values = $arr; + + return $this; + } + + /** + * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPrimaryPercentOfTotalValues() + { + return $this->primary_percent_of_total_values; + } + + /** + * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * @param array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPrimaryPercentOfTotalValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportValue::class); + $this->primary_percent_of_total_values = $arr; + + return $this; + } + + /** + * Data for the COMPARISON MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getComparisonValues() + { + return $this->comparison_values; + } + + /** + * Data for the COMPARISON MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + * @param array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setComparisonValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportValue::class); + $this->comparison_values = $arr; + + return $this; + } + + /** + * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getComparisonPercentOfTotalValues() + { + return $this->comparison_percent_of_total_values; + } + + /** + * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * @param array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setComparisonPercentOfTotalValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportValue::class); + $this->comparison_percent_of_total_values = $arr; + + return $this; + } + + /** + * Data for the ABSOLUTE_CHANGE MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAbsoluteChangeValues() + { + return $this->absolute_change_values; + } + + /** + * Data for the ABSOLUTE_CHANGE MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + * @param array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAbsoluteChangeValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportValue::class); + $this->absolute_change_values = $arr; + + return $this; + } + + /** + * Data for the RELATIVE_CHANGE MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRelativeChangeValues() + { + return $this->relative_change_values; + } + + /** + * Data for the RELATIVE_CHANGE MetricValueType. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + * @param array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRelativeChangeValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportValue::class); + $this->relative_change_values = $arr; + + return $this; + } + + /** + * If true, the flag's conditions are met. If false, the flag's + * conditions are not met. flag_values has the same length as + * flags and index i of flag_values represents the flag at index i + * of flags. + * + * Generated from protobuf field repeated bool flag_values = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFlagValues() + { + return $this->flag_values; + } + + /** + * If true, the flag's conditions are met. If false, the flag's + * conditions are not met. flag_values has the same length as + * flags and index i of flag_values represents the flag at index i + * of flags. + * + * Generated from protobuf field repeated bool flag_values = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFlagValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BOOL); + $this->flag_values = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MetricValueGroup::class, \Google\Ads\AdManager\V1\ReportDataTable_MetricValueGroup::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/Row.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/Row.php new file mode 100644 index 000000000000..eb236b0019bb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/Row.php @@ -0,0 +1,136 @@ +google.ads.admanager.v1.ReportDataTable.Row + */ +class Row extends \Google\Protobuf\Internal\Message +{ + /** + * The order of the dimension values is the same as the order of the + * dimensions specified in the request. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + private $dimension_values; + /** + * The length of the metric_value_groups + * field will be equal to the length of the date_ranges field in the + * fetch response. The metric_value_groups field is + * ordered such that each index corresponds to the date_range at the same + * index. For example, given date_ranges [x, y], metric_value_groups will + * have a length of two. The first entry in metric_value_groups represents + * the metrics for date x and the second entry in metric_value_groups + * represents the metrics for date y. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + */ + private $metric_value_groups; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values + * The order of the dimension values is the same as the order of the + * dimensions specified in the request. + * @type array<\Google\Ads\AdManager\V1\ReportDataTable\MetricValueGroup>|\Google\Protobuf\Internal\RepeatedField $metric_value_groups + * The length of the metric_value_groups + * field will be equal to the length of the date_ranges field in the + * fetch response. The metric_value_groups field is + * ordered such that each index corresponds to the date_range at the same + * index. For example, given date_ranges [x, y], metric_value_groups will + * have a length of two. The first entry in metric_value_groups represents + * the metrics for date x and the second entry in metric_value_groups + * represents the metrics for date y. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); + parent::__construct($data); + } + + /** + * The order of the dimension values is the same as the order of the + * dimensions specified in the request. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionValues() + { + return $this->dimension_values; + } + + /** + * The order of the dimension values is the same as the order of the + * dimensions specified in the request. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + * @param array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportValue::class); + $this->dimension_values = $arr; + + return $this; + } + + /** + * The length of the metric_value_groups + * field will be equal to the length of the date_ranges field in the + * fetch response. The metric_value_groups field is + * ordered such that each index corresponds to the date_range at the same + * index. For example, given date_ranges [x, y], metric_value_groups will + * have a length of two. The first entry in metric_value_groups represents + * the metrics for date x and the second entry in metric_value_groups + * represents the metrics for date y. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricValueGroups() + { + return $this->metric_value_groups; + } + + /** + * The length of the metric_value_groups + * field will be equal to the length of the date_ranges field in the + * fetch response. The metric_value_groups field is + * ordered such that each index corresponds to the date_range at the same + * index. For example, given date_ranges [x, y], metric_value_groups will + * have a length of two. The first entry in metric_value_groups represents + * the metrics for date x and the second entry in metric_value_groups + * represents the metrics for date y. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * @param array<\Google\Ads\AdManager\V1\ReportDataTable\MetricValueGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricValueGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDataTable\MetricValueGroup::class); + $this->metric_value_groups = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Row::class, \Google\Ads\AdManager\V1\ReportDataTable_Row::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php new file mode 100644 index 000000000000..2a69b0bcadd9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php @@ -0,0 +1,701 @@ +google.ads.admanager.v1.ReportDefinition + */ +class ReportDefinition extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The list of dimensions to report on. If empty, the report will + * have no dimensions, and any metrics will be totals. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $dimensions; + /** + * Required. The list of metrics to report on. If empty, the report will have + * no metrics. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $metrics; + /** + * Optional. The filters for this report. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $filters; + /** + * Optional. Where to get the time zone for this report. Defaults to using the + * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone + * field in the report definition must also set a time zone. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time_zone_source = 0; + /** + * Optional. If time_zone_source is PROVIDED, this is the time zone to use for + * this report. Leave empty for any other time zone source. Time zone in IANA + * format. For example, "America/New_York". + * + * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time_zone = ''; + /** + * Optional. The ISO 4217 currency code for this report. Defaults to publisher + * currency code if not specified. + * + * Generated from protobuf field string currency_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $currency_code = ''; + /** + * Required. The primary date range of this report. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $date_range = null; + /** + * Optional. The comparison date range of this report. If unspecified, the + * report won't have any comparison metrics. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $comparison_date_range = null; + /** + * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, custom_dimension_key_ids[0] describes + * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. + * + * Generated from protobuf field repeated int64 custom_dimension_key_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $custom_dimension_key_ids; + /** + * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, line_item_custom_field_ids[0] describes + * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. + * + * Generated from protobuf field repeated int64 line_item_custom_field_ids = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $line_item_custom_field_ids; + /** + * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, order_custom_field_ids[0] describes + * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. + * + * Generated from protobuf field repeated int64 order_custom_field_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $order_custom_field_ids; + /** + * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, creative_custom_field_ids[0] describes + * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. + * + * Generated from protobuf field repeated int64 creative_custom_field_ids = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $creative_custom_field_ids; + /** + * Required. The type of this report. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $report_type = 0; + /** + * Optional. Include a time period column to introduce comparison columns in + * the report for each generated period. For example, set to "QUARTERS" here + * to have a column for each quarter present in the primary date range. If + * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter + * column will also include comparison values for its relative previous + * quarter. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time_period_column = 0; + /** + * Optional. List of flags for this report. Used to flag rows in a result set + * based on a set of defined filters. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $flags; + /** + * Optional. Default sorts to apply to this report. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $sorts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $dimensions + * Required. The list of dimensions to report on. If empty, the report will + * have no dimensions, and any metrics will be totals. + * @type array|\Google\Protobuf\Internal\RepeatedField $metrics + * Required. The list of metrics to report on. If empty, the report will have + * no metrics. + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Filter>|\Google\Protobuf\Internal\RepeatedField $filters + * Optional. The filters for this report. + * @type int $time_zone_source + * Optional. Where to get the time zone for this report. Defaults to using the + * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone + * field in the report definition must also set a time zone. + * @type string $time_zone + * Optional. If time_zone_source is PROVIDED, this is the time zone to use for + * this report. Leave empty for any other time zone source. Time zone in IANA + * format. For example, "America/New_York". + * @type string $currency_code + * Optional. The ISO 4217 currency code for this report. Defaults to publisher + * currency code if not specified. + * @type \Google\Ads\AdManager\V1\ReportDefinition\DateRange $date_range + * Required. The primary date range of this report. + * @type \Google\Ads\AdManager\V1\ReportDefinition\DateRange $comparison_date_range + * Optional. The comparison date range of this report. If unspecified, the + * report won't have any comparison metrics. + * @type array|array|\Google\Protobuf\Internal\RepeatedField $custom_dimension_key_ids + * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, custom_dimension_key_ids[0] describes + * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. + * @type array|array|\Google\Protobuf\Internal\RepeatedField $line_item_custom_field_ids + * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, line_item_custom_field_ids[0] describes + * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. + * @type array|array|\Google\Protobuf\Internal\RepeatedField $order_custom_field_ids + * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, order_custom_field_ids[0] describes + * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. + * @type array|array|\Google\Protobuf\Internal\RepeatedField $creative_custom_field_ids + * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, creative_custom_field_ids[0] describes + * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. + * @type int $report_type + * Required. The type of this report. + * @type int $time_period_column + * Optional. Include a time period column to introduce comparison columns in + * the report for each generated period. For example, set to "QUARTERS" here + * to have a column for each quarter present in the primary date range. If + * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter + * column will also include comparison values for its relative previous + * quarter. + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $flags + * Optional. List of flags for this report. Used to flag rows in a result set + * based on a set of defined filters. + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Sort>|\Google\Protobuf\Internal\RepeatedField $sorts + * Optional. Default sorts to apply to this report. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); + parent::__construct($data); + } + + /** + * Required. The list of dimensions to report on. If empty, the report will + * have no dimensions, and any metrics will be totals. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensions() + { + return $this->dimensions; + } + + /** + * Required. The list of dimensions to report on. If empty, the report will + * have no dimensions, and any metrics will be totals. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\ReportDefinition\Dimension::class); + $this->dimensions = $arr; + + return $this; + } + + /** + * Required. The list of metrics to report on. If empty, the report will have + * no metrics. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Required. The list of metrics to report on. If empty, the report will have + * no metrics. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\ReportDefinition\Metric::class); + $this->metrics = $arr; + + return $this; + } + + /** + * Optional. The filters for this report. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Optional. The filters for this report. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Filter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Filter::class); + $this->filters = $arr; + + return $this; + } + + /** + * Optional. Where to get the time zone for this report. Defaults to using the + * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone + * field in the report definition must also set a time zone. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTimeZoneSource() + { + return $this->time_zone_source; + } + + /** + * Optional. Where to get the time zone for this report. Defaults to using the + * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone + * field in the report definition must also set a time zone. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTimeZoneSource($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\TimeZoneSource::class); + $this->time_zone_source = $var; + + return $this; + } + + /** + * Optional. If time_zone_source is PROVIDED, this is the time zone to use for + * this report. Leave empty for any other time zone source. Time zone in IANA + * format. For example, "America/New_York". + * + * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * Optional. If time_zone_source is PROVIDED, this is the time zone to use for + * this report. Leave empty for any other time zone source. Time zone in IANA + * format. For example, "America/New_York". + * + * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * Optional. The ISO 4217 currency code for this report. Defaults to publisher + * currency code if not specified. + * + * Generated from protobuf field string currency_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCurrencyCode() + { + return $this->currency_code; + } + + /** + * Optional. The ISO 4217 currency code for this report. Defaults to publisher + * currency code if not specified. + * + * Generated from protobuf field string currency_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCurrencyCode($var) + { + GPBUtil::checkString($var, True); + $this->currency_code = $var; + + return $this; + } + + /** + * Required. The primary date range of this report. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\ReportDefinition\DateRange|null + */ + public function getDateRange() + { + return $this->date_range; + } + + public function hasDateRange() + { + return isset($this->date_range); + } + + public function clearDateRange() + { + unset($this->date_range); + } + + /** + * Required. The primary date range of this report. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ReportDefinition\DateRange $var + * @return $this + */ + public function setDateRange($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\DateRange::class); + $this->date_range = $var; + + return $this; + } + + /** + * Optional. The comparison date range of this report. If unspecified, the + * report won't have any comparison metrics. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\ReportDefinition\DateRange|null + */ + public function getComparisonDateRange() + { + return $this->comparison_date_range; + } + + public function hasComparisonDateRange() + { + return isset($this->comparison_date_range); + } + + public function clearComparisonDateRange() + { + unset($this->comparison_date_range); + } + + /** + * Optional. The comparison date range of this report. If unspecified, the + * report won't have any comparison metrics. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\ReportDefinition\DateRange $var + * @return $this + */ + public function setComparisonDateRange($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\DateRange::class); + $this->comparison_date_range = $var; + + return $this; + } + + /** + * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, custom_dimension_key_ids[0] describes + * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. + * + * Generated from protobuf field repeated int64 custom_dimension_key_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomDimensionKeyIds() + { + return $this->custom_dimension_key_ids; + } + + /** + * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, custom_dimension_key_ids[0] describes + * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. + * + * Generated from protobuf field repeated int64 custom_dimension_key_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomDimensionKeyIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->custom_dimension_key_ids = $arr; + + return $this; + } + + /** + * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, line_item_custom_field_ids[0] describes + * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. + * + * Generated from protobuf field repeated int64 line_item_custom_field_ids = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLineItemCustomFieldIds() + { + return $this->line_item_custom_field_ids; + } + + /** + * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, line_item_custom_field_ids[0] describes + * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. + * + * Generated from protobuf field repeated int64 line_item_custom_field_ids = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLineItemCustomFieldIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->line_item_custom_field_ids = $arr; + + return $this; + } + + /** + * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, order_custom_field_ids[0] describes + * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. + * + * Generated from protobuf field repeated int64 order_custom_field_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOrderCustomFieldIds() + { + return $this->order_custom_field_ids; + } + + /** + * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, order_custom_field_ids[0] describes + * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. + * + * Generated from protobuf field repeated int64 order_custom_field_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOrderCustomFieldIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->order_custom_field_ids = $arr; + + return $this; + } + + /** + * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, creative_custom_field_ids[0] describes + * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. + * + * Generated from protobuf field repeated int64 creative_custom_field_ids = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCreativeCustomFieldIds() + { + return $this->creative_custom_field_ids; + } + + /** + * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* + * dimensions. The index of this repeated field corresponds to the index on + * each dimension. For example, creative_custom_field_ids[0] describes + * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. + * + * Generated from protobuf field repeated int64 creative_custom_field_ids = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCreativeCustomFieldIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->creative_custom_field_ids = $arr; + + return $this; + } + + /** + * Required. The type of this report. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getReportType() + { + return $this->report_type; + } + + /** + * Required. The type of this report. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setReportType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\ReportType::class); + $this->report_type = $var; + + return $this; + } + + /** + * Optional. Include a time period column to introduce comparison columns in + * the report for each generated period. For example, set to "QUARTERS" here + * to have a column for each quarter present in the primary date range. If + * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter + * column will also include comparison values for its relative previous + * quarter. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTimePeriodColumn() + { + return $this->time_period_column; + } + + /** + * Optional. Include a time period column to introduce comparison columns in + * the report for each generated period. For example, set to "QUARTERS" here + * to have a column for each quarter present in the primary date range. If + * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter + * column will also include comparison values for its relative previous + * quarter. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTimePeriodColumn($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\TimePeriodColumn::class); + $this->time_period_column = $var; + + return $this; + } + + /** + * Optional. List of flags for this report. Used to flag rows in a result set + * based on a set of defined filters. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFlags() + { + return $this->flags; + } + + /** + * Optional. List of flags for this report. Used to flag rows in a result set + * based on a set of defined filters. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFlags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Flag::class); + $this->flags = $arr; + + return $this; + } + + /** + * Optional. Default sorts to apply to this report. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSorts() + { + return $this->sorts; + } + + /** + * Optional. Default sorts to apply to this report. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Sort>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSorts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Sort::class); + $this->sorts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange.php new file mode 100644 index 000000000000..61b9a84b1375 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange.php @@ -0,0 +1,111 @@ +google.ads.admanager.v1.ReportDefinition.DateRange + */ +class DateRange extends \Google\Protobuf\Internal\Message +{ + protected $date_range_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange $fixed + * A fixed date range. + * @type int $relative + * A relative date range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); + parent::__construct($data); + } + + /** + * A fixed date range. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + * @return \Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange|null + */ + public function getFixed() + { + return $this->readOneof(1); + } + + public function hasFixed() + { + return $this->hasOneof(1); + } + + /** + * A fixed date range. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + * @param \Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange $var + * @return $this + */ + public function setFixed($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A relative date range. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * @return int + */ + public function getRelative() + { + return $this->readOneof(2); + } + + public function hasRelative() + { + return $this->hasOneof(2); + } + + /** + * A relative date range. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * @param int $var + * @return $this + */ + public function setRelative($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\DateRange\RelativeDateRange::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getDateRangeType() + { + return $this->whichOneof("date_range_type"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DateRange::class, \Google\Ads\AdManager\V1\ReportDefinition_DateRange::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/FixedDateRange.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/FixedDateRange.php new file mode 100644 index 000000000000..877afeb91686 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/FixedDateRange.php @@ -0,0 +1,124 @@ +google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + */ +class FixedDateRange extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The start date of this date range. + * + * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $start_date = null; + /** + * Required. The end date (inclusive) of this date range. + * + * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $end_date = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\Date $start_date + * Required. The start date of this date range. + * @type \Google\Type\Date $end_date + * Required. The end date (inclusive) of this date range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); + parent::__construct($data); + } + + /** + * Required. The start date of this date range. + * + * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\Date|null + */ + public function getStartDate() + { + return $this->start_date; + } + + public function hasStartDate() + { + return isset($this->start_date); + } + + public function clearStartDate() + { + unset($this->start_date); + } + + /** + * Required. The start date of this date range. + * + * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\Date $var + * @return $this + */ + public function setStartDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->start_date = $var; + + return $this; + } + + /** + * Required. The end date (inclusive) of this date range. + * + * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\Date|null + */ + public function getEndDate() + { + return $this->end_date; + } + + public function hasEndDate() + { + return isset($this->end_date); + } + + public function clearEndDate() + { + unset($this->end_date); + } + + /** + * Required. The end date (inclusive) of this date range. + * + * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\Date $var + * @return $this + */ + public function setEndDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->end_date = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FixedDateRange::class, \Google\Ads\AdManager\V1\ReportDefinition_DateRange_FixedDateRange::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/RelativeDateRange.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/RelativeDateRange.php new file mode 100644 index 000000000000..c96bba1e34b6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/RelativeDateRange.php @@ -0,0 +1,340 @@ +google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange + */ +class RelativeDateRange +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum RELATIVE_DATE_RANGE_UNSPECIFIED = 0; + */ + const RELATIVE_DATE_RANGE_UNSPECIFIED = 0; + /** + * The date the report is run. + * + * Generated from protobuf enum TODAY = 1; + */ + const TODAY = 1; + /** + * The date a day before the date that the report is run. + * + * Generated from protobuf enum YESTERDAY = 2; + */ + const YESTERDAY = 2; + /** + * The full week in which this report is run. Could include dates in + * the future. + * + * Generated from protobuf enum THIS_WEEK = 3; + */ + const THIS_WEEK = 3; + /** + * From the beginning of the calendar week (Monday to Sunday) in which the + * up to and including the day the report is run. + * + * Generated from protobuf enum THIS_WEEK_TO_DATE = 29; + */ + const THIS_WEEK_TO_DATE = 29; + /** + * The full month in which this report is run. Could include dates in + * the future. + * + * Generated from protobuf enum THIS_MONTH = 4; + */ + const THIS_MONTH = 4; + /** + * From the beginning of the calendar month in which the report is run, to + * up to and including the day the report is run. + * + * Generated from protobuf enum THIS_MONTH_TO_DATE = 26; + */ + const THIS_MONTH_TO_DATE = 26; + /** + * The full quarter in which this report is run. Could include dates + * in the future. + * + * Generated from protobuf enum THIS_QUARTER = 5; + */ + const THIS_QUARTER = 5; + /** + * From the beginning of the calendar quarter in which the report is run, + * up to and including the day the report is run. + * + * Generated from protobuf enum THIS_QUARTER_TO_DATE = 27; + */ + const THIS_QUARTER_TO_DATE = 27; + /** + * The full year in which this report is run. Could include dates in + * the future. + * + * Generated from protobuf enum THIS_YEAR = 6; + */ + const THIS_YEAR = 6; + /** + * From the beginning of the calendar year in which the report is run, to + * up to and including the day the report is run. + * + * Generated from protobuf enum THIS_YEAR_TO_DATE = 28; + */ + const THIS_YEAR_TO_DATE = 28; + /** + * The entire previous calendar week, Monday to Sunday (inclusive), + * preceding the calendar week the report is run. + * + * Generated from protobuf enum LAST_WEEK = 7; + */ + const LAST_WEEK = 7; + /** + * The entire previous calendar month preceding the calendar month the + * report is run. + * + * Generated from protobuf enum LAST_MONTH = 8; + */ + const LAST_MONTH = 8; + /** + * The entire previous calendar quarter preceding the calendar quarter the + * report is run. + * + * Generated from protobuf enum LAST_QUARTER = 9; + */ + const LAST_QUARTER = 9; + /** + * The entire previous calendar year preceding the calendar year the + * report is run. + * + * Generated from protobuf enum LAST_YEAR = 10; + */ + const LAST_YEAR = 10; + /** + * The 7 days preceding the day the report is run. + * + * Generated from protobuf enum LAST_7_DAYS = 11; + */ + const LAST_7_DAYS = 11; + /** + * The 30 days preceding the day the report is run. + * + * Generated from protobuf enum LAST_30_DAYS = 12; + */ + const LAST_30_DAYS = 12; + /** + * The 60 days preceding the day the report is run. + * + * Generated from protobuf enum LAST_60_DAYS = 13; + */ + const LAST_60_DAYS = 13; + /** + * The 90 days preceding the day the report is run. + * + * Generated from protobuf enum LAST_90_DAYS = 14; + */ + const LAST_90_DAYS = 14; + /** + * The 180 days preceding the day the report is run. + * + * Generated from protobuf enum LAST_180_DAYS = 15; + */ + const LAST_180_DAYS = 15; + /** + * The 360 days preceding the day the report is run. + * + * Generated from protobuf enum LAST_360_DAYS = 16; + */ + const LAST_360_DAYS = 16; + /** + * The 365 days preceding the day the report is run. + * + * Generated from protobuf enum LAST_365_DAYS = 17; + */ + const LAST_365_DAYS = 17; + /** + * The entire previous 3 calendar months preceding the calendar month the + * report is run. + * + * Generated from protobuf enum LAST_3_MONTHS = 18; + */ + const LAST_3_MONTHS = 18; + /** + * The entire previous 6 calendar months preceding the calendar month the + * report is run. + * + * Generated from protobuf enum LAST_6_MONTHS = 19; + */ + const LAST_6_MONTHS = 19; + /** + * The entire previous 6 calendar months preceding the calendar month the + * report is run. + * + * Generated from protobuf enum LAST_12_MONTHS = 20; + */ + const LAST_12_MONTHS = 20; + /** + * From 3 years before the report is run, to the day before the report is + * run, inclusive. + * + * Generated from protobuf enum ALL_AVAILABLE = 21; + */ + const ALL_AVAILABLE = 21; + /** + * The date a day after the date that the report is run. + * + * Generated from protobuf enum TOMORROW = 30; + */ + const TOMORROW = 30; + /** + * The 90 days following the day the report is run. + * + * Generated from protobuf enum NEXT_90_DAYS = 31; + */ + const NEXT_90_DAYS = 31; + /** + * The entire calendar month following the calendar month the report is + * run. + * + * Generated from protobuf enum NEXT_MONTH = 32; + */ + const NEXT_MONTH = 32; + /** + * The entire 3 calendar months following the calendar month the report + * is run. + * + * Generated from protobuf enum NEXT_3_MONTHS = 33; + */ + const NEXT_3_MONTHS = 33; + /** + * The entire 12 calendar months following the calendar month the report + * is run. + * + * Generated from protobuf enum NEXT_12_MONTHS = 34; + */ + const NEXT_12_MONTHS = 34; + /** + * The entire calendar week, Monday to Sunday (inclusive), following the + * calendar week the report is run. + * + * Generated from protobuf enum NEXT_WEEK = 35; + */ + const NEXT_WEEK = 35; + /** + * The entire calendar quarter following the calendar quarter the report + * is run. + * + * Generated from protobuf enum NEXT_QUARTER = 36; + */ + const NEXT_QUARTER = 36; + /** + * From the date a day after the date that the report is run, to the end + * of the calendar month following the calendar month the report is run. + * + * Generated from protobuf enum TO_END_OF_NEXT_MONTH = 37; + */ + const TO_END_OF_NEXT_MONTH = 37; + /** + * Only valid when used in the comparison_date_range field. The complete + * period preceding the date period provided in date_range. + * In the case where date_range is a FixedDateRange of N days, this will + * be a period of N days where the end date is the date preceding the + * start date of the date_range. + * In the case where date_range is a RelativeDateRange, this will be a + * period of the same timeframe preceding the date_range. In the case + * where the date_range does not capture the full period because a report + * is run in the middle of that period, this will still be the full + * preceding period. For example, if date_range is THIS_WEEK, but the + * report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but + * PREVIOUS_PERIOD will be Monday - Sunday. + * + * Generated from protobuf enum PREVIOUS_PERIOD = 22; + */ + const PREVIOUS_PERIOD = 22; + /** + * Only valid when used in the comparison_date_range field. The period + * starting 1 year prior to the date period provided in date_range. + * In the case where date_range is a FixedDateRange, this will be a date + * range starting 1 year prior to the date_range start date and ending 1 + * year prior to the date_range end date. + * In the case where date_range is a RelativeDateRange, this will be a + * period of the same timeframe exactly 1 year prior to the date_range. + * In the case where the date_range does not capture the full period + * because a report is run in the middle of that period, this will still + * be the full period 1 year prior. For example, if date range is + * THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be + * Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday - + * Sunday. + * + * Generated from protobuf enum SAME_PERIOD_PREVIOUS_YEAR = 24; + */ + const SAME_PERIOD_PREVIOUS_YEAR = 24; + + private static $valueToName = [ + self::RELATIVE_DATE_RANGE_UNSPECIFIED => 'RELATIVE_DATE_RANGE_UNSPECIFIED', + self::TODAY => 'TODAY', + self::YESTERDAY => 'YESTERDAY', + self::THIS_WEEK => 'THIS_WEEK', + self::THIS_WEEK_TO_DATE => 'THIS_WEEK_TO_DATE', + self::THIS_MONTH => 'THIS_MONTH', + self::THIS_MONTH_TO_DATE => 'THIS_MONTH_TO_DATE', + self::THIS_QUARTER => 'THIS_QUARTER', + self::THIS_QUARTER_TO_DATE => 'THIS_QUARTER_TO_DATE', + self::THIS_YEAR => 'THIS_YEAR', + self::THIS_YEAR_TO_DATE => 'THIS_YEAR_TO_DATE', + self::LAST_WEEK => 'LAST_WEEK', + self::LAST_MONTH => 'LAST_MONTH', + self::LAST_QUARTER => 'LAST_QUARTER', + self::LAST_YEAR => 'LAST_YEAR', + self::LAST_7_DAYS => 'LAST_7_DAYS', + self::LAST_30_DAYS => 'LAST_30_DAYS', + self::LAST_60_DAYS => 'LAST_60_DAYS', + self::LAST_90_DAYS => 'LAST_90_DAYS', + self::LAST_180_DAYS => 'LAST_180_DAYS', + self::LAST_360_DAYS => 'LAST_360_DAYS', + self::LAST_365_DAYS => 'LAST_365_DAYS', + self::LAST_3_MONTHS => 'LAST_3_MONTHS', + self::LAST_6_MONTHS => 'LAST_6_MONTHS', + self::LAST_12_MONTHS => 'LAST_12_MONTHS', + self::ALL_AVAILABLE => 'ALL_AVAILABLE', + self::TOMORROW => 'TOMORROW', + self::NEXT_90_DAYS => 'NEXT_90_DAYS', + self::NEXT_MONTH => 'NEXT_MONTH', + self::NEXT_3_MONTHS => 'NEXT_3_MONTHS', + self::NEXT_12_MONTHS => 'NEXT_12_MONTHS', + self::NEXT_WEEK => 'NEXT_WEEK', + self::NEXT_QUARTER => 'NEXT_QUARTER', + self::TO_END_OF_NEXT_MONTH => 'TO_END_OF_NEXT_MONTH', + self::PREVIOUS_PERIOD => 'PREVIOUS_PERIOD', + self::SAME_PERIOD_PREVIOUS_YEAR => 'SAME_PERIOD_PREVIOUS_YEAR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RelativeDateRange::class, \Google\Ads\AdManager\V1\ReportDefinition_DateRange_RelativeDateRange::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Dimension.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Dimension.php new file mode 100644 index 000000000000..d27508310b4e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Dimension.php @@ -0,0 +1,6827 @@ +google.ads.admanager.v1.ReportDefinition.Dimension + */ +class Dimension +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum DIMENSION_UNSPECIFIED = 0; + */ + const DIMENSION_UNSPECIFIED = 0; + /** + * The measurement source of a video ad. + * Corresponds to "Active View measurement source value" in the Ad Manager + * UI (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum ACTIVE_VIEW_MEASUREMENT_SOURCE = 575; + */ + const ACTIVE_VIEW_MEASUREMENT_SOURCE = 575; + /** + * Active View measurement source localized name. + * Corresponds to "Active View measurement source" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME = 576; + */ + const ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME = 576; + /** + * Advertiser credit status ENUM + * Corresponds to "Advertiser credit status value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum ADVERTISER_CREDIT_STATUS = 475; + */ + const ADVERTISER_CREDIT_STATUS = 475; + /** + * Advertiser credit status locallized name + * Corresponds to "Advertiser credit status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum ADVERTISER_CREDIT_STATUS_NAME = 476; + */ + const ADVERTISER_CREDIT_STATUS_NAME = 476; + /** + * The domain name of the advertiser. + * Corresponds to "Advertiser domain" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum ADVERTISER_DOMAIN_NAME = 242; + */ + const ADVERTISER_DOMAIN_NAME = 242; + /** + * The ID used in an external system for advertiser identification + * Corresponds to "Advertiser external ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum ADVERTISER_EXTERNAL_ID = 228; + */ + const ADVERTISER_EXTERNAL_ID = 228; + /** + * The ID of an advertiser company assigned to an order + * Corresponds to "Advertiser ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum ADVERTISER_ID = 131; + */ + const ADVERTISER_ID = 131; + /** + * Labels applied to the advertiser + * can be used for either competitive exclusion or ad exclusion + * Corresponds to "Advertiser labels" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum ADVERTISER_LABELS = 230; + */ + const ADVERTISER_LABELS = 230; + /** + * Label ids applied to the advertiser + * can be used for either competitive exclusion or ad exclusion + * Corresponds to "Advertiser label IDs" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER_LIST` + * + * Generated from protobuf enum ADVERTISER_LABEL_IDS = 229; + */ + const ADVERTISER_LABEL_IDS = 229; + /** + * The name of an advertiser company assigned to an order + * Corresponds to "Advertiser" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum ADVERTISER_NAME = 132; + */ + const ADVERTISER_NAME = 132; + /** + * The name of the contact associated with an advertiser company + * Corresponds to "Advertiser primary contact" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum ADVERTISER_PRIMARY_CONTACT = 227; + */ + const ADVERTISER_PRIMARY_CONTACT = 227; + /** + * Advertiser status ENUM + * Corresponds to "Advertiser status value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum ADVERTISER_STATUS = 471; + */ + const ADVERTISER_STATUS = 471; + /** + * Advertiser status locallized name + * Corresponds to "Advertiser status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum ADVERTISER_STATUS_NAME = 472; + */ + const ADVERTISER_STATUS_NAME = 472; + /** + * Advertiser type ENUM + * Corresponds to "Advertiser type value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum ADVERTISER_TYPE = 473; + */ + const ADVERTISER_TYPE = 473; + /** + * Advertiser type locallized name + * Corresponds to "Advertiser type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum ADVERTISER_TYPE_NAME = 474; + */ + const ADVERTISER_TYPE_NAME = 474; + /** + * The category of an advertiser, such as Arts & Entertainment or Travel & + * Tourism. + * Corresponds to "Advertiser vertical" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum ADVERTISER_VERTICAL = 580; + */ + const ADVERTISER_VERTICAL = 580; + /** + * Classification of different Ad Exchange products. + * Corresponds to "Ad Exchange product value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum ADX_PRODUCT = 499; + */ + const ADX_PRODUCT = 499; + /** + * Localized name of the classification of different Ad Exchange + * products. + * Corresponds to "Ad Exchange product" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum ADX_PRODUCT_NAME = 500; + */ + const ADX_PRODUCT_NAME = 500; + /** + * Ad experiences type. + * Corresponds to "Ad experiences value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum AD_EXPERIENCES_TYPE = 641; + */ + const AD_EXPERIENCES_TYPE = 641; + /** + * Localized name of the Ad experiences type. + * Corresponds to "Ad experiences" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AD_EXPERIENCES_TYPE_NAME = 642; + */ + const AD_EXPERIENCES_TYPE_NAME = 642; + /** + * Shows an ENUM value describing whether a given piece of publisher + * inventory was above (ATF) or below the fold (BTF) of a page. + * Corresponds to "Ad location value" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum AD_LOCATION = 390; + */ + const AD_LOCATION = 390; + /** + * Shows a localized string describing whether a given piece of publisher + * inventory was above (ATF) or below the fold (BTF) of a page. + * Corresponds to "Ad location" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AD_LOCATION_NAME = 391; + */ + const AD_LOCATION_NAME = 391; + /** + * The domain of the ad technology provider associated with the bid. + * Corresponds to "Ad technology provider domain" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AD_TECHNOLOGY_PROVIDER_DOMAIN = 620; + */ + const AD_TECHNOLOGY_PROVIDER_DOMAIN = 620; + /** + * The ID of the ad technology provider associated with the bid. + * Corresponds to "Ad technology provider ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_TECHNOLOGY_PROVIDER_ID = 621; + */ + const AD_TECHNOLOGY_PROVIDER_ID = 621; + /** + * The name of the ad technology provider associated with the bid. + * Corresponds to "Ad technology provider" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AD_TECHNOLOGY_PROVIDER_NAME = 622; + */ + const AD_TECHNOLOGY_PROVIDER_NAME = 622; + /** + * Segmentation of ad types. + * Corresponds to "Ad type value" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum AD_TYPE = 497; + */ + const AD_TYPE = 497; + /** + * Localized name of the ad type. + * Corresponds to "Ad type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AD_TYPE_NAME = 498; + */ + const AD_TYPE_NAME = 498; + /** + * The code of the ad unit where the ad was requested. + * Corresponds to "Ad unit code" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE = 64; + */ + const AD_UNIT_CODE = 64; + /** + * The code of the first level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 1" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_1 = 65; + */ + const AD_UNIT_CODE_LEVEL_1 = 65; + /** + * The code of the tenth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 10" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_10 = 74; + */ + const AD_UNIT_CODE_LEVEL_10 = 74; + /** + * The code of the eleventh level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 11" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_11 = 75; + */ + const AD_UNIT_CODE_LEVEL_11 = 75; + /** + * The code of the twelfth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 12" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_12 = 76; + */ + const AD_UNIT_CODE_LEVEL_12 = 76; + /** + * The code of the thirteenth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 13" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_13 = 77; + */ + const AD_UNIT_CODE_LEVEL_13 = 77; + /** + * The code of the fourteenth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 14" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_14 = 78; + */ + const AD_UNIT_CODE_LEVEL_14 = 78; + /** + * The code of the fifteenth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 15" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_15 = 79; + */ + const AD_UNIT_CODE_LEVEL_15 = 79; + /** + * The code of the sixteenth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 16" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_16 = 80; + */ + const AD_UNIT_CODE_LEVEL_16 = 80; + /** + * The code of the second level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 2" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_2 = 66; + */ + const AD_UNIT_CODE_LEVEL_2 = 66; + /** + * The code of the third level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 3" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_3 = 67; + */ + const AD_UNIT_CODE_LEVEL_3 = 67; + /** + * The code of the fourth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 4" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_4 = 68; + */ + const AD_UNIT_CODE_LEVEL_4 = 68; + /** + * The code of the fifth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 5" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_5 = 69; + */ + const AD_UNIT_CODE_LEVEL_5 = 69; + /** + * The code of the sixth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 6" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_6 = 70; + */ + const AD_UNIT_CODE_LEVEL_6 = 70; + /** + * The code of the seventh level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 7" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_7 = 71; + */ + const AD_UNIT_CODE_LEVEL_7 = 71; + /** + * The code of the eighth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 8" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_8 = 72; + */ + const AD_UNIT_CODE_LEVEL_8 = 72; + /** + * The code of the ninth level ad unit of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit code level 9" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_CODE_LEVEL_9 = 73; + */ + const AD_UNIT_CODE_LEVEL_9 = 73; + /** + * The ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `REACH` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID = 25; + */ + const AD_UNIT_ID = 25; + /** + * The full hierarchy of ad unit IDs where the ad was requested, from + * root to leaf, excluding the root ad unit ID. + * Corresponds to "Ad unit ID (all levels)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `REACH` + * Data format: `IDENTIFIER_LIST` + * + * Generated from protobuf enum AD_UNIT_ID_ALL_LEVEL = 27; + */ + const AD_UNIT_ID_ALL_LEVEL = 27; + /** + * The first level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 1" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_1 = 30; + */ + const AD_UNIT_ID_LEVEL_1 = 30; + /** + * The tenth level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 10" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_10 = 48; + */ + const AD_UNIT_ID_LEVEL_10 = 48; + /** + * The eleventh level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 11" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_11 = 50; + */ + const AD_UNIT_ID_LEVEL_11 = 50; + /** + * The twelfth level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 12" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_12 = 52; + */ + const AD_UNIT_ID_LEVEL_12 = 52; + /** + * The thirteenth level ad unit ID of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit ID level 13" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_13 = 54; + */ + const AD_UNIT_ID_LEVEL_13 = 54; + /** + * The fourteenth level ad unit ID of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit ID level 14" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_14 = 56; + */ + const AD_UNIT_ID_LEVEL_14 = 56; + /** + * The fifteenth level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 15" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_15 = 58; + */ + const AD_UNIT_ID_LEVEL_15 = 58; + /** + * The sixteenth level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 16" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_16 = 60; + */ + const AD_UNIT_ID_LEVEL_16 = 60; + /** + * The second level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 2" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_2 = 32; + */ + const AD_UNIT_ID_LEVEL_2 = 32; + /** + * The third level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 3" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_3 = 34; + */ + const AD_UNIT_ID_LEVEL_3 = 34; + /** + * The fourth level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 4" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_4 = 36; + */ + const AD_UNIT_ID_LEVEL_4 = 36; + /** + * The fifth level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 5" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_5 = 38; + */ + const AD_UNIT_ID_LEVEL_5 = 38; + /** + * The sixth level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 6" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_6 = 40; + */ + const AD_UNIT_ID_LEVEL_6 = 40; + /** + * The seventh level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 7" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_7 = 42; + */ + const AD_UNIT_ID_LEVEL_7 = 42; + /** + * The eighth level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 8" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_8 = 44; + */ + const AD_UNIT_ID_LEVEL_8 = 44; + /** + * The ninth level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID level 9" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_LEVEL_9 = 46; + */ + const AD_UNIT_ID_LEVEL_9 = 46; + /** + * The top-level ad unit ID of the ad unit where the ad was requested. + * Corresponds to "Ad unit ID (top level)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AD_UNIT_ID_TOP_LEVEL = 142; + */ + const AD_UNIT_ID_TOP_LEVEL = 142; + /** + * The name of the ad unit where the ad was requested. + * Corresponds to "Ad unit" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME = 26; + */ + const AD_UNIT_NAME = 26; + /** + * The full hierarchy of ad unit names where the ad was requested, from + * root to leaf, excluding the root ad unit name. + * Corresponds to "Ad unit (all levels)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `REACH` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum AD_UNIT_NAME_ALL_LEVEL = 29; + */ + const AD_UNIT_NAME_ALL_LEVEL = 29; + /** + * The first level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 1" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_1 = 31; + */ + const AD_UNIT_NAME_LEVEL_1 = 31; + /** + * The tenth level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 10" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_10 = 49; + */ + const AD_UNIT_NAME_LEVEL_10 = 49; + /** + * The eleventh level ad unit name of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit level 11" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_11 = 51; + */ + const AD_UNIT_NAME_LEVEL_11 = 51; + /** + * The twelfth level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 12" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_12 = 53; + */ + const AD_UNIT_NAME_LEVEL_12 = 53; + /** + * The thirteenth level ad unit name of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit level 13" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_13 = 55; + */ + const AD_UNIT_NAME_LEVEL_13 = 55; + /** + * The fourteenth level ad unit name of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit level 14" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_14 = 57; + */ + const AD_UNIT_NAME_LEVEL_14 = 57; + /** + * The fifteenth level ad unit name of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit level 15" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_15 = 59; + */ + const AD_UNIT_NAME_LEVEL_15 = 59; + /** + * The sixteenth level ad unit name of the ad unit where the ad was + * requested. + * Corresponds to "Ad unit level 16" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_16 = 61; + */ + const AD_UNIT_NAME_LEVEL_16 = 61; + /** + * The second level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 2" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_2 = 33; + */ + const AD_UNIT_NAME_LEVEL_2 = 33; + /** + * The third level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 3" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_3 = 35; + */ + const AD_UNIT_NAME_LEVEL_3 = 35; + /** + * The fourth level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 4" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_4 = 37; + */ + const AD_UNIT_NAME_LEVEL_4 = 37; + /** + * The fifth level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 5" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_5 = 39; + */ + const AD_UNIT_NAME_LEVEL_5 = 39; + /** + * The sixth level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 6" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_6 = 41; + */ + const AD_UNIT_NAME_LEVEL_6 = 41; + /** + * The seventh level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 7" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_7 = 43; + */ + const AD_UNIT_NAME_LEVEL_7 = 43; + /** + * The eighth level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 8" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_8 = 45; + */ + const AD_UNIT_NAME_LEVEL_8 = 45; + /** + * The ninth level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit level 9" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_LEVEL_9 = 47; + */ + const AD_UNIT_NAME_LEVEL_9 = 47; + /** + * The top-level ad unit name of the ad unit where the ad was requested. + * Corresponds to "Ad unit (top level)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_NAME_TOP_LEVEL = 143; + */ + const AD_UNIT_NAME_TOP_LEVEL = 143; + /** + * The reward amount of the ad unit where the ad was requested. + * Corresponds to "Ad unit reward amount" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `REACH` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_UNIT_REWARD_AMOUNT = 63; + */ + const AD_UNIT_REWARD_AMOUNT = 63; + /** + * The reward type of the ad unit where the ad was requested. + * Corresponds to "Ad unit reward type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_REWARD_TYPE = 62; + */ + const AD_UNIT_REWARD_TYPE = 62; + /** + * The status of the ad unit + * Corresponds to "Ad unit status value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum AD_UNIT_STATUS = 206; + */ + const AD_UNIT_STATUS = 206; + /** + * The name of the status of the ad unit + * Corresponds to "Ad unit status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum AD_UNIT_STATUS_NAME = 207; + */ + const AD_UNIT_STATUS_NAME = 207; + /** + * The ID of an agency at level 1 of agency hierarchy. + * Corresponds to "Agency ID (Level 1)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AGENCY_LEVEL_1_ID = 565; + */ + const AGENCY_LEVEL_1_ID = 565; + /** + * The name of an agency at level 1 of agency hierarchy. + * Corresponds to "Agency (Level 1)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AGENCY_LEVEL_1_NAME = 566; + */ + const AGENCY_LEVEL_1_NAME = 566; + /** + * The ID of an agency at level 2 of agency hierarchy. + * Corresponds to "Agency ID (Level 2)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AGENCY_LEVEL_2_ID = 567; + */ + const AGENCY_LEVEL_2_ID = 567; + /** + * The name of an agency at level 2 of agency hierarchy. + * Corresponds to "Agency (Level 2)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AGENCY_LEVEL_2_NAME = 568; + */ + const AGENCY_LEVEL_2_NAME = 568; + /** + * The ID of an agency at level 3 of agency hierarchy. + * Corresponds to "Agency ID (Level 3)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AGENCY_LEVEL_3_ID = 569; + */ + const AGENCY_LEVEL_3_ID = 569; + /** + * The name of an agency at level 3 of agency hierarchy. + * Corresponds to "Agency (Level 3)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AGENCY_LEVEL_3_NAME = 570; + */ + const AGENCY_LEVEL_3_NAME = 570; + /** + * User age bracket enum. + * Corresponds to "Age bracket value" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum AGE_BRACKET = 508; + */ + const AGE_BRACKET = 508; + /** + * Localized user age bracket returned from Google Analytics. For example, + * "18-24", "25-34", "35-44", "45-54", "55-64", "65+". + * Corresponds to "Age bracket" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AGE_BRACKET_NAME = 582; + */ + const AGE_BRACKET_NAME = 582; + /** + * Enum value for App Tracking Transparency consent status. + * Corresponds to "App Tracking Transparency consent status value" in the Ad + * Manager UI (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum APP_TRACKING_TRANSPARENCY_CONSENT_STATUS = 442; + */ + const APP_TRACKING_TRANSPARENCY_CONSENT_STATUS = 442; + /** + * Localized string value for App Tracking Transparency consent status. + * Corresponds to "App Tracking Transparency consent status" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME = 443; + */ + const APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME = 443; + /** + * The app version. + * Corresponds to "App version" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum APP_VERSION = 392; + */ + const APP_VERSION = 392; + /** + * The name of Auction Package deal + * Corresponds to "Auction package deal" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AUCTION_PACKAGE_DEAL = 579; + */ + const AUCTION_PACKAGE_DEAL = 579; + /** + * The ID of Auction Package deal + * Corresponds to "Auction package deal ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AUCTION_PACKAGE_DEAL_ID = 571; + */ + const AUCTION_PACKAGE_DEAL_ID = 571; + /** + * ID of targeted audience segment, including all first-party and + * third-party segments that matched the user on the winning line item. + * Corresponds to "Audience segment ID (targeted)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum AUDIENCE_SEGMENT_ID_TARGETED = 584; + */ + const AUDIENCE_SEGMENT_ID_TARGETED = 584; + /** + * Name of targeted audience segment, including all first-party and + * third-party segments that matched the user on the winning line item. + * Corresponds to "Audience segment (targeted)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AUDIENCE_SEGMENT_TARGETED = 585; + */ + const AUDIENCE_SEGMENT_TARGETED = 585; + /** + * Enum value of Auto refreshed traffic. + * Corresponds to "Auto refreshed traffic value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum AUTO_REFRESHED_TRAFFIC = 421; + */ + const AUTO_REFRESHED_TRAFFIC = 421; + /** + * Indicates if the traffic is from auto-refreshed ad requests. + * Corresponds to "Auto refreshed traffic" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum AUTO_REFRESHED_TRAFFIC_NAME = 422; + */ + const AUTO_REFRESHED_TRAFFIC_NAME = 422; + /** + * The encrypted version of BIDDER_ID. + * Corresponds to "Bidder encrypted ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum BIDDER_ENCRYPTED_ID = 493; + */ + const BIDDER_ENCRYPTED_ID = 493; + /** + * The name of the bidder. + * Corresponds to "Bidder" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum BIDDER_NAME = 494; + */ + const BIDDER_NAME = 494; + /** + * The cpm range within which a bid falls. + * Corresponds to "Bid Range" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `BID_RANGE` + * + * Generated from protobuf enum BID_RANGE = 679; + */ + const BID_RANGE = 679; + /** + * The reason a bid was rejected. + * Corresponds to "Bid rejection reason value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum BID_REJECTION_REASON = 599; + */ + const BID_REJECTION_REASON = 599; + /** + * The localized name of the reason a bid was rejected. + * Corresponds to "Bid rejection reason" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum BID_REJECTION_REASON_NAME = 600; + */ + const BID_REJECTION_REASON_NAME = 600; + /** + * The amount of information about the Publisher's page sent to the buyer + * who purchased the impressions. + * Corresponds to "Branding type value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum BRANDING_TYPE = 383; + */ + const BRANDING_TYPE = 383; + /** + * The localized version of branding type, the amount of information about + * the Publisher's page sent to the buyer who purchased the impressions. + * Corresponds to "Branding type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum BRANDING_TYPE_NAME = 384; + */ + const BRANDING_TYPE_NAME = 384; + /** + * Browser category. + * Corresponds to "Browser category value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `ENUM` + * + * Generated from protobuf enum BROWSER_CATEGORY = 119; + */ + const BROWSER_CATEGORY = 119; + /** + * Browser category name. + * Corresponds to "Browser category" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum BROWSER_CATEGORY_NAME = 120; + */ + const BROWSER_CATEGORY_NAME = 120; + /** + * The ID of the browser. + * Corresponds to "Browser ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum BROWSER_ID = 235; + */ + const BROWSER_ID = 235; + /** + * The name of the browser. + * Corresponds to "Browser" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum BROWSER_NAME = 236; + */ + const BROWSER_NAME = 236; + /** + * The ID of the buyer network. + * Corresponds to "Buyer network ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum BUYER_NETWORK_ID = 448; + */ + const BUYER_NETWORK_ID = 448; + /** + * The name of the buyer network. + * Corresponds to "Buyer network" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum BUYER_NETWORK_NAME = 449; + */ + const BUYER_NETWORK_NAME = 449; + /** + * The callout status category in the Ads traffic navigator report. + * Corresponds to "Callout status category value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: + * Data format: `ENUM` + * + * Generated from protobuf enum CALLOUT_STATUS_CATEGORY = 588; + */ + const CALLOUT_STATUS_CATEGORY = 588; + /** + * The callout status category name in the Ads traffic navigator report. + * Corresponds to "Callout status category" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `STRING` + * + * Generated from protobuf enum CALLOUT_STATUS_CATEGORY_NAME = 589; + */ + const CALLOUT_STATUS_CATEGORY_NAME = 589; + /** + * Mobile carrier ID. + * Corresponds to "Carrier ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CARRIER_ID = 369; + */ + const CARRIER_ID = 369; + /** + * Name of the mobile carrier. + * Corresponds to "Carrier" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CARRIER_NAME = 368; + */ + const CARRIER_NAME = 368; + /** + * Inventory segmentation by channel. + * Corresponds to "Channel" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CHANNEL = 501; + */ + const CHANNEL = 501; + /** + * Child Publisher Network Code + * Corresponds to "Child network code" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CHILD_NETWORK_CODE = 542; + */ + const CHILD_NETWORK_CODE = 542; + /** + * Child Publisher Network ID + * Corresponds to "Child network ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CHILD_NETWORK_ID = 544; + */ + const CHILD_NETWORK_ID = 544; + /** + * Child Partner Network Name + * Corresponds to "Child network" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CHILD_PARTNER_NAME = 543; + */ + const CHILD_PARTNER_NAME = 543; + /** + * The criteria ID of the city in which the ad served. + * Corresponds to "City ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CITY_ID = 459; + */ + const CITY_ID = 459; + /** + * The name of the city in which the ad served. + * Corresponds to "City" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum CITY_NAME = 452; + */ + const CITY_NAME = 452; + /** + * The ID of an advertiser, classified by Google, associated with a creative + * transacted + * Corresponds to "Advertiser ID (classified)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CLASSIFIED_ADVERTISER_ID = 133; + */ + const CLASSIFIED_ADVERTISER_ID = 133; + /** + * The name of an advertiser, classified by Google, associated with a + * creative transacted + * Corresponds to "Advertiser (classified)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum CLASSIFIED_ADVERTISER_NAME = 134; + */ + const CLASSIFIED_ADVERTISER_NAME = 134; + /** + * ID of the brand, as classified by Google, + * Corresponds to "Brand ID (classified)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CLASSIFIED_BRAND_ID = 243; + */ + const CLASSIFIED_BRAND_ID = 243; + /** + * Name of the brand, as classified by Google, + * Corresponds to "Brand (classified)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum CLASSIFIED_BRAND_NAME = 244; + */ + const CLASSIFIED_BRAND_NAME = 244; + /** + * The display name of the CMS content. + * Corresponds to "Content source name" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CONTENT_CMS_NAME = 643; + */ + const CONTENT_CMS_NAME = 643; + /** + * The CMS content ID of the video content. + * Corresponds to "ID of the video in the content source" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CONTENT_CMS_VIDEO_ID = 644; + */ + const CONTENT_CMS_VIDEO_ID = 644; + /** + * ID of the video content served. + * Corresponds to "Content ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CONTENT_ID = 246; + */ + const CONTENT_ID = 246; + /** + * Content mapping presence ENUM value + * Corresponds to "Content mapping presence value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum CONTENT_MAPPING_PRESENCE = 731; + */ + const CONTENT_MAPPING_PRESENCE = 731; + /** + * Content mapping presence name + * Corresponds to "Content mapping presence" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CONTENT_MAPPING_PRESENCE_NAME = 732; + */ + const CONTENT_MAPPING_PRESENCE_NAME = 732; + /** + * Name of the video content served. + * Corresponds to "Content" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CONTENT_NAME = 247; + */ + const CONTENT_NAME = 247; + /** + * The continent in which the ad served (derived from country). + * Corresponds to "Continent value" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum CONTINENT = 469; + */ + const CONTINENT = 469; + /** + * The name of the continent in which the ad served (derived from country). + * Corresponds to "Continent" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CONTINENT_NAME = 470; + */ + const CONTINENT_NAME = 470; + /** + * The ISO code of the country in which the ad served. + * Corresponds to "Country code" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `PRIVACY_AND_MESSAGING`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum COUNTRY_CODE = 466; + */ + const COUNTRY_CODE = 466; + /** + * The criteria ID of the country in which the ad served. + * Corresponds to "Country ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `PRIVACY_AND_MESSAGING`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum COUNTRY_ID = 11; + */ + const COUNTRY_ID = 11; + /** + * The name of the country in which the ad served. + * Corresponds to "Country" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `PRIVACY_AND_MESSAGING`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum COUNTRY_NAME = 12; + */ + const COUNTRY_NAME = 12; + /** + * Enum value of creative billing type + * Corresponds to "Creative billing type value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum CREATIVE_BILLING_TYPE = 366; + */ + const CREATIVE_BILLING_TYPE = 366; + /** + * Localized string value of creative billing type + * Corresponds to "Creative billing type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_BILLING_TYPE_NAME = 367; + */ + const CREATIVE_BILLING_TYPE_NAME = 367; + /** + * Represents the click-through URL of a creative + * Corresponds to "Creative click through url" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_CLICK_THROUGH_URL = 174; + */ + const CREATIVE_CLICK_THROUGH_URL = 174; + /** + * The ID of a creative + * Corresponds to "Creative ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CREATIVE_ID = 138; + */ + const CREATIVE_ID = 138; + /** + * Creative name + * Corresponds to "Creative" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_NAME = 139; + */ + const CREATIVE_NAME = 139; + /** + * Creative Policies filtering. + * Corresponds to "Creative policies filtering value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum CREATIVE_POLICIES_FILTERING = 711; + */ + const CREATIVE_POLICIES_FILTERING = 711; + /** + * Localized name of the Creative Policies filtering. + * Corresponds to "Creative policies filtering" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_POLICIES_FILTERING_NAME = 712; + */ + const CREATIVE_POLICIES_FILTERING_NAME = 712; + /** + * Creative Protections filtering (Publisher Blocks Enforcement). + * Corresponds to "Creative protections filtering value" in the Ad Manager + * UI (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum CREATIVE_PROTECTIONS_FILTERING = 704; + */ + const CREATIVE_PROTECTIONS_FILTERING = 704; + /** + * Localized name of the Creative Protections filtering. + * Corresponds to "Creative protections filtering" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_PROTECTIONS_FILTERING_NAME = 705; + */ + const CREATIVE_PROTECTIONS_FILTERING_NAME = 705; + /** + * ENUM describing whether the creative is part of a creative set and if so, + * what its role in the creative set is. + * Corresponds to "Creative set role type value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum CREATIVE_SET_ROLE_TYPE = 686; + */ + const CREATIVE_SET_ROLE_TYPE = 686; + /** + * Localized name describing whether the creative is part of a creative set + * and if so, what its role in the creative set is. + * Corresponds to "Creative set role type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_SET_ROLE_TYPE_NAME = 687; + */ + const CREATIVE_SET_ROLE_TYPE_NAME = 687; + /** + * Creative technology ENUM + * Corresponds to "Creative technology value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum CREATIVE_TECHNOLOGY = 148; + */ + const CREATIVE_TECHNOLOGY = 148; + /** + * Creative technology locallized name + * Corresponds to "Creative technology" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_TECHNOLOGY_NAME = 149; + */ + const CREATIVE_TECHNOLOGY_NAME = 149; + /** + * Third party vendor name of a creative + * Corresponds to "Creative third party vendor" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_THIRD_PARTY_VENDOR = 361; + */ + const CREATIVE_THIRD_PARTY_VENDOR = 361; + /** + * Enum value of creative type + * Corresponds to "Creative type value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum CREATIVE_TYPE = 344; + */ + const CREATIVE_TYPE = 344; + /** + * Localized string name of creative type + * Corresponds to "Creative type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_TYPE_NAME = 345; + */ + const CREATIVE_TYPE_NAME = 345; + /** + * Creative vendor ID. + * Corresponds to "Creative vendor ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CREATIVE_VENDOR_ID = 706; + */ + const CREATIVE_VENDOR_ID = 706; + /** + * Name of the Creative vendor. + * Corresponds to "Creative vendor" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_VENDOR_NAME = 707; + */ + const CREATIVE_VENDOR_NAME = 707; + /** + * The third party where Google Ad Manager was redirected for the creative, + * based on the domain. + * Corresponds to "Creative video redirect third party" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CREATIVE_VIDEO_REDIRECT_THIRD_PARTY = 562; + */ + const CREATIVE_VIDEO_REDIRECT_THIRD_PARTY = 562; + /** + * The ID of a Curation partner + * Corresponds to "Curation partner ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CURATOR_ID = 572; + */ + const CURATOR_ID = 572; + /** + * The name of a Curation partner + * Corresponds to "Curation partner" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CURATOR_NAME = 573; + */ + const CURATOR_NAME = 573; + /** + * Custom event ID + * Corresponds to "Custom event id" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CUSTOM_EVENT_ID = 737; + */ + const CUSTOM_EVENT_ID = 737; + /** + * Custom event name + * Corresponds to "Custom event" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CUSTOM_EVENT_NAME = 735; + */ + const CUSTOM_EVENT_NAME = 735; + /** + * Custom event type + * Corresponds to "Custom event type value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum CUSTOM_EVENT_TYPE = 736; + */ + const CUSTOM_EVENT_TYPE = 736; + /** + * Localized name of the custom event type + * Corresponds to "Custom event type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CUSTOM_EVENT_TYPE_NAME = 738; + */ + const CUSTOM_EVENT_TYPE_NAME = 738; + /** + * The ID of an ad spot. An ad spot can be added to an ad break template, as + * well as directly targeted by a video line item. + * Corresponds to "Custom spot ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum CUSTOM_SPOT_ID = 423; + */ + const CUSTOM_SPOT_ID = 423; + /** + * The name of an ad spot. An ad spot can be added to an ad break + * template, as well as directly targeted by a video line item. + * Corresponds to "Custom spot" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum CUSTOM_SPOT_NAME = 424; + */ + const CUSTOM_SPOT_NAME = 424; + /** + * Breaks down reporting data by date. + * Corresponds to "Date" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `PRIVACY_AND_MESSAGING`, `AD_SPEED` + * Data format: `DATE` + * + * Generated from protobuf enum DATE = 3; + */ + const DATE = 3; + /** + * Breaks down reporting data by day of the week. Monday is 1 and 7 is + * Sunday. + * Corresponds to "Day of week" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum DAY_OF_WEEK = 4; + */ + const DAY_OF_WEEK = 4; + /** + * The ID of the buyer of a deal. + * Corresponds to "Deal buyer ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum DEAL_BUYER_ID = 240; + */ + const DEAL_BUYER_ID = 240; + /** + * The name of the buyer of a deal. + * Corresponds to "Deal buyer" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum DEAL_BUYER_NAME = 241; + */ + const DEAL_BUYER_NAME = 241; + /** + * Deal ID + * Corresponds to "Deal ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum DEAL_ID = 436; + */ + const DEAL_ID = 436; + /** + * Deal name + * Corresponds to "Deal" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum DEAL_NAME = 437; + */ + const DEAL_NAME = 437; + /** + * The ID of the secure signals that were sent to the bidder who won the + * impression. + * Corresponds to "Secure signal ID (delivered)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum DELIVERED_SECURE_SIGNAL_ID = 309; + */ + const DELIVERED_SECURE_SIGNAL_ID = 309; + /** + * The name of the secure signals that were sent to the bidder who won the + * impression. + * Corresponds to "Secure signal name (delivered)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum DELIVERED_SECURE_SIGNAL_NAME = 310; + */ + const DELIVERED_SECURE_SIGNAL_NAME = 310; + /** + * Demand channel. + * Corresponds to "Demand channel value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum DEMAND_CHANNEL = 9; + */ + const DEMAND_CHANNEL = 9; + /** + * Demand channel name. + * Corresponds to "Demand channel" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum DEMAND_CHANNEL_NAME = 10; + */ + const DEMAND_CHANNEL_NAME = 10; + /** + * Demand source. + * Corresponds to "Demand source value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: + * Data format: `ENUM` + * + * Generated from protobuf enum DEMAND_SOURCE = 592; + */ + const DEMAND_SOURCE = 592; + /** + * Demand source name. + * Corresponds to "Demand source" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `STRING` + * + * Generated from protobuf enum DEMAND_SOURCE_NAME = 593; + */ + const DEMAND_SOURCE_NAME = 593; + /** + * Demand subchannel. + * Corresponds to "Demand subchannel value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum DEMAND_SUBCHANNEL = 22; + */ + const DEMAND_SUBCHANNEL = 22; + /** + * Demand subchannel name. + * Corresponds to "Demand subchannel" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum DEMAND_SUBCHANNEL_NAME = 23; + */ + const DEMAND_SUBCHANNEL_NAME = 23; + /** + * The device on which an ad was served. + * Corresponds to "Device value" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum DEVICE = 226; + */ + const DEVICE = 226; + /** + * The device category to which an ad is being targeted. + * Corresponds to "Device category value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL`, + * `PRIVACY_AND_MESSAGING`, `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum DEVICE_CATEGORY = 15; + */ + const DEVICE_CATEGORY = 15; + /** + * The name of the category of device (smartphone, feature phone, tablet, or + * desktop) to which an ad is being targeted. + * Corresponds to "Device category" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, + * `PRIVACY_AND_MESSAGING`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum DEVICE_CATEGORY_NAME = 16; + */ + const DEVICE_CATEGORY_NAME = 16; + /** + * Device manufacturer ID + * Corresponds to "Device manufacturer ID" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum DEVICE_MANUFACTURER_ID = 525; + */ + const DEVICE_MANUFACTURER_ID = 525; + /** + * Device manufacturer name + * Corresponds to "Device manufacturer" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum DEVICE_MANUFACTURER_NAME = 526; + */ + const DEVICE_MANUFACTURER_NAME = 526; + /** + * Device model ID + * Corresponds to "Device model ID" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum DEVICE_MODEL_ID = 527; + */ + const DEVICE_MODEL_ID = 527; + /** + * Device model name + * Corresponds to "Device model" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum DEVICE_MODEL_NAME = 528; + */ + const DEVICE_MODEL_NAME = 528; + /** + * The localized name of the device on which an ad was served. + * Corresponds to "Device" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum DEVICE_NAME = 225; + */ + const DEVICE_NAME = 225; + /** + * The ID of DSP Seat + * Corresponds to "DSP seat ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum DSP_SEAT_ID = 564; + */ + const DSP_SEAT_ID = 564; + /** + * Categorization of inventory sources based on AdX dynamic allocation + * backfill type. + * Corresponds to "Dynamic allocation value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum DYNAMIC_ALLOCATION_TYPE = 502; + */ + const DYNAMIC_ALLOCATION_TYPE = 502; + /** + * Localized name of the dynamic allocation type. + * Corresponds to "Dynamic allocation" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum DYNAMIC_ALLOCATION_TYPE_NAME = 503; + */ + const DYNAMIC_ALLOCATION_TYPE_NAME = 503; + /** + * Status of Encrypted Signals for Publishers delivery. + * Corresponds to "Secure signal delivery value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum ESP_DELIVERY = 623; + */ + const ESP_DELIVERY = 623; + /** + * Localized name of the ESP delivery status. + * Corresponds to "Secure signal delivery" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum ESP_DELIVERY_NAME = 624; + */ + const ESP_DELIVERY_NAME = 624; + /** + * Whether Encrypted Signals for Publishers are present on the ad request. + * Corresponds to "Secure signal presence value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum ESP_PRESENCE = 625; + */ + const ESP_PRESENCE = 625; + /** + * Localized name of the ESP presence status. + * Corresponds to "Secure signal presence" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum ESP_PRESENCE_NAME = 626; + */ + const ESP_PRESENCE_NAME = 626; + /** + * Exchange bidding deal ID. + * Corresponds to "Exchange bidding deal id" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum EXCHANGE_BIDDING_DEAL_ID = 715; + */ + const EXCHANGE_BIDDING_DEAL_ID = 715; + /** + * Exchange bidding deal type. + * Corresponds to "Exchange bidding deal type value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum EXCHANGE_BIDDING_DEAL_TYPE = 714; + */ + const EXCHANGE_BIDDING_DEAL_TYPE = 714; + /** + * Localized name of the exchange bidding deal type. + * Corresponds to "Exchange bidding deal type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum EXCHANGE_BIDDING_DEAL_TYPE_NAME = 723; + */ + const EXCHANGE_BIDDING_DEAL_TYPE_NAME = 723; + /** + * ID of the yield partner as classified by Google + * Corresponds to "Yield partner ID (classified)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; + */ + const EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; + /** + * Name of the yield partner as classified by Google + * Corresponds to "Yield partner (classified)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; + */ + const EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; + /** + * The ID of the first look pricing rule. + * Corresponds to "First look pricing rule ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum FIRST_LOOK_PRICING_RULE_ID = 248; + */ + const FIRST_LOOK_PRICING_RULE_ID = 248; + /** + * The name of the first look pricing rule. + * Corresponds to "First look pricing rule" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum FIRST_LOOK_PRICING_RULE_NAME = 249; + */ + const FIRST_LOOK_PRICING_RULE_NAME = 249; + /** + * Whether a first-party user identifier was present on a given + * ad-request. + * Corresponds to "First-party ID status value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum FIRST_PARTY_ID_STATUS = 404; + */ + const FIRST_PARTY_ID_STATUS = 404; + /** + * The localized name of whether a first-party user identifier was present + * on a given ad-request. + * Corresponds to "First-party ID status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum FIRST_PARTY_ID_STATUS_NAME = 405; + */ + const FIRST_PARTY_ID_STATUS_NAME = 405; + /** + * User gender enum value returned from Google Analytics. + * Corresponds to "Gender value" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum GENDER = 509; + */ + const GENDER = 509; + /** + * Localized user gender returned from Google Analytics. For example, + * "male", "female". + * Corresponds to "Gender" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum GENDER_NAME = 583; + */ + const GENDER_NAME = 583; + /** + * The ID of a Google Analytics stream. For example, web site or mobile app + * Corresponds to "Google Analytics stream ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum GOOGLE_ANALYTICS_STREAM_ID = 519; + */ + const GOOGLE_ANALYTICS_STREAM_ID = 519; + /** + * The name of a Google Analytics stream. For example, + * web site or mobile app. + * Corresponds to "Google Analytics stream" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum GOOGLE_ANALYTICS_STREAM_NAME = 520; + */ + const GOOGLE_ANALYTICS_STREAM_NAME = 520; + /** + * The ID of the header bidding trafficking yield partner. + * Corresponds to "Yield partner ID (header bidding trafficking)" in the Ad + * Manager UI (when showing API fields). + * Compatible with the following report types: + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum HBT_YIELD_PARTNER_ID = 659; + */ + const HBT_YIELD_PARTNER_ID = 659; + /** + * The name of the header bidding trafficking yield partner. + * Corresponds to "Yield partner (header bidding trafficking)" in the Ad + * Manager UI. + * Compatible with the following report types: + * Data format: `STRING` + * + * Generated from protobuf enum HBT_YIELD_PARTNER_NAME = 660; + */ + const HBT_YIELD_PARTNER_NAME = 660; + /** + * Header Bidder integration type. + * Corresponds to "Header bidder integration type value" in the Ad Manager + * UI (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum HEADER_BIDDER_INTEGRATION_TYPE = 718; + */ + const HEADER_BIDDER_INTEGRATION_TYPE = 718; + /** + * Localized name of the Header Bidder integration type. + * Corresponds to "Header bidder integration type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum HEADER_BIDDER_INTEGRATION_TYPE_NAME = 719; + */ + const HEADER_BIDDER_INTEGRATION_TYPE_NAME = 719; + /** + * Breaks down reporting data by hour in one day. + * Corresponds to "Hour" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum HOUR = 100; + */ + const HOUR = 100; + /** + * Impression Counting Method ENUM. + * Corresponds to "Impression counting method value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum IMPRESSION_COUNTING_METHOD = 577; + */ + const IMPRESSION_COUNTING_METHOD = 577; + /** + * Localized impression counting method name. + * Corresponds to "Impression counting method" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum IMPRESSION_COUNTING_METHOD_NAME = 578; + */ + const IMPRESSION_COUNTING_METHOD_NAME = 578; + /** + * The interaction type of an ad. + * Corresponds to "Interaction type value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum INTERACTION_TYPE = 223; + */ + const INTERACTION_TYPE = 223; + /** + * The localized name of the interaction type of an ad. + * Corresponds to "Interaction type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum INTERACTION_TYPE_NAME = 224; + */ + const INTERACTION_TYPE_NAME = 224; + /** + * User interest returned from Google Analytics. + * Corresponds to "Interests" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum INTEREST = 510; + */ + const INTEREST = 510; + /** + * Inventory format. + * The format of the ad unit (e.g, banner) where the ad was requested. + * Corresponds to "Inventory format value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum INVENTORY_FORMAT = 17; + */ + const INVENTORY_FORMAT = 17; + /** + * Inventory format name. + * The format of the ad unit (e.g, banner) where the ad was requested. + * Corresponds to "Inventory format" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum INVENTORY_FORMAT_NAME = 18; + */ + const INVENTORY_FORMAT_NAME = 18; + /** + * The ID of the inventory share assignment. + * Corresponds to "Inventory share assignment ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum INVENTORY_SHARE_ASSIGNMENT_ID = 648; + */ + const INVENTORY_SHARE_ASSIGNMENT_ID = 648; + /** + * The name of the inventory share assignment. + * Corresponds to "Inventory share assignment" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum INVENTORY_SHARE_ASSIGNMENT_NAME = 649; + */ + const INVENTORY_SHARE_ASSIGNMENT_NAME = 649; + /** + * The result of an inventory share. + * Corresponds to "Inventory share outcome value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum INVENTORY_SHARE_OUTCOME = 603; + */ + const INVENTORY_SHARE_OUTCOME = 603; + /** + * The localized name of the result of an inventory share. + * Corresponds to "Inventory share outcome" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum INVENTORY_SHARE_OUTCOME_NAME = 604; + */ + const INVENTORY_SHARE_OUTCOME_NAME = 604; + /** + * The partner ad server of the inventory share. + * Corresponds to "Inventory share partner ad server value" in the Ad + * Manager UI (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum INVENTORY_SHARE_PARTNER_AD_SERVER = 652; + */ + const INVENTORY_SHARE_PARTNER_AD_SERVER = 652; + /** + * The localized name of the partner ad server. + * Corresponds to "Inventory share partner ad server" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum INVENTORY_SHARE_PARTNER_AD_SERVER_NAME = 653; + */ + const INVENTORY_SHARE_PARTNER_AD_SERVER_NAME = 653; + /** + * The target share percent of the inventory share assignment + * Corresponds to "Partner target share percent" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum INVENTORY_SHARE_TARGET_SHARE_PERCENT = 654; + */ + const INVENTORY_SHARE_TARGET_SHARE_PERCENT = 654; + /** + * The type of the inventory share. + * Corresponds to "Inventory share type value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum INVENTORY_SHARE_TYPE = 650; + */ + const INVENTORY_SHARE_TYPE = 650; + /** + * The localized name of the inventory share type. + * Corresponds to "Inventory share type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum INVENTORY_SHARE_TYPE_NAME = 651; + */ + const INVENTORY_SHARE_TYPE_NAME = 651; + /** + * Inventory type. + * The kind of web page or device where the ad was requested. + * Corresponds to "Inventory type (expanded) value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum INVENTORY_TYPE = 19; + */ + const INVENTORY_TYPE = 19; + /** + * Inventory type name. + * The kind of web page or device where the ad was requested. + * Corresponds to "Inventory type (expanded)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum INVENTORY_TYPE_NAME = 20; + */ + const INVENTORY_TYPE_NAME = 20; + /** + * Whether traffic is Adx Direct. + * Corresponds to "Is AdX Direct" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum IS_ADX_DIRECT = 382; + */ + const IS_ADX_DIRECT = 382; + /** + * If curation was targeted by the buyer when buying the impression + * Corresponds to "Is curation targeted" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum IS_CURATION_TARGETED = 574; + */ + const IS_CURATION_TARGETED = 574; + /** + * Whether the query was dropped. + * Corresponds to "Is Dropped" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum IS_DROPPED = 464; + */ + const IS_DROPPED = 464; + /** + * Whether traffic is First Look. + * Corresponds to "Is First Look" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum IS_FIRST_LOOK_DEAL = 401; + */ + const IS_FIRST_LOOK_DEAL = 401; + /** + * The Custom Targeting Value ID + * Corresponds to "Key-values ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum KEY_VALUES_ID = 214; + */ + const KEY_VALUES_ID = 214; + /** + * The Custom Targeting Value formatted like `{keyName}={valueName}` + * Corresponds to "Key-values" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum KEY_VALUES_NAME = 215; + */ + const KEY_VALUES_NAME = 215; + /** + * The agency of the order associated with the line item. + * Corresponds to "Line item agency" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_AGENCY = 663; + */ + const LINE_ITEM_AGENCY = 663; + /** + * Whether a Line item is archived. + * Corresponds to "Line item is archived" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum LINE_ITEM_ARCHIVED = 188; + */ + const LINE_ITEM_ARCHIVED = 188; + /** + * Line item comanion delivery option ENUM value. + * Corresponds to "Line item companion delivery option value" in the Ad + * Manager UI (when showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `ENUM` + * + * Generated from protobuf enum LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; + */ + const LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; + /** + * Localized line item comanion delivery option name. + * Corresponds to "Line item companion delivery option" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; + */ + const LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; + /** + * The computed status of the LineItem. + * Corresponds to "Line item computed status value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum LINE_ITEM_COMPUTED_STATUS = 250; + */ + const LINE_ITEM_COMPUTED_STATUS = 250; + /** + * The localized name of the computed status of the LineItem. + * Corresponds to "Line item computed status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_COMPUTED_STATUS_NAME = 251; + */ + const LINE_ITEM_COMPUTED_STATUS_NAME = 251; + /** + * The contracted units bought for the Line item. + * Corresponds to "Line item contracted quantity" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `INTEGER` + * + * Generated from protobuf enum LINE_ITEM_CONTRACTED_QUANTITY = 92; + */ + const LINE_ITEM_CONTRACTED_QUANTITY = 92; + /** + * The cost per unit of the Line item. + * Corresponds to "Line item rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `MONEY` + * + * Generated from protobuf enum LINE_ITEM_COST_PER_UNIT = 85; + */ + const LINE_ITEM_COST_PER_UNIT = 85; + /** + * Line item cost type ENUM value. + * Corresponds to "Line item cost type value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum LINE_ITEM_COST_TYPE = 212; + */ + const LINE_ITEM_COST_TYPE = 212; + /** + * Localized line item cost type name. + * Corresponds to "Line item cost type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_COST_TYPE_NAME = 213; + */ + const LINE_ITEM_COST_TYPE_NAME = 213; + /** + * Represent the end date of a creative associated with line item + * Corresponds to "Line item creative end date" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DATE` + * + * Generated from protobuf enum LINE_ITEM_CREATIVE_END_DATE = 176; + */ + const LINE_ITEM_CREATIVE_END_DATE = 176; + /** + * The creative rotation type of the LineItem. + * Corresponds to "Line item creative rotation type value" in the Ad Manager + * UI (when showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `ENUM` + * + * Generated from protobuf enum LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; + */ + const LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; + /** + * The localized name of the creative rotation type of the LineItem. + * Corresponds to "Line item creative rotation type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; + */ + const LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; + /** + * Represent the start date of a creative associated with line item + * Corresponds to "Line item creative start date" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DATE` + * + * Generated from protobuf enum LINE_ITEM_CREATIVE_START_DATE = 175; + */ + const LINE_ITEM_CREATIVE_START_DATE = 175; + /** + * The 3 letter currency code of the Line Item + * Corresponds to "Line item currency code" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_CURRENCY_CODE = 180; + */ + const LINE_ITEM_CURRENCY_CODE = 180; + /** + * The progress made for the delivery of the Line item. + * Corresponds to "Line item delivery indicator" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `PERCENT` + * + * Generated from protobuf enum LINE_ITEM_DELIVERY_INDICATOR = 87; + */ + const LINE_ITEM_DELIVERY_INDICATOR = 87; + /** + * The delivery rate type of the LineItem. + * Corresponds to "Line item delivery rate type value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum LINE_ITEM_DELIVERY_RATE_TYPE = 191; + */ + const LINE_ITEM_DELIVERY_RATE_TYPE = 191; + /** + * The localized name of the delivery rate type of the LineItem. + * Corresponds to "Line item delivery rate type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; + */ + const LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; + /** + * The discount of the LineItem in whole units in the LineItem's currency + * code, or if unspecified the Network's currency code. + * Corresponds to "Line item discount (absolute)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `MONEY` + * + * Generated from protobuf enum LINE_ITEM_DISCOUNT_ABSOLUTE = 195; + */ + const LINE_ITEM_DISCOUNT_ABSOLUTE = 195; + /** + * The discount of the LineItem in percentage. + * Corresponds to "Line item discount (percentage)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `WHOLE_PERCENT` + * + * Generated from protobuf enum LINE_ITEM_DISCOUNT_PERCENTAGE = 196; + */ + const LINE_ITEM_DISCOUNT_PERCENTAGE = 196; + /** + * The end date of the Line item. + * Corresponds to "Line item end date" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `DATE` + * + * Generated from protobuf enum LINE_ITEM_END_DATE = 81; + */ + const LINE_ITEM_END_DATE = 81; + /** + * The end date and time of the Line item. + * Corresponds to "Line item end time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `TIMESTAMP` + * + * Generated from protobuf enum LINE_ITEM_END_DATE_TIME = 83; + */ + const LINE_ITEM_END_DATE_TIME = 83; + /** + * The ENUM value of the environment a LineItem is targeting. + * Corresponds to "Line item environment type value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `ENUM` + * + * Generated from protobuf enum LINE_ITEM_ENVIRONMENT_TYPE = 201; + */ + const LINE_ITEM_ENVIRONMENT_TYPE = 201; + /** + * The localized name of the environment a LineItem is targeting. + * Corresponds to "Line item environment type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; + */ + const LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; + /** + * The deal ID of the Line item. Set for Programmatic Direct campaigns. + * Corresponds to "Line item deal ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum LINE_ITEM_EXTERNAL_DEAL_ID = 97; + */ + const LINE_ITEM_EXTERNAL_DEAL_ID = 97; + /** + * The external ID of the Line item. + * Corresponds to "Line item external ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_EXTERNAL_ID = 86; + */ + const LINE_ITEM_EXTERNAL_ID = 86; + /** + * The frequency cap of the Line item (descriptive string). + * Corresponds to "Line item frequency cap" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_FREQUENCY_CAP = 256; + */ + const LINE_ITEM_FREQUENCY_CAP = 256; + /** + * Line item ID. + * Corresponds to "Line item ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum LINE_ITEM_ID = 1; + */ + const LINE_ITEM_ID = 1; + /** + * Line item labels. + * Corresponds to "Line item labels" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum LINE_ITEM_LABELS = 667; + */ + const LINE_ITEM_LABELS = 667; + /** + * Line item label IDs. + * Corresponds to "Line item label IDs" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER_LIST` + * + * Generated from protobuf enum LINE_ITEM_LABEL_IDS = 665; + */ + const LINE_ITEM_LABEL_IDS = 665; + /** + * The application that last modified the Line Item. + * Corresponds to "Line item last modified by app" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_LAST_MODIFIED_BY_APP = 181; + */ + const LINE_ITEM_LAST_MODIFIED_BY_APP = 181; + /** + * The total number of clicks delivered of the lifetime of the Line item. + * Corresponds to "Line item lifetime clicks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `INTEGER` + * + * Generated from protobuf enum LINE_ITEM_LIFETIME_CLICKS = 95; + */ + const LINE_ITEM_LIFETIME_CLICKS = 95; + /** + * The total number of impressions delivered over the lifetime of the + * Line item. + * Corresponds to "Line item lifetime impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `INTEGER` + * + * Generated from protobuf enum LINE_ITEM_LIFETIME_IMPRESSIONS = 94; + */ + const LINE_ITEM_LIFETIME_IMPRESSIONS = 94; + /** + * The total number of viewable impressions delivered over the lifetime of + * the Line item. + * Corresponds to "Line item lifetime viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `INTEGER` + * + * Generated from protobuf enum LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; + */ + const LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; + /** + * Whether or not the Line item is Makegood. Makegood refers to free + * inventory offered to buyers to compensate for mistakes or under-delivery + * in the original campaigns. + * Corresponds to "Line item is makegood" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum LINE_ITEM_MAKEGOOD = 89; + */ + const LINE_ITEM_MAKEGOOD = 89; + /** + * Line item Name. + * Corresponds to "Line item" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_NAME = 2; + */ + const LINE_ITEM_NAME = 2; + /** + * The cost of booking for the Line item (non-CPD). + * Corresponds to "Line item booked revenue (exclude CPD)" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `MONEY` + * + * Generated from protobuf enum LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; + */ + const LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; + /** + * Whether a Line item is eligible for opitimization. + * Corresponds to "Line item is optimizable" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum LINE_ITEM_OPTIMIZABLE = 90; + */ + const LINE_ITEM_OPTIMIZABLE = 90; + /** + * The PO number of the order associated with the line item. + * Corresponds to "Line item PO number" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_PO_NUMBER = 669; + */ + const LINE_ITEM_PO_NUMBER = 669; + /** + * Goal type ENUM value of the primary goal of the line item. + * Corresponds to "Line item primary goal type value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `ENUM` + * + * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_TYPE = 210; + */ + const LINE_ITEM_PRIMARY_GOAL_TYPE = 210; + /** + * Localized goal type name of the primary goal of the line item. + * Corresponds to "Line item primary goal type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; + */ + const LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; + /** + * The total number of impressions or clicks that are reserved for a + * line item. For line items of type BULK or PRICE_PRIORITY, this + * represents the number of remaining impressions reserved. If the line + * item has an impression cap goal, this represents the number of + * impressions or conversions that the line item will stop serving at if + * reached. + * Corresponds to "Line item primary goal units (absolute)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `INTEGER` + * + * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; + */ + const LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; + /** + * The percentage of impressions or clicks that are reserved for a + * line item. For line items of type SPONSORSHIP, this represents the + * percentage of available impressions reserved. For line items of type + * NETWORK or HOUSE, this represents the percentage of remaining + * impressions reserved. + * Corresponds to "Line item primary goal units (percentage)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `WHOLE_PERCENT` + * + * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; + */ + const LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; + /** + * Unit type ENUM value of the primary goal of the line item. + * Corresponds to "Line item primary goal unit type value" in the Ad Manager + * UI (when showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `ENUM` + * + * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; + */ + const LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; + /** + * Localized unit type name of the primary goal of the line item. + * Corresponds to "Line item primary goal unit type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; + */ + const LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; + /** + * The priority of this Line item as a value between 1 and 16. + * In general, a lower priority means more serving priority for the + * Line item. + * Corresponds to "Line item priority" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `INTEGER` + * + * Generated from protobuf enum LINE_ITEM_PRIORITY = 24; + */ + const LINE_ITEM_PRIORITY = 24; + /** + * ENUM value describing the state of inventory reservation for the + * LineItem. + * Corresponds to "Line item reservation status value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `ENUM` + * + * Generated from protobuf enum LINE_ITEM_RESERVATION_STATUS = 304; + */ + const LINE_ITEM_RESERVATION_STATUS = 304; + /** + * Localized string describing the state of inventory reservation for the + * LineItem. + * Corresponds to "Line item reservation status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_RESERVATION_STATUS_NAME = 305; + */ + const LINE_ITEM_RESERVATION_STATUS_NAME = 305; + /** + * The sales person of the order associated with the line item. + * Corresponds to "Line item salesperson" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_SALESPERSON = 671; + */ + const LINE_ITEM_SALESPERSON = 671; + /** + * The secondary sales people of the order associated with the line item. + * Corresponds to "Line item secondary salespeople" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum LINE_ITEM_SECONDARY_SALESPEOPLE = 673; + */ + const LINE_ITEM_SECONDARY_SALESPEOPLE = 673; + /** + * The secondary traffickers of the order associated with the line item. + * Corresponds to "Line item secondary traffickers" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum LINE_ITEM_SECONDARY_TRAFFICKERS = 675; + */ + const LINE_ITEM_SECONDARY_TRAFFICKERS = 675; + /** + * The start date of the Line item. + * Corresponds to "Line item start date" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `DATE` + * + * Generated from protobuf enum LINE_ITEM_START_DATE = 82; + */ + const LINE_ITEM_START_DATE = 82; + /** + * The start date and time of the Line item. + * Corresponds to "Line item start time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `TIMESTAMP` + * + * Generated from protobuf enum LINE_ITEM_START_DATE_TIME = 84; + */ + const LINE_ITEM_START_DATE_TIME = 84; + /** + * The trafficker of the order associated with the line item. + * Corresponds to "Line item trafficker" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_TRAFFICKER = 677; + */ + const LINE_ITEM_TRAFFICKER = 677; + /** + * Line item type ENUM value. + * Corresponds to "Line item type value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum LINE_ITEM_TYPE = 193; + */ + const LINE_ITEM_TYPE = 193; + /** + * Localized line item type name. + * Corresponds to "Line item type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_TYPE_NAME = 194; + */ + const LINE_ITEM_TYPE_NAME = 194; + /** + * Whether the Line item end time and end date is set to effectively never + * end. + * Corresponds to "Line item is unlimited end time" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum LINE_ITEM_UNLIMITED_END = 187; + */ + const LINE_ITEM_UNLIMITED_END = 187; + /** + * The artificial cost per unit used by the Ad server to help rank + * inventory. + * Corresponds to "Line item value cost per unit" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `MONEY` + * + * Generated from protobuf enum LINE_ITEM_VALUE_COST_PER_UNIT = 88; + */ + const LINE_ITEM_VALUE_COST_PER_UNIT = 88; + /** + * The web property code used for dynamic allocation Line Items. + * Corresponds to "Line item web property code" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum LINE_ITEM_WEB_PROPERTY_CODE = 179; + */ + const LINE_ITEM_WEB_PROPERTY_CODE = 179; + /** + * The ID of creative, includes regular creatives, and master and companions + * in case of creative sets + * Corresponds to "Master and Companion creative ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum MASTER_COMPANION_CREATIVE_ID = 140; + */ + const MASTER_COMPANION_CREATIVE_ID = 140; + /** + * Name of creative, includes regular creatives, and master and companions + * in case of creative sets + * Corresponds to "Master and Companion creative" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum MASTER_COMPANION_CREATIVE_NAME = 141; + */ + const MASTER_COMPANION_CREATIVE_NAME = 141; + /** + * Mediation type. + * Corresponds to "Mediation type value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum MEDIATION_TYPE = 701; + */ + const MEDIATION_TYPE = 701; + /** + * Localized mediation type name. + * Corresponds to "Mediation type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum MEDIATION_TYPE_NAME = 754; + */ + const MEDIATION_TYPE_NAME = 754; + /** + * The ID of the yield partner for Mediation. + * Corresponds to "Yield partner ID (mediation)" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum MEDIATION_YIELD_PARTNER_ID = 661; + */ + const MEDIATION_YIELD_PARTNER_ID = 661; + /** + * The name of the yield partner for Mediation. + * Corresponds to "Yield partner (mediation)" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `STRING` + * + * Generated from protobuf enum MEDIATION_YIELD_PARTNER_NAME = 662; + */ + const MEDIATION_YIELD_PARTNER_NAME = 662; + /** + * The criteria ID of the metro area in which the ad served. + * Corresponds to "Metro ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum METRO_ID = 453; + */ + const METRO_ID = 453; + /** + * The name of the metro area in which the ad served. + * Corresponds to "Metro" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum METRO_NAME = 454; + */ + const METRO_NAME = 454; + /** + * Whether the mobile app is free. + * Corresponds to "App is free" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum MOBILE_APP_FREE = 128; + */ + const MOBILE_APP_FREE = 128; + /** + * URL of app icon for the mobile app. + * Corresponds to "App icon URL" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum MOBILE_APP_ICON_URL = 129; + */ + const MOBILE_APP_ICON_URL = 129; + /** + * The ID of the Mobile App. + * Corresponds to "App ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, + * `PRIVACY_AND_MESSAGING` + * Data format: `STRING` + * + * Generated from protobuf enum MOBILE_APP_ID = 123; + */ + const MOBILE_APP_ID = 123; + /** + * The name of the mobile app. + * Corresponds to "App" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, + * `PRIVACY_AND_MESSAGING` + * Data format: `STRING` + * + * Generated from protobuf enum MOBILE_APP_NAME = 127; + */ + const MOBILE_APP_NAME = 127; + /** + * Ownership status of the mobile app. + * Corresponds to "App ownership status value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum MOBILE_APP_OWNERSHIP_STATUS = 311; + */ + const MOBILE_APP_OWNERSHIP_STATUS = 311; + /** + * Ownership status of the mobile app. + * Corresponds to "App ownership status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; + */ + const MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; + /** + * The App Store of the mobile app. + * Corresponds to "App store value" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum MOBILE_APP_STORE = 125; + */ + const MOBILE_APP_STORE = 125; + /** + * The localized name of the mobile app store. + * Corresponds to "App store" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum MOBILE_APP_STORE_NAME = 245; + */ + const MOBILE_APP_STORE_NAME = 245; + /** + * Mobile inventory type. + * Identifies whether a mobile ad came from a regular web page, an AMP web + * page, or a mobile app. + * Values match the Inventory type dimension available in the Overview Home + * dashboard. Note: Video takes precedence over any other value, for + * example, if there is an in-stream video impression on a desktop device, + * it will be attributed to in-stream video and not desktop web. + * Corresponds to "Inventory type value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL`, + * `PRIVACY_AND_MESSAGING`, `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum MOBILE_INVENTORY_TYPE = 99; + */ + const MOBILE_INVENTORY_TYPE = 99; + /** + * Mobile inventory type name. + * Identifies whether a mobile ad came from a regular web page, an AMP web + * page, or a mobile app. + * Corresponds to "Inventory type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, + * `PRIVACY_AND_MESSAGING`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum MOBILE_INVENTORY_TYPE_NAME = 21; + */ + const MOBILE_INVENTORY_TYPE_NAME = 21; + /** + * Mobile rendering SDK. + * Corresponds to "Rendering SDK value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum MOBILE_RENDERING_SDK = 646; + */ + const MOBILE_RENDERING_SDK = 646; + /** + * Localized name of the Mobile rendering SDK. + * Corresponds to "Rendering SDK" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum MOBILE_RENDERING_SDK_NAME = 647; + */ + const MOBILE_RENDERING_SDK_NAME = 647; + /** + * The major version of the mobile SDK. + * Corresponds to "App SDK major version" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum MOBILE_SDK_MAJOR_VERSION = 692; + */ + const MOBILE_SDK_MAJOR_VERSION = 692; + /** + * The minor version of the mobile SDK. + * Corresponds to "App SDK minor version" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum MOBILE_SDK_MINOR_VERSION = 693; + */ + const MOBILE_SDK_MINOR_VERSION = 693; + /** + * SDK version of the mobile device. + * Corresponds to "App SDK version" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum MOBILE_SDK_VERSION_NAME = 130; + */ + const MOBILE_SDK_VERSION_NAME = 130; + /** + * Breaks down reporting data by month and year. + * Corresponds to "Month and year" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum MONTH_YEAR = 6; + */ + const MONTH_YEAR = 6; + /** + * Native ad format ID. + * Corresponds to "Native ad format ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum NATIVE_AD_FORMAT_ID = 255; + */ + const NATIVE_AD_FORMAT_ID = 255; + /** + * Native ad format name. + * Corresponds to "Native ad format" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum NATIVE_AD_FORMAT_NAME = 254; + */ + const NATIVE_AD_FORMAT_NAME = 254; + /** + * Native style ID. + * Corresponds to "Native style ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum NATIVE_STYLE_ID = 253; + */ + const NATIVE_STYLE_ID = 253; + /** + * Native style name. + * Corresponds to "Native style" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum NATIVE_STYLE_NAME = 252; + */ + const NATIVE_STYLE_NAME = 252; + /** + * No fill reason category in the Ads traffic navigator report. + * Corresponds to "No fill reason category value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: + * Data format: `ENUM` + * + * Generated from protobuf enum NO_FILL_REASON_CATEGORY = 586; + */ + const NO_FILL_REASON_CATEGORY = 586; + /** + * No fill reason category name in the Ads traffic navigator report. + * Corresponds to "No fill reason category" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `STRING` + * + * Generated from protobuf enum NO_FILL_REASON_CATEGORY_NAME = 587; + */ + const NO_FILL_REASON_CATEGORY_NAME = 587; + /** + * Operating system category. + * Corresponds to "Operating system category value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `ENUM` + * + * Generated from protobuf enum OPERATING_SYSTEM_CATEGORY = 117; + */ + const OPERATING_SYSTEM_CATEGORY = 117; + /** + * Operating system category name. + * Corresponds to "Operating system category" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum OPERATING_SYSTEM_CATEGORY_NAME = 118; + */ + const OPERATING_SYSTEM_CATEGORY_NAME = 118; + /** + * ID of the operating system version. + * Corresponds to "Operating system ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum OPERATING_SYSTEM_VERSION_ID = 238; + */ + const OPERATING_SYSTEM_VERSION_ID = 238; + /** + * Details of the operating system, including version. + * Corresponds to "Operating system" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum OPERATING_SYSTEM_VERSION_NAME = 237; + */ + const OPERATING_SYSTEM_VERSION_NAME = 237; + /** + * Enum value of the optimization type. + * Corresponds to "Optimization type value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum OPTIMIZATION_TYPE = 639; + */ + const OPTIMIZATION_TYPE = 639; + /** + * Localized name of the optimization type. + * Corresponds to "Optimization type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum OPTIMIZATION_TYPE_NAME = 640; + */ + const OPTIMIZATION_TYPE_NAME = 640; + /** + * Order agency. + * Corresponds to "Order agency" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum ORDER_AGENCY = 150; + */ + const ORDER_AGENCY = 150; + /** + * Order agency ID. + * Corresponds to "Order agency ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum ORDER_AGENCY_ID = 151; + */ + const ORDER_AGENCY_ID = 151; + /** + * Order booked CPC. + * Corresponds to "Order booked CPC" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `INTEGER` + * + * Generated from protobuf enum ORDER_BOOKED_CPC = 152; + */ + const ORDER_BOOKED_CPC = 152; + /** + * Order booked CPM. + * Corresponds to "Order booked CPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `INTEGER` + * + * Generated from protobuf enum ORDER_BOOKED_CPM = 153; + */ + const ORDER_BOOKED_CPM = 153; + /** + * Order delivery status ENUM value. + * Corresponds to "Order delivery status value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum ORDER_DELIVERY_STATUS = 231; + */ + const ORDER_DELIVERY_STATUS = 231; + /** + * Order delivery status localized name. + * Corresponds to "Order delivery status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum ORDER_DELIVERY_STATUS_NAME = 239; + */ + const ORDER_DELIVERY_STATUS_NAME = 239; + /** + * Order end date. + * Corresponds to "Order end date" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `DATE` + * + * Generated from protobuf enum ORDER_END_DATE = 154; + */ + const ORDER_END_DATE = 154; + /** + * Order end date and time. + * Corresponds to "Order end time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `TIMESTAMP` + * + * Generated from protobuf enum ORDER_END_DATE_TIME = 155; + */ + const ORDER_END_DATE_TIME = 155; + /** + * Order external ID. + * Corresponds to "Order external ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum ORDER_EXTERNAL_ID = 156; + */ + const ORDER_EXTERNAL_ID = 156; + /** + * Order ID. + * Corresponds to "Order ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum ORDER_ID = 7; + */ + const ORDER_ID = 7; + /** + * Order labels. + * Corresponds to "Order labels" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum ORDER_LABELS = 170; + */ + const ORDER_LABELS = 170; + /** + * Order labels IDs. + * Corresponds to "Order label IDs" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER_LIST` + * + * Generated from protobuf enum ORDER_LABEL_IDS = 171; + */ + const ORDER_LABEL_IDS = 171; + /** + * Order lifetime clicks. + * Corresponds to "Order lifetime clicks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `INTEGER` + * + * Generated from protobuf enum ORDER_LIFETIME_CLICKS = 158; + */ + const ORDER_LIFETIME_CLICKS = 158; + /** + * Order lifetime impressions. + * Corresponds to "Order lifetime impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `INTEGER` + * + * Generated from protobuf enum ORDER_LIFETIME_IMPRESSIONS = 159; + */ + const ORDER_LIFETIME_IMPRESSIONS = 159; + /** + * Order name. + * Corresponds to "Order" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum ORDER_NAME = 8; + */ + const ORDER_NAME = 8; + /** + * Order PO number. + * Corresponds to "Order PO number" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum ORDER_PO_NUMBER = 160; + */ + const ORDER_PO_NUMBER = 160; + /** + * Whether the Order is programmatic. + * Corresponds to "Order is programmatic" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum ORDER_PROGRAMMATIC = 157; + */ + const ORDER_PROGRAMMATIC = 157; + /** + * Order sales person. + * Corresponds to "Order salesperson" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum ORDER_SALESPERSON = 161; + */ + const ORDER_SALESPERSON = 161; + /** + * Order sales person ID. + * Corresponds to "Order salesperson ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum ORDER_SALESPERSON_ID = 629; + */ + const ORDER_SALESPERSON_ID = 629; + /** + * Order secondary sales people. + * Corresponds to "Order secondary salespeople" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum ORDER_SECONDARY_SALESPEOPLE = 164; + */ + const ORDER_SECONDARY_SALESPEOPLE = 164; + /** + * Order secondary sales people ID. + * Corresponds to "Order secondary salespeople ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER_LIST` + * + * Generated from protobuf enum ORDER_SECONDARY_SALESPEOPLE_ID = 165; + */ + const ORDER_SECONDARY_SALESPEOPLE_ID = 165; + /** + * Order secondary traffickers. + * Corresponds to "Order secondary traffickers" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum ORDER_SECONDARY_TRAFFICKERS = 166; + */ + const ORDER_SECONDARY_TRAFFICKERS = 166; + /** + * Order secondary traffickers ID. + * Corresponds to "Order secondary trafficker IDs" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER_LIST` + * + * Generated from protobuf enum ORDER_SECONDARY_TRAFFICKERS_ID = 167; + */ + const ORDER_SECONDARY_TRAFFICKERS_ID = 167; + /** + * Order start date. + * Corresponds to "Order start date" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `DATE` + * + * Generated from protobuf enum ORDER_START_DATE = 168; + */ + const ORDER_START_DATE = 168; + /** + * Order start date and time. + * Corresponds to "Order start time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `AD_SPEED` + * Data format: `TIMESTAMP` + * + * Generated from protobuf enum ORDER_START_DATE_TIME = 169; + */ + const ORDER_START_DATE_TIME = 169; + /** + * Order trafficker. + * Corresponds to "Order trafficker" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum ORDER_TRAFFICKER = 162; + */ + const ORDER_TRAFFICKER = 162; + /** + * Order trafficker ID. + * Corresponds to "Order trafficker ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum ORDER_TRAFFICKER_ID = 163; + */ + const ORDER_TRAFFICKER_ID = 163; + /** + * Whether the Order end time and end date is set to effectively never + * end. + * Corresponds to "Order is unlimited end time" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum ORDER_UNLIMITED_END = 203; + */ + const ORDER_UNLIMITED_END = 203; + /** + * Page path is the part of a page URL that comes after the domain but + * before the query strings from Google Analytics. + * Corresponds to "Page path" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PAGE_PATH = 511; + */ + const PAGE_PATH = 511; + /** + * Page title (web) and screen class (mobile) returned from Google + * Analytics. + * Corresponds to "Page title and screen class" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PAGE_TITLE_AND_SCREEN_CLASS = 512; + */ + const PAGE_TITLE_AND_SCREEN_CLASS = 512; + /** + * Page title (web) and screen name (mobile) returned from Google Analytics. + * Corresponds to "Page title and screen name" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PAGE_TITLE_AND_SCREEN_NAME = 513; + */ + const PAGE_TITLE_AND_SCREEN_NAME = 513; + /** + * Placement ID + * Corresponds to "Placement ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum PLACEMENT_ID = 113; + */ + const PLACEMENT_ID = 113; + /** + * The full list of placement IDs associated with the ad unit. + * Corresponds to "Placement ID (all)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `IDENTIFIER_LIST` + * + * Generated from protobuf enum PLACEMENT_ID_ALL = 144; + */ + const PLACEMENT_ID_ALL = 144; + /** + * Placement name + * Corresponds to "Placement" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum PLACEMENT_NAME = 114; + */ + const PLACEMENT_NAME = 114; + /** + * The full list of placement names associated with the ad unit. + * Corresponds to "Placement (all)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum PLACEMENT_NAME_ALL = 145; + */ + const PLACEMENT_NAME_ALL = 145; + /** + * Placement status ENUM value + * Corresponds to "Placement status value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum PLACEMENT_STATUS = 362; + */ + const PLACEMENT_STATUS = 362; + /** + * Localized placement status name. + * Corresponds to "Placement status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PLACEMENT_STATUS_NAME = 364; + */ + const PLACEMENT_STATUS_NAME = 364; + /** + * The full list of localized placement status names associated with the ad + * unit. + * Corresponds to "Placement status (all)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum PLACEMENT_STATUS_NAME_ALL = 365; + */ + const PLACEMENT_STATUS_NAME_ALL = 365; + /** + * The criteria ID of the postal code in which the ad served. + * Corresponds to "Postal code ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum POSTAL_CODE_ID = 455; + */ + const POSTAL_CODE_ID = 455; + /** + * The name of the postal code in which the ad served. + * Corresponds to "Postal code" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum POSTAL_CODE_NAME = 456; + */ + const POSTAL_CODE_NAME = 456; + /** + * Indicates the valid PPID (Publisher provided identifier) status on a + * given ad request. + * Corresponds to "PPID status value" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum PPID_STATUS = 406; + */ + const PPID_STATUS = 406; + /** + * The localized name of that indicates the valid PPID (Publisher provided + * identifier) status on a given ad request. + * Corresponds to "PPID status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PPID_STATUS_NAME = 407; + */ + const PPID_STATUS_NAME = 407; + /** + * Predicted viewability score bucket. + * Corresponds to "Predicted viewability bucket value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum PREDICTED_VIEWABILITY_BUCKET = 633; + */ + const PREDICTED_VIEWABILITY_BUCKET = 633; + /** + * The localized name of the predicted viewability score bucket. + * Corresponds to "Predicted viewability bucket" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PREDICTED_VIEWABILITY_BUCKET_NAME = 634; + */ + const PREDICTED_VIEWABILITY_BUCKET_NAME = 634; + /** + * The ID of the secure signals sent in the ad request. + * Corresponds to "Secure signal ID (presented)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum PRESENTED_SECURE_SIGNAL_ID = 495; + */ + const PRESENTED_SECURE_SIGNAL_ID = 495; + /** + * The name of the secure signals sent in the ad request. + * Corresponds to "Secure signal name (presented)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PRESENTED_SECURE_SIGNAL_NAME = 496; + */ + const PRESENTED_SECURE_SIGNAL_NAME = 496; + /** + * The ID type selected for personalization. + * Corresponds to "Primary personalization ID type value" in the Ad Manager + * UI (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum PRIMARY_PERSONALIZATION_ID_TYPE = 408; + */ + const PRIMARY_PERSONALIZATION_ID_TYPE = 408; + /** + * The localized name of the ID type selected for personalization. + * Corresponds to "Primary personalization ID type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PRIMARY_PERSONALIZATION_ID_TYPE_NAME = 409; + */ + const PRIMARY_PERSONALIZATION_ID_TYPE_NAME = 409; + /** + * Deprecated. Dimension has been renamed to `DEAL_BUYER_ID`. + * The server will normalize any requests using this value to + * `DEAL_BUYER_ID`. + * This value will be removed on or after October 10, 2025. + * + * Generated from protobuf enum PROGRAMMATIC_BUYER_ID = 240 [deprecated = true]; + */ + const PROGRAMMATIC_BUYER_ID = 240; + /** + * Deprecated. Dimension has been renamed to `DEAL_BUYER_NAME`. + * The server will normalize any requests using this value to + * `DEAL_BUYER_NAME`. + * This value will be removed on or after October 10, 2025. + * + * Generated from protobuf enum PROGRAMMATIC_BUYER_NAME = 241 [deprecated = true]; + */ + const PROGRAMMATIC_BUYER_NAME = 241; + /** + * Programmatic channel. + * The type of transaction that occurred in Ad Exchange. + * Corresponds to "Programmatic channel value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum PROGRAMMATIC_CHANNEL = 13; + */ + const PROGRAMMATIC_CHANNEL = 13; + /** + * Programmatic channel name. + * The type of transaction that occurred in Ad Exchange. + * Corresponds to "Programmatic channel" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH` + * Data format: `STRING` + * + * Generated from protobuf enum PROGRAMMATIC_CHANNEL_NAME = 14; + */ + const PROGRAMMATIC_CHANNEL_NAME = 14; + /** + * External code ID of a publisher provided signal (all levels). + * Corresponds to "Publisher provided signals external code (all levels)" in + * the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE = 410; + */ + const PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE = 410; + /** + * The ancestor chain of IDs of a publisher provided signal (all levels). + * Corresponds to "Publisher provided signals ID (all levels)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER_LIST` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS = 546; + */ + const PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS = 546; + /** + * The ancestor chain of names of a publisher provided signal (all levels). + * Corresponds to "Publisher provided signals (all levels)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME = 412; + */ + const PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME = 412; + /** + * Tier of a publisher provided signal (all levels). + * Corresponds to "Publisher provided signals tier (all levels)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER = 413; + */ + const PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER = 413; + /** + * Type of a publisher provided signal (all levels). + * Corresponds to "Publisher provided signals type (all levels)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE = 414; + */ + const PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE = 414; + /** + * External code ID of a publisher provided signal (delivered). + * Corresponds to "Publisher provided signals external code (delivered)" in + * the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE = 425; + */ + const PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE = 425; + /** + * The ancestor chain of IDs of a publisher provided signal (delivered). + * Corresponds to "Publisher provided signals ID (delivered)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER_LIST` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS = 545; + */ + const PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS = 545; + /** + * The ancestor chain of names of a publisher provided signal (delivered). + * Corresponds to "Publisher provided signals (delivered)" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME = 427; + */ + const PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME = 427; + /** + * Tier of a publisher provided signal (delivered). + * Corresponds to "Publisher provided signals tier (delivered)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER = 428; + */ + const PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER = 428; + /** + * Type of a publisher provided signal (delivered). + * Corresponds to "Publisher provided signals type (delivered)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE = 429; + */ + const PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE = 429; + /** + * External code ID of a publisher provided signal (top level). + * Corresponds to "Publisher provided signals external code (top level)" in + * the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE = 415; + */ + const PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE = 415; + /** + * ID of a publisher provided signal (top level). + * Corresponds to "Publisher provided signals ID (top level)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID = 416; + */ + const PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID = 416; + /** + * Name of a publisher provided signal (top level). + * Corresponds to "Publisher provided signals (top level)" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME = 417; + */ + const PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME = 417; + /** + * Tier of a publisher provided signal (top level). + * Corresponds to "Publisher provided signals tier (top level)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER = 418; + */ + const PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER = 418; + /** + * Type of a publisher provided signal (top level). + * Corresponds to "Publisher provided signals type (top level)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE = 419; + */ + const PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE = 419; + /** + * Data provider ID associated with a publisher provided signal. + * Corresponds to "Publisher provided signals (data provider ID)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID = 136; + */ + const PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID = 136; + /** + * Data provider name associated with a publisher provided signal. + * Corresponds to "Publisher provided signals (data provider)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME = 137; + */ + const PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME = 137; + /** + * The criteria ID of the region (for example, US state) in which the ad + * served. + * Corresponds to "Region ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, + * `PRIVACY_AND_MESSAGING`, `AD_SPEED` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum REGION_ID = 457; + */ + const REGION_ID = 457; + /** + * The name of the region (for example, US state) in which the ad + * served. + * Corresponds to "Region" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, + * `PRIVACY_AND_MESSAGING`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum REGION_NAME = 458; + */ + const REGION_NAME = 458; + /** + * The rejection class category in the Ads traffic navigator report. + * Corresponds to "Rejection class category value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: + * Data format: `ENUM` + * + * Generated from protobuf enum REJECTION_CLASS_CATEGORY = 590; + */ + const REJECTION_CLASS_CATEGORY = 590; + /** + * The rejection class category name in the Ads traffic navigator report. + * Corresponds to "Rejection class category" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `STRING` + * + * Generated from protobuf enum REJECTION_CLASS_CATEGORY_NAME = 591; + */ + const REJECTION_CLASS_CATEGORY_NAME = 591; + /** + * The size of a rendered creative, It can differ with the creative's size + * if a creative is shown in an ad slot of a different size. + * Corresponds to "Rendered creative size" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum RENDERED_CREATIVE_SIZE = 343; + */ + const RENDERED_CREATIVE_SIZE = 343; + /** + * Inventory Requested Ad Sizes dimension + * Corresponds to "Requested ad sizes" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum REQUESTED_AD_SIZES = 352; + */ + const REQUESTED_AD_SIZES = 352; + /** + * Request type ENUM + * Corresponds to "Request type value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `ENUM` + * + * Generated from protobuf enum REQUEST_TYPE = 146; + */ + const REQUEST_TYPE = 146; + /** + * Request type locallized name + * Corresponds to "Request type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Data format: `STRING` + * + * Generated from protobuf enum REQUEST_TYPE_NAME = 147; + */ + const REQUEST_TYPE_NAME = 147; + /** + * Indicates if a request was eligible for server-side unwrapping. + * Corresponds to "Server-side unwrapping eligible" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `BOOLEAN` + * + * Generated from protobuf enum SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; + */ + const SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; + /** + * The serving restriction mode for privacy. + * Corresponds to "Serving restriction value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum SERVING_RESTRICTION = 631; + */ + const SERVING_RESTRICTION = 631; + /** + * The localized name of the serving restriction mode for privacy. + * Corresponds to "Serving restriction" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum SERVING_RESTRICTION_NAME = 632; + */ + const SERVING_RESTRICTION_NAME = 632; + /** + * Information about domain or subdomains. + * Corresponds to "Site" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, + * `PRIVACY_AND_MESSAGING` + * Data format: `STRING` + * + * Generated from protobuf enum SITE = 387; + */ + const SITE = 387; + /** + * The ID of the browser, device or other environment into which a line item + * or creative was served. + * Corresponds to "Targeting ID" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum TARGETING_ID = 232; + */ + const TARGETING_ID = 232; + /** + * Information about the browser, device and other environments into which + * a line item or creative was served. + * Corresponds to "Targeting" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum TARGETING_NAME = 233; + */ + const TARGETING_NAME = 233; + /** + * The way in which advertisers targeted their ads. + * Corresponds to "Targeting type value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum TARGETING_TYPE = 385; + */ + const TARGETING_TYPE = 385; + /** + * The localized name of the way in which advertisers targeted their ads. + * Corresponds to "Targeting type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum TARGETING_TYPE_NAME = 386; + */ + const TARGETING_TYPE_NAME = 386; + /** + * Whether a third-party cookie or device ID was present on a given ad + * request. + * Corresponds to "Third-party ID status value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum THIRD_PARTY_ID_STATUS = 402; + */ + const THIRD_PARTY_ID_STATUS = 402; + /** + * The localized name of whether a third-party cookie or device ID was + * present on a given ad request. + * Corresponds to "Third-party ID status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum THIRD_PARTY_ID_STATUS_NAME = 403; + */ + const THIRD_PARTY_ID_STATUS_NAME = 403; + /** + * Reports the status of Topics in the ad request. + * Corresponds to "Topics status value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum TOPICS_STATUS = 504; + */ + const TOPICS_STATUS = 504; + /** + * The localized name of the status of Topics in the ad request. + * Corresponds to "Topics status" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum TOPICS_STATUS_NAME = 505; + */ + const TOPICS_STATUS_NAME = 505; + /** + * Inventory top private domain dimension + * Corresponds to "Domain" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, + * `PRIVACY_AND_MESSAGING` + * Data format: `STRING` + * + * Generated from protobuf enum TOP_PRIVATE_DOMAIN = 444; + */ + const TOP_PRIVATE_DOMAIN = 444; + /** + * Inventory Traffic source dimension + * Corresponds to "Traffic source value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum TRAFFIC_SOURCE = 388; + */ + const TRAFFIC_SOURCE = 388; + /** + * Inventory Traffic source dimension name + * Corresponds to "Traffic source" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum TRAFFIC_SOURCE_NAME = 389; + */ + const TRAFFIC_SOURCE_NAME = 389; + /** + * Unified pricing rule ID dimension + * Corresponds to "Unified pricing rule ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum UNIFIED_PRICING_RULE_ID = 393; + */ + const UNIFIED_PRICING_RULE_ID = 393; + /** + * Unified pricing rule name dimension + * Corresponds to "Unified pricing rule" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum UNIFIED_PRICING_RULE_NAME = 394; + */ + const UNIFIED_PRICING_RULE_NAME = 394; + /** + * A URL defined under a publisher's inventory. + * Corresponds to "URL" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum URL = 506; + */ + const URL = 506; + /** + * A URL defined under a publisher's inventory. + * Corresponds to "URL ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum URL_ID = 507; + */ + const URL_ID = 507; + /** + * Enum value for the entitlement source. + * Corresponds to "Entitlement source value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `ENUM` + * + * Generated from protobuf enum USER_MESSAGES_ENTITLEMENT_SOURCE = 635; + */ + const USER_MESSAGES_ENTITLEMENT_SOURCE = 635; + /** + * The localized name of the entitlement source. + * Corresponds to "Entitlement source" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `STRING` + * + * Generated from protobuf enum USER_MESSAGES_ENTITLEMENT_SOURCE_NAME = 636; + */ + const USER_MESSAGES_ENTITLEMENT_SOURCE_NAME = 636; + /** + * Targeting criteria ID for the operating system group. Used for User + * Messages reports. + * Corresponds to "Operating system group ID" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID = 637; + */ + const USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID = 637; + /** + * The name of the operating system group. Used for User Messages reports. + * Corresponds to "Operating system group" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `STRING` + * + * Generated from protobuf enum USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME = 638; + */ + const USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME = 638; + /** + * The VAST version of the creative that is returned for an ad request. + * Corresponds to "Vast version value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum VAST_VERSION = 554; + */ + const VAST_VERSION = 554; + /** + * The localized name of the VAST version of the creative that is returned + * for an ad request. + * Corresponds to "Vast version" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VAST_VERSION_NAME = 555; + */ + const VAST_VERSION_NAME = 555; + /** + * The break type of a video ad request. + * Corresponds to "Video ad break type value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum VIDEO_AD_BREAK_TYPE = 556; + */ + const VIDEO_AD_BREAK_TYPE = 556; + /** + * The localized name of the break type of a video ad request. + * Corresponds to "Video ad break type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_AD_BREAK_TYPE_NAME = 557; + */ + const VIDEO_AD_BREAK_TYPE_NAME = 557; + /** + * Video ad duration + * Corresponds to "Video ad duration" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_AD_DURATION = 450; + */ + const VIDEO_AD_DURATION = 450; + /** + * The name of the video ad formats rule used to control the ad formats + * eligible for your inventory. + * Corresponds to "Video ad formats rule" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_AD_FORMATS_RULE = 561; + */ + const VIDEO_AD_FORMATS_RULE = 561; + /** + * The ID of the video ad formats rule used to control the ad formats + * eligible for your inventory. + * Corresponds to "Video ad formats rule ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum VIDEO_AD_FORMATS_RULE_ID = 560; + */ + const VIDEO_AD_FORMATS_RULE_ID = 560; + /** + * The duration of a video ad request. + * Corresponds to "Video ad request duration value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum VIDEO_AD_REQUEST_DURATION = 558; + */ + const VIDEO_AD_REQUEST_DURATION = 558; + /** + * The localized name of the midpoint of the duration of a video ad request. + * Corresponds to "Video ad request duration midpoint" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME = 751; + */ + const VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME = 751; + /** + * The localized name of the duration of a video ad request. + * Corresponds to "Video ad request duration" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_AD_REQUEST_DURATION_NAME = 559; + */ + const VIDEO_AD_REQUEST_DURATION_NAME = 559; + /** + * The video ad request source enum. + * Corresponds to "Ad request source value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum VIDEO_AD_REQUEST_SOURCE = 438; + */ + const VIDEO_AD_REQUEST_SOURCE = 438; + /** + * The localized name of the video ad request source. + * Corresponds to "Ad request source" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_AD_REQUEST_SOURCE_NAME = 439; + */ + const VIDEO_AD_REQUEST_SOURCE_NAME = 439; + /** + * Video ad type + * Corresponds to "Video ad type value" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum VIDEO_AD_TYPE = 432; + */ + const VIDEO_AD_TYPE = 432; + /** + * Video ad type localized name + * Corresponds to "Video ad type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_AD_TYPE_NAME = 433; + */ + const VIDEO_AD_TYPE_NAME = 433; + /** + * The continuous play type of the video ad impression. + * Corresponds to "Video continuous play type value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum VIDEO_CONTINUOUS_PLAY_TYPE = 721; + */ + const VIDEO_CONTINUOUS_PLAY_TYPE = 721; + /** + * Video continuous play type localized name. + * Corresponds to "Video continuous play type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_CONTINUOUS_PLAY_TYPE_NAME = 722; + */ + const VIDEO_CONTINUOUS_PLAY_TYPE_NAME = 722; + /** + * Fallback position of the video ad. + * Corresponds to "Fallback position" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_FALLBACK_POSITION = 530; + */ + const VIDEO_FALLBACK_POSITION = 530; + /** + * The performance of the video ad inventory broken out by source. + * Corresponds to "Video measurement source value" in the Ad Manager UI + * (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum VIDEO_MEASUREMENT_SOURCE = 601; + */ + const VIDEO_MEASUREMENT_SOURCE = 601; + /** + * Video measurement source localized name. + * Corresponds to "Video measurement source" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_MEASUREMENT_SOURCE_NAME = 602; + */ + const VIDEO_MEASUREMENT_SOURCE_NAME = 602; + /** + * The video placement enum as defined by ADCOM 1.0-202303. + * Corresponds to "Video placement value (new)" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum VIDEO_PLCMT = 172; + */ + const VIDEO_PLCMT = 172; + /** + * The localized name of the video placement as defined by ADCOM 1.0-202303. + * Corresponds to "Video placement (new)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_PLCMT_NAME = 173; + */ + const VIDEO_PLCMT_NAME = 173; + /** + * The position in the video pod. For example 0, 1, 2, etc. + * Corresponds to "Position in pod" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_POSITION_IN_POD = 538; + */ + const VIDEO_POSITION_IN_POD = 538; + /** + * The position of the pod in the video stream. For example pre-roll, + * mid-roll, post-roll. + * Corresponds to "Position of pod" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_POSITION_OF_POD = 539; + */ + const VIDEO_POSITION_OF_POD = 539; + /** + * The video SDK version enum. + * Corresponds to "Video SDK version value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum VIDEO_SDK_VERSION = 440; + */ + const VIDEO_SDK_VERSION = 440; + /** + * The localized name of the video SDK version. + * Corresponds to "Video SDK version" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_SDK_VERSION_NAME = 441; + */ + const VIDEO_SDK_VERSION_NAME = 441; + /** + * Video stitcher type. + * Corresponds to "Video stitcher type value" in the Ad Manager UI (when + * showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM` + * + * Generated from protobuf enum VIDEO_STITCHER_TYPE = 752; + */ + const VIDEO_STITCHER_TYPE = 752; + /** + * Localized name of the video stitcher type. + * Corresponds to "Video stitcher type" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum VIDEO_STITCHER_TYPE_NAME = 753; + */ + const VIDEO_STITCHER_TYPE_NAME = 753; + /** + * Breaks down reporting data by week of the year. + * Corresponds to "Week" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum WEEK = 5; + */ + const WEEK = 5; + /** + * Name of the company within a yield group + * Corresponds to "Yield partner" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum YIELD_GROUP_BUYER_NAME = 184; + */ + const YIELD_GROUP_BUYER_NAME = 184; + /** + * Tag of the company within a yield group. + * Corresponds to "Yield group buyer tag" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum YIELD_GROUP_BUYER_TAG_NAME = 627; + */ + const YIELD_GROUP_BUYER_TAG_NAME = 627; + /** + * ID of the group of ad networks or exchanges used for Mediation and Open + * Bidding + * Corresponds to "Yield group ID" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `IDENTIFIER` + * + * Generated from protobuf enum YIELD_GROUP_ID = 182; + */ + const YIELD_GROUP_ID = 182; + /** + * Name of the group of ad networks or exchanges used for Mediation and Open + * Bidding + * Corresponds to "Yield group" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING` + * + * Generated from protobuf enum YIELD_GROUP_NAME = 183; + */ + const YIELD_GROUP_NAME = 183; + /** + * YouTube instream ad duration bucket. + * Corresponds to "Ad duration value" in the Ad Manager UI (when showing API + * fields). + * Compatible with the following report types: + * Data format: `ENUM` + * + * Generated from protobuf enum YOUTUBE_AD_DURATION_BUCKET = 430; + */ + const YOUTUBE_AD_DURATION_BUCKET = 430; + /** + * YouTube instream ad duration bucket name. + * Corresponds to "Ad duration" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `STRING` + * + * Generated from protobuf enum YOUTUBE_AD_DURATION_BUCKET_NAME = 431; + */ + const YOUTUBE_AD_DURATION_BUCKET_NAME = 431; + /** + * YouTube instream Ad Type. + * Corresponds to "YouTube ad type ID" in the Ad Manager UI (when showing + * API fields). + * Compatible with the following report types: + * Data format: `ENUM` + * + * Generated from protobuf enum YOUTUBE_AD_TYPE = 399; + */ + const YOUTUBE_AD_TYPE = 399; + /** + * YouTube instream Ad Type locallized name. + * Corresponds to "YouTube ad type" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `STRING` + * + * Generated from protobuf enum YOUTUBE_AD_TYPE_NAME = 400; + */ + const YOUTUBE_AD_TYPE_NAME = 400; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 0 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; + */ + const LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 1 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; + */ + const LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 2 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; + */ + const LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 3 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; + */ + const LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 4 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; + */ + const LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 5 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; + */ + const LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 6 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; + */ + const LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 7 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; + */ + const LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 8 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; + */ + const LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 9 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; + */ + const LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 10 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; + */ + const LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 11 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; + */ + const LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 12 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; + */ + const LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 13 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; + */ + const LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; + /** + * Custom field option ID for Line Item with custom field ID equal to the ID + * in index 14 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; + */ + const LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 0 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 0 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; + */ + const LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 1 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 1 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; + */ + const LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 2 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 2 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; + */ + const LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 3 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 3 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; + */ + const LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 4 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 4 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; + */ + const LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 5 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 5 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; + */ + const LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 6 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 6 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; + */ + const LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 7 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 7 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; + */ + const LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 8 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 8 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; + */ + const LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 9 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 9 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; + */ + const LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 10 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 10 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; + */ + const LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 11 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 11 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; + */ + const LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 12 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 12 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; + */ + const LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 13 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 13 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; + */ + const LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; + /** + * Custom field value for Line Item with custom field ID equal to the ID + * in index 14 of `ReportDefinition.line_item_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 14 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; + */ + const LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 0 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; + */ + const ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 1 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; + */ + const ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 2 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; + */ + const ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 3 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; + */ + const ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 4 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; + */ + const ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 5 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; + */ + const ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 6 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; + */ + const ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 7 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; + */ + const ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 8 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; + */ + const ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 9 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; + */ + const ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 10 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; + */ + const ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 11 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; + */ + const ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 12 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; + */ + const ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 13 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; + */ + const ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; + /** + * Custom field option ID for Order with custom field ID equal to the ID + * in index 14 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; + */ + const ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the value + * as a string. Can only be used if the custom field at index 0 is of type + * STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_0_VALUE = 13000; + */ + const ORDER_CUSTOM_FIELD_0_VALUE = 13000; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the value + * as a string. Can only be used if the custom field at index 1 is of type + * STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_1_VALUE = 13001; + */ + const ORDER_CUSTOM_FIELD_1_VALUE = 13001; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the value + * as a string. Can only be used if the custom field at index 2 is of type + * STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_2_VALUE = 13002; + */ + const ORDER_CUSTOM_FIELD_2_VALUE = 13002; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the value + * as a string. Can only be used if the custom field at index 3 is of type + * STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_3_VALUE = 13003; + */ + const ORDER_CUSTOM_FIELD_3_VALUE = 13003; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the value + * as a string. Can only be used if the custom field at index 4 is of type + * STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_4_VALUE = 13004; + */ + const ORDER_CUSTOM_FIELD_4_VALUE = 13004; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the value + * as a string. Can only be used if the custom field at index 5 is of type + * STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_5_VALUE = 13005; + */ + const ORDER_CUSTOM_FIELD_5_VALUE = 13005; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the value + * as a string. Can only be used if the custom field at index 6 is of type + * STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_6_VALUE = 13006; + */ + const ORDER_CUSTOM_FIELD_6_VALUE = 13006; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the value + * as a string. Can only be used if the custom field at index 7 is of type + * STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_7_VALUE = 13007; + */ + const ORDER_CUSTOM_FIELD_7_VALUE = 13007; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the value + * as a string. Can only be used if the custom field at index 8 is of type + * STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_8_VALUE = 13008; + */ + const ORDER_CUSTOM_FIELD_8_VALUE = 13008; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the value + * as a string. Can only be used if the custom field at index 9 is of type + * STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_9_VALUE = 13009; + */ + const ORDER_CUSTOM_FIELD_9_VALUE = 13009; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 10 is of + * type STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_10_VALUE = 13010; + */ + const ORDER_CUSTOM_FIELD_10_VALUE = 13010; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 11 is of + * type STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_11_VALUE = 13011; + */ + const ORDER_CUSTOM_FIELD_11_VALUE = 13011; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 12 is of + * type STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_12_VALUE = 13012; + */ + const ORDER_CUSTOM_FIELD_12_VALUE = 13012; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 13 is of + * type STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_13_VALUE = 13013; + */ + const ORDER_CUSTOM_FIELD_13_VALUE = 13013; + /** + * Custom field value for Order with custom field ID equal to the ID + * in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 14 is of + * type STRING. + * + * Generated from protobuf enum ORDER_CUSTOM_FIELD_14_VALUE = 13014; + */ + const ORDER_CUSTOM_FIELD_14_VALUE = 13014; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 0 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; + */ + const CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 1 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; + */ + const CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 2 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; + */ + const CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 3 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; + */ + const CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 4 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; + */ + const CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 5 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; + */ + const CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 6 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; + */ + const CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 7 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; + */ + const CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 8 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; + */ + const CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 9 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; + */ + const CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 10 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; + */ + const CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 11 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; + */ + const CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 12 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; + */ + const CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 13 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; + */ + const CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; + /** + * Custom field option ID for Creative with custom field ID equal to the ID + * in index 14 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; + */ + const CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 0 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; + */ + const CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 1 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; + */ + const CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 2 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; + */ + const CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 3 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; + */ + const CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 4 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; + */ + const CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 5 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; + */ + const CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 6 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; + */ + const CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 7 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; + */ + const CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 8 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; + */ + const CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 9 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; + */ + const CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 10 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 10 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; + */ + const CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 11 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 11 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; + */ + const CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 12 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 12 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; + */ + const CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 13 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 13 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; + */ + const CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; + /** + * Custom field value for Creative with custom field ID equal to the ID + * in index 14 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 14 is of + * type STRING. + * + * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; + */ + const CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; + /** + * Custom field option ID for Backfill line item with custom field ID equal + * to the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 0 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 1 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 2 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 3 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 4 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 5 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 6 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 7 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 8 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 9 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 10 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 11 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 12 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 13 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; + /** + * Custom field value for Backfill line item with custom field ID equal to + * the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 14 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; + */ + const BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 0 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 1 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 2 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 3 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 4 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 5 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 6 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 7 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 8 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 9 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 10 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 11 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 12 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 13 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; + /** + * Custom field option ID for Backfill order with custom field ID equal to + * the ID in index 14 of `ReportDefinition.order_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID + * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 0 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 1 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 2 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 3 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 4 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 5 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 6 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 7 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 8 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 9 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 10 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 11 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 12 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 13 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; + /** + * Custom field value for Backfill order with custom field ID equal to the + * ID in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 14 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; + */ + const BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 0 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; + /** + * Custom field option ID for Backfill creative with custom field ID equal + * to the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID + * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the + * value as a string. Can only be used if the custom field at index 0 is of + * type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats + * the value as a string. Can only be used if the custom field at index 1 is + * of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats + * the value as a string. Can only be used if the custom field at index 2 is + * of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats + * the value as a string. Can only be used if the custom field at index 3 is + * of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats + * the value as a string. Can only be used if the custom field at index 4 is + * of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats + * the value as a string. Can only be used if the custom field at index 5 is + * of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats + * the value as a string. Can only be used if the custom field at index 6 is + * of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats + * the value as a string. Can only be used if the custom field at index 7 is + * of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats + * the value as a string. Can only be used if the custom field at index 8 is + * of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats + * the value as a string. Can only be used if the custom field at index 9 is + * of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 10 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 11 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 12 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 13 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; + /** + * Custom field value for Backfill creative with custom field ID equal to + * the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. + * Treats the value as a string. Can only be used if the custom field at + * index 14 is of type `STRING` or `DROPDOWN`. + * + * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; + */ + const BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; + /** + * Custom Dimension Value ID for Custom Dimension with key equal to the key + * in index 0 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_0_VALUE_ID = 100000; + */ + const CUSTOM_DIMENSION_0_VALUE_ID = 100000; + /** + * Custom Dimension Value ID for Custom Dimension with key equal to the key + * in index 1 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_1_VALUE_ID = 100001; + */ + const CUSTOM_DIMENSION_1_VALUE_ID = 100001; + /** + * Custom Dimension Value ID for Custom Dimension with key equal to the key + * in index 2 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_2_VALUE_ID = 100002; + */ + const CUSTOM_DIMENSION_2_VALUE_ID = 100002; + /** + * Custom Dimension Value ID for Custom Dimension with key equal to the key + * in index 3 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_3_VALUE_ID = 100003; + */ + const CUSTOM_DIMENSION_3_VALUE_ID = 100003; + /** + * Custom Dimension Value ID for Custom Dimension with key equal to the key + * in index 4 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_4_VALUE_ID = 100004; + */ + const CUSTOM_DIMENSION_4_VALUE_ID = 100004; + /** + * Custom Dimension Value ID for Custom Dimension with key equal to the key + * in index 5 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_5_VALUE_ID = 100005; + */ + const CUSTOM_DIMENSION_5_VALUE_ID = 100005; + /** + * Custom Dimension Value ID for Custom Dimension with key equal to the key + * in index 6 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_6_VALUE_ID = 100006; + */ + const CUSTOM_DIMENSION_6_VALUE_ID = 100006; + /** + * Custom Dimension Value ID for Custom Dimension with key equal to the key + * in index 9 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_7_VALUE_ID = 100007; + */ + const CUSTOM_DIMENSION_7_VALUE_ID = 100007; + /** + * Custom Dimension Value ID for Custom Dimension with key equal to the key + * in index 8 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_8_VALUE_ID = 100008; + */ + const CUSTOM_DIMENSION_8_VALUE_ID = 100008; + /** + * Custom Dimension Value ID for Custom Dimension with key equal to the key + * in index 9 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_9_VALUE_ID = 100009; + */ + const CUSTOM_DIMENSION_9_VALUE_ID = 100009; + /** + * Custom Dimension Value name for Custom Dimension with key equal to the + * ID in index 0 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_0_VALUE = 101000; + */ + const CUSTOM_DIMENSION_0_VALUE = 101000; + /** + * Custom Dimension Value name for Custom Dimension with key equal to the + * ID in index 1 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_1_VALUE = 101001; + */ + const CUSTOM_DIMENSION_1_VALUE = 101001; + /** + * Custom Dimension Value name for Custom Dimension with key equal to the + * ID in index 2 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_2_VALUE = 101002; + */ + const CUSTOM_DIMENSION_2_VALUE = 101002; + /** + * Custom Dimension Value name for Custom Dimension with key equal to the + * ID in index 3 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_3_VALUE = 101003; + */ + const CUSTOM_DIMENSION_3_VALUE = 101003; + /** + * Custom Dimension Value name for Custom Dimension with key equal to the + * ID in index 4 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_4_VALUE = 101004; + */ + const CUSTOM_DIMENSION_4_VALUE = 101004; + /** + * Custom Dimension Value name for Custom Dimension with key equal to the + * ID in index 5 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_5_VALUE = 101005; + */ + const CUSTOM_DIMENSION_5_VALUE = 101005; + /** + * Custom Dimension Value name for Custom Dimension with key equal to the + * ID in index 6 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_6_VALUE = 101006; + */ + const CUSTOM_DIMENSION_6_VALUE = 101006; + /** + * Custom Dimension Value name for Custom Dimension with key equal to the + * ID in index 7 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_7_VALUE = 101007; + */ + const CUSTOM_DIMENSION_7_VALUE = 101007; + /** + * Custom Dimension Value name for Custom Dimension with key equal to the + * ID in index 8 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_8_VALUE = 101008; + */ + const CUSTOM_DIMENSION_8_VALUE = 101008; + /** + * Custom Dimension Value name for Custom Dimension with key equal to the + * ID in index 9 of `ReportDefinition.custom_dimension_key_ids`. + * + * Generated from protobuf enum CUSTOM_DIMENSION_9_VALUE = 101009; + */ + const CUSTOM_DIMENSION_9_VALUE = 101009; + + private static $valueToName = [ + self::DIMENSION_UNSPECIFIED => 'DIMENSION_UNSPECIFIED', + self::ACTIVE_VIEW_MEASUREMENT_SOURCE => 'ACTIVE_VIEW_MEASUREMENT_SOURCE', + self::ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME => 'ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME', + self::ADVERTISER_CREDIT_STATUS => 'ADVERTISER_CREDIT_STATUS', + self::ADVERTISER_CREDIT_STATUS_NAME => 'ADVERTISER_CREDIT_STATUS_NAME', + self::ADVERTISER_DOMAIN_NAME => 'ADVERTISER_DOMAIN_NAME', + self::ADVERTISER_EXTERNAL_ID => 'ADVERTISER_EXTERNAL_ID', + self::ADVERTISER_ID => 'ADVERTISER_ID', + self::ADVERTISER_LABELS => 'ADVERTISER_LABELS', + self::ADVERTISER_LABEL_IDS => 'ADVERTISER_LABEL_IDS', + self::ADVERTISER_NAME => 'ADVERTISER_NAME', + self::ADVERTISER_PRIMARY_CONTACT => 'ADVERTISER_PRIMARY_CONTACT', + self::ADVERTISER_STATUS => 'ADVERTISER_STATUS', + self::ADVERTISER_STATUS_NAME => 'ADVERTISER_STATUS_NAME', + self::ADVERTISER_TYPE => 'ADVERTISER_TYPE', + self::ADVERTISER_TYPE_NAME => 'ADVERTISER_TYPE_NAME', + self::ADVERTISER_VERTICAL => 'ADVERTISER_VERTICAL', + self::ADX_PRODUCT => 'ADX_PRODUCT', + self::ADX_PRODUCT_NAME => 'ADX_PRODUCT_NAME', + self::AD_EXPERIENCES_TYPE => 'AD_EXPERIENCES_TYPE', + self::AD_EXPERIENCES_TYPE_NAME => 'AD_EXPERIENCES_TYPE_NAME', + self::AD_LOCATION => 'AD_LOCATION', + self::AD_LOCATION_NAME => 'AD_LOCATION_NAME', + self::AD_TECHNOLOGY_PROVIDER_DOMAIN => 'AD_TECHNOLOGY_PROVIDER_DOMAIN', + self::AD_TECHNOLOGY_PROVIDER_ID => 'AD_TECHNOLOGY_PROVIDER_ID', + self::AD_TECHNOLOGY_PROVIDER_NAME => 'AD_TECHNOLOGY_PROVIDER_NAME', + self::AD_TYPE => 'AD_TYPE', + self::AD_TYPE_NAME => 'AD_TYPE_NAME', + self::AD_UNIT_CODE => 'AD_UNIT_CODE', + self::AD_UNIT_CODE_LEVEL_1 => 'AD_UNIT_CODE_LEVEL_1', + self::AD_UNIT_CODE_LEVEL_10 => 'AD_UNIT_CODE_LEVEL_10', + self::AD_UNIT_CODE_LEVEL_11 => 'AD_UNIT_CODE_LEVEL_11', + self::AD_UNIT_CODE_LEVEL_12 => 'AD_UNIT_CODE_LEVEL_12', + self::AD_UNIT_CODE_LEVEL_13 => 'AD_UNIT_CODE_LEVEL_13', + self::AD_UNIT_CODE_LEVEL_14 => 'AD_UNIT_CODE_LEVEL_14', + self::AD_UNIT_CODE_LEVEL_15 => 'AD_UNIT_CODE_LEVEL_15', + self::AD_UNIT_CODE_LEVEL_16 => 'AD_UNIT_CODE_LEVEL_16', + self::AD_UNIT_CODE_LEVEL_2 => 'AD_UNIT_CODE_LEVEL_2', + self::AD_UNIT_CODE_LEVEL_3 => 'AD_UNIT_CODE_LEVEL_3', + self::AD_UNIT_CODE_LEVEL_4 => 'AD_UNIT_CODE_LEVEL_4', + self::AD_UNIT_CODE_LEVEL_5 => 'AD_UNIT_CODE_LEVEL_5', + self::AD_UNIT_CODE_LEVEL_6 => 'AD_UNIT_CODE_LEVEL_6', + self::AD_UNIT_CODE_LEVEL_7 => 'AD_UNIT_CODE_LEVEL_7', + self::AD_UNIT_CODE_LEVEL_8 => 'AD_UNIT_CODE_LEVEL_8', + self::AD_UNIT_CODE_LEVEL_9 => 'AD_UNIT_CODE_LEVEL_9', + self::AD_UNIT_ID => 'AD_UNIT_ID', + self::AD_UNIT_ID_ALL_LEVEL => 'AD_UNIT_ID_ALL_LEVEL', + self::AD_UNIT_ID_LEVEL_1 => 'AD_UNIT_ID_LEVEL_1', + self::AD_UNIT_ID_LEVEL_10 => 'AD_UNIT_ID_LEVEL_10', + self::AD_UNIT_ID_LEVEL_11 => 'AD_UNIT_ID_LEVEL_11', + self::AD_UNIT_ID_LEVEL_12 => 'AD_UNIT_ID_LEVEL_12', + self::AD_UNIT_ID_LEVEL_13 => 'AD_UNIT_ID_LEVEL_13', + self::AD_UNIT_ID_LEVEL_14 => 'AD_UNIT_ID_LEVEL_14', + self::AD_UNIT_ID_LEVEL_15 => 'AD_UNIT_ID_LEVEL_15', + self::AD_UNIT_ID_LEVEL_16 => 'AD_UNIT_ID_LEVEL_16', + self::AD_UNIT_ID_LEVEL_2 => 'AD_UNIT_ID_LEVEL_2', + self::AD_UNIT_ID_LEVEL_3 => 'AD_UNIT_ID_LEVEL_3', + self::AD_UNIT_ID_LEVEL_4 => 'AD_UNIT_ID_LEVEL_4', + self::AD_UNIT_ID_LEVEL_5 => 'AD_UNIT_ID_LEVEL_5', + self::AD_UNIT_ID_LEVEL_6 => 'AD_UNIT_ID_LEVEL_6', + self::AD_UNIT_ID_LEVEL_7 => 'AD_UNIT_ID_LEVEL_7', + self::AD_UNIT_ID_LEVEL_8 => 'AD_UNIT_ID_LEVEL_8', + self::AD_UNIT_ID_LEVEL_9 => 'AD_UNIT_ID_LEVEL_9', + self::AD_UNIT_ID_TOP_LEVEL => 'AD_UNIT_ID_TOP_LEVEL', + self::AD_UNIT_NAME => 'AD_UNIT_NAME', + self::AD_UNIT_NAME_ALL_LEVEL => 'AD_UNIT_NAME_ALL_LEVEL', + self::AD_UNIT_NAME_LEVEL_1 => 'AD_UNIT_NAME_LEVEL_1', + self::AD_UNIT_NAME_LEVEL_10 => 'AD_UNIT_NAME_LEVEL_10', + self::AD_UNIT_NAME_LEVEL_11 => 'AD_UNIT_NAME_LEVEL_11', + self::AD_UNIT_NAME_LEVEL_12 => 'AD_UNIT_NAME_LEVEL_12', + self::AD_UNIT_NAME_LEVEL_13 => 'AD_UNIT_NAME_LEVEL_13', + self::AD_UNIT_NAME_LEVEL_14 => 'AD_UNIT_NAME_LEVEL_14', + self::AD_UNIT_NAME_LEVEL_15 => 'AD_UNIT_NAME_LEVEL_15', + self::AD_UNIT_NAME_LEVEL_16 => 'AD_UNIT_NAME_LEVEL_16', + self::AD_UNIT_NAME_LEVEL_2 => 'AD_UNIT_NAME_LEVEL_2', + self::AD_UNIT_NAME_LEVEL_3 => 'AD_UNIT_NAME_LEVEL_3', + self::AD_UNIT_NAME_LEVEL_4 => 'AD_UNIT_NAME_LEVEL_4', + self::AD_UNIT_NAME_LEVEL_5 => 'AD_UNIT_NAME_LEVEL_5', + self::AD_UNIT_NAME_LEVEL_6 => 'AD_UNIT_NAME_LEVEL_6', + self::AD_UNIT_NAME_LEVEL_7 => 'AD_UNIT_NAME_LEVEL_7', + self::AD_UNIT_NAME_LEVEL_8 => 'AD_UNIT_NAME_LEVEL_8', + self::AD_UNIT_NAME_LEVEL_9 => 'AD_UNIT_NAME_LEVEL_9', + self::AD_UNIT_NAME_TOP_LEVEL => 'AD_UNIT_NAME_TOP_LEVEL', + self::AD_UNIT_REWARD_AMOUNT => 'AD_UNIT_REWARD_AMOUNT', + self::AD_UNIT_REWARD_TYPE => 'AD_UNIT_REWARD_TYPE', + self::AD_UNIT_STATUS => 'AD_UNIT_STATUS', + self::AD_UNIT_STATUS_NAME => 'AD_UNIT_STATUS_NAME', + self::AGENCY_LEVEL_1_ID => 'AGENCY_LEVEL_1_ID', + self::AGENCY_LEVEL_1_NAME => 'AGENCY_LEVEL_1_NAME', + self::AGENCY_LEVEL_2_ID => 'AGENCY_LEVEL_2_ID', + self::AGENCY_LEVEL_2_NAME => 'AGENCY_LEVEL_2_NAME', + self::AGENCY_LEVEL_3_ID => 'AGENCY_LEVEL_3_ID', + self::AGENCY_LEVEL_3_NAME => 'AGENCY_LEVEL_3_NAME', + self::AGE_BRACKET => 'AGE_BRACKET', + self::AGE_BRACKET_NAME => 'AGE_BRACKET_NAME', + self::APP_TRACKING_TRANSPARENCY_CONSENT_STATUS => 'APP_TRACKING_TRANSPARENCY_CONSENT_STATUS', + self::APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME => 'APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME', + self::APP_VERSION => 'APP_VERSION', + self::AUCTION_PACKAGE_DEAL => 'AUCTION_PACKAGE_DEAL', + self::AUCTION_PACKAGE_DEAL_ID => 'AUCTION_PACKAGE_DEAL_ID', + self::AUDIENCE_SEGMENT_ID_TARGETED => 'AUDIENCE_SEGMENT_ID_TARGETED', + self::AUDIENCE_SEGMENT_TARGETED => 'AUDIENCE_SEGMENT_TARGETED', + self::AUTO_REFRESHED_TRAFFIC => 'AUTO_REFRESHED_TRAFFIC', + self::AUTO_REFRESHED_TRAFFIC_NAME => 'AUTO_REFRESHED_TRAFFIC_NAME', + self::BIDDER_ENCRYPTED_ID => 'BIDDER_ENCRYPTED_ID', + self::BIDDER_NAME => 'BIDDER_NAME', + self::BID_RANGE => 'BID_RANGE', + self::BID_REJECTION_REASON => 'BID_REJECTION_REASON', + self::BID_REJECTION_REASON_NAME => 'BID_REJECTION_REASON_NAME', + self::BRANDING_TYPE => 'BRANDING_TYPE', + self::BRANDING_TYPE_NAME => 'BRANDING_TYPE_NAME', + self::BROWSER_CATEGORY => 'BROWSER_CATEGORY', + self::BROWSER_CATEGORY_NAME => 'BROWSER_CATEGORY_NAME', + self::BROWSER_ID => 'BROWSER_ID', + self::BROWSER_NAME => 'BROWSER_NAME', + self::BUYER_NETWORK_ID => 'BUYER_NETWORK_ID', + self::BUYER_NETWORK_NAME => 'BUYER_NETWORK_NAME', + self::CALLOUT_STATUS_CATEGORY => 'CALLOUT_STATUS_CATEGORY', + self::CALLOUT_STATUS_CATEGORY_NAME => 'CALLOUT_STATUS_CATEGORY_NAME', + self::CARRIER_ID => 'CARRIER_ID', + self::CARRIER_NAME => 'CARRIER_NAME', + self::CHANNEL => 'CHANNEL', + self::CHILD_NETWORK_CODE => 'CHILD_NETWORK_CODE', + self::CHILD_NETWORK_ID => 'CHILD_NETWORK_ID', + self::CHILD_PARTNER_NAME => 'CHILD_PARTNER_NAME', + self::CITY_ID => 'CITY_ID', + self::CITY_NAME => 'CITY_NAME', + self::CLASSIFIED_ADVERTISER_ID => 'CLASSIFIED_ADVERTISER_ID', + self::CLASSIFIED_ADVERTISER_NAME => 'CLASSIFIED_ADVERTISER_NAME', + self::CLASSIFIED_BRAND_ID => 'CLASSIFIED_BRAND_ID', + self::CLASSIFIED_BRAND_NAME => 'CLASSIFIED_BRAND_NAME', + self::CONTENT_CMS_NAME => 'CONTENT_CMS_NAME', + self::CONTENT_CMS_VIDEO_ID => 'CONTENT_CMS_VIDEO_ID', + self::CONTENT_ID => 'CONTENT_ID', + self::CONTENT_MAPPING_PRESENCE => 'CONTENT_MAPPING_PRESENCE', + self::CONTENT_MAPPING_PRESENCE_NAME => 'CONTENT_MAPPING_PRESENCE_NAME', + self::CONTENT_NAME => 'CONTENT_NAME', + self::CONTINENT => 'CONTINENT', + self::CONTINENT_NAME => 'CONTINENT_NAME', + self::COUNTRY_CODE => 'COUNTRY_CODE', + self::COUNTRY_ID => 'COUNTRY_ID', + self::COUNTRY_NAME => 'COUNTRY_NAME', + self::CREATIVE_BILLING_TYPE => 'CREATIVE_BILLING_TYPE', + self::CREATIVE_BILLING_TYPE_NAME => 'CREATIVE_BILLING_TYPE_NAME', + self::CREATIVE_CLICK_THROUGH_URL => 'CREATIVE_CLICK_THROUGH_URL', + self::CREATIVE_ID => 'CREATIVE_ID', + self::CREATIVE_NAME => 'CREATIVE_NAME', + self::CREATIVE_POLICIES_FILTERING => 'CREATIVE_POLICIES_FILTERING', + self::CREATIVE_POLICIES_FILTERING_NAME => 'CREATIVE_POLICIES_FILTERING_NAME', + self::CREATIVE_PROTECTIONS_FILTERING => 'CREATIVE_PROTECTIONS_FILTERING', + self::CREATIVE_PROTECTIONS_FILTERING_NAME => 'CREATIVE_PROTECTIONS_FILTERING_NAME', + self::CREATIVE_SET_ROLE_TYPE => 'CREATIVE_SET_ROLE_TYPE', + self::CREATIVE_SET_ROLE_TYPE_NAME => 'CREATIVE_SET_ROLE_TYPE_NAME', + self::CREATIVE_TECHNOLOGY => 'CREATIVE_TECHNOLOGY', + self::CREATIVE_TECHNOLOGY_NAME => 'CREATIVE_TECHNOLOGY_NAME', + self::CREATIVE_THIRD_PARTY_VENDOR => 'CREATIVE_THIRD_PARTY_VENDOR', + self::CREATIVE_TYPE => 'CREATIVE_TYPE', + self::CREATIVE_TYPE_NAME => 'CREATIVE_TYPE_NAME', + self::CREATIVE_VENDOR_ID => 'CREATIVE_VENDOR_ID', + self::CREATIVE_VENDOR_NAME => 'CREATIVE_VENDOR_NAME', + self::CREATIVE_VIDEO_REDIRECT_THIRD_PARTY => 'CREATIVE_VIDEO_REDIRECT_THIRD_PARTY', + self::CURATOR_ID => 'CURATOR_ID', + self::CURATOR_NAME => 'CURATOR_NAME', + self::CUSTOM_EVENT_ID => 'CUSTOM_EVENT_ID', + self::CUSTOM_EVENT_NAME => 'CUSTOM_EVENT_NAME', + self::CUSTOM_EVENT_TYPE => 'CUSTOM_EVENT_TYPE', + self::CUSTOM_EVENT_TYPE_NAME => 'CUSTOM_EVENT_TYPE_NAME', + self::CUSTOM_SPOT_ID => 'CUSTOM_SPOT_ID', + self::CUSTOM_SPOT_NAME => 'CUSTOM_SPOT_NAME', + self::DATE => 'DATE', + self::DAY_OF_WEEK => 'DAY_OF_WEEK', + self::DEAL_BUYER_ID => 'DEAL_BUYER_ID', + self::DEAL_BUYER_NAME => 'DEAL_BUYER_NAME', + self::DEAL_ID => 'DEAL_ID', + self::DEAL_NAME => 'DEAL_NAME', + self::DELIVERED_SECURE_SIGNAL_ID => 'DELIVERED_SECURE_SIGNAL_ID', + self::DELIVERED_SECURE_SIGNAL_NAME => 'DELIVERED_SECURE_SIGNAL_NAME', + self::DEMAND_CHANNEL => 'DEMAND_CHANNEL', + self::DEMAND_CHANNEL_NAME => 'DEMAND_CHANNEL_NAME', + self::DEMAND_SOURCE => 'DEMAND_SOURCE', + self::DEMAND_SOURCE_NAME => 'DEMAND_SOURCE_NAME', + self::DEMAND_SUBCHANNEL => 'DEMAND_SUBCHANNEL', + self::DEMAND_SUBCHANNEL_NAME => 'DEMAND_SUBCHANNEL_NAME', + self::DEVICE => 'DEVICE', + self::DEVICE_CATEGORY => 'DEVICE_CATEGORY', + self::DEVICE_CATEGORY_NAME => 'DEVICE_CATEGORY_NAME', + self::DEVICE_MANUFACTURER_ID => 'DEVICE_MANUFACTURER_ID', + self::DEVICE_MANUFACTURER_NAME => 'DEVICE_MANUFACTURER_NAME', + self::DEVICE_MODEL_ID => 'DEVICE_MODEL_ID', + self::DEVICE_MODEL_NAME => 'DEVICE_MODEL_NAME', + self::DEVICE_NAME => 'DEVICE_NAME', + self::DSP_SEAT_ID => 'DSP_SEAT_ID', + self::DYNAMIC_ALLOCATION_TYPE => 'DYNAMIC_ALLOCATION_TYPE', + self::DYNAMIC_ALLOCATION_TYPE_NAME => 'DYNAMIC_ALLOCATION_TYPE_NAME', + self::ESP_DELIVERY => 'ESP_DELIVERY', + self::ESP_DELIVERY_NAME => 'ESP_DELIVERY_NAME', + self::ESP_PRESENCE => 'ESP_PRESENCE', + self::ESP_PRESENCE_NAME => 'ESP_PRESENCE_NAME', + self::EXCHANGE_BIDDING_DEAL_ID => 'EXCHANGE_BIDDING_DEAL_ID', + self::EXCHANGE_BIDDING_DEAL_TYPE => 'EXCHANGE_BIDDING_DEAL_TYPE', + self::EXCHANGE_BIDDING_DEAL_TYPE_NAME => 'EXCHANGE_BIDDING_DEAL_TYPE_NAME', + self::EXCHANGE_THIRD_PARTY_COMPANY_ID => 'EXCHANGE_THIRD_PARTY_COMPANY_ID', + self::EXCHANGE_THIRD_PARTY_COMPANY_NAME => 'EXCHANGE_THIRD_PARTY_COMPANY_NAME', + self::FIRST_LOOK_PRICING_RULE_ID => 'FIRST_LOOK_PRICING_RULE_ID', + self::FIRST_LOOK_PRICING_RULE_NAME => 'FIRST_LOOK_PRICING_RULE_NAME', + self::FIRST_PARTY_ID_STATUS => 'FIRST_PARTY_ID_STATUS', + self::FIRST_PARTY_ID_STATUS_NAME => 'FIRST_PARTY_ID_STATUS_NAME', + self::GENDER => 'GENDER', + self::GENDER_NAME => 'GENDER_NAME', + self::GOOGLE_ANALYTICS_STREAM_ID => 'GOOGLE_ANALYTICS_STREAM_ID', + self::GOOGLE_ANALYTICS_STREAM_NAME => 'GOOGLE_ANALYTICS_STREAM_NAME', + self::HBT_YIELD_PARTNER_ID => 'HBT_YIELD_PARTNER_ID', + self::HBT_YIELD_PARTNER_NAME => 'HBT_YIELD_PARTNER_NAME', + self::HEADER_BIDDER_INTEGRATION_TYPE => 'HEADER_BIDDER_INTEGRATION_TYPE', + self::HEADER_BIDDER_INTEGRATION_TYPE_NAME => 'HEADER_BIDDER_INTEGRATION_TYPE_NAME', + self::HOUR => 'HOUR', + self::IMPRESSION_COUNTING_METHOD => 'IMPRESSION_COUNTING_METHOD', + self::IMPRESSION_COUNTING_METHOD_NAME => 'IMPRESSION_COUNTING_METHOD_NAME', + self::INTERACTION_TYPE => 'INTERACTION_TYPE', + self::INTERACTION_TYPE_NAME => 'INTERACTION_TYPE_NAME', + self::INTEREST => 'INTEREST', + self::INVENTORY_FORMAT => 'INVENTORY_FORMAT', + self::INVENTORY_FORMAT_NAME => 'INVENTORY_FORMAT_NAME', + self::INVENTORY_SHARE_ASSIGNMENT_ID => 'INVENTORY_SHARE_ASSIGNMENT_ID', + self::INVENTORY_SHARE_ASSIGNMENT_NAME => 'INVENTORY_SHARE_ASSIGNMENT_NAME', + self::INVENTORY_SHARE_OUTCOME => 'INVENTORY_SHARE_OUTCOME', + self::INVENTORY_SHARE_OUTCOME_NAME => 'INVENTORY_SHARE_OUTCOME_NAME', + self::INVENTORY_SHARE_PARTNER_AD_SERVER => 'INVENTORY_SHARE_PARTNER_AD_SERVER', + self::INVENTORY_SHARE_PARTNER_AD_SERVER_NAME => 'INVENTORY_SHARE_PARTNER_AD_SERVER_NAME', + self::INVENTORY_SHARE_TARGET_SHARE_PERCENT => 'INVENTORY_SHARE_TARGET_SHARE_PERCENT', + self::INVENTORY_SHARE_TYPE => 'INVENTORY_SHARE_TYPE', + self::INVENTORY_SHARE_TYPE_NAME => 'INVENTORY_SHARE_TYPE_NAME', + self::INVENTORY_TYPE => 'INVENTORY_TYPE', + self::INVENTORY_TYPE_NAME => 'INVENTORY_TYPE_NAME', + self::IS_ADX_DIRECT => 'IS_ADX_DIRECT', + self::IS_CURATION_TARGETED => 'IS_CURATION_TARGETED', + self::IS_DROPPED => 'IS_DROPPED', + self::IS_FIRST_LOOK_DEAL => 'IS_FIRST_LOOK_DEAL', + self::KEY_VALUES_ID => 'KEY_VALUES_ID', + self::KEY_VALUES_NAME => 'KEY_VALUES_NAME', + self::LINE_ITEM_AGENCY => 'LINE_ITEM_AGENCY', + self::LINE_ITEM_ARCHIVED => 'LINE_ITEM_ARCHIVED', + self::LINE_ITEM_COMPANION_DELIVERY_OPTION => 'LINE_ITEM_COMPANION_DELIVERY_OPTION', + self::LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME => 'LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME', + self::LINE_ITEM_COMPUTED_STATUS => 'LINE_ITEM_COMPUTED_STATUS', + self::LINE_ITEM_COMPUTED_STATUS_NAME => 'LINE_ITEM_COMPUTED_STATUS_NAME', + self::LINE_ITEM_CONTRACTED_QUANTITY => 'LINE_ITEM_CONTRACTED_QUANTITY', + self::LINE_ITEM_COST_PER_UNIT => 'LINE_ITEM_COST_PER_UNIT', + self::LINE_ITEM_COST_TYPE => 'LINE_ITEM_COST_TYPE', + self::LINE_ITEM_COST_TYPE_NAME => 'LINE_ITEM_COST_TYPE_NAME', + self::LINE_ITEM_CREATIVE_END_DATE => 'LINE_ITEM_CREATIVE_END_DATE', + self::LINE_ITEM_CREATIVE_ROTATION_TYPE => 'LINE_ITEM_CREATIVE_ROTATION_TYPE', + self::LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME => 'LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME', + self::LINE_ITEM_CREATIVE_START_DATE => 'LINE_ITEM_CREATIVE_START_DATE', + self::LINE_ITEM_CURRENCY_CODE => 'LINE_ITEM_CURRENCY_CODE', + self::LINE_ITEM_DELIVERY_INDICATOR => 'LINE_ITEM_DELIVERY_INDICATOR', + self::LINE_ITEM_DELIVERY_RATE_TYPE => 'LINE_ITEM_DELIVERY_RATE_TYPE', + self::LINE_ITEM_DELIVERY_RATE_TYPE_NAME => 'LINE_ITEM_DELIVERY_RATE_TYPE_NAME', + self::LINE_ITEM_DISCOUNT_ABSOLUTE => 'LINE_ITEM_DISCOUNT_ABSOLUTE', + self::LINE_ITEM_DISCOUNT_PERCENTAGE => 'LINE_ITEM_DISCOUNT_PERCENTAGE', + self::LINE_ITEM_END_DATE => 'LINE_ITEM_END_DATE', + self::LINE_ITEM_END_DATE_TIME => 'LINE_ITEM_END_DATE_TIME', + self::LINE_ITEM_ENVIRONMENT_TYPE => 'LINE_ITEM_ENVIRONMENT_TYPE', + self::LINE_ITEM_ENVIRONMENT_TYPE_NAME => 'LINE_ITEM_ENVIRONMENT_TYPE_NAME', + self::LINE_ITEM_EXTERNAL_DEAL_ID => 'LINE_ITEM_EXTERNAL_DEAL_ID', + self::LINE_ITEM_EXTERNAL_ID => 'LINE_ITEM_EXTERNAL_ID', + self::LINE_ITEM_FREQUENCY_CAP => 'LINE_ITEM_FREQUENCY_CAP', + self::LINE_ITEM_ID => 'LINE_ITEM_ID', + self::LINE_ITEM_LABELS => 'LINE_ITEM_LABELS', + self::LINE_ITEM_LABEL_IDS => 'LINE_ITEM_LABEL_IDS', + self::LINE_ITEM_LAST_MODIFIED_BY_APP => 'LINE_ITEM_LAST_MODIFIED_BY_APP', + self::LINE_ITEM_LIFETIME_CLICKS => 'LINE_ITEM_LIFETIME_CLICKS', + self::LINE_ITEM_LIFETIME_IMPRESSIONS => 'LINE_ITEM_LIFETIME_IMPRESSIONS', + self::LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS => 'LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS', + self::LINE_ITEM_MAKEGOOD => 'LINE_ITEM_MAKEGOOD', + self::LINE_ITEM_NAME => 'LINE_ITEM_NAME', + self::LINE_ITEM_NON_CPD_BOOKED_REVENUE => 'LINE_ITEM_NON_CPD_BOOKED_REVENUE', + self::LINE_ITEM_OPTIMIZABLE => 'LINE_ITEM_OPTIMIZABLE', + self::LINE_ITEM_PO_NUMBER => 'LINE_ITEM_PO_NUMBER', + self::LINE_ITEM_PRIMARY_GOAL_TYPE => 'LINE_ITEM_PRIMARY_GOAL_TYPE', + self::LINE_ITEM_PRIMARY_GOAL_TYPE_NAME => 'LINE_ITEM_PRIMARY_GOAL_TYPE_NAME', + self::LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE => 'LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE', + self::LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE => 'LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE', + self::LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE => 'LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE', + self::LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME => 'LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME', + self::LINE_ITEM_PRIORITY => 'LINE_ITEM_PRIORITY', + self::LINE_ITEM_RESERVATION_STATUS => 'LINE_ITEM_RESERVATION_STATUS', + self::LINE_ITEM_RESERVATION_STATUS_NAME => 'LINE_ITEM_RESERVATION_STATUS_NAME', + self::LINE_ITEM_SALESPERSON => 'LINE_ITEM_SALESPERSON', + self::LINE_ITEM_SECONDARY_SALESPEOPLE => 'LINE_ITEM_SECONDARY_SALESPEOPLE', + self::LINE_ITEM_SECONDARY_TRAFFICKERS => 'LINE_ITEM_SECONDARY_TRAFFICKERS', + self::LINE_ITEM_START_DATE => 'LINE_ITEM_START_DATE', + self::LINE_ITEM_START_DATE_TIME => 'LINE_ITEM_START_DATE_TIME', + self::LINE_ITEM_TRAFFICKER => 'LINE_ITEM_TRAFFICKER', + self::LINE_ITEM_TYPE => 'LINE_ITEM_TYPE', + self::LINE_ITEM_TYPE_NAME => 'LINE_ITEM_TYPE_NAME', + self::LINE_ITEM_UNLIMITED_END => 'LINE_ITEM_UNLIMITED_END', + self::LINE_ITEM_VALUE_COST_PER_UNIT => 'LINE_ITEM_VALUE_COST_PER_UNIT', + self::LINE_ITEM_WEB_PROPERTY_CODE => 'LINE_ITEM_WEB_PROPERTY_CODE', + self::MASTER_COMPANION_CREATIVE_ID => 'MASTER_COMPANION_CREATIVE_ID', + self::MASTER_COMPANION_CREATIVE_NAME => 'MASTER_COMPANION_CREATIVE_NAME', + self::MEDIATION_TYPE => 'MEDIATION_TYPE', + self::MEDIATION_TYPE_NAME => 'MEDIATION_TYPE_NAME', + self::MEDIATION_YIELD_PARTNER_ID => 'MEDIATION_YIELD_PARTNER_ID', + self::MEDIATION_YIELD_PARTNER_NAME => 'MEDIATION_YIELD_PARTNER_NAME', + self::METRO_ID => 'METRO_ID', + self::METRO_NAME => 'METRO_NAME', + self::MOBILE_APP_FREE => 'MOBILE_APP_FREE', + self::MOBILE_APP_ICON_URL => 'MOBILE_APP_ICON_URL', + self::MOBILE_APP_ID => 'MOBILE_APP_ID', + self::MOBILE_APP_NAME => 'MOBILE_APP_NAME', + self::MOBILE_APP_OWNERSHIP_STATUS => 'MOBILE_APP_OWNERSHIP_STATUS', + self::MOBILE_APP_OWNERSHIP_STATUS_NAME => 'MOBILE_APP_OWNERSHIP_STATUS_NAME', + self::MOBILE_APP_STORE => 'MOBILE_APP_STORE', + self::MOBILE_APP_STORE_NAME => 'MOBILE_APP_STORE_NAME', + self::MOBILE_INVENTORY_TYPE => 'MOBILE_INVENTORY_TYPE', + self::MOBILE_INVENTORY_TYPE_NAME => 'MOBILE_INVENTORY_TYPE_NAME', + self::MOBILE_RENDERING_SDK => 'MOBILE_RENDERING_SDK', + self::MOBILE_RENDERING_SDK_NAME => 'MOBILE_RENDERING_SDK_NAME', + self::MOBILE_SDK_MAJOR_VERSION => 'MOBILE_SDK_MAJOR_VERSION', + self::MOBILE_SDK_MINOR_VERSION => 'MOBILE_SDK_MINOR_VERSION', + self::MOBILE_SDK_VERSION_NAME => 'MOBILE_SDK_VERSION_NAME', + self::MONTH_YEAR => 'MONTH_YEAR', + self::NATIVE_AD_FORMAT_ID => 'NATIVE_AD_FORMAT_ID', + self::NATIVE_AD_FORMAT_NAME => 'NATIVE_AD_FORMAT_NAME', + self::NATIVE_STYLE_ID => 'NATIVE_STYLE_ID', + self::NATIVE_STYLE_NAME => 'NATIVE_STYLE_NAME', + self::NO_FILL_REASON_CATEGORY => 'NO_FILL_REASON_CATEGORY', + self::NO_FILL_REASON_CATEGORY_NAME => 'NO_FILL_REASON_CATEGORY_NAME', + self::OPERATING_SYSTEM_CATEGORY => 'OPERATING_SYSTEM_CATEGORY', + self::OPERATING_SYSTEM_CATEGORY_NAME => 'OPERATING_SYSTEM_CATEGORY_NAME', + self::OPERATING_SYSTEM_VERSION_ID => 'OPERATING_SYSTEM_VERSION_ID', + self::OPERATING_SYSTEM_VERSION_NAME => 'OPERATING_SYSTEM_VERSION_NAME', + self::OPTIMIZATION_TYPE => 'OPTIMIZATION_TYPE', + self::OPTIMIZATION_TYPE_NAME => 'OPTIMIZATION_TYPE_NAME', + self::ORDER_AGENCY => 'ORDER_AGENCY', + self::ORDER_AGENCY_ID => 'ORDER_AGENCY_ID', + self::ORDER_BOOKED_CPC => 'ORDER_BOOKED_CPC', + self::ORDER_BOOKED_CPM => 'ORDER_BOOKED_CPM', + self::ORDER_DELIVERY_STATUS => 'ORDER_DELIVERY_STATUS', + self::ORDER_DELIVERY_STATUS_NAME => 'ORDER_DELIVERY_STATUS_NAME', + self::ORDER_END_DATE => 'ORDER_END_DATE', + self::ORDER_END_DATE_TIME => 'ORDER_END_DATE_TIME', + self::ORDER_EXTERNAL_ID => 'ORDER_EXTERNAL_ID', + self::ORDER_ID => 'ORDER_ID', + self::ORDER_LABELS => 'ORDER_LABELS', + self::ORDER_LABEL_IDS => 'ORDER_LABEL_IDS', + self::ORDER_LIFETIME_CLICKS => 'ORDER_LIFETIME_CLICKS', + self::ORDER_LIFETIME_IMPRESSIONS => 'ORDER_LIFETIME_IMPRESSIONS', + self::ORDER_NAME => 'ORDER_NAME', + self::ORDER_PO_NUMBER => 'ORDER_PO_NUMBER', + self::ORDER_PROGRAMMATIC => 'ORDER_PROGRAMMATIC', + self::ORDER_SALESPERSON => 'ORDER_SALESPERSON', + self::ORDER_SALESPERSON_ID => 'ORDER_SALESPERSON_ID', + self::ORDER_SECONDARY_SALESPEOPLE => 'ORDER_SECONDARY_SALESPEOPLE', + self::ORDER_SECONDARY_SALESPEOPLE_ID => 'ORDER_SECONDARY_SALESPEOPLE_ID', + self::ORDER_SECONDARY_TRAFFICKERS => 'ORDER_SECONDARY_TRAFFICKERS', + self::ORDER_SECONDARY_TRAFFICKERS_ID => 'ORDER_SECONDARY_TRAFFICKERS_ID', + self::ORDER_START_DATE => 'ORDER_START_DATE', + self::ORDER_START_DATE_TIME => 'ORDER_START_DATE_TIME', + self::ORDER_TRAFFICKER => 'ORDER_TRAFFICKER', + self::ORDER_TRAFFICKER_ID => 'ORDER_TRAFFICKER_ID', + self::ORDER_UNLIMITED_END => 'ORDER_UNLIMITED_END', + self::PAGE_PATH => 'PAGE_PATH', + self::PAGE_TITLE_AND_SCREEN_CLASS => 'PAGE_TITLE_AND_SCREEN_CLASS', + self::PAGE_TITLE_AND_SCREEN_NAME => 'PAGE_TITLE_AND_SCREEN_NAME', + self::PLACEMENT_ID => 'PLACEMENT_ID', + self::PLACEMENT_ID_ALL => 'PLACEMENT_ID_ALL', + self::PLACEMENT_NAME => 'PLACEMENT_NAME', + self::PLACEMENT_NAME_ALL => 'PLACEMENT_NAME_ALL', + self::PLACEMENT_STATUS => 'PLACEMENT_STATUS', + self::PLACEMENT_STATUS_NAME => 'PLACEMENT_STATUS_NAME', + self::PLACEMENT_STATUS_NAME_ALL => 'PLACEMENT_STATUS_NAME_ALL', + self::POSTAL_CODE_ID => 'POSTAL_CODE_ID', + self::POSTAL_CODE_NAME => 'POSTAL_CODE_NAME', + self::PPID_STATUS => 'PPID_STATUS', + self::PPID_STATUS_NAME => 'PPID_STATUS_NAME', + self::PREDICTED_VIEWABILITY_BUCKET => 'PREDICTED_VIEWABILITY_BUCKET', + self::PREDICTED_VIEWABILITY_BUCKET_NAME => 'PREDICTED_VIEWABILITY_BUCKET_NAME', + self::PRESENTED_SECURE_SIGNAL_ID => 'PRESENTED_SECURE_SIGNAL_ID', + self::PRESENTED_SECURE_SIGNAL_NAME => 'PRESENTED_SECURE_SIGNAL_NAME', + self::PRIMARY_PERSONALIZATION_ID_TYPE => 'PRIMARY_PERSONALIZATION_ID_TYPE', + self::PRIMARY_PERSONALIZATION_ID_TYPE_NAME => 'PRIMARY_PERSONALIZATION_ID_TYPE_NAME', + self::PROGRAMMATIC_BUYER_ID => 'PROGRAMMATIC_BUYER_ID', + self::PROGRAMMATIC_BUYER_NAME => 'PROGRAMMATIC_BUYER_NAME', + self::PROGRAMMATIC_CHANNEL => 'PROGRAMMATIC_CHANNEL', + self::PROGRAMMATIC_CHANNEL_NAME => 'PROGRAMMATIC_CHANNEL_NAME', + self::PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE => 'PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE', + self::PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS => 'PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS', + self::PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME => 'PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME', + self::PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER => 'PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER', + self::PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE => 'PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE', + self::PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE => 'PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE', + self::PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS => 'PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS', + self::PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME => 'PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME', + self::PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER => 'PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER', + self::PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE => 'PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE', + self::PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE => 'PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE', + self::PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID => 'PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID', + self::PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME => 'PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME', + self::PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER => 'PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER', + self::PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE => 'PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE', + self::PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID => 'PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID', + self::PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME => 'PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME', + self::REGION_ID => 'REGION_ID', + self::REGION_NAME => 'REGION_NAME', + self::REJECTION_CLASS_CATEGORY => 'REJECTION_CLASS_CATEGORY', + self::REJECTION_CLASS_CATEGORY_NAME => 'REJECTION_CLASS_CATEGORY_NAME', + self::RENDERED_CREATIVE_SIZE => 'RENDERED_CREATIVE_SIZE', + self::REQUESTED_AD_SIZES => 'REQUESTED_AD_SIZES', + self::REQUEST_TYPE => 'REQUEST_TYPE', + self::REQUEST_TYPE_NAME => 'REQUEST_TYPE_NAME', + self::SERVER_SIDE_UNWRAPPING_ELIGIBLE => 'SERVER_SIDE_UNWRAPPING_ELIGIBLE', + self::SERVING_RESTRICTION => 'SERVING_RESTRICTION', + self::SERVING_RESTRICTION_NAME => 'SERVING_RESTRICTION_NAME', + self::SITE => 'SITE', + self::TARGETING_ID => 'TARGETING_ID', + self::TARGETING_NAME => 'TARGETING_NAME', + self::TARGETING_TYPE => 'TARGETING_TYPE', + self::TARGETING_TYPE_NAME => 'TARGETING_TYPE_NAME', + self::THIRD_PARTY_ID_STATUS => 'THIRD_PARTY_ID_STATUS', + self::THIRD_PARTY_ID_STATUS_NAME => 'THIRD_PARTY_ID_STATUS_NAME', + self::TOPICS_STATUS => 'TOPICS_STATUS', + self::TOPICS_STATUS_NAME => 'TOPICS_STATUS_NAME', + self::TOP_PRIVATE_DOMAIN => 'TOP_PRIVATE_DOMAIN', + self::TRAFFIC_SOURCE => 'TRAFFIC_SOURCE', + self::TRAFFIC_SOURCE_NAME => 'TRAFFIC_SOURCE_NAME', + self::UNIFIED_PRICING_RULE_ID => 'UNIFIED_PRICING_RULE_ID', + self::UNIFIED_PRICING_RULE_NAME => 'UNIFIED_PRICING_RULE_NAME', + self::URL => 'URL', + self::URL_ID => 'URL_ID', + self::USER_MESSAGES_ENTITLEMENT_SOURCE => 'USER_MESSAGES_ENTITLEMENT_SOURCE', + self::USER_MESSAGES_ENTITLEMENT_SOURCE_NAME => 'USER_MESSAGES_ENTITLEMENT_SOURCE_NAME', + self::USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID => 'USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID', + self::USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME => 'USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME', + self::VAST_VERSION => 'VAST_VERSION', + self::VAST_VERSION_NAME => 'VAST_VERSION_NAME', + self::VIDEO_AD_BREAK_TYPE => 'VIDEO_AD_BREAK_TYPE', + self::VIDEO_AD_BREAK_TYPE_NAME => 'VIDEO_AD_BREAK_TYPE_NAME', + self::VIDEO_AD_DURATION => 'VIDEO_AD_DURATION', + self::VIDEO_AD_FORMATS_RULE => 'VIDEO_AD_FORMATS_RULE', + self::VIDEO_AD_FORMATS_RULE_ID => 'VIDEO_AD_FORMATS_RULE_ID', + self::VIDEO_AD_REQUEST_DURATION => 'VIDEO_AD_REQUEST_DURATION', + self::VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME => 'VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME', + self::VIDEO_AD_REQUEST_DURATION_NAME => 'VIDEO_AD_REQUEST_DURATION_NAME', + self::VIDEO_AD_REQUEST_SOURCE => 'VIDEO_AD_REQUEST_SOURCE', + self::VIDEO_AD_REQUEST_SOURCE_NAME => 'VIDEO_AD_REQUEST_SOURCE_NAME', + self::VIDEO_AD_TYPE => 'VIDEO_AD_TYPE', + self::VIDEO_AD_TYPE_NAME => 'VIDEO_AD_TYPE_NAME', + self::VIDEO_CONTINUOUS_PLAY_TYPE => 'VIDEO_CONTINUOUS_PLAY_TYPE', + self::VIDEO_CONTINUOUS_PLAY_TYPE_NAME => 'VIDEO_CONTINUOUS_PLAY_TYPE_NAME', + self::VIDEO_FALLBACK_POSITION => 'VIDEO_FALLBACK_POSITION', + self::VIDEO_MEASUREMENT_SOURCE => 'VIDEO_MEASUREMENT_SOURCE', + self::VIDEO_MEASUREMENT_SOURCE_NAME => 'VIDEO_MEASUREMENT_SOURCE_NAME', + self::VIDEO_PLCMT => 'VIDEO_PLCMT', + self::VIDEO_PLCMT_NAME => 'VIDEO_PLCMT_NAME', + self::VIDEO_POSITION_IN_POD => 'VIDEO_POSITION_IN_POD', + self::VIDEO_POSITION_OF_POD => 'VIDEO_POSITION_OF_POD', + self::VIDEO_SDK_VERSION => 'VIDEO_SDK_VERSION', + self::VIDEO_SDK_VERSION_NAME => 'VIDEO_SDK_VERSION_NAME', + self::VIDEO_STITCHER_TYPE => 'VIDEO_STITCHER_TYPE', + self::VIDEO_STITCHER_TYPE_NAME => 'VIDEO_STITCHER_TYPE_NAME', + self::WEEK => 'WEEK', + self::YIELD_GROUP_BUYER_NAME => 'YIELD_GROUP_BUYER_NAME', + self::YIELD_GROUP_BUYER_TAG_NAME => 'YIELD_GROUP_BUYER_TAG_NAME', + self::YIELD_GROUP_ID => 'YIELD_GROUP_ID', + self::YIELD_GROUP_NAME => 'YIELD_GROUP_NAME', + self::YOUTUBE_AD_DURATION_BUCKET => 'YOUTUBE_AD_DURATION_BUCKET', + self::YOUTUBE_AD_DURATION_BUCKET_NAME => 'YOUTUBE_AD_DURATION_BUCKET_NAME', + self::YOUTUBE_AD_TYPE => 'YOUTUBE_AD_TYPE', + self::YOUTUBE_AD_TYPE_NAME => 'YOUTUBE_AD_TYPE_NAME', + self::LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID', + self::LINE_ITEM_CUSTOM_FIELD_0_VALUE => 'LINE_ITEM_CUSTOM_FIELD_0_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_1_VALUE => 'LINE_ITEM_CUSTOM_FIELD_1_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_2_VALUE => 'LINE_ITEM_CUSTOM_FIELD_2_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_3_VALUE => 'LINE_ITEM_CUSTOM_FIELD_3_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_4_VALUE => 'LINE_ITEM_CUSTOM_FIELD_4_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_5_VALUE => 'LINE_ITEM_CUSTOM_FIELD_5_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_6_VALUE => 'LINE_ITEM_CUSTOM_FIELD_6_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_7_VALUE => 'LINE_ITEM_CUSTOM_FIELD_7_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_8_VALUE => 'LINE_ITEM_CUSTOM_FIELD_8_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_9_VALUE => 'LINE_ITEM_CUSTOM_FIELD_9_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_10_VALUE => 'LINE_ITEM_CUSTOM_FIELD_10_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_11_VALUE => 'LINE_ITEM_CUSTOM_FIELD_11_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_12_VALUE => 'LINE_ITEM_CUSTOM_FIELD_12_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_13_VALUE => 'LINE_ITEM_CUSTOM_FIELD_13_VALUE', + self::LINE_ITEM_CUSTOM_FIELD_14_VALUE => 'LINE_ITEM_CUSTOM_FIELD_14_VALUE', + self::ORDER_CUSTOM_FIELD_0_OPTION_ID => 'ORDER_CUSTOM_FIELD_0_OPTION_ID', + self::ORDER_CUSTOM_FIELD_1_OPTION_ID => 'ORDER_CUSTOM_FIELD_1_OPTION_ID', + self::ORDER_CUSTOM_FIELD_2_OPTION_ID => 'ORDER_CUSTOM_FIELD_2_OPTION_ID', + self::ORDER_CUSTOM_FIELD_3_OPTION_ID => 'ORDER_CUSTOM_FIELD_3_OPTION_ID', + self::ORDER_CUSTOM_FIELD_4_OPTION_ID => 'ORDER_CUSTOM_FIELD_4_OPTION_ID', + self::ORDER_CUSTOM_FIELD_5_OPTION_ID => 'ORDER_CUSTOM_FIELD_5_OPTION_ID', + self::ORDER_CUSTOM_FIELD_6_OPTION_ID => 'ORDER_CUSTOM_FIELD_6_OPTION_ID', + self::ORDER_CUSTOM_FIELD_7_OPTION_ID => 'ORDER_CUSTOM_FIELD_7_OPTION_ID', + self::ORDER_CUSTOM_FIELD_8_OPTION_ID => 'ORDER_CUSTOM_FIELD_8_OPTION_ID', + self::ORDER_CUSTOM_FIELD_9_OPTION_ID => 'ORDER_CUSTOM_FIELD_9_OPTION_ID', + self::ORDER_CUSTOM_FIELD_10_OPTION_ID => 'ORDER_CUSTOM_FIELD_10_OPTION_ID', + self::ORDER_CUSTOM_FIELD_11_OPTION_ID => 'ORDER_CUSTOM_FIELD_11_OPTION_ID', + self::ORDER_CUSTOM_FIELD_12_OPTION_ID => 'ORDER_CUSTOM_FIELD_12_OPTION_ID', + self::ORDER_CUSTOM_FIELD_13_OPTION_ID => 'ORDER_CUSTOM_FIELD_13_OPTION_ID', + self::ORDER_CUSTOM_FIELD_14_OPTION_ID => 'ORDER_CUSTOM_FIELD_14_OPTION_ID', + self::ORDER_CUSTOM_FIELD_0_VALUE => 'ORDER_CUSTOM_FIELD_0_VALUE', + self::ORDER_CUSTOM_FIELD_1_VALUE => 'ORDER_CUSTOM_FIELD_1_VALUE', + self::ORDER_CUSTOM_FIELD_2_VALUE => 'ORDER_CUSTOM_FIELD_2_VALUE', + self::ORDER_CUSTOM_FIELD_3_VALUE => 'ORDER_CUSTOM_FIELD_3_VALUE', + self::ORDER_CUSTOM_FIELD_4_VALUE => 'ORDER_CUSTOM_FIELD_4_VALUE', + self::ORDER_CUSTOM_FIELD_5_VALUE => 'ORDER_CUSTOM_FIELD_5_VALUE', + self::ORDER_CUSTOM_FIELD_6_VALUE => 'ORDER_CUSTOM_FIELD_6_VALUE', + self::ORDER_CUSTOM_FIELD_7_VALUE => 'ORDER_CUSTOM_FIELD_7_VALUE', + self::ORDER_CUSTOM_FIELD_8_VALUE => 'ORDER_CUSTOM_FIELD_8_VALUE', + self::ORDER_CUSTOM_FIELD_9_VALUE => 'ORDER_CUSTOM_FIELD_9_VALUE', + self::ORDER_CUSTOM_FIELD_10_VALUE => 'ORDER_CUSTOM_FIELD_10_VALUE', + self::ORDER_CUSTOM_FIELD_11_VALUE => 'ORDER_CUSTOM_FIELD_11_VALUE', + self::ORDER_CUSTOM_FIELD_12_VALUE => 'ORDER_CUSTOM_FIELD_12_VALUE', + self::ORDER_CUSTOM_FIELD_13_VALUE => 'ORDER_CUSTOM_FIELD_13_VALUE', + self::ORDER_CUSTOM_FIELD_14_VALUE => 'ORDER_CUSTOM_FIELD_14_VALUE', + self::CREATIVE_CUSTOM_FIELD_0_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_0_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_1_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_1_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_2_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_2_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_3_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_3_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_4_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_4_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_5_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_5_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_6_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_6_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_7_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_7_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_8_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_8_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_9_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_9_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_10_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_10_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_11_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_11_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_12_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_12_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_13_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_13_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_14_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_14_OPTION_ID', + self::CREATIVE_CUSTOM_FIELD_0_VALUE => 'CREATIVE_CUSTOM_FIELD_0_VALUE', + self::CREATIVE_CUSTOM_FIELD_1_VALUE => 'CREATIVE_CUSTOM_FIELD_1_VALUE', + self::CREATIVE_CUSTOM_FIELD_2_VALUE => 'CREATIVE_CUSTOM_FIELD_2_VALUE', + self::CREATIVE_CUSTOM_FIELD_3_VALUE => 'CREATIVE_CUSTOM_FIELD_3_VALUE', + self::CREATIVE_CUSTOM_FIELD_4_VALUE => 'CREATIVE_CUSTOM_FIELD_4_VALUE', + self::CREATIVE_CUSTOM_FIELD_5_VALUE => 'CREATIVE_CUSTOM_FIELD_5_VALUE', + self::CREATIVE_CUSTOM_FIELD_6_VALUE => 'CREATIVE_CUSTOM_FIELD_6_VALUE', + self::CREATIVE_CUSTOM_FIELD_7_VALUE => 'CREATIVE_CUSTOM_FIELD_7_VALUE', + self::CREATIVE_CUSTOM_FIELD_8_VALUE => 'CREATIVE_CUSTOM_FIELD_8_VALUE', + self::CREATIVE_CUSTOM_FIELD_9_VALUE => 'CREATIVE_CUSTOM_FIELD_9_VALUE', + self::CREATIVE_CUSTOM_FIELD_10_VALUE => 'CREATIVE_CUSTOM_FIELD_10_VALUE', + self::CREATIVE_CUSTOM_FIELD_11_VALUE => 'CREATIVE_CUSTOM_FIELD_11_VALUE', + self::CREATIVE_CUSTOM_FIELD_12_VALUE => 'CREATIVE_CUSTOM_FIELD_12_VALUE', + self::CREATIVE_CUSTOM_FIELD_13_VALUE => 'CREATIVE_CUSTOM_FIELD_13_VALUE', + self::CREATIVE_CUSTOM_FIELD_14_VALUE => 'CREATIVE_CUSTOM_FIELD_14_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE', + self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID', + self::BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE', + self::BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE', + self::BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE', + self::CUSTOM_DIMENSION_0_VALUE_ID => 'CUSTOM_DIMENSION_0_VALUE_ID', + self::CUSTOM_DIMENSION_1_VALUE_ID => 'CUSTOM_DIMENSION_1_VALUE_ID', + self::CUSTOM_DIMENSION_2_VALUE_ID => 'CUSTOM_DIMENSION_2_VALUE_ID', + self::CUSTOM_DIMENSION_3_VALUE_ID => 'CUSTOM_DIMENSION_3_VALUE_ID', + self::CUSTOM_DIMENSION_4_VALUE_ID => 'CUSTOM_DIMENSION_4_VALUE_ID', + self::CUSTOM_DIMENSION_5_VALUE_ID => 'CUSTOM_DIMENSION_5_VALUE_ID', + self::CUSTOM_DIMENSION_6_VALUE_ID => 'CUSTOM_DIMENSION_6_VALUE_ID', + self::CUSTOM_DIMENSION_7_VALUE_ID => 'CUSTOM_DIMENSION_7_VALUE_ID', + self::CUSTOM_DIMENSION_8_VALUE_ID => 'CUSTOM_DIMENSION_8_VALUE_ID', + self::CUSTOM_DIMENSION_9_VALUE_ID => 'CUSTOM_DIMENSION_9_VALUE_ID', + self::CUSTOM_DIMENSION_0_VALUE => 'CUSTOM_DIMENSION_0_VALUE', + self::CUSTOM_DIMENSION_1_VALUE => 'CUSTOM_DIMENSION_1_VALUE', + self::CUSTOM_DIMENSION_2_VALUE => 'CUSTOM_DIMENSION_2_VALUE', + self::CUSTOM_DIMENSION_3_VALUE => 'CUSTOM_DIMENSION_3_VALUE', + self::CUSTOM_DIMENSION_4_VALUE => 'CUSTOM_DIMENSION_4_VALUE', + self::CUSTOM_DIMENSION_5_VALUE => 'CUSTOM_DIMENSION_5_VALUE', + self::CUSTOM_DIMENSION_6_VALUE => 'CUSTOM_DIMENSION_6_VALUE', + self::CUSTOM_DIMENSION_7_VALUE => 'CUSTOM_DIMENSION_7_VALUE', + self::CUSTOM_DIMENSION_8_VALUE => 'CUSTOM_DIMENSION_8_VALUE', + self::CUSTOM_DIMENSION_9_VALUE => 'CUSTOM_DIMENSION_9_VALUE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Dimension::class, \Google\Ads\AdManager\V1\ReportDefinition_Dimension::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Field.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Field.php new file mode 100644 index 000000000000..7b7d2b42fb73 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Field.php @@ -0,0 +1,111 @@ +google.ads.admanager.v1.ReportDefinition.Field + */ +class Field extends \Google\Protobuf\Internal\Message +{ + protected $field; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $dimension + * The dimension this field represents. + * @type int $metric + * The metric this field represents. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); + parent::__construct($data); + } + + /** + * The dimension this field represents. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * @return int + */ + public function getDimension() + { + return $this->readOneof(1); + } + + public function hasDimension() + { + return $this->hasOneof(1); + } + + /** + * The dimension this field represents. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * @param int $var + * @return $this + */ + public function setDimension($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\Dimension::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The metric this field represents. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * @return int + */ + public function getMetric() + { + return $this->readOneof(2); + } + + public function hasMetric() + { + return $this->hasOneof(2); + } + + /** + * The metric this field represents. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * @param int $var + * @return $this + */ + public function setMetric($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\Metric::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getField() + { + return $this->whichOneof("field"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Field::class, \Google\Ads\AdManager\V1\ReportDefinition_Field::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter.php new file mode 100644 index 000000000000..3d916edb292e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter.php @@ -0,0 +1,177 @@ +google.ads.admanager.v1.ReportDefinition.Filter + */ +class Filter extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ReportDefinition\Filter\FieldFilter $field_filter + * A filter on a single field. + * @type \Google\Ads\AdManager\V1\ReportDefinition\Filter $not_filter + * A filter whose result is negated. + * @type \Google\Ads\AdManager\V1\ReportDefinition\Filter\FilterList $and_filter + * A list of filters whose results are AND-ed. + * @type \Google\Ads\AdManager\V1\ReportDefinition\Filter\FilterList $or_filter + * A list of filters whose results are OR-ed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); + parent::__construct($data); + } + + /** + * A filter on a single field. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + * @return \Google\Ads\AdManager\V1\ReportDefinition\Filter\FieldFilter|null + */ + public function getFieldFilter() + { + return $this->readOneof(1); + } + + public function hasFieldFilter() + { + return $this->hasOneof(1); + } + + /** + * A filter on a single field. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + * @param \Google\Ads\AdManager\V1\ReportDefinition\Filter\FieldFilter $var + * @return $this + */ + public function setFieldFilter($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\Filter\FieldFilter::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A filter whose result is negated. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + * @return \Google\Ads\AdManager\V1\ReportDefinition\Filter|null + */ + public function getNotFilter() + { + return $this->readOneof(2); + } + + public function hasNotFilter() + { + return $this->hasOneof(2); + } + + /** + * A filter whose result is negated. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + * @param \Google\Ads\AdManager\V1\ReportDefinition\Filter $var + * @return $this + */ + public function setNotFilter($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\Filter::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A list of filters whose results are AND-ed. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + * @return \Google\Ads\AdManager\V1\ReportDefinition\Filter\FilterList|null + */ + public function getAndFilter() + { + return $this->readOneof(3); + } + + public function hasAndFilter() + { + return $this->hasOneof(3); + } + + /** + * A list of filters whose results are AND-ed. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + * @param \Google\Ads\AdManager\V1\ReportDefinition\Filter\FilterList $var + * @return $this + */ + public function setAndFilter($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\Filter\FilterList::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A list of filters whose results are OR-ed. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + * @return \Google\Ads\AdManager\V1\ReportDefinition\Filter\FilterList|null + */ + public function getOrFilter() + { + return $this->readOneof(4); + } + + public function hasOrFilter() + { + return $this->hasOneof(4); + } + + /** + * A list of filters whose results are OR-ed. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + * @param \Google\Ads\AdManager\V1\ReportDefinition\Filter\FilterList $var + * @return $this + */ + public function setOrFilter($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\Filter\FilterList::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Filter::class, \Google\Ads\AdManager\V1\ReportDefinition_Filter::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FieldFilter.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FieldFilter.php new file mode 100644 index 000000000000..33ce447c6f9c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FieldFilter.php @@ -0,0 +1,288 @@ +google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + */ +class FieldFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The field to filter on. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field = null; + /** + * Required. The operation of this filter. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $operation = 0; + /** + * Required. Values to filter to. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $values; + /** + * Optional. Use to filter on a specific slice of data. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $slice = null; + /** + * Optional. When using time period columns, use this to filter on a + * specific column. + * + * Generated from protobuf field optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time_period_index = null; + /** + * Optional. Use to specify which metric value type to filter on. Defaults + * to PRIMARY. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_value_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ReportDefinition\Field $field + * Required. The field to filter on. + * @type int $operation + * Required. The operation of this filter. + * @type array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $values + * Required. Values to filter to. + * @type \Google\Ads\AdManager\V1\ReportDefinition\Slice $slice + * Optional. Use to filter on a specific slice of data. + * @type int $time_period_index + * Optional. When using time period columns, use this to filter on a + * specific column. + * @type int $metric_value_type + * Optional. Use to specify which metric value type to filter on. Defaults + * to PRIMARY. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); + parent::__construct($data); + } + + /** + * Required. The field to filter on. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\ReportDefinition\Field|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Required. The field to filter on. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ReportDefinition\Field $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\Field::class); + $this->field = $var; + + return $this; + } + + /** + * Required. The operation of this filter. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getOperation() + { + return $this->operation; + } + + /** + * Required. The operation of this filter. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\Filter\Operation::class); + $this->operation = $var; + + return $this; + } + + /** + * Required. Values to filter to. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Required. Values to filter to. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportValue::class); + $this->values = $arr; + + return $this; + } + + /** + * Optional. Use to filter on a specific slice of data. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\ReportDefinition\Slice|null + */ + public function getSlice() + { + return $this->slice; + } + + public function hasSlice() + { + return isset($this->slice); + } + + public function clearSlice() + { + unset($this->slice); + } + + /** + * Optional. Use to filter on a specific slice of data. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\ReportDefinition\Slice $var + * @return $this + */ + public function setSlice($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\Slice::class); + $this->slice = $var; + + return $this; + } + + /** + * Optional. When using time period columns, use this to filter on a + * specific column. + * + * Generated from protobuf field optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTimePeriodIndex() + { + return isset($this->time_period_index) ? $this->time_period_index : 0; + } + + public function hasTimePeriodIndex() + { + return isset($this->time_period_index); + } + + public function clearTimePeriodIndex() + { + unset($this->time_period_index); + } + + /** + * Optional. When using time period columns, use this to filter on a + * specific column. + * + * Generated from protobuf field optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTimePeriodIndex($var) + { + GPBUtil::checkInt32($var); + $this->time_period_index = $var; + + return $this; + } + + /** + * Optional. Use to specify which metric value type to filter on. Defaults + * to PRIMARY. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMetricValueType() + { + return isset($this->metric_value_type) ? $this->metric_value_type : 0; + } + + public function hasMetricValueType() + { + return isset($this->metric_value_type); + } + + public function clearMetricValueType() + { + unset($this->metric_value_type); + } + + /** + * Optional. Use to specify which metric value type to filter on. Defaults + * to PRIMARY. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMetricValueType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\MetricValueType::class); + $this->metric_value_type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FieldFilter::class, \Google\Ads\AdManager\V1\ReportDefinition_Filter_FieldFilter::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FilterList.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FilterList.php new file mode 100644 index 000000000000..02c40baa3029 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FilterList.php @@ -0,0 +1,70 @@ +google.ads.admanager.v1.ReportDefinition.Filter.FilterList + */ +class FilterList extends \Google\Protobuf\Internal\Message +{ + /** + * Required. A list of filters. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $filters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Filter>|\Google\Protobuf\Internal\RepeatedField $filters + * Required. A list of filters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); + parent::__construct($data); + } + + /** + * Required. A list of filters. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Required. A list of filters. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Filter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Filter::class); + $this->filters = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FilterList::class, \Google\Ads\AdManager\V1\ReportDefinition_Filter_FilterList::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/Operation.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/Operation.php new file mode 100644 index 000000000000..3ab157f516b7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/Operation.php @@ -0,0 +1,135 @@ +google.ads.admanager.v1.ReportDefinition.Filter.Operation + */ +class Operation +{ + /** + * For scalar operands, checks if the operand is in the set of provided + * filter values. + * For list operands, checks if any element in the operand is in the set + * of provided filter values. + * Default value. + * + * Generated from protobuf enum IN = 0; + */ + const IN = 0; + /** + * For scalar operands, checks that the operand is not in the set of + * provided filter values. + * For list operands, checks that none of the elements in the operand + * is in the set of provided filter values. + * + * Generated from protobuf enum NOT_IN = 1; + */ + const NOT_IN = 1; + /** + * For scalar string operands, checks if the operand contains any of the + * provided filter substrings. + * For string list operands, checks if any string in the operand contains + * any of the provided filter substrings. + * + * Generated from protobuf enum CONTAINS = 2; + */ + const CONTAINS = 2; + /** + * For scalar string operands, checks that the operand contains none of + * the provided filter substrings. + * For string list operands, checks that none of the strings in the + * operand contain none of the provided filter substrings. + * + * Generated from protobuf enum NOT_CONTAINS = 3; + */ + const NOT_CONTAINS = 3; + /** + * Operand is less than the provided filter value. + * + * Generated from protobuf enum LESS_THAN = 4; + */ + const LESS_THAN = 4; + /** + * Operand is less than or equal to provided filter value. + * + * Generated from protobuf enum LESS_THAN_EQUALS = 5; + */ + const LESS_THAN_EQUALS = 5; + /** + * Operand is greater than provided filter value. + * + * Generated from protobuf enum GREATER_THAN = 6; + */ + const GREATER_THAN = 6; + /** + * Operand is greater than or equal to provided filter value. + * + * Generated from protobuf enum GREATER_THAN_EQUALS = 7; + */ + const GREATER_THAN_EQUALS = 7; + /** + * Operand is between provided filter values. + * + * Generated from protobuf enum BETWEEN = 8; + */ + const BETWEEN = 8; + /** + * Operand matches against a regular expression or set of regular + * expressions (one must match). + * + * Generated from protobuf enum MATCHES = 9; + */ + const MATCHES = 9; + /** + * Operand negative matches against a regular expression or set of regular + * expressions (none must match). + * + * Generated from protobuf enum NOT_MATCHES = 10; + */ + const NOT_MATCHES = 10; + + private static $valueToName = [ + self::IN => 'IN', + self::NOT_IN => 'NOT_IN', + self::CONTAINS => 'CONTAINS', + self::NOT_CONTAINS => 'NOT_CONTAINS', + self::LESS_THAN => 'LESS_THAN', + self::LESS_THAN_EQUALS => 'LESS_THAN_EQUALS', + self::GREATER_THAN => 'GREATER_THAN', + self::GREATER_THAN_EQUALS => 'GREATER_THAN_EQUALS', + self::BETWEEN => 'BETWEEN', + self::MATCHES => 'MATCHES', + self::NOT_MATCHES => 'NOT_MATCHES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Operation::class, \Google\Ads\AdManager\V1\ReportDefinition_Filter_Operation::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Flag.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Flag.php new file mode 100644 index 000000000000..76b3e63c4afb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Flag.php @@ -0,0 +1,120 @@ +google.ads.admanager.v1.ReportDefinition.Flag + */ +class Flag extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Filters to apply for the flag. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $filters; + /** + * Optional. Name of the flag. + * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to + * the colored flags that appear in the UI. The UI won't display flags + * with other names, but they are available for use by API clients. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Filter>|\Google\Protobuf\Internal\RepeatedField $filters + * Required. Filters to apply for the flag. + * @type string $name + * Optional. Name of the flag. + * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to + * the colored flags that appear in the UI. The UI won't display flags + * with other names, but they are available for use by API clients. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); + parent::__construct($data); + } + + /** + * Required. Filters to apply for the flag. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Required. Filters to apply for the flag. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Filter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Filter::class); + $this->filters = $arr; + + return $this; + } + + /** + * Optional. Name of the flag. + * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to + * the colored flags that appear in the UI. The UI won't display flags + * with other names, but they are available for use by API clients. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Name of the flag. + * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to + * the colored flags that appear in the UI. The UI won't display flags + * with other names, but they are available for use by API clients. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Flag::class, \Google\Ads\AdManager\V1\ReportDefinition_Flag::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Metric.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Metric.php new file mode 100644 index 000000000000..f77a70182ce4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Metric.php @@ -0,0 +1,5076 @@ +google.ads.admanager.v1.ReportDefinition.Metric + */ +class Metric +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum METRIC_UNSPECIFIED = 0; + */ + const METRIC_UNSPECIFIED = 0; + /** + * The number of people who engaged with your site or app in the specified + * date range from Google Analytics. + * Corresponds to "Active users" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_USERS = 223; + */ + const ACTIVE_USERS = 223; + /** + * Number of impressions with unmuted playback at start. + * Corresponds to "Active View % audible at start" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT = 445; + */ + const ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT = 445; + /** + * Total Active View audible impressions + * Corresponds to "Total Active View audible impressions" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_VIEW_AUDIBLE_IMPRESSIONS = 659; + */ + const ACTIVE_VIEW_AUDIBLE_IMPRESSIONS = 659; + /** + * Number of impressions with unmuted playback through the entire stream. + * Corresponds to "Active View % audible through completion" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT = 446; + */ + const ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT = 446; + /** + * Number of impressions with unmuted playback through at least 25%. + * Corresponds to "Active View % audible through first quartile" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT = 447; + */ + const ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT = 447; + /** + * Number of impressions with unmuted playback through at least 50%. + * Corresponds to "Active View % audible through midpoint" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT = 448; + */ + const ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT = 448; + /** + * Number of impressions with unmuted playback through at least 75%. + * Corresponds to "Active View % audible through third quartile" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT = 449; + */ + const ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT = 449; + /** + * Total Active View audio enabled impressions + * Corresponds to "Total Active View audio eligible impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS = 660; + */ + const ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS = 660; + /** + * Total Active View audio measurable impressions + * Corresponds to "Total Active View audio measurable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS = 661; + */ + const ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS = 661; + /** + * Active View total average time in seconds that specific impressions are + * reported as being viewable. + * Corresponds to "Total Active View average viewable time (seconds)" in the + * Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; + */ + const ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; + /** + * Total number of impressions that were eligible to measure viewability. + * Corresponds to "Total Active View eligible impressions" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; + */ + const ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; + /** + * Number of impressions where the ad player is in the background at any + * point during playback with volume > 0. + * Corresponds to "Active View % ever audible while backgrounded" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT = 450; + */ + const ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT = 450; + /** + * Number of impressions where volume > 0 at any point. + * Corresponds to "Active View % ever audible" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_EVER_AUDIBLE_PERCENT = 451; + */ + const ACTIVE_VIEW_EVER_AUDIBLE_PERCENT = 451; + /** + * Number of impressions where the ad player is in the background at any + * point during playback. + * Corresponds to "Active View % ever backgrounded" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT = 452; + */ + const ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT = 452; + /** + * Number of impressions where volume = 0 at any point. + * Corresponds to "Active View % ever muted" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_EVER_MUTED_PERCENT = 453; + */ + const ACTIVE_VIEW_EVER_MUTED_PERCENT = 453; + /** + * The number of measurable impressions that were played to video + * completion, and also audible and visible at the time of completion. + * Corresponds to "Total Active View impressions audible and visible at + * completion" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION = 411; + */ + const ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION = 411; + /** + * The total number of impressions that were sampled and measured by active + * view. + * Corresponds to "Total Active View measurable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; + */ + const ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; + /** + * The percentage of total impressions that were measurable by active view + * (out of all the total impressions sampled for active view). + * Corresponds to "Total Active View % measurable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; + */ + const ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; + /** + * Total Active View non-measurable impressions + * Corresponds to "Total Active View non-measurable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 662; + */ + const ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 662; + /** + * Total Active View non-viewable impressions + * Corresponds to "Total Active View non-viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 663; + */ + const ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 663; + /** + * Total Active View non-viewable impressions distribution + * Corresponds to "Total Active View non-viewable impression distribution" + * in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 664; + */ + const ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 664; + /** + * Total Active View percent audible impressions + * Corresponds to "Total Active View % audible impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS = 665; + */ + const ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS = 665; + /** + * Number of impressions where we were able to collect Active View+ signals. + * Corresponds to "Active View+ measurable impressions" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_VIEW_PLUS_MEASURABLE_COUNT = 454; + */ + const ACTIVE_VIEW_PLUS_MEASURABLE_COUNT = 454; + /** + * Revenue generated from Active View impressions. + * Corresponds to "Total Active View revenue" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum ACTIVE_VIEW_REVENUE = 414; + */ + const ACTIVE_VIEW_REVENUE = 414; + /** + * Total Active View undetermined impressions distribution + * Corresponds to "Total Active View undetermined impression distribution" + * in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 666; + */ + const ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 666; + /** + * The total number of impressions viewed on the user's screen. + * Corresponds to "Total Active View viewable impressions" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; + */ + const ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; + /** + * Total Active View viewable impressions distribution + * Corresponds to "Total Active View viewable impression distribution" in + * the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 667; + */ + const ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 667; + /** + * The percentage of total impressions viewed on the user's screen (out of + * the total impressions measurable by active view). + * Corresponds to "Total Active View % viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; + */ + const ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; + /** + * Active View AdSense average time in seconds that specific impressions are + * reported as being viewable. + * Corresponds to "AdSense Active View average viewable time (seconds)" in + * the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; + */ + const ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; + /** + * Total number of impressions delivered by AdSense that were eligible to + * measure viewability. + * Corresponds to "AdSense Active View eligible impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; + */ + const ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; + /** + * The number of impressions delivered by AdSense that were sampled, and + * measurable by active view. + * Corresponds to "AdSense Active View measurable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; + */ + const ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; + /** + * The percentage of impressions delivered by AdSense that were measurable + * by active view (out of all AdSense impressions sampled for active view). + * Corresponds to "AdSense Active View % measurable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; + */ + const ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; + /** + * AdSense Active View non-measurable impressions + * Corresponds to "AdSense Active View non-measurable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 642; + */ + const ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 642; + /** + * AdSense Active View non-viewable impressions + * Corresponds to "AdSense Active View non-viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 643; + */ + const ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 643; + /** + * AdSense Active View non-viewable impressions distribution + * Corresponds to "AdSense Active View non-viewable impression distribution" + * in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 644; + */ + const ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 644; + /** + * AdSense Active View undetermined impressions distribution + * Corresponds to "AdSense Active View undetermined impression distribution" + * in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 645; + */ + const ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 645; + /** + * The number of impressions delivered by AdSense viewed on the user's + * screen. + * Corresponds to "AdSense Active View viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; + */ + const ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; + /** + * AdSense Active View viewable impressions distribution + * Corresponds to "AdSense Active View viewable impression distribution" in + * the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 646; + */ + const ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 646; + /** + * The percentage of impressions delivered by AdSense viewed on the user's + * screen (out of AdSense impressions measurable by active view). + * Corresponds to "AdSense Active View % viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; + */ + const ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; + /** + * The average effective cost-per-thousand-impressions earned from the ads + * delivered by AdSense through line item dynamic allocation. + * Corresponds to "AdSense average eCPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum ADSENSE_AVERAGE_ECPM = 26; + */ + const ADSENSE_AVERAGE_ECPM = 26; + /** + * Number of clicks delivered by AdSense demand channel. + * Corresponds to "AdSense clicks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ADSENSE_CLICKS = 23; + */ + const ADSENSE_CLICKS = 23; + /** + * The ratio of impressions served by AdSense that resulted in users + * clicking on an ad. The clickthrough rate (CTR) is updated nightly. The + * AdSense CTR is calculated as: (AdSense clicks / AdSense impressions). + * Corresponds to "AdSense CTR" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ADSENSE_CTR = 24; + */ + const ADSENSE_CTR = 24; + /** + * Total impressions delivered by AdSense. + * Corresponds to "AdSense impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ADSENSE_IMPRESSIONS = 22; + */ + const ADSENSE_IMPRESSIONS = 22; + /** + * Ratio of clicks delivered by AdSense through line item dynamic allocation + * in relation to the total clicks delivered. + * Corresponds to "AdSense clicks (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ADSENSE_PERCENT_CLICKS = 28; + */ + const ADSENSE_PERCENT_CLICKS = 28; + /** + * Ratio of impressions delivered by AdSense through line item dynamic + * allocation in relation to the total impressions delivered. + * Corresponds to "AdSense impressions (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ADSENSE_PERCENT_IMPRESSIONS = 27; + */ + const ADSENSE_PERCENT_IMPRESSIONS = 27; + /** + * Ratio of revenue generated by AdSense through line item dynamic + * allocation in relation to the total revenue. + * Corresponds to "AdSense revenue (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ADSENSE_PERCENT_REVENUE = 29; + */ + const ADSENSE_PERCENT_REVENUE = 29; + /** + * Ratio of revenue generated by AdSense through line item dynamic + * allocation in relation to the total revenue (excluding CPD). + * Corresponds to "AdSense revenue w/o CPD (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; + */ + const ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; + /** + * The total number of times that an AdSense ad is delivered. + * Corresponds to "AdSense responses served" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ADSENSE_RESPONSES_SERVED = 41; + */ + const ADSENSE_RESPONSES_SERVED = 41; + /** + * Revenue generated from AdSense through line item dynamic allocation, + * calculated in the network's currency and time zone. + * Corresponds to "AdSense revenue" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum ADSENSE_REVENUE = 25; + */ + const ADSENSE_REVENUE = 25; + /** + * Active View AdExchange average time in seconds that specific impressions + * are reported as being viewable. + * Corresponds to "Ad Exchange Active View average viewable time (seconds)" + * in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; + */ + const AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; + /** + * Total number of impressions delivered by Ad Exchange that were eligible + * to measure viewability. + * Corresponds to "Ad Exchange Active View eligible impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; + */ + const AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; + /** + * The number of impressions delivered by Ad Exchange that were sampled, and + * measurable by active view. + * Corresponds to "Ad Exchange Active View measurable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; + */ + const AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; + /** + * The percentage of impressions delivered by Ad Exchange that were + * measurable by active view (out of all Ad Exchange impressions sampled + * for active view). + * Corresponds to "Ad Exchange Active View % measurable impressions" in the + * Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; + */ + const AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; + /** + * Ad Exchange Active View non-measurable impressions + * Corresponds to "Ad Exchange Active View non-measurable impressions" in + * the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 654; + */ + const AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 654; + /** + * Ad Exchange Active View non-viewable impressions + * Corresponds to "Ad Exchange Active View non-viewable impressions" in the + * Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 655; + */ + const AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 655; + /** + * Ad Exchange Active View non-viewable impressions distribution + * Corresponds to "Ad Exchange Active View non-viewable impression + * distribution" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 656; + */ + const AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 656; + /** + * Ad Exchange Active View undetermined impressions distribution + * Corresponds to "Ad Exchange Active View undetermined impression + * distribution" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 657; + */ + const AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 657; + /** + * The number of impressions delivered by Ad Exchange viewed on the user's + * screen. + * Corresponds to "Ad Exchange Active View viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; + */ + const AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; + /** + * Ad Exchange Active View viewable impressions distribution + * Corresponds to "Ad Exchange Active View viewable impression distribution" + * in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 658; + */ + const AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 658; + /** + * The percentage of impressions delivered by Ad Exchange viewed on the + * user's screen (out of Ad Exchange impressions measurable by active + * view). + * Corresponds to "Ad Exchange Active View % viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; + */ + const AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; + /** + * The average effective cost-per-thousand-impressions earned from the ads + * delivered by Ad Exchange through line item dynamic allocation. + * Corresponds to "Ad Exchange average eCPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_EXCHANGE_AVERAGE_ECPM = 18; + */ + const AD_EXCHANGE_AVERAGE_ECPM = 18; + /** + * Number of clicks delivered by the Ad Exchange. + * Corresponds to "Ad Exchange clicks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_CLICKS = 15; + */ + const AD_EXCHANGE_CLICKS = 15; + /** + * The average effective cost-per-click earned from the ads delivered by Ad + * Exchange through line item dynamic allocation. + * Corresponds to "Ad Exchange CPC" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_EXCHANGE_CPC = 244; + */ + const AD_EXCHANGE_CPC = 244; + /** + * The ratio of impressions served by the Ad Exchange that resulted in users + * clicking on an ad. The clickthrough rate (CTR) is updated nightly. Ad + * Exchange CTR is calculated as: (Ad Exchange clicks / Ad Exchange + * impressions). + * Corresponds to "Ad Exchange CTR" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_CTR = 16; + */ + const AD_EXCHANGE_CTR = 16; + /** + * Ratio of impressions delivered by Ad Exchange through line item dynamic + * allocation to ad requests. + * Corresponds to "Ad Exchange delivery rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_DELIVERY_RATE = 245; + */ + const AD_EXCHANGE_DELIVERY_RATE = 245; + /** + * Total impressions delivered by the Ad Exchange. + * Corresponds to "Ad Exchange impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_IMPRESSIONS = 14; + */ + const AD_EXCHANGE_IMPRESSIONS = 14; + /** + * The total number of impressions based on the number of ad viewers. + * Corresponds to "Ad Exchange impressions per ad viewer" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER = 427; + */ + const AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER = 427; + /** + * The total number of impressions based on the number of sessions. + * Corresponds to "Ad Exchange impressions per session" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum AD_EXCHANGE_IMPRESSIONS_PER_SESSION = 428; + */ + const AD_EXCHANGE_IMPRESSIONS_PER_SESSION = 428; + /** + * The increase in revenue gained for won impressions over the applicable + * third party price (the minimum CPM or the best price specified during + * dynamic allocation), + * Corresponds to "Ad Exchange lift earnings" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_LIFT = 246; + */ + const AD_EXCHANGE_LIFT = 246; + /** + * The ratio of matched ad requests served by the Ad Exchange that + * resulted in users clicking on an ad. The clickthrough rate (CTR) is + * updated nightly. Ad Exchange Matched Request CTR is calculated as: + * (Ad Exchange clicks / Ad Exchange Macthed Ad Requests). + * Corresponds to "Ad Exchange matched request CTR" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_MATCHED_REQUEST_CTR = 247; + */ + const AD_EXCHANGE_MATCHED_REQUEST_CTR = 247; + /** + * The average effective cost per thousand matched ad requests earned from + * the ads delivered by Ad Exchange through line item dynamic allocation. + * Corresponds to "Ad Exchange matched request eCPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_EXCHANGE_MATCHED_REQUEST_ECPM = 248; + */ + const AD_EXCHANGE_MATCHED_REQUEST_ECPM = 248; + /** + * The number of responses served divided by the number of queries eligible + * in ad exchange. + * Corresponds to "Ad Exchange match rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_MATCH_RATE = 249; + */ + const AD_EXCHANGE_MATCH_RATE = 249; + /** + * Total opportunities from video VAST error within the waterfall for + * backfill ads. + * Corresponds to "Ad Exchange opportunities from errors" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS = 250; + */ + const AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS = 250; + /** + * Number of opportunities from impressions within the waterfall for + * backfill ads. + * Corresponds to "Ad Exchange opportunities from impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS = 251; + */ + const AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS = 251; + /** + * Ratio of clicks delivered by Ad Exchange through line item dynamic + * allocation in relation to the total clicks delivered. + * Corresponds to "Ad Exchange clicks (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_PERCENT_CLICKS = 20; + */ + const AD_EXCHANGE_PERCENT_CLICKS = 20; + /** + * Ratio of impressions delivered by Ad Exchange through line item dynamic + * allocation in relation to the total impressions delivered. + * Corresponds to "Ad Exchange impressions (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; + */ + const AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; + /** + * Ratio of revenue generated by Ad Exchange through line item dynamic + * allocation in relation to the total revenue. + * Corresponds to "Ad Exchange revenue (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_PERCENT_REVENUE = 21; + */ + const AD_EXCHANGE_PERCENT_REVENUE = 21; + /** + * Ratio of revenue generated by Ad Exchange through line item dynamic + * allocation in relation to the total revenue (excluding CPD). + * Corresponds to "Ad Exchange revenue w/o CPD (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; + */ + const AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; + /** + * The average effective cost-per-thousand-impressions earned from the ads + * delivered by Ad Exchange through line item dynamic allocation and yield + * group partners. + * Corresponds to "Ad Exchange plus yield group eCPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM = 252; + */ + const AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM = 252; + /** + * Total impressions delivered by the Ad Exchange and third-party networks. + * Corresponds to "Ad Exchange plus yield group impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS = 253; + */ + const AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS = 253; + /** + * Revenue generated from the Ad Exchange and Yield Group, calculated in + * your network's currency and time zone. + * Corresponds to "Ad Exchange plus yield group revenue" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE = 254; + */ + const AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE = 254; + /** + * The total number of times that an Ad Exchange ad is delivered. + * Corresponds to "Ad Exchange responses served" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_RESPONSES_SERVED = 42; + */ + const AD_EXCHANGE_RESPONSES_SERVED = 42; + /** + * Revenue generated from the Ad Exchange through line item dynamic + * allocation, calculated in your network's currency and time zone. + * Corresponds to "Ad Exchange revenue" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_EXCHANGE_REVENUE = 17; + */ + const AD_EXCHANGE_REVENUE = 17; + /** + * The Ad Exchange revenue accrued in the child network's own account but + * paid to their parent network through auto-payment. This metric is only + * relevant for a "Manage Account" child network. + * Corresponds to "Ad Exchange revenue paid through MCM auto-payment" in the + * Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 212; + */ + const AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 212; + /** + * The total amount of Ad Exchange revenue based on the + * number of ad viewers. + * Corresponds to "Ad Exchange revenue per ad viewer" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_EXCHANGE_REVENUE_PER_AD_VIEWER = 429; + */ + const AD_EXCHANGE_REVENUE_PER_AD_VIEWER = 429; + /** + * The number of programmatic eligible queries in Ad Exchange. + * Corresponds to "Ad Exchange total requests" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_EXCHANGE_TOTAL_REQUESTS = 255; + */ + const AD_EXCHANGE_TOTAL_REQUESTS = 255; + /** + * The ratio of total ad requests served by the Ad Exchange that + * resulted in users clicking on an ad. The clickthrough rate (CTR) is + * updated nightly. Ad Exchange Total Request CTR is calculated as: + * (Ad Exchange clicks / Ad Exchange Total Ad Requests). + * Corresponds to "Ad Exchange total request CTR" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_EXCHANGE_TOTAL_REQUEST_CTR = 256; + */ + const AD_EXCHANGE_TOTAL_REQUEST_CTR = 256; + /** + * The average effective cost per thousand ad requests earned from the ads + * delivered by Ad Exchange through line item dynamic allocation and yield + * group partners. + * Corresponds to "Ad Exchange total request eCPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_EXCHANGE_TOTAL_REQUEST_ECPM = 257; + */ + const AD_EXCHANGE_TOTAL_REQUEST_ECPM = 257; + /** + * Length of time in seconds that an ad is visible on the user's screen from + * Google Analytics. + * Corresponds to "Ad exposure (seconds)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum AD_EXPOSURE_SECONDS = 241; + */ + const AD_EXPOSURE_SECONDS = 241; + /** + * The total number of times that an ad request is sent to the ad server + * including dynamic allocation. + * Corresponds to "Total ad requests" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_REQUESTS = 38; + */ + const AD_REQUESTS = 38; + /** + * Active View ad server average time in seconds that specific impressions + * are reported as being viewable. + * Corresponds to "Ad server Active View average viewable time (seconds)" in + * the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; + */ + const AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; + /** + * Total number of impressions delivered by the ad server that were eligible + * to measure viewability. + * Corresponds to "Ad server Active View eligible impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; + */ + const AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; + /** + * The number of impressions delivered by the ad server that were sampled, + * and measurable by active view. + * Corresponds to "Ad server Active View measurable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; + */ + const AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; + /** + * The percentage of impressions delivered by the ad server that were + * measurable by active view (out of all the ad server impressions sampled + * for active view). + * Corresponds to "Ad server Active View % measurable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; + */ + const AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; + /** + * The number of impressions delivered by Ad Server that were not measured. + * For example, impressions where measurement was attempted but failed. + * Corresponds to "Ad server Active View non-measurable impressions" in the + * Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 332; + */ + const AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 332; + /** + * The number of impressions delivered by Ad Server that were measured by + * active view, but deemed not viewable. + * Corresponds to "Ad server Active View non-viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 331; + */ + const AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 331; + /** + * The fraction of non-viewable impressions among eligible impressions from + * Ad Server in Active View reporting." + * Corresponds to "Ad server Active View non-viewable impression + * distribution" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 334; + */ + const AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 334; + /** + * The fraction of non-eligible impressions among eligible impressions from + * Ad Server in Active View reporting." + * Corresponds to "Ad server Active View undetermined impression + * distribution" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 335; + */ + const AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 335; + /** + * The number of impressions delivered by the ad server viewed on the user's + * screen. + * Corresponds to "Ad server Active View viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; + */ + const AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; + /** + * The fraction of viewable impressions among eligible impressions from Ad + * Server in Active View reporting. + * Corresponds to "Ad server Active View viewable impression distribution" + * in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 333; + */ + const AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 333; + /** + * The percentage of impressions delivered by the ad server viewed on the + * user's screen (out of the ad server impressions measurable by active + * view). + * Corresponds to "Ad server Active View % viewable impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; + */ + const AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; + /** + * Average effective cost-per-thousand-impressions earned from the ads + * delivered by the Google Ad Manager server. + * Corresponds to "Ad server average eCPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_SERVER_AVERAGE_ECPM = 34; + */ + const AD_SERVER_AVERAGE_ECPM = 34; + /** + * Average effective cost-per-thousand-impressions earned from the ads + * delivered by the Google Ad Manager server, excluding CPD value. + * Corresponds to "Ad server average eCPM w/o CPD" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; + */ + const AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; + /** + * Total raw impressions counted when creative begins to render or the + * first frame of a video is shown. + * Corresponds to "Ad server begin to render impressions" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; + */ + const AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; + /** + * Total clicks served by the Google Ad Manager server. It usually takes + * about 30 minutes for new clicks to be recorded and added to the total + * displayed in reporting. + * Corresponds to "Ad server clicks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_CLICKS = 7; + */ + const AD_SERVER_CLICKS = 7; + /** + * The number of completed views for ad server. + * Corresponds to "Ad server completed views" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_COMPLETED_VIEWS = 431; + */ + const AD_SERVER_COMPLETED_VIEWS = 431; + /** + * Total coviewed impressions delivered by the Ad Server. + * Corresponds to "Ad server impressions (co-viewed)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_COVIEWED_IMPRESSIONS = 554; + */ + const AD_SERVER_COVIEWED_IMPRESSIONS = 554; + /** + * CPD revenue earned, calculated in your network's currency, for + * the ads delivered by the Google Ad Manager server. Sum of all booked + * revenue. + * Corresponds to "Ad server CPD revenue" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_SERVER_CPD_REVENUE = 32; + */ + const AD_SERVER_CPD_REVENUE = 32; + /** + * Ratio of impressions served by the Google Ad Manager server that resulted + * in users clicking on an ad. The clickthrough rate (CTR) is updated + * nightly. The ad server CTR is calculated as: (Ad server clicks / Ad + * server impressions). + * Corresponds to "Ad server CTR" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_SERVER_CTR = 8; + */ + const AD_SERVER_CTR = 8; + /** + * Gross revenue earned, calculated in your network's currency, for the ads + * delivered by the Google Ad Manager server. This includes pre-rev-share + * revenue for Programmatic traffic. This metric is to help with the + * transition from gross to net revenue reporting. + * Corresponds to "Ad server total revenue (gross)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_SERVER_GROSS_REVENUE = 483; + */ + const AD_SERVER_GROSS_REVENUE = 483; + /** + * Gross revenue earned, calculated in your network's currency, for the ads + * delivered by the Google Ad Manager server, excluding CPD revenue. This + * includes pre-rev-share revenue for Programmatic traffic. This metric is + * to help with the transition from gross to net revenue reporting. + * Corresponds to "Ad server CPM and CPC revenue (gross)" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_SERVER_GROSS_REVENUE_WITHOUT_CPD = 484; + */ + const AD_SERVER_GROSS_REVENUE_WITHOUT_CPD = 484; + /** + * Total impressions delivered by the Ad Server. + * Corresponds to "Ad server impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_IMPRESSIONS = 6; + */ + const AD_SERVER_IMPRESSIONS = 6; + /** + * Total impressions delivered by the Ad Server with companion impressions. + * Corresponds to "Ad server impressions with companion" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_IMPRESSIONS_WITH_COMPANION = 222; + */ + const AD_SERVER_IMPRESSIONS_WITH_COMPANION = 222; + /** + * Impressions (via begin to render methodology) delivered by the Google Ad + * Manager server considered inactive, as defined by served to a device + * receiving ad or bid requests continuously for a session of greater than + * 16 hours without a "reset" event. + * Corresponds to "Ad server inactive begin to render impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 338; + */ + const AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 338; + /** + * Ratio of clicks delivered by the Google Ad Manager server in relation to + * the total clicks delivered. + * Corresponds to "Ad server clicks (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_SERVER_PERCENT_CLICKS = 12; + */ + const AD_SERVER_PERCENT_CLICKS = 12; + /** + * Ratio of impressions delivered by the Google Ad Manager server in + * relation to the total impressions delivered. + * Corresponds to "Ad server impressions (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_SERVER_PERCENT_IMPRESSIONS = 11; + */ + const AD_SERVER_PERCENT_IMPRESSIONS = 11; + /** + * Ratio of revenue generated by the Google Ad Manager server in relation + * to the total revenue. + * Corresponds to "Ad server revenue (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_SERVER_PERCENT_REVENUE = 35; + */ + const AD_SERVER_PERCENT_REVENUE = 35; + /** + * Ratio of revenue generated by the Google Ad Manager server (excluding + * CPD) in relation to the total revenue. + * Corresponds to "Ad server revenue w/o CPD (%)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; + */ + const AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; + /** + * The total number of times that an ad is served by the ad server. + * Corresponds to "Ad server responses served" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_RESPONSES_SERVED = 40; + */ + const AD_SERVER_RESPONSES_SERVED = 40; + /** + * All CPM, CPC, and CPD revenue earned, calculated in your network's + * currency, for the ads delivered by the Google Ad Manager server. + * Sum of all booked revenue. + * Corresponds to "Ad server total revenue" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_SERVER_REVENUE = 33; + */ + const AD_SERVER_REVENUE = 33; + /** + * The Google Ad Manager server revenue accrued in the child network's own + * account but paid to their parent network through auto-payment. This + * metric is only relevant for a "Manage Account" child network. + * Corresponds to "Ad server revenue paid through MCM auto-payment" in the + * Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 213; + */ + const AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 213; + /** + * Revenue (excluding CPD) earned, calculated in your network's currency, + * for the ads delivered by the Google Ad Manager server. Sum of all booked + * revenue. + * Corresponds to "Ad server CPM and CPC revenue" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AD_SERVER_REVENUE_WITHOUT_CPD = 9; + */ + const AD_SERVER_REVENUE_WITHOUT_CPD = 9; + /** + * The number of clicks delivered by the ad server by explicit custom + * criteria targeting. + * Corresponds to "Ad server targeted clicks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_TARGETED_CLICKS = 274; + */ + const AD_SERVER_TARGETED_CLICKS = 274; + /** + * The number of impressions delivered by the ad server by explicit custom + * criteria targeting. + * Corresponds to "Ad server targeted impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_TARGETED_IMPRESSIONS = 275; + */ + const AD_SERVER_TARGETED_IMPRESSIONS = 275; + /** + * The number of tracked ads delivered by the ad server. + * Corresponds to "Ad server tracked ads" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_TRACKED_ADS = 264; + */ + const AD_SERVER_TRACKED_ADS = 264; + /** + * Total raw impressions counted when creative begins to render or the + * first frame of a video is shown, before invalid traffic filtrations by + * Ad Server. + * Corresponds to "Ad server unfiltered begin to render impressions" in the + * Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; + */ + const AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; + /** + * Total clicks delivered by the Ad Server before spam filtering. + * Corresponds to "Ad server unfiltered clicks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_UNFILTERED_CLICKS = 259; + */ + const AD_SERVER_UNFILTERED_CLICKS = 259; + /** + * Total downloaded impressions delivered by the Ad Server before spam + * filtering. + * Corresponds to "Ad server unfiltered downloaded impressions" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS = 260; + */ + const AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS = 260; + /** + * Deprecated. This metric has been renamed to + * `AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS`. + * The server will normalize any requests using this value to + * `AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS`. + * This value will be removed on or after October 1, 2025. + * + * Generated from protobuf enum AD_SERVER_UNFILTERED_IMPRESSIONS = 260 [deprecated = true]; + */ + const AD_SERVER_UNFILTERED_IMPRESSIONS = 260; + /** + * The number of tracked ads delivered by the ad server before invalid + * traffic filtrations. + * Corresponds to "Ad server unfiltered tracked ads" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_SERVER_UNFILTERED_TRACKED_ADS = 263; + */ + const AD_SERVER_UNFILTERED_TRACKED_ADS = 263; + /** + * Length of time in seconds that an ad unit is visible on the user's screen + * from Google Analytics. + * Corresponds to "Ad unit exposure (seconds)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum AD_UNIT_EXPOSURE_SECONDS = 242; + */ + const AD_UNIT_EXPOSURE_SECONDS = 242; + /** + * The number of users who viewed an ads on your site or app in the + * specified date range from Google Analytics. + * Corresponds to "Ad viewers" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum AD_VIEWERS = 425; + */ + const AD_VIEWERS = 425; + /** + * Number of ads that Ad Manager failed to render in the Ads traffic + * navigator report. + * Corresponds to "Ads failed to render" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_ADS_FAILED_TO_RENDER = 430; + */ + const ATN_ADS_FAILED_TO_RENDER = 430; + /** + * Number of line items that matched an ad request in the Ads traffic + * navigator report. + * Corresponds to "Eligible line items" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_ELIGIBLE_LINE_ITEMS = 342; + */ + const ATN_ELIGIBLE_LINE_ITEMS = 342; + /** + * Number of ad requests that contain eligible line items for the auction in + * the Ads traffic navigator report. + * Corresponds to "Ad requests with eligible line items" in the Ad Manager + * UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS = 343; + */ + const ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS = 343; + /** + * Number of ad requests that have header bidding trafficking demand in the + * Ads traffic navigator report. + * Corresponds to "Ad requests allowing header bidding trafficking" in the + * Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_HBT_ALLOWED_AD_REQUESTS = 344; + */ + const ATN_HBT_ALLOWED_AD_REQUESTS = 344; + /** + * Number of header bidding trafficking bids that are able to match an ad + * request and enter the auction in the Ads traffic navigator report. + * Corresponds to "Competing header bidding trafficking bids" in the Ad + * Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_HBT_BIDS_IN_AUCTION = 345; + */ + const ATN_HBT_BIDS_IN_AUCTION = 345; + /** + * Number of header bidding trafficking ad requests with bids in auction in + * the Ads traffic navigator report. + * Corresponds to "Ad requests with competing header bidding trafficking + * bids" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS = 346; + */ + const ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS = 346; + /** + * Number of header bidding trafficking candidate bids that match an ad + * request in the Ads traffic navigator report. + * Corresponds to "Header bidding trafficking bids" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_HBT_CANDIDATE_BIDS = 347; + */ + const ATN_HBT_CANDIDATE_BIDS = 347; + /** + * Number of invalid header bidding trafficking ad requests in the Ads + * traffic navigator report. + * Corresponds to "Invalid ad requests allowing header bidding trafficking" + * in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_HBT_INVALID_AD_REQUESTS = 348; + */ + const ATN_HBT_INVALID_AD_REQUESTS = 348; + /** + * Number of header bidding trafficking ad requests with no bids in the Ads + * traffic navigator report. + * Corresponds to "Header bidding trafficking ad requests with no bids" in + * the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_HBT_NO_BIDS_AD_REQUESTS = 472; + */ + const ATN_HBT_NO_BIDS_AD_REQUESTS = 472; + /** + * Number of header bidding trafficking bids that didn't match the ad + * request in the Ads traffic navigator report. + * Corresponds to "Rejected header bidding trafficking bids" in the Ad + * Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_HBT_REJECTED_BIDS = 349; + */ + const ATN_HBT_REJECTED_BIDS = 349; + /** + * Number of ad requests with the header bidding trafficking demand that are + * valid in the Ads traffic navigator report. + * Corresponds to "Valid header bidding trafficking ad requests" in the Ad + * Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_HBT_VALID_AD_REQUESTS = 350; + */ + const ATN_HBT_VALID_AD_REQUESTS = 350; + /** + * Number of header bidding trafficking ad requests with bids in the Ads + * traffic navigator report. + * Corresponds to "Header bidding trafficking ad requests with bids" in the + * Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_HBT_WITH_BIDS_AD_REQUESTS = 473; + */ + const ATN_HBT_WITH_BIDS_AD_REQUESTS = 473; + /** + * Ad requests that are not valid in the Ads traffic navigator report. + * Corresponds to "Invalid ad requests" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_INVALID_AD_REQUESTS = 351; + */ + const ATN_INVALID_AD_REQUESTS = 351; + /** + * Number of line items with no creative retrieved in the Ads + * traffic navigator report. + * Corresponds to "Creative not retrieved" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED = 476; + */ + const ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED = 476; + /** + * Number of line items that matched an ad request and entered in auction in + * the Ads traffic navigator report. + * Corresponds to "Competing line items" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_LINE_ITEMS_IN_AUCTION = 352; + */ + const ATN_LINE_ITEMS_IN_AUCTION = 352; + /** + * Number of line items that were ranked but did not compete in auction in + * the Ads traffic navigator report. + * Corresponds to "Non-competing line items" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_LINE_ITEMS_NOT_COMPETING = 515; + */ + const ATN_LINE_ITEMS_NOT_COMPETING = 515; + /** + * Number of line items that matched an ad request but were not selected to + * compete in the auction in the Ads traffic navigator report. + * Corresponds to "Not selected to compete" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_LINE_ITEMS_NOT_SELECTED = 353; + */ + const ATN_LINE_ITEMS_NOT_SELECTED = 353; + /** + * Number of line item ad requests in auction in the Ads traffic navigator + * report. + * Corresponds to "Ad requests with competing line items" in the Ad Manager + * UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS = 354; + */ + const ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS = 354; + /** + * Number of line item targeted ad requests in the Ads traffic navigator + * report. + * Corresponds to "Ad requests with targeted line items" in the Ad Manager + * UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_LINE_ITEM_TARGETED_AD_REQUESTS = 355; + */ + const ATN_LINE_ITEM_TARGETED_AD_REQUESTS = 355; + /** + * Number of ad requests with the mediation demand in the Ads traffic + * navigator report. + * Corresponds to "Ad requests allowing mediation" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_ALLOWED_AD_REQUESTS = 356; + */ + const ATN_MEDIATION_ALLOWED_AD_REQUESTS = 356; + /** + * Number of invalid mediation ad requests in the Ads traffic navigator + * report. + * Corresponds to "Invalid ad requests allowing mediation" in the Ad Manager + * UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_INVALID_AD_REQUESTS = 357; + */ + const ATN_MEDIATION_INVALID_AD_REQUESTS = 357; + /** + * Number of times the Yield Partner's ad was loaded in the Ads traffic + * navigator report. + * Corresponds to "Loaded ads from chains" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_LOADED_ADS_FROM_CHAINS = 358; + */ + const ATN_MEDIATION_LOADED_ADS_FROM_CHAINS = 358; + /** + * Number of ad requests with mediation demand having no partners in the Ads + * traffic navigator report. + * Corresponds to "Mediation requests with no partners" in the Ad Manager + * UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_NO_PARTNER_AD_REQUESTS = 474; + */ + const ATN_MEDIATION_NO_PARTNER_AD_REQUESTS = 474; + /** + * Number of mediation yield partners in auction in the Ads traffic + * navigator report. + * Corresponds to "Competing mediation partners" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_PARTNERS_IN_AUCTION = 359; + */ + const ATN_MEDIATION_PARTNERS_IN_AUCTION = 359; + /** + * Number of ad requests in auction that serve mediation chains in the Ads + * traffic navigator report. + * Corresponds to "Ad requests with competing mediation partners" in the Ad + * Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS = 360; + */ + const ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS = 360; + /** + * Number of mediation partners that didn't match an ad request in the Ads + * traffic navigator report. + * Corresponds to "Rejected partners" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_REJECTED_PARTNERS = 361; + */ + const ATN_MEDIATION_REJECTED_PARTNERS = 361; + /** + * Number of mediation partners that have targeted an ad request and are + * able to match it in the Ads traffic navigator report. + * Corresponds to "Targeted mediation partners" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_TARGETED_PARTNERS = 362; + */ + const ATN_MEDIATION_TARGETED_PARTNERS = 362; + /** + * Number of partners on served mediation chains in the Ads traffic + * navigator report. + * Corresponds to "Total yield partners" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_TOTAL_YIELD_PARTNERS = 442; + */ + const ATN_MEDIATION_TOTAL_YIELD_PARTNERS = 442; + /** + * Number of ads from mediation chains that Ad Manager won't serve in the + * Ads traffic navigator report. + * Corresponds to "Unloaded ads from chains" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS = 363; + */ + const ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS = 363; + /** + * Number of times the Yield Partner's mediation chain ad was not reached + * in the Ads traffic navigator report. + * Corresponds to "Unused bids or partners" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS = 364; + */ + const ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS = 364; + /** + * Number of ad requests that have mediation demand in the Ads traffic + * navigator report. + * Corresponds to "Valid mediation ad requests" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_VALID_AD_REQUESTS = 365; + */ + const ATN_MEDIATION_VALID_AD_REQUESTS = 365; + /** + * Number of ad requests with mediation demand having partners in the Ads + * traffic navigator report. + * Corresponds to "Ad requests with targeted mediation partners" in the Ad + * Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS = 475; + */ + const ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS = 475; + /** + * Number of ad requests with programmatic demand that have received a bid + * in the Ads traffic navigator report. + * Corresponds to "Ad requests with bids" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS = 366; + */ + const ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS = 366; + /** + * Number of ad requests with programmatic demand that have sent a bid to at + * least one buyer in the Ads traffic navigator report. + * Corresponds to "Ad requests with bid requests sent" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT = 367; + */ + const ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT = 367; + /** + * Number of ad requests with programmatic demand in the Ads traffic + * navigator report. + * Corresponds to "Ad requests allowing programmatic" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS = 368; + */ + const ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS = 368; + /** + * Number of ads with programmatic bids that entered the auction + * in the Ads traffic navigator report. + * Corresponds to "Competing programmatic bids" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_BIDS_IN_AUCTION = 369; + */ + const ATN_PROGRAMMATIC_BIDS_IN_AUCTION = 369; + /** + * Number of ad requests that have received eligible programmatic bids to + * compete in the auction in the Ads traffic navigator report. + * Corresponds to "Ad requests with competing programmatic bids" in the Ad + * Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS = 370; + */ + const ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS = 370; + /** + * Number of programmatic callout bid requests sent to buyers in the Ads + * traffic navigator report. + * Corresponds to "Bid requests sent" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_BID_REQUESTS_SENT = 371; + */ + const ATN_PROGRAMMATIC_BID_REQUESTS_SENT = 371; + /** + * Number of programmatic callout bid requests that resulted with a response + * in the Ads traffic navigator report. + * Corresponds to "Bid requests with response" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE = 372; + */ + const ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE = 372; + /** + * All buyers that Ad Manager could potentially send a programmatic bid + * request to in the Ads traffic navigator report. + * Corresponds to "Bid request candidates" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES = 373; + */ + const ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES = 373; + /** + * Number of programmatic callout bid requests with errors in the Ads + * traffic navigator report. + * Corresponds to "Bid request errors" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_BID_REQUEST_ERRORS = 374; + */ + const ATN_PROGRAMMATIC_BID_REQUEST_ERRORS = 374; + /** + * Number of ad requests that are ineligible for programmatic in the Ads + * traffic navigator report. + * Corresponds to "Invalid ad requests allowing programmatic" in the Ad + * Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS = 375; + */ + const ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS = 375; + /** + * Number of programmatic callout bids rejected in the Ads traffic navigator + * report. + * Corresponds to "Rejected bids" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_REJECTED_BIDS = 376; + */ + const ATN_PROGRAMMATIC_REJECTED_BIDS = 376; + /** + * Number of programmatic callout bid requests Ad Manager won't send to + * buyers in the Ads traffic navigator report. + * Corresponds to "Skipped bid requests" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS = 377; + */ + const ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS = 377; + /** + * Number of programmatic bids that Ad Manager received from buyers in the + * Ads traffic navigator report. + * Corresponds to "Total programmatic bids" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_TOTAL_BIDS = 378; + */ + const ATN_PROGRAMMATIC_TOTAL_BIDS = 378; + /** + * Number of ad requests that allow programmatic in the Ads traffic + * navigator report. + * Corresponds to "Valid ad requests allowing programmatic" in the Ad + * Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_PROGRAMMATIC_VALID_AD_REQUESTS = 379; + */ + const ATN_PROGRAMMATIC_VALID_AD_REQUESTS = 379; + /** + * Number of line items targeted that didn't match an ad request in the Ads + * traffic navigator report. + * Corresponds to "Rejected line items" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_REJECTED_LINE_ITEMS = 380; + */ + const ATN_REJECTED_LINE_ITEMS = 380; + /** + * Number of mediation chains Ad Manager serves in the Ads traffic navigator + * report. + * Corresponds to "Served mediation chains" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_SERVED_MEDIATION_CHAINS = 381; + */ + const ATN_SERVED_MEDIATION_CHAINS = 381; + /** + * Number of single ads served in the Ads traffic navigator report. + * Corresponds to "Served single ads" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_SERVED_SINGLE_ADS = 382; + */ + const ATN_SERVED_SINGLE_ADS = 382; + /** + * Number of line items with targeting that matches an ad request in the Ads + * traffic navigator report. + * Corresponds to "Targeted line items" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_TARGETED_LINE_ITEMS = 383; + */ + const ATN_TARGETED_LINE_ITEMS = 383; + /** + * Total number of ad requests which counts optimized pod request as a + * single request in the Ads traffic navigator report. + * Corresponds to "Total ad requests (ATN)" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_TOTAL_AD_REQUESTS = 384; + */ + const ATN_TOTAL_AD_REQUESTS = 384; + /** + * Number of competing ads in auction in the Ads traffic navigator report. + * Corresponds to "Total competing ads" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_TOTAL_COMPETING_ADS_IN_AUCTION = 385; + */ + const ATN_TOTAL_COMPETING_ADS_IN_AUCTION = 385; + /** + * Total number of ads loaded in the Ads traffic navigator report. + * Corresponds to "Total loaded ads" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_TOTAL_LOADED_ADS = 387; + */ + const ATN_TOTAL_LOADED_ADS = 387; + /** + * Ad requests that are valid in the Ads traffic navigator report. + * Corresponds to "Valid ad requests" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_VALID_AD_REQUESTS = 389; + */ + const ATN_VALID_AD_REQUESTS = 389; + /** + * Number of times the Yield Partner passed-back on a Mediation chain ad in + * the Ads traffic navigator report. + * Corresponds to "Yield group mediation passbacks" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum ATN_YIELD_GROUP_MEDIATION_PASSBACKS = 390; + */ + const ATN_YIELD_GROUP_MEDIATION_PASSBACKS = 390; + /** + * eCPM averaged across the Google Ad Manager server, AdSense, + * and Ad Exchange. + * Corresponds to "Total average eCPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AVERAGE_ECPM = 37; + */ + const AVERAGE_ECPM = 37; + /** + * eCPM averaged across the Google Ad Manager server (excluding CPD), + * AdSense, and Ad Exchange. + * Corresponds to "Total average eCPM w/o CPD" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AVERAGE_ECPM_WITHOUT_CPD = 5; + */ + const AVERAGE_ECPM_WITHOUT_CPD = 5; + /** + * Average user engagement seconds per session in Google Analytics. + * Corresponds to "Average engagement time per session (seconds)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION = 224; + */ + const AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION = 224; + /** + * Average user engagement seconds per user in Google Analytics. + * Corresponds to "Average engagement time per user (seconds)" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum AVERAGE_ENGAGEMENT_SECONDS_PER_USER = 225; + */ + const AVERAGE_ENGAGEMENT_SECONDS_PER_USER = 225; + /** + * The average number of unique users reached per ad impression. + * Corresponds to "Average impressions/unique visitor" in the Ad Manager UI. + * Compatible with the following report types: `REACH` + * Data format: `DOUBLE` + * + * Generated from protobuf enum AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR = 418; + */ + const AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR = 418; + /** + * Average total purchase revenue per user in Google Analytics. + * Corresponds to "ARPPU" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER = 226; + */ + const AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER = 226; + /** + * Average revenue earned from each active user in Google Analytics. + * Corresponds to "ARPU" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum AVERAGE_REVENUE_PER_USER = 227; + */ + const AVERAGE_REVENUE_PER_USER = 227; + /** + * Average length of a session in Google Analytics. + * Corresponds to "Average session duration (seconds)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum AVERAGE_SESSION_SECONDS = 228; + */ + const AVERAGE_SESSION_SECONDS = 228; + /** + * The number of bids. + * Corresponds to "Bids" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum BIDS = 443; + */ + const BIDS = 443; + /** + * The average CPM of the bids submitted by bidders. + * Corresponds to "Average bid CPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum BID_AVERAGE_CPM = 444; + */ + const BID_AVERAGE_CPM = 444; + /** + * The ratio of (sessions - engaged sessions) / sessions. + * Corresponds to "Bounce rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum BOUNCE_RATE = 433; + */ + const BOUNCE_RATE = 433; + /** + * The number of times a user clicked on an ad. + * Corresponds to "Total clicks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum CLICKS = 2; + */ + const CLICKS = 2; + /** + * The total number of times that the code for an ad is served by the ad + * server including dynamic allocation. + * Corresponds to "Total code served count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum CODE_SERVED_COUNT = 44; + */ + const CODE_SERVED_COUNT = 44; + /** + * Total amount of CPC revenue. + * Corresponds to "CPC revenue" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `MONEY` + * + * Generated from protobuf enum CPC_REVENUE = 440; + */ + const CPC_REVENUE = 440; + /** + * Total amount of CPM revenue. + * Corresponds to "CPM revenue" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `MONEY` + * + * Generated from protobuf enum CPM_REVENUE = 441; + */ + const CPM_REVENUE = 441; + /** + * Percent of creatives whose load time is between [0, 500ms). + * Corresponds to "Creative load time 0 - 500ms (%)" in the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum CREATIVE_LOAD_TIME_0_500_PERCENT = 324; + */ + const CREATIVE_LOAD_TIME_0_500_PERCENT = 324; + /** + * Percent of creatives whose load time is between [1000, 2000ms). + * Corresponds to "Creative load time 1s - 2s (%)" in the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum CREATIVE_LOAD_TIME_1000_2000_PERCENT = 326; + */ + const CREATIVE_LOAD_TIME_1000_2000_PERCENT = 326; + /** + * Percent of creatives whose load time is between [2000, 4000ms). + * Corresponds to "Creative load time 2s - 4s (%)" in the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum CREATIVE_LOAD_TIME_2000_4000_PERCENT = 327; + */ + const CREATIVE_LOAD_TIME_2000_4000_PERCENT = 327; + /** + * Percent of creatives whose load time is between [4000, 8000ms). + * Corresponds to "Creative load time 4s - 8s (%)" in the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum CREATIVE_LOAD_TIME_4000_8000_PERCENT = 328; + */ + const CREATIVE_LOAD_TIME_4000_8000_PERCENT = 328; + /** + * Percent of creatives whose load time is between [500, 1000ms). + * Corresponds to "Creative load time 500ms - 1s (%)" in the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum CREATIVE_LOAD_TIME_500_1000_PERCENT = 325; + */ + const CREATIVE_LOAD_TIME_500_1000_PERCENT = 325; + /** + * Percent of creatives load time is greater than 8000ms. + * Corresponds to "Creative load time >8s (%)" in the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum CREATIVE_LOAD_TIME_GT_8000_PERCENT = 329; + */ + const CREATIVE_LOAD_TIME_GT_8000_PERCENT = 329; + /** + * For standard ads, your ad clickthrough rate (CTR) is the number of ad + * clicks divided by the number of individual ad impressions expressed as a + * fraction. Ad CTR = Clicks / Ad impressions. + * Corresponds to "Total CTR" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum CTR = 3; + */ + const CTR = 3; + /** + * Number of bids received for a deal. + * Corresponds to "Deals bids" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum DEALS_BIDS = 542; + */ + const DEALS_BIDS = 542; + /** + * Bid rate for a deal. + * Corresponds to "Deals bid rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum DEALS_BID_RATE = 543; + */ + const DEALS_BID_RATE = 543; + /** + * Number of bid requests sent for a deal. + * Corresponds to "Deals bid requests" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum DEALS_BID_REQUESTS = 544; + */ + const DEALS_BID_REQUESTS = 544; + /** + * Number of winning bids for a deal. + * Corresponds to "Deals winning bids" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum DEALS_WINNING_BIDS = 545; + */ + const DEALS_WINNING_BIDS = 545; + /** + * Bid win rate for a deal. + * Corresponds to "Deals win rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum DEALS_WIN_RATE = 546; + */ + const DEALS_WIN_RATE = 546; + /** + * Percent of dom load time to 1st ad request in [0, 500ms) range. + * Corresponds to "Page navigation to first ad request time 0 - 500ms (%)" + * in the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 521; + */ + const DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 521; + /** + * Percent of dom load time to 1st ad request in [1000ms, 2000ms) range. + * Corresponds to "Page navigation to first ad request time 1s - 2s (%)" in + * the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 522; + */ + const DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 522; + /** + * Percent of dom load time to 1st ad request in [2000ms, 4000ms) range. + * Corresponds to "Page navigation to first ad request time 2s - 4s (%)" in + * the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 523; + */ + const DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 523; + /** + * Percent of dom load time to 1st ad request in [4000ms, 8000ms) range. + * Corresponds to "Page navigation to first ad request time 4s - 8s (%)" in + * the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 524; + */ + const DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 524; + /** + * Percent of dom load time to 1st ad request in [500ms, 1000ms) range. + * Corresponds to "Page navigation to first ad request time 500ms - 1s (%)" + * in the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 525; + */ + const DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 525; + /** + * Percent of dom load time to 1st ad request in [8000ms, +inf) range. + * Corresponds to "Page navigation to first ad request time >8s (%)" in the + * Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 520; + */ + const DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 520; + /** + * Percent of dom load time to tag load time in [0, 500ms) range. + * Corresponds to "Page navigation to tag loaded time 0 - 500ms (%)" in the + * Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT = 526; + */ + const DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT = 526; + /** + * Percent of dom load time to tag load time in [1000ms, 2000ms) range. + * Corresponds to "Page navigation to tag loaded time 1s - 2s (%)" in the Ad + * Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT = 527; + */ + const DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT = 527; + /** + * Percent of dom load time to tag load time in [2000ms, 4000ms) range. + * Corresponds to "Page navigation to tag loaded time 2s - 4s (%)" in the Ad + * Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT = 528; + */ + const DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT = 528; + /** + * Percent of dom load time to tag load time in [4000ms, 8000ms) range. + * Corresponds to "Page navigation to tag loaded time 4s - 8s (%)" in the Ad + * Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT = 529; + */ + const DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT = 529; + /** + * Percent of dom load time to tag load time in [500ms, 1000ms) range. + * Corresponds to "Page navigation to tag loaded time 500ms - 1s (%)" in the + * Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT = 531; + */ + const DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT = 531; + /** + * Percent of dom load time to tag load time in [8000ms, +inf) range. + * Corresponds to "Page navigation to tag loaded time >8s (%)" in the Ad + * Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT = 530; + */ + const DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT = 530; + /** + * Percentage of ad responses that didn't result in an impression. + * Corresponds to "Drop-off rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum DROPOFF_RATE = 415; + */ + const DROPOFF_RATE = 415; + /** + * Engaged session count from Google Analytics. + * Corresponds to "Engaged sessions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum ENGAGED_SESSIONS = 229; + */ + const ENGAGED_SESSIONS = 229; + /** + * Engaged sessions per user from Google Analytics. + * Corresponds to "Engaged sessions per user" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum ENGAGED_SESSIONS_PER_USER = 230; + */ + const ENGAGED_SESSIONS_PER_USER = 230; + /** + * The ratio of engaged sessions to sessions. + * Corresponds to "Engagement rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum ENGAGEMENT_RATE = 426; + */ + const ENGAGEMENT_RATE = 426; + /** + * Percentage of European regulations messages where the user consented to + * all of the purposes and vendors. + * Corresponds to "European regulations consent rate" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `PERCENT` + * + * Generated from protobuf enum EUROPEAN_REGULATIONS_CONSENT_RATE = 270; + */ + const EUROPEAN_REGULATIONS_CONSENT_RATE = 270; + /** + * Percentage of European regulations messages where users made a consent + * choice after selecting "Manage options". + * Corresponds to "European regulations custom consent rate" in the Ad + * Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `PERCENT` + * + * Generated from protobuf enum EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE = 271; + */ + const EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE = 271; + /** + * Number of times a European regulations message was shown to users. + * Corresponds to "European regulations messages shown" in the Ad Manager + * UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum EUROPEAN_REGULATIONS_MESSAGES_SHOWN = 272; + */ + const EUROPEAN_REGULATIONS_MESSAGES_SHOWN = 272; + /** + * Percentage of European regulations messages where the user rejected all + * purposes and vendors. + * Corresponds to "European regulations no consent rate" in the Ad Manager + * UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `PERCENT` + * + * Generated from protobuf enum EUROPEAN_REGULATIONS_NO_CONSENT_RATE = 273; + */ + const EUROPEAN_REGULATIONS_NO_CONSENT_RATE = 273; + /** + * The rate at which an ad request is filled by the ad server including + * dynamic allocation. + * Corresponds to "Total fill rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum FILL_RATE = 258; + */ + const FILL_RATE = 258; + /** + * The number of clicks joined with Google Analytics data. + * Corresponds to "Google Analytics clicks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum GOOGLE_ANALYTICS_CLICKS = 231; + */ + const GOOGLE_ANALYTICS_CLICKS = 231; + /** + * The click-through rate from Google Analytics data. + * Corresponds to "Google Analytics CTR" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum GOOGLE_ANALYTICS_CTR = 232; + */ + const GOOGLE_ANALYTICS_CTR = 232; + /** + * The eCPM revenue data from Google Analytics. + * Corresponds to "Google Analytics eCPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum GOOGLE_ANALYTICS_ECPM = 233; + */ + const GOOGLE_ANALYTICS_ECPM = 233; + /** + * The number of impressions joined with Google Analytics data. + * Corresponds to "Google Analytics impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum GOOGLE_ANALYTICS_IMPRESSIONS = 234; + */ + const GOOGLE_ANALYTICS_IMPRESSIONS = 234; + /** + * The amount of revenue joined with Google Analytics data. + * Corresponds to "Google Analytics revenue" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum GOOGLE_ANALYTICS_REVENUE = 235; + */ + const GOOGLE_ANALYTICS_REVENUE = 235; + /** + * Number of views of a web site or mobile screen from Google Analytics. + * Corresponds to "Views" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum GOOGLE_ANALYTICS_VIEWS = 236; + */ + const GOOGLE_ANALYTICS_VIEWS = 236; + /** + * Number of views per user from Google Analytics. + * Corresponds to "Views per user" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum GOOGLE_ANALYTICS_VIEWS_PER_USER = 237; + */ + const GOOGLE_ANALYTICS_VIEWS_PER_USER = 237; + /** + * The number of coviewed impressions sold by Google in partner sales. + * Corresponds to "Google-sold auction impressions (co-viewed)" in the Ad + * Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; + */ + const GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; + /** + * The number of auction impressions sold by Google in partner sales. + * Corresponds to "Google-sold auction impressions" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; + */ + const GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; + /** + * The number of coviewed impressions sold by Google in partner sales. + * Corresponds to "Google-sold impressions (co-viewed)" in the Ad Manager + * UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; + */ + const GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; + /** + * The number of impressions sold by Google in partner sales. + * Corresponds to "Google-sold impressions" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum GOOGLE_SOLD_IMPRESSIONS = 130; + */ + const GOOGLE_SOLD_IMPRESSIONS = 130; + /** + * The number of coviewed impressions sold by Google in partner sales. + * Corresponds to "Google-sold reservation impressions (co-viewed)" in the + * Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; + */ + const GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; + /** + * The number of reservation impressions sold by Google in partner sales. + * Corresponds to "Google-sold reservation impressions" in the Ad Manager + * UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; + */ + const GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; + /** + * Total impressions from the Google Ad Manager server, AdSense, + * Ad Exchange, and yield group partners. + * Corresponds to "Total impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum IMPRESSIONS = 1; + */ + const IMPRESSIONS = 1; + /** + * The number of impressions (via begin to render methodology) considered + * inactive, as defined by served to a device receiving ad or bid requests + * continuously for a session of greater than 16 hours without a "reset" + * event. Only applied to CTV ads. + * Corresponds to "Inactive begin to render impressions" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 407; + */ + const INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 407; + /** + * The total number of inventory shares + * Corresponds to "Inventory shares" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum INVENTORY_SHARES = 547; + */ + const INVENTORY_SHARES = 547; + /** + * The total number of partner unfilled opportunities from an inventory + * share + * Corresponds to "Inventory share partner unfilled opportunities" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES = 548; + */ + const INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES = 548; + /** + * The number of invoiced impressions. + * Corresponds to "Invoiced impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum INVOICED_IMPRESSIONS = 404; + */ + const INVOICED_IMPRESSIONS = 404; + /** + * The number of invoiced unfilled impressions. + * Corresponds to "Invoiced unfilled impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum INVOICED_UNFILLED_IMPRESSIONS = 405; + */ + const INVOICED_UNFILLED_IMPRESSIONS = 405; + /** + * The number of mediation chains that were filled. + * Corresponds to "Mediation chains filled" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum MEDIATION_CHAINS_FILLED = 584; + */ + const MEDIATION_CHAINS_FILLED = 584; + /** + * The number of impressions where the user chose to mute the ad. + * Corresponds to "Total muted impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum MUTED_IMPRESSIONS = 412; + */ + const MUTED_IMPRESSIONS = 412; + /** + * The number of impressions that had the "Mute This Ad" overlay applied. + * Corresponds to "Total mute eligible impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum MUTE_ELIGIBLE_IMPRESSIONS = 409; + */ + const MUTE_ELIGIBLE_IMPRESSIONS = 409; + /** + * The total number of opportunities from impressions and errors. + * Corresponds to "Total opportunities" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum OPPORTUNITIES = 463; + */ + const OPPORTUNITIES = 463; + /** + * The number of impressions that were overdelivered. + * Corresponds to "Total overdelivered impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum OVERDELIVERED_IMPRESSIONS = 432; + */ + const OVERDELIVERED_IMPRESSIONS = 432; + /** + * The number of filled pod requests (filled by partner or Google) in + * partner sales. + * Corresponds to "Filled pod requests" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum PARTNER_SALES_FILLED_POD_REQUESTS = 135; + */ + const PARTNER_SALES_FILLED_POD_REQUESTS = 135; + /** + * The percent of filled requests to total ad requests in + * partner sales. + * Corresponds to "Fill rate" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `PERCENT` + * + * Generated from protobuf enum PARTNER_SALES_FILL_RATE = 136; + */ + const PARTNER_SALES_FILL_RATE = 136; + /** + * The percent of partner filled requests to total ad requests + * in partner sales. + * Corresponds to "Partner match rate" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `PERCENT` + * + * Generated from protobuf enum PARTNER_SALES_PARTNER_MATCH_RATE = 137; + */ + const PARTNER_SALES_PARTNER_MATCH_RATE = 137; + /** + * The number of queries eligible for partner sales. + * Corresponds to "Total partner sales ad requests" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum PARTNER_SALES_QUERIES = 132; + */ + const PARTNER_SALES_QUERIES = 132; + /** + * The number of partner unfilled impressions in partner sales. + * If a pod request is not filled by partner but filled by Google, this + * metric will still count 1. + * Corresponds to "Partner unfilled impressions" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; + */ + const PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; + /** + * The number of partner unmatched queries in partner sales. + * If an ad request is not filled by partner but filled by Google, this + * metric will still count 1. + * Corresponds to "Partner unmatched ad requests" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum PARTNER_SALES_UNMATCHED_QUERIES = 134; + */ + const PARTNER_SALES_UNMATCHED_QUERIES = 134; + /** + * The number of code served sold by partner in partner sales. + * Corresponds to "Partner-sold code served count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum PARTNER_SOLD_CODE_SERVED = 125; + */ + const PARTNER_SOLD_CODE_SERVED = 125; + /** + * The number of coviewed impressions sold by partner in partner sales. + * Corresponds to "Partner-sold impressions (co-viewed)" in the Ad Manager + * UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; + */ + const PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; + /** + * The number of impressions sold by partner in partner sales. + * Corresponds to "Partner-sold impressions" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum PARTNER_SOLD_IMPRESSIONS = 123; + */ + const PARTNER_SOLD_IMPRESSIONS = 123; + /** + * The total number of ad requests eligible for programmatic inventory, + * including Programmatic Guaranteed, Preferred Deals, backfill, and open + * auction. + * Corresponds to "Programmatic eligible ad requests" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; + */ + const PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; + /** + * The number of programmatic responses served divided by the number of + * programmatic eligible ad requests. Includes Ad Exchange, Open Bidding, + * and Preferred Deals. + * Corresponds to "Programmatic match rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum PROGRAMMATIC_MATCH_RATE = 178; + */ + const PROGRAMMATIC_MATCH_RATE = 178; + /** + * Total number of ad responses served from programmatic demand sources. + * Includes Ad Exchange, Open Bidding, and Preferred Deals. + * Differs from AD_EXCHANGE_RESPONSES_SERVED, which doesn't include Open + * Bidding ad requests. + * Corresponds to "Programmatic responses served" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum PROGRAMMATIC_RESPONSES_SERVED = 176; + */ + const PROGRAMMATIC_RESPONSES_SERVED = 176; + /** + * Number of impressions for reach reports. + * Corresponds to "Total reach impressions" in the Ad Manager UI. + * Compatible with the following report types: `REACH` + * Data format: `INTEGER` + * + * Generated from protobuf enum REACH_IMPRESSIONS = 416; + */ + const REACH_IMPRESSIONS = 416; + /** + * The total number of times that an ad is served by the ad server including + * dynamic allocation. + * Corresponds to "Total responses served" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RESPONSES_SERVED = 39; + */ + const RESPONSES_SERVED = 39; + /** + * Retention of users in Google Analytics + * Corresponds to "Retention" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum RETENTION = 238; + */ + const RETENTION = 238; + /** + * Total amount of CPM, CPC, and CPD revenue based on the number of units + * served by the Google Ad Manager server, AdSense, Ad Exchange, and + * third-party Mediation networks. + * Corresponds to "Total revenue" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum REVENUE = 36; + */ + const REVENUE = 36; + /** + * The total revenue accrued in the child network's own account but paid to + * their parent network through auto-payment. This metric is only relevant + * for a "Manage Account" child network. + * Corresponds to "Total revenue paid through MCM auto-payment" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 214; + */ + const REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 214; + /** + * Total amount of revenue (excluding CPD) based on the number of units + * served by the Google Ad Manager server, AdSense, Ad Exchange, and + * third-party Mediation networks. + * Corresponds to "Total CPM and CPC revenue" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum REVENUE_WITHOUT_CPD = 4; + */ + const REVENUE_WITHOUT_CPD = 4; + /** + * The number of rewards granted to users from watching ads. + * Corresponds to "Total rewards granted" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum REWARDS_GRANTED = 413; + */ + const REWARDS_GRANTED = 413; + /** + * The average amount of time (in seconds) that each rich media ad is + * displayed to users. + * Corresponds to "Average display time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum RICH_MEDIA_AVERAGE_DISPLAY_TIME = 587; + */ + const RICH_MEDIA_AVERAGE_DISPLAY_TIME = 587; + /** + * The average amount of time (in seconds) that a user interacts with a rich + * media ad. + * Corresponds to "Average interaction time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum RICH_MEDIA_AVERAGE_INTERACTION_TIME = 588; + */ + const RICH_MEDIA_AVERAGE_INTERACTION_TIME = 588; + /** + * The total number of times a backup image is served in place of a rich + * media ad. + * Corresponds to "Backup image impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_BACKUP_IMAGES = 589; + */ + const RICH_MEDIA_BACKUP_IMAGES = 589; + /** + * The number of times a user interacts with a specific part of a rich media + * ad. + * Corresponds to "Custom event - count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_CUSTOM_EVENT_COUNT = 599; + */ + const RICH_MEDIA_CUSTOM_EVENT_COUNT = 599; + /** + * The amount of time (in seconds) that a user interacts with a specific + * part of a rich media ad. + * Corresponds to "Custom event - time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum RICH_MEDIA_CUSTOM_EVENT_TIME = 600; + */ + const RICH_MEDIA_CUSTOM_EVENT_TIME = 600; + /** + * The amount of time (in seconds) that each rich media ad is displayed to + * users. + * Corresponds to "Total display time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum RICH_MEDIA_DISPLAY_TIME = 590; + */ + const RICH_MEDIA_DISPLAY_TIME = 590; + /** + * The average amount of time (in seconds) that an expanding ad is viewed in + * an expanded state. + * Corresponds to "Average expanding time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum RICH_MEDIA_EXPANDING_TIME = 591; + */ + const RICH_MEDIA_EXPANDING_TIME = 591; + /** + * The number of times an expanding ad was expanded. + * Corresponds to "Total expansions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_EXPANSIONS = 592; + */ + const RICH_MEDIA_EXPANSIONS = 592; + /** + * The number of times a user opens a rich media ad in full screen mode. + * Corresponds to "Full-screen impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_FULL_SCREEN_IMPRESSIONS = 593; + */ + const RICH_MEDIA_FULL_SCREEN_IMPRESSIONS = 593; + /** + * The number of times that a user interacts with a rich media ad. + * Corresponds to "Total interactions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_INTERACTION_COUNT = 594; + */ + const RICH_MEDIA_INTERACTION_COUNT = 594; + /** + * The ratio of rich media ad interactions to the number of times the ad + * was displayed. + * Corresponds to "Interaction rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum RICH_MEDIA_INTERACTION_RATE = 595; + */ + const RICH_MEDIA_INTERACTION_RATE = 595; + /** + * The total amount of time (in seconds) that a user interacts with a rich + * media ad. + * Corresponds to "Interaction time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum RICH_MEDIA_INTERACTION_TIME = 596; + */ + const RICH_MEDIA_INTERACTION_TIME = 596; + /** + * The number of impressions where a user interacted with a rich media ad. + * Corresponds to "Interactive impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_INTERACTIVE_IMPRESSIONS = 597; + */ + const RICH_MEDIA_INTERACTIVE_IMPRESSIONS = 597; + /** + * The number of times that a user manually closes a rich media ad. + * Corresponds to "Manual closes" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_MANUAL_CLOSES = 598; + */ + const RICH_MEDIA_MANUAL_CLOSES = 598; + /** + * The number of times a rich media video was fully played. + * Corresponds to "Rich media video completes" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_COMPLETES = 503; + */ + const RICH_MEDIA_VIDEO_COMPLETES = 503; + /** + * The number of times a user clicked on the graphical controls of a video + * player. + * Corresponds to "Rich media total video interactions" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_INTERACTIONS = 505; + */ + const RICH_MEDIA_VIDEO_INTERACTIONS = 505; + /** + * The ratio of video interactions to video plays. Represented as a + * percentage. + * Corresponds to "Rich media video interaction rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_INTERACTION_RATE = 504; + */ + const RICH_MEDIA_VIDEO_INTERACTION_RATE = 504; + /** + * The number of times a rich media video was played up to midpoint. + * Corresponds to "Rich media video midpoints" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_MIDPOINTS = 506; + */ + const RICH_MEDIA_VIDEO_MIDPOINTS = 506; + /** + * The number of times a rich media video was muted. + * Corresponds to "Rich media video mutes" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_MUTES = 507; + */ + const RICH_MEDIA_VIDEO_MUTES = 507; + /** + * The number of times a rich media video was paused. + * Corresponds to "Rich media video pauses" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_PAUSES = 508; + */ + const RICH_MEDIA_VIDEO_PAUSES = 508; + /** + * The number of times a rich media video was played. + * Corresponds to "Rich media video plays" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_PLAYS = 509; + */ + const RICH_MEDIA_VIDEO_PLAYS = 509; + /** + * The number of times a rich media video was restarted. + * Corresponds to "Rich media video replays" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_REPLAYS = 510; + */ + const RICH_MEDIA_VIDEO_REPLAYS = 510; + /** + * The number of times a rich media video was stopped. + * Corresponds to "Rich media video stops" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_STOPS = 511; + */ + const RICH_MEDIA_VIDEO_STOPS = 511; + /** + * The number of times a rich media video was unmuted. + * Corresponds to "Rich media video unmutes" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_UNMUTES = 512; + */ + const RICH_MEDIA_VIDEO_UNMUTES = 512; + /** + * The percentage of a video watched by a user. + * Corresponds to "Rich media video view rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_VIEW_RATE = 513; + */ + const RICH_MEDIA_VIDEO_VIEW_RATE = 513; + /** + * The average amount of time(seconds) that a rich media video was viewed + * per view. + * Corresponds to "Rich media video average view time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum RICH_MEDIA_VIDEO_VIEW_TIME = 514; + */ + const RICH_MEDIA_VIDEO_VIEW_TIME = 514; + /** + * The number of forecasted impressions not reserved by any line item. + * Corresponds to "Available impressions" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum SELL_THROUGH_AVAILABLE_IMPRESSIONS = 477; + */ + const SELL_THROUGH_AVAILABLE_IMPRESSIONS = 477; + /** + * The total number of forecasted impressions. + * Corresponds to "Forecasted impressions" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum SELL_THROUGH_FORECASTED_IMPRESSIONS = 478; + */ + const SELL_THROUGH_FORECASTED_IMPRESSIONS = 478; + /** + * The number of forecasted impressions reserved by line items. + * Corresponds to "Reserved impressions" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum SELL_THROUGH_RESERVED_IMPRESSIONS = 479; + */ + const SELL_THROUGH_RESERVED_IMPRESSIONS = 479; + /** + * The fraction of forecasted impressions reserved by line items. + * Corresponds to "Sell-through rate" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `PERCENT` + * + * Generated from protobuf enum SELL_THROUGH_SELL_THROUGH_RATE = 480; + */ + const SELL_THROUGH_SELL_THROUGH_RATE = 480; + /** + * The average latency in milliseconds across all server-side unwrapping + * callout requests. There is no special handling for error or timeout + * responses. This reflects the entire chain of a parent callout request, + * which may result in multiple child callouts. This metric is not sliced + * by child callout dimensions. + * Corresponds to "Server-side unwrapping average latency (milliseconds)" in + * the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; + */ + const SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; + /** + * The total number of server-side unwrapping callout requests. + * Corresponds to "Server-side unwrapping callouts" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; + */ + const SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; + /** + * The total number of server-side unwrapping callouts that returned an + * empty response. Timeouts are not considered empty responses. + * Corresponds to "Server-side unwrapping empty responses" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; + */ + const SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; + /** + * The total number of server-side unwrapping callouts that returned an + * error response. Timeouts and empty responses are not considered errors. + * Corresponds to "Server-side unwrapping error responses" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; + */ + const SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; + /** + * The total number of successfully unwrapped, non-empty server-side + * wrapping callouts. Successful unwrapping does not indicate that the + * resulting creative was served. + * Corresponds to "Server-side unwrapping successful responses" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; + */ + const SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; + /** + * The total number of server-side unwrapping callouts that timed out before + * returning a response. + * Corresponds to "Server-side unwrapping timeouts" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; + */ + const SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; + /** + * Count of sessions from Google Analytics. + * Corresponds to "Sessions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum SESSIONS = 239; + */ + const SESSIONS = 239; + /** + * Percent of tag load time to 1st ad request in [0, 500ms) range. + * Corresponds to "Tag loaded to first ad request time 0 - 500ms (%)" in the + * Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 455; + */ + const TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 455; + /** + * Percent of tag load time to 1st ad request in [1000ms, 2000ms) range. + * Corresponds to "Tag loaded to first ad request time 1s - 2s (%)" in the + * Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 457; + */ + const TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 457; + /** + * Percent of tag load time to 1st ad request in [2000ms, 4000ms) range. + * Corresponds to "Tag loaded to first ad request time 2s - 4s (%)" in the + * Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 458; + */ + const TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 458; + /** + * Percent of tag load time to 1st ad request in [4000ms, 8000ms) range. + * Corresponds to "Tag loaded to first ad request time 4s - 8s (%)" in the + * Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 459; + */ + const TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 459; + /** + * Percent of tag load time to 1st ad request in [500ms, 1000ms) range. + * Corresponds to "Tag loaded to first ad request time 500ms - 1s (%)" in + * the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 456; + */ + const TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 456; + /** + * Percent of tag load time to 1st ad request in [8000ms, +inf) range. + * Corresponds to "Tag loaded to first ad request time >8s (%)" in the Ad + * Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 460; + */ + const TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 460; + /** + * The total number of clicks delivered including line item-level dynamic + * allocation by explicit custom criteria targeting. + * Corresponds to "Total targeted clicks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum TARGETED_CLICKS = 276; + */ + const TARGETED_CLICKS = 276; + /** + * The total number of impressions delivered including line item-level + * dynamic allocation by explicit custom criteria targeting. + * Corresponds to "Total targeted impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum TARGETED_IMPRESSIONS = 277; + */ + const TARGETED_IMPRESSIONS = 277; + /** + * The total number of missed impressions due to the ad servers' inability + * to find ads to serve including dynamic allocation. + * Corresponds to "Unfilled impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum UNFILLED_IMPRESSIONS = 45; + */ + const UNFILLED_IMPRESSIONS = 45; + /** + * The total number of unique users who viewed the ad. + * Corresponds to "Total unique visitors" in the Ad Manager UI. + * Compatible with the following report types: `REACH` + * Data format: `INTEGER` + * + * Generated from protobuf enum UNIQUE_VISITORS = 417; + */ + const UNIQUE_VISITORS = 417; + /** + * The number of impressions impacted by Chrome Ads Intervention due to CPU + * usage. + * Corresponds to "Total unloaded impressions due to CPU" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum UNLOADED_IMPRESSIONS_DUE_TO_CPU = 408; + */ + const UNLOADED_IMPRESSIONS_DUE_TO_CPU = 408; + /** + * The number of impressions impacted by Chrome Ads Intervention due to + * network usage. + * Corresponds to "Total unloaded impressions due to Network" in the Ad + * Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum UNLOADED_IMPRESSIONS_DUE_TO_NETWORK = 406; + */ + const UNLOADED_IMPRESSIONS_DUE_TO_NETWORK = 406; + /** + * The total number of times that an ad is not returned by the ad server. + * Corresponds to "Total unmatched ad requests" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum UNMATCHED_AD_REQUESTS = 43; + */ + const UNMATCHED_AD_REQUESTS = 43; + /** + * The percentage of unviewed impressions due to other reasons. + * Corresponds to "Other non-viewable impression reasons (%)" in the Ad + * Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum UNVIEWED_REASON_OTHER_PERCENT = 550; + */ + const UNVIEWED_REASON_OTHER_PERCENT = 550; + /** + * The percentage of unviewed impressions due to slot never entered + * viewport. + * Corresponds to "Slot never entered viewport (%)" in the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT = 553; + */ + const UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT = 553; + /** + * The percentage of unviewed impressions due to scrolled past before ad + * filled. + * Corresponds to "User scrolled before ad filled (%)" in the Ad Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT = 551; + */ + const UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT = 551; + /** + * The percentage of unviewed impressions due to scrolled past before ad + * loaded. + * Corresponds to "User scrolled/navigated before ad loaded (%)" in the Ad + * Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT = 552; + */ + const UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT = 552; + /** + * The percentage of unviewed impressions due to insufficient time on + * screen. + * Corresponds to "User scrolled/navigated before 1 second (%)" in the Ad + * Manager UI. + * Compatible with the following report types: `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT = 549; + */ + const UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT = 549; + /** + * Time of users interacting with web site or mobile app from Google + * Analytics in seconds. + * Corresponds to "User engagement duration (seconds)" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_ENGAGEMENT_DURATION_IN_SECONDS = 240; + */ + const USER_ENGAGEMENT_DURATION_IN_SECONDS = 240; + /** + * Fraction of page views where users had ad blocker extensions installed. + * Includes only Desktop page views. + * Corresponds to "Ad blocking extension rate" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `PERCENT` + * + * Generated from protobuf enum USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE = 486; + */ + const USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE = 486; + /** + * Number of ad-blocking messages shown in the selected date range that + * resulted in users adding the site to their allowlist to view ads + * Corresponds to "Ad blocking recovery message conversions" in the Ad + * Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT = 487; + */ + const USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT = 487; + /** + * Number of times an ad blocking recovery message was shown to users. + * Corresponds to "Ad blocking recovery messages shown" in the Ad Manager + * UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN = 488; + */ + const USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN = 488; + /** + * The number of page views generated by users with an ad blocking extension + * installed who were shown the ad blocking recovery message and later + * allowed ads. + * Corresponds to "Allow-ads page views" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_ALLOW_ADS_PAGEVIEWS = 489; + */ + const USER_MESSAGES_ALLOW_ADS_PAGEVIEWS = 489; + /** + * Number of times a US state regulations message was shown to users. + * Corresponds to "US states messages shown" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_CCPA_MESSAGES_SHOWN = 490; + */ + const USER_MESSAGES_CCPA_MESSAGES_SHOWN = 490; + /** + * Number of iOS ATT alerts that were triggered by an IDFA message (IDFA + * messages can be IDFA explainers or GDPR messages). + * Corresponds to "IDFA ATT alerts shown" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN = 491; + */ + const USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN = 491; + /** + * Number of iOS ATT alerts triggered by the IDFA message where the user + * chose to allow tracking. + * Corresponds to "IDFA ATT consent" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_IDFA_ATT_CONSENT = 492; + */ + const USER_MESSAGES_IDFA_ATT_CONSENT = 492; + /** + * Percentage of iOS ATT alerts triggered by the IDFA message where the + * outcome was to allow tracking. + * Corresponds to "IDFA ATT consent rate" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `PERCENT` + * + * Generated from protobuf enum USER_MESSAGES_IDFA_ATT_CONSENT_RATE = 493; + */ + const USER_MESSAGES_IDFA_ATT_CONSENT_RATE = 493; + /** + * Number of iOS ATT alerts triggered by the IDFA message where the user + * chose to deny tracking. + * Corresponds to "IDFA ATT decline consent" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT = 494; + */ + const USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT = 494; + /** + * Percentage of iOS ATT alerts triggered by the IDFA message where the user + * chose to deny tracking. + * Corresponds to "IDFA ATT decline rate" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `PERCENT` + * + * Generated from protobuf enum USER_MESSAGES_IDFA_ATT_DECLINE_RATE = 495; + */ + const USER_MESSAGES_IDFA_ATT_DECLINE_RATE = 495; + /** + * Number of times an IDFA explainer message was shown to users. + * Corresponds to "IDFA explainers shown" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_IDFA_EXPLAINERS_SHOWN = 496; + */ + const USER_MESSAGES_IDFA_EXPLAINERS_SHOWN = 496; + /** + * Number of times a European regulations message was shown immediately + * before the iOS ATT alert. + * Corresponds to "IDFA IAB messages shown" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN = 497; + */ + const USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN = 497; + /** + * Number of IDFA explainer messages where the user didn't choose anything. + * Corresponds to "IDFA no decision" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_IDFA_NO_DECISION = 498; + */ + const USER_MESSAGES_IDFA_NO_DECISION = 498; + /** + * Number of times an Offerwall message was shown to users. + * Corresponds to "Offerwall messages shown" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; + */ + const USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; + /** + * The number of messages where the user gained an entitlement. + * Corresponds to "Monetized Offerwall engagements" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; + */ + const USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; + /** + * The number of pages viewed by users after gaining an entitlement. Only + * counts pages included for Offerwall. + * Corresponds to "Post-offerwall page views" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS = 499; + */ + const USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS = 499; + /** + * Revenue earned through Offerwall, including Rewarded ad revenue and + * third-party integrations. + * Corresponds to "Estimated Offerwall revenue" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `MONEY` + * + * Generated from protobuf enum USER_MESSAGES_TOTAL_ESTIMATED_REVENUE = 500; + */ + const USER_MESSAGES_TOTAL_ESTIMATED_REVENUE = 500; + /** + * Number of times an ads personalization controls message was shown to + * users. + * Corresponds to "Ads personalization messages shown" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `INTEGER` + * + * Generated from protobuf enum USER_MESSAGES_UPTC_MESSAGES_SHOWN = 501; + */ + const USER_MESSAGES_UPTC_MESSAGES_SHOWN = 501; + /** + * Percentage of ads personalization controls messages where users chose the + * opt-out option. + * Corresponds to "Personalization opt-out ratio" in the Ad Manager UI. + * Compatible with the following report types: `PRIVACY_AND_MESSAGING` + * Data format: `PERCENT` + * + * Generated from protobuf enum USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO = 502; + */ + const USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO = 502; + /** + * The number of errors of type 100 in reporting. + * Corresponds to "VAST error 100 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_100_COUNT = 180; + */ + const VIDEO_ERROR_100_COUNT = 180; + /** + * The number of errors of type 101 in reporting. + * Corresponds to "VAST error 101 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_101_COUNT = 181; + */ + const VIDEO_ERROR_101_COUNT = 181; + /** + * The number of errors of type 102 in reporting. + * Corresponds to "VAST error 102 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_102_COUNT = 182; + */ + const VIDEO_ERROR_102_COUNT = 182; + /** + * The number of errors of type 200 in reporting. + * Corresponds to "VAST error 200 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_200_COUNT = 183; + */ + const VIDEO_ERROR_200_COUNT = 183; + /** + * The number of errors of type 201 in reporting. + * Corresponds to "VAST error 201 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_201_COUNT = 184; + */ + const VIDEO_ERROR_201_COUNT = 184; + /** + * The number of errors of type 202 in reporting. + * Corresponds to "VAST error 202 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_202_COUNT = 185; + */ + const VIDEO_ERROR_202_COUNT = 185; + /** + * The number of errors of type 203 in reporting. + * Corresponds to "VAST error 203 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_203_COUNT = 186; + */ + const VIDEO_ERROR_203_COUNT = 186; + /** + * The number of errors of type 300 in reporting. + * Corresponds to "VAST error 300 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_300_COUNT = 187; + */ + const VIDEO_ERROR_300_COUNT = 187; + /** + * The number of errors of type 301 in reporting. + * Corresponds to "VAST error 301 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_301_COUNT = 188; + */ + const VIDEO_ERROR_301_COUNT = 188; + /** + * The number of errors of type 302 in reporting. + * Corresponds to "VAST error 302 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_302_COUNT = 189; + */ + const VIDEO_ERROR_302_COUNT = 189; + /** + * The number of errors of type 303 in reporting. + * Corresponds to "VAST error 303 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_303_COUNT = 190; + */ + const VIDEO_ERROR_303_COUNT = 190; + /** + * The number of errors of type 400 in reporting. + * Corresponds to "VAST error 400 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_400_COUNT = 191; + */ + const VIDEO_ERROR_400_COUNT = 191; + /** + * The number of errors of type 401 in reporting. + * Corresponds to "VAST error 401 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_401_COUNT = 192; + */ + const VIDEO_ERROR_401_COUNT = 192; + /** + * The number of errors of type 402 in reporting. + * Corresponds to "VAST error 402 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_402_COUNT = 193; + */ + const VIDEO_ERROR_402_COUNT = 193; + /** + * The number of errors of type 403 in reporting. + * Corresponds to "VAST error 403 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_403_COUNT = 194; + */ + const VIDEO_ERROR_403_COUNT = 194; + /** + * The number of errors of type 405 in reporting. + * Corresponds to "VAST error 405 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_405_COUNT = 195; + */ + const VIDEO_ERROR_405_COUNT = 195; + /** + * The number of errors of type 406 in reporting. + * Corresponds to "VAST error 406 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_406_COUNT = 196; + */ + const VIDEO_ERROR_406_COUNT = 196; + /** + * The number of errors of type 407 in reporting. + * Corresponds to "VAST error 407 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_407_COUNT = 197; + */ + const VIDEO_ERROR_407_COUNT = 197; + /** + * The number of errors of type 408 in reporting. + * Corresponds to "VAST error 408 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_408_COUNT = 198; + */ + const VIDEO_ERROR_408_COUNT = 198; + /** + * The number of errors of type 409 in reporting. + * Corresponds to "VAST error 409 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_409_COUNT = 199; + */ + const VIDEO_ERROR_409_COUNT = 199; + /** + * The number of errors of type 410 in reporting. + * Corresponds to "VAST error 410 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_410_COUNT = 200; + */ + const VIDEO_ERROR_410_COUNT = 200; + /** + * The number of errors of type 500 in reporting. + * Corresponds to "VAST error 500 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_500_COUNT = 201; + */ + const VIDEO_ERROR_500_COUNT = 201; + /** + * The number of errors of type 501 in reporting. + * Corresponds to "VAST error 501 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_501_COUNT = 202; + */ + const VIDEO_ERROR_501_COUNT = 202; + /** + * The number of errors of type 502 in reporting. + * Corresponds to "VAST error 502 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_502_COUNT = 203; + */ + const VIDEO_ERROR_502_COUNT = 203; + /** + * The number of errors of type 503 in reporting. + * Corresponds to "VAST error 503 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_503_COUNT = 204; + */ + const VIDEO_ERROR_503_COUNT = 204; + /** + * The number of errors of type 600 in reporting. + * Corresponds to "VAST error 600 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_600_COUNT = 205; + */ + const VIDEO_ERROR_600_COUNT = 205; + /** + * The number of errors of type 601 in reporting. + * Corresponds to "VAST error 601 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_601_COUNT = 206; + */ + const VIDEO_ERROR_601_COUNT = 206; + /** + * The number of errors of type 602 in reporting. + * Corresponds to "VAST error 602 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_602_COUNT = 207; + */ + const VIDEO_ERROR_602_COUNT = 207; + /** + * The number of errors of type 603 in reporting. + * Corresponds to "VAST error 603 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_603_COUNT = 208; + */ + const VIDEO_ERROR_603_COUNT = 208; + /** + * The number of errors of type 604 in reporting. + * Corresponds to "VAST error 604 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_604_COUNT = 209; + */ + const VIDEO_ERROR_604_COUNT = 209; + /** + * The number of errors of type 900 in reporting. + * Corresponds to "VAST error 900 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_900_COUNT = 210; + */ + const VIDEO_ERROR_900_COUNT = 210; + /** + * The number of errors of type 901 in reporting. + * Corresponds to "VAST error 901 count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_ERROR_901_COUNT = 211; + */ + const VIDEO_ERROR_901_COUNT = 211; + /** + * The number of user interactions with a video, on average, such as pause, + * full screen, mute, etc. + * Corresponds to "Average interaction rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; + */ + const VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; + /** + * The number of times a user collapses a video, either to its original size + * or to a different size. + * Corresponds to "Collapses" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_INTERACTION_COLLAPSES = 93; + */ + const VIDEO_INTERACTION_COLLAPSES = 93; + /** + * The number of times a user expands a video. + * Corresponds to "Expands" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_INTERACTION_EXPANDS = 95; + */ + const VIDEO_INTERACTION_EXPANDS = 95; + /** + * The number of times ad clip played in full screen mode. + * Corresponds to "Full screens" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_INTERACTION_FULL_SCREENS = 96; + */ + const VIDEO_INTERACTION_FULL_SCREENS = 96; + /** + * The number of times video player was in mute state during play of ad + * clip. + * Corresponds to "Mutes" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_INTERACTION_MUTES = 97; + */ + const VIDEO_INTERACTION_MUTES = 97; + /** + * The number of times user paused ad clip. + * Corresponds to "Pauses" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_INTERACTION_PAUSES = 98; + */ + const VIDEO_INTERACTION_PAUSES = 98; + /** + * The number of times the user unpaused the video. + * Corresponds to "Resumes" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_INTERACTION_RESUMES = 99; + */ + const VIDEO_INTERACTION_RESUMES = 99; + /** + * The number of times a user rewinds the video. + * Corresponds to "Rewinds" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_INTERACTION_REWINDS = 100; + */ + const VIDEO_INTERACTION_REWINDS = 100; + /** + * The number of times a user unmutes the video. + * Corresponds to "Unmutes" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_INTERACTION_UNMUTES = 101; + */ + const VIDEO_INTERACTION_UNMUTES = 101; + /** + * The number of times a skippable video is skipped. + * Corresponds to "Skips" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_INTERACTION_VIDEO_SKIPS = 102; + */ + const VIDEO_INTERACTION_VIDEO_SKIPS = 102; + /** + * The number of views for monetizable video content. + * Corresponds to "Monetizable content views" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_MONETIZABLE_CONTENT_VIEWS = 601; + */ + const VIDEO_MONETIZABLE_CONTENT_VIEWS = 601; + /** + * The number of total creative serves in video realtime reporting. + * Corresponds to "Total creative serves" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_CREATIVE_SERVES = 139; + */ + const VIDEO_REAL_TIME_CREATIVE_SERVES = 139; + /** + * The number of errors of type 100 in video realtime reporting. + * Corresponds to "VAST error 100 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_100_COUNT = 143; + */ + const VIDEO_REAL_TIME_ERROR_100_COUNT = 143; + /** + * The number of errors of type 101 in video realtime reporting. + * Corresponds to "VAST error 101 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_101_COUNT = 144; + */ + const VIDEO_REAL_TIME_ERROR_101_COUNT = 144; + /** + * The number of errors of type 102 in video realtime reporting. + * Corresponds to "VAST error 102 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_102_COUNT = 145; + */ + const VIDEO_REAL_TIME_ERROR_102_COUNT = 145; + /** + * The number of errors of type 200 in video realtime reporting. + * Corresponds to "VAST error 200 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_200_COUNT = 146; + */ + const VIDEO_REAL_TIME_ERROR_200_COUNT = 146; + /** + * The number of errors of type 201 in video realtime reporting. + * Corresponds to "VAST error 201 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_201_COUNT = 147; + */ + const VIDEO_REAL_TIME_ERROR_201_COUNT = 147; + /** + * The number of errors of type 202 in video realtime reporting. + * Corresponds to "VAST error 202 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_202_COUNT = 148; + */ + const VIDEO_REAL_TIME_ERROR_202_COUNT = 148; + /** + * The number of errors of type 203 in video realtime reporting. + * Corresponds to "VAST error 203 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_203_COUNT = 149; + */ + const VIDEO_REAL_TIME_ERROR_203_COUNT = 149; + /** + * The number of errors of type 300 in video realtime reporting. + * Corresponds to "VAST error 300 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_300_COUNT = 150; + */ + const VIDEO_REAL_TIME_ERROR_300_COUNT = 150; + /** + * The number of errors of type 301 in video realtime reporting. + * Corresponds to "VAST error 301 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_301_COUNT = 151; + */ + const VIDEO_REAL_TIME_ERROR_301_COUNT = 151; + /** + * The number of errors of type 302 in video realtime reporting. + * Corresponds to "VAST error 302 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_302_COUNT = 152; + */ + const VIDEO_REAL_TIME_ERROR_302_COUNT = 152; + /** + * The number of errors of type 303 in video realtime reporting. + * Corresponds to "VAST error 303 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_303_COUNT = 153; + */ + const VIDEO_REAL_TIME_ERROR_303_COUNT = 153; + /** + * The number of errors of type 400 in video realtime reporting. + * Corresponds to "VAST error 400 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_400_COUNT = 154; + */ + const VIDEO_REAL_TIME_ERROR_400_COUNT = 154; + /** + * The number of errors of type 401 in video realtime reporting. + * Corresponds to "VAST error 401 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_401_COUNT = 155; + */ + const VIDEO_REAL_TIME_ERROR_401_COUNT = 155; + /** + * The number of errors of type 402 in video realtime reporting. + * Corresponds to "VAST error 402 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_402_COUNT = 156; + */ + const VIDEO_REAL_TIME_ERROR_402_COUNT = 156; + /** + * The number of errors of type 403 in video realtime reporting. + * Corresponds to "VAST error 403 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_403_COUNT = 157; + */ + const VIDEO_REAL_TIME_ERROR_403_COUNT = 157; + /** + * The number of errors of type 405 in video realtime reporting. + * Corresponds to "VAST error 405 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_405_COUNT = 158; + */ + const VIDEO_REAL_TIME_ERROR_405_COUNT = 158; + /** + * The number of errors of type 406 in video realtime reporting. + * Corresponds to "VAST error 406 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_406_COUNT = 159; + */ + const VIDEO_REAL_TIME_ERROR_406_COUNT = 159; + /** + * The number of errors of type 407 in video realtime reporting. + * Corresponds to "VAST error 407 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_407_COUNT = 160; + */ + const VIDEO_REAL_TIME_ERROR_407_COUNT = 160; + /** + * The number of errors of type 408 in video realtime reporting. + * Corresponds to "VAST error 408 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_408_COUNT = 161; + */ + const VIDEO_REAL_TIME_ERROR_408_COUNT = 161; + /** + * The number of errors of type 409 in video realtime reporting. + * Corresponds to "VAST error 409 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_409_COUNT = 162; + */ + const VIDEO_REAL_TIME_ERROR_409_COUNT = 162; + /** + * The number of errors of type 410 in video realtime reporting. + * Corresponds to "VAST error 410 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_410_COUNT = 163; + */ + const VIDEO_REAL_TIME_ERROR_410_COUNT = 163; + /** + * The number of errors of type 500 in video realtime reporting. + * Corresponds to "VAST error 500 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_500_COUNT = 164; + */ + const VIDEO_REAL_TIME_ERROR_500_COUNT = 164; + /** + * The number of errors of type 501 in video realtime reporting. + * Corresponds to "VAST error 501 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_501_COUNT = 165; + */ + const VIDEO_REAL_TIME_ERROR_501_COUNT = 165; + /** + * The number of errors of type 502 in video realtime reporting. + * Corresponds to "VAST error 502 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_502_COUNT = 166; + */ + const VIDEO_REAL_TIME_ERROR_502_COUNT = 166; + /** + * The number of errors of type 503 in video realtime reporting. + * Corresponds to "VAST error 503 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_503_COUNT = 167; + */ + const VIDEO_REAL_TIME_ERROR_503_COUNT = 167; + /** + * The number of errors of type 600 in video realtime reporting. + * Corresponds to "VAST error 600 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_600_COUNT = 168; + */ + const VIDEO_REAL_TIME_ERROR_600_COUNT = 168; + /** + * The number of errors of type 601 in video realtime reporting. + * Corresponds to "VAST error 601 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_601_COUNT = 169; + */ + const VIDEO_REAL_TIME_ERROR_601_COUNT = 169; + /** + * The number of errors of type 602 in video realtime reporting. + * Corresponds to "VAST error 602 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_602_COUNT = 170; + */ + const VIDEO_REAL_TIME_ERROR_602_COUNT = 170; + /** + * The number of errors of type 603 in video realtime reporting. + * Corresponds to "VAST error 603 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_603_COUNT = 171; + */ + const VIDEO_REAL_TIME_ERROR_603_COUNT = 171; + /** + * The number of errors of type 604 in video realtime reporting. + * Corresponds to "VAST error 604 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_604_COUNT = 172; + */ + const VIDEO_REAL_TIME_ERROR_604_COUNT = 172; + /** + * The number of errors of type 900 in video realtime reporting. + * Corresponds to "VAST error 900 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_900_COUNT = 173; + */ + const VIDEO_REAL_TIME_ERROR_900_COUNT = 173; + /** + * The number of errors of type 901 in video realtime reporting. + * Corresponds to "VAST error 901 count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_901_COUNT = 174; + */ + const VIDEO_REAL_TIME_ERROR_901_COUNT = 174; + /** + * The number of total impressions in video realtime reporting. + * Corresponds to "Total impressions" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_IMPRESSIONS = 138; + */ + const VIDEO_REAL_TIME_IMPRESSIONS = 138; + /** + * The number of matched queries in video realtime reporting. + * Corresponds to "Total responses served" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_MATCHED_QUERIES = 140; + */ + const VIDEO_REAL_TIME_MATCHED_QUERIES = 140; + /** + * The number of all errors in video realtime reporting. + * Corresponds to "Total error count" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; + */ + const VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; + /** + * The number of total queries in video realtime reporting. + * Corresponds to "Total ad requests" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_TOTAL_QUERIES = 142; + */ + const VIDEO_REAL_TIME_TOTAL_QUERIES = 142; + /** + * The number of unmatched queries in video realtime reporting. + * Corresponds to "Total unmatched ad requests" in the Ad Manager UI. + * Compatible with the following report types: + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; + */ + const VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; + /** + * Number of times that the publisher specified a video ad played + * automatically. + * Corresponds to "Auto-plays" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; + */ + const VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; + /** + * Average percentage of the video watched by users. + * Corresponds to "Average view rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; + */ + const VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; + /** + * Average time(seconds) users watched the video. + * Corresponds to "Average view time" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; + */ + const VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; + /** + * Number of times that the publisher specified a video ad was clicked to + * play. + * Corresponds to "Click-to-plays" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; + */ + const VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; + /** + * The number of times the video played to completion. + * Corresponds to "Completes" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_COMPLETES = 107; + */ + const VIDEO_VIEWERSHIP_COMPLETES = 107; + /** + * Percentage of times the video played to the end. + * Corresponds to "Completion rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; + */ + const VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; + /** + * The number of engaged views: ad is viewed to completion or for 30s, + * whichever comes first. + * Corresponds to "Engaged views" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; + */ + const VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; + /** + * The number of times the video played to 25% of its length. + * Corresponds to "First quartiles" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; + */ + const VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; + /** + * The number of times the video reached its midpoint during play. + * Corresponds to "Midpoints" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_MIDPOINTS = 111; + */ + const VIDEO_VIEWERSHIP_MIDPOINTS = 111; + /** + * The number of times a skip button is shown in video. + * Corresponds to "Skip buttons shown" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; + */ + const VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; + /** + * The number of impressions where the video was played. + * Corresponds to "Starts" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_STARTS = 113; + */ + const VIDEO_VIEWERSHIP_STARTS = 113; + /** + * The number of times the video played to 75% of its length. + * Corresponds to "Third quartiles" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; + */ + const VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; + /** + * The number of times an error occurred, such as a VAST redirect error, a + * video playback error, or an invalid response error. + * Corresponds to "Total error count" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; + */ + const VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; + /** + * The percentage of video error count. + * Corresponds to "Total error rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; + */ + const VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; + /** + * Duration of the video creative. + * Corresponds to "Video length" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; + */ + const VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; + /** + * View-through rate represented as a percentage. + * Corresponds to "Video view through rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `PERCENT` + * + * Generated from protobuf enum VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; + */ + const VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; + /** + * Number of winning bids received from Open Bidding buyers, even when the + * winning bid is placed at the end of a mediation for mobile apps chain. + * Corresponds to "Yield group auctions won" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum YIELD_GROUP_AUCTIONS_WON = 80; + */ + const YIELD_GROUP_AUCTIONS_WON = 80; + /** + * Number of bids received from Open Bidding buyers, regardless of whether + * the returned bid competes in an auction. + * Corresponds to "Yield group bids" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum YIELD_GROUP_BIDS = 81; + */ + const YIELD_GROUP_BIDS = 81; + /** + * Number of bids received from Open Bidding buyers that competed in + * the auction. + * Corresponds to "Yield group bids in auction" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum YIELD_GROUP_BIDS_IN_AUCTION = 82; + */ + const YIELD_GROUP_BIDS_IN_AUCTION = 82; + /** + * Number of times a yield partner is asked to return bid to fill + * a yield group request. + * Corresponds to "Yield group callouts" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum YIELD_GROUP_CALLOUTS = 83; + */ + const YIELD_GROUP_CALLOUTS = 83; + /** + * The estimated net rate for yield groups or individual + * yield group partners. + * Corresponds to "Yield group estimated CPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum YIELD_GROUP_ESTIMATED_CPM = 88; + */ + const YIELD_GROUP_ESTIMATED_CPM = 88; + /** + * Total net revenue earned by a yield group, based upon the yield group + * estimated CPM and yield group impressions recorded. + * Corresponds to "Yield group estimated revenue" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum YIELD_GROUP_ESTIMATED_REVENUE = 87; + */ + const YIELD_GROUP_ESTIMATED_REVENUE = 87; + /** + * Number of matched yield group requests where a yield partner delivered + * their ad to publisher inventory. + * Corresponds to "Yield group impressions" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum YIELD_GROUP_IMPRESSIONS = 85; + */ + const YIELD_GROUP_IMPRESSIONS = 85; + /** + * Yield group Mediation fill rate indicating how often a network + * fills an ad request. + * Corresponds to "Yield group mediation fill rate" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum YIELD_GROUP_MEDIATION_FILL_RATE = 89; + */ + const YIELD_GROUP_MEDIATION_FILL_RATE = 89; + /** + * Total requests where a Mediation chain was served. + * Corresponds to "Yield group mediation matched queries" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; + */ + const YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; + /** + * The number of mediation chain passback across all channels. + * Corresponds to "Yield group mediation passbacks" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum YIELD_GROUP_MEDIATION_PASSBACKS = 118; + */ + const YIELD_GROUP_MEDIATION_PASSBACKS = 118; + /** + * Revenue per thousand impressions based on data collected by Ad Manager + * from third-party ad network reports. + * Corresponds to "Yield group mediation third party ECPM" in the Ad Manager + * UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `DOUBLE` + * + * Generated from protobuf enum YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; + */ + const YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; + /** + * The yield group revenue accrued in the child network's own account but + * paid to their parent network through auto-payment. This metric is only + * relevant for a "Manage Account" child network. + * Corresponds to "Yield group revenue paid through MCM auto-payment" in the + * Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 215; + */ + const YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 215; + /** + * Number of times a yield group buyer successfully returned a bid in + * response to a yield group callout. + * Corresponds to "Yield group successful responses" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; + */ + const YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; + + private static $valueToName = [ + self::METRIC_UNSPECIFIED => 'METRIC_UNSPECIFIED', + self::ACTIVE_USERS => 'ACTIVE_USERS', + self::ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT => 'ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT', + self::ACTIVE_VIEW_AUDIBLE_IMPRESSIONS => 'ACTIVE_VIEW_AUDIBLE_IMPRESSIONS', + self::ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT => 'ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT', + self::ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT => 'ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT', + self::ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT => 'ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT', + self::ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT => 'ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT', + self::ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS => 'ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS', + self::ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS => 'ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS', + self::ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME => 'ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME', + self::ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS => 'ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS', + self::ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT => 'ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT', + self::ACTIVE_VIEW_EVER_AUDIBLE_PERCENT => 'ACTIVE_VIEW_EVER_AUDIBLE_PERCENT', + self::ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT => 'ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT', + self::ACTIVE_VIEW_EVER_MUTED_PERCENT => 'ACTIVE_VIEW_EVER_MUTED_PERCENT', + self::ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION => 'ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION', + self::ACTIVE_VIEW_MEASURABLE_IMPRESSIONS => 'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS', + self::ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE => 'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE', + self::ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS => 'ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS', + self::ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS => 'ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS', + self::ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION => 'ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION', + self::ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS => 'ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS', + self::ACTIVE_VIEW_PLUS_MEASURABLE_COUNT => 'ACTIVE_VIEW_PLUS_MEASURABLE_COUNT', + self::ACTIVE_VIEW_REVENUE => 'ACTIVE_VIEW_REVENUE', + self::ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION => 'ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION', + self::ACTIVE_VIEW_VIEWABLE_IMPRESSIONS => 'ACTIVE_VIEW_VIEWABLE_IMPRESSIONS', + self::ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION => 'ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION', + self::ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE => 'ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE', + self::ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME => 'ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME', + self::ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS => 'ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS', + self::ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS => 'ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS', + self::ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE => 'ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE', + self::ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS => 'ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS', + self::ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS => 'ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS', + self::ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION => 'ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION', + self::ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION => 'ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION', + self::ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS => 'ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS', + self::ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION => 'ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION', + self::ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE => 'ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE', + self::ADSENSE_AVERAGE_ECPM => 'ADSENSE_AVERAGE_ECPM', + self::ADSENSE_CLICKS => 'ADSENSE_CLICKS', + self::ADSENSE_CTR => 'ADSENSE_CTR', + self::ADSENSE_IMPRESSIONS => 'ADSENSE_IMPRESSIONS', + self::ADSENSE_PERCENT_CLICKS => 'ADSENSE_PERCENT_CLICKS', + self::ADSENSE_PERCENT_IMPRESSIONS => 'ADSENSE_PERCENT_IMPRESSIONS', + self::ADSENSE_PERCENT_REVENUE => 'ADSENSE_PERCENT_REVENUE', + self::ADSENSE_PERCENT_REVENUE_WITHOUT_CPD => 'ADSENSE_PERCENT_REVENUE_WITHOUT_CPD', + self::ADSENSE_RESPONSES_SERVED => 'ADSENSE_RESPONSES_SERVED', + self::ADSENSE_REVENUE => 'ADSENSE_REVENUE', + self::AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME => 'AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME', + self::AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS => 'AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS', + self::AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS => 'AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS', + self::AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE => 'AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE', + self::AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS => 'AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS', + self::AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS => 'AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS', + self::AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION => 'AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION', + self::AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION => 'AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION', + self::AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS => 'AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS', + self::AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION => 'AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION', + self::AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE => 'AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE', + self::AD_EXCHANGE_AVERAGE_ECPM => 'AD_EXCHANGE_AVERAGE_ECPM', + self::AD_EXCHANGE_CLICKS => 'AD_EXCHANGE_CLICKS', + self::AD_EXCHANGE_CPC => 'AD_EXCHANGE_CPC', + self::AD_EXCHANGE_CTR => 'AD_EXCHANGE_CTR', + self::AD_EXCHANGE_DELIVERY_RATE => 'AD_EXCHANGE_DELIVERY_RATE', + self::AD_EXCHANGE_IMPRESSIONS => 'AD_EXCHANGE_IMPRESSIONS', + self::AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER => 'AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER', + self::AD_EXCHANGE_IMPRESSIONS_PER_SESSION => 'AD_EXCHANGE_IMPRESSIONS_PER_SESSION', + self::AD_EXCHANGE_LIFT => 'AD_EXCHANGE_LIFT', + self::AD_EXCHANGE_MATCHED_REQUEST_CTR => 'AD_EXCHANGE_MATCHED_REQUEST_CTR', + self::AD_EXCHANGE_MATCHED_REQUEST_ECPM => 'AD_EXCHANGE_MATCHED_REQUEST_ECPM', + self::AD_EXCHANGE_MATCH_RATE => 'AD_EXCHANGE_MATCH_RATE', + self::AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS => 'AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS', + self::AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS => 'AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS', + self::AD_EXCHANGE_PERCENT_CLICKS => 'AD_EXCHANGE_PERCENT_CLICKS', + self::AD_EXCHANGE_PERCENT_IMPRESSIONS => 'AD_EXCHANGE_PERCENT_IMPRESSIONS', + self::AD_EXCHANGE_PERCENT_REVENUE => 'AD_EXCHANGE_PERCENT_REVENUE', + self::AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD => 'AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD', + self::AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM => 'AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM', + self::AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS => 'AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS', + self::AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE => 'AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE', + self::AD_EXCHANGE_RESPONSES_SERVED => 'AD_EXCHANGE_RESPONSES_SERVED', + self::AD_EXCHANGE_REVENUE => 'AD_EXCHANGE_REVENUE', + self::AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT => 'AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT', + self::AD_EXCHANGE_REVENUE_PER_AD_VIEWER => 'AD_EXCHANGE_REVENUE_PER_AD_VIEWER', + self::AD_EXCHANGE_TOTAL_REQUESTS => 'AD_EXCHANGE_TOTAL_REQUESTS', + self::AD_EXCHANGE_TOTAL_REQUEST_CTR => 'AD_EXCHANGE_TOTAL_REQUEST_CTR', + self::AD_EXCHANGE_TOTAL_REQUEST_ECPM => 'AD_EXCHANGE_TOTAL_REQUEST_ECPM', + self::AD_EXPOSURE_SECONDS => 'AD_EXPOSURE_SECONDS', + self::AD_REQUESTS => 'AD_REQUESTS', + self::AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME => 'AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME', + self::AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS => 'AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS', + self::AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS => 'AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS', + self::AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE => 'AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE', + self::AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS => 'AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS', + self::AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS => 'AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS', + self::AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION => 'AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION', + self::AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION => 'AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION', + self::AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS => 'AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS', + self::AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION => 'AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION', + self::AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE => 'AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE', + self::AD_SERVER_AVERAGE_ECPM => 'AD_SERVER_AVERAGE_ECPM', + self::AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD => 'AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD', + self::AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS => 'AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS', + self::AD_SERVER_CLICKS => 'AD_SERVER_CLICKS', + self::AD_SERVER_COMPLETED_VIEWS => 'AD_SERVER_COMPLETED_VIEWS', + self::AD_SERVER_COVIEWED_IMPRESSIONS => 'AD_SERVER_COVIEWED_IMPRESSIONS', + self::AD_SERVER_CPD_REVENUE => 'AD_SERVER_CPD_REVENUE', + self::AD_SERVER_CTR => 'AD_SERVER_CTR', + self::AD_SERVER_GROSS_REVENUE => 'AD_SERVER_GROSS_REVENUE', + self::AD_SERVER_GROSS_REVENUE_WITHOUT_CPD => 'AD_SERVER_GROSS_REVENUE_WITHOUT_CPD', + self::AD_SERVER_IMPRESSIONS => 'AD_SERVER_IMPRESSIONS', + self::AD_SERVER_IMPRESSIONS_WITH_COMPANION => 'AD_SERVER_IMPRESSIONS_WITH_COMPANION', + self::AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS => 'AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS', + self::AD_SERVER_PERCENT_CLICKS => 'AD_SERVER_PERCENT_CLICKS', + self::AD_SERVER_PERCENT_IMPRESSIONS => 'AD_SERVER_PERCENT_IMPRESSIONS', + self::AD_SERVER_PERCENT_REVENUE => 'AD_SERVER_PERCENT_REVENUE', + self::AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD => 'AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD', + self::AD_SERVER_RESPONSES_SERVED => 'AD_SERVER_RESPONSES_SERVED', + self::AD_SERVER_REVENUE => 'AD_SERVER_REVENUE', + self::AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT => 'AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT', + self::AD_SERVER_REVENUE_WITHOUT_CPD => 'AD_SERVER_REVENUE_WITHOUT_CPD', + self::AD_SERVER_TARGETED_CLICKS => 'AD_SERVER_TARGETED_CLICKS', + self::AD_SERVER_TARGETED_IMPRESSIONS => 'AD_SERVER_TARGETED_IMPRESSIONS', + self::AD_SERVER_TRACKED_ADS => 'AD_SERVER_TRACKED_ADS', + self::AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS => 'AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS', + self::AD_SERVER_UNFILTERED_CLICKS => 'AD_SERVER_UNFILTERED_CLICKS', + self::AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS => 'AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS', + self::AD_SERVER_UNFILTERED_IMPRESSIONS => 'AD_SERVER_UNFILTERED_IMPRESSIONS', + self::AD_SERVER_UNFILTERED_TRACKED_ADS => 'AD_SERVER_UNFILTERED_TRACKED_ADS', + self::AD_UNIT_EXPOSURE_SECONDS => 'AD_UNIT_EXPOSURE_SECONDS', + self::AD_VIEWERS => 'AD_VIEWERS', + self::ATN_ADS_FAILED_TO_RENDER => 'ATN_ADS_FAILED_TO_RENDER', + self::ATN_ELIGIBLE_LINE_ITEMS => 'ATN_ELIGIBLE_LINE_ITEMS', + self::ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS => 'ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS', + self::ATN_HBT_ALLOWED_AD_REQUESTS => 'ATN_HBT_ALLOWED_AD_REQUESTS', + self::ATN_HBT_BIDS_IN_AUCTION => 'ATN_HBT_BIDS_IN_AUCTION', + self::ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS => 'ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS', + self::ATN_HBT_CANDIDATE_BIDS => 'ATN_HBT_CANDIDATE_BIDS', + self::ATN_HBT_INVALID_AD_REQUESTS => 'ATN_HBT_INVALID_AD_REQUESTS', + self::ATN_HBT_NO_BIDS_AD_REQUESTS => 'ATN_HBT_NO_BIDS_AD_REQUESTS', + self::ATN_HBT_REJECTED_BIDS => 'ATN_HBT_REJECTED_BIDS', + self::ATN_HBT_VALID_AD_REQUESTS => 'ATN_HBT_VALID_AD_REQUESTS', + self::ATN_HBT_WITH_BIDS_AD_REQUESTS => 'ATN_HBT_WITH_BIDS_AD_REQUESTS', + self::ATN_INVALID_AD_REQUESTS => 'ATN_INVALID_AD_REQUESTS', + self::ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED => 'ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED', + self::ATN_LINE_ITEMS_IN_AUCTION => 'ATN_LINE_ITEMS_IN_AUCTION', + self::ATN_LINE_ITEMS_NOT_COMPETING => 'ATN_LINE_ITEMS_NOT_COMPETING', + self::ATN_LINE_ITEMS_NOT_SELECTED => 'ATN_LINE_ITEMS_NOT_SELECTED', + self::ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS => 'ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS', + self::ATN_LINE_ITEM_TARGETED_AD_REQUESTS => 'ATN_LINE_ITEM_TARGETED_AD_REQUESTS', + self::ATN_MEDIATION_ALLOWED_AD_REQUESTS => 'ATN_MEDIATION_ALLOWED_AD_REQUESTS', + self::ATN_MEDIATION_INVALID_AD_REQUESTS => 'ATN_MEDIATION_INVALID_AD_REQUESTS', + self::ATN_MEDIATION_LOADED_ADS_FROM_CHAINS => 'ATN_MEDIATION_LOADED_ADS_FROM_CHAINS', + self::ATN_MEDIATION_NO_PARTNER_AD_REQUESTS => 'ATN_MEDIATION_NO_PARTNER_AD_REQUESTS', + self::ATN_MEDIATION_PARTNERS_IN_AUCTION => 'ATN_MEDIATION_PARTNERS_IN_AUCTION', + self::ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS => 'ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS', + self::ATN_MEDIATION_REJECTED_PARTNERS => 'ATN_MEDIATION_REJECTED_PARTNERS', + self::ATN_MEDIATION_TARGETED_PARTNERS => 'ATN_MEDIATION_TARGETED_PARTNERS', + self::ATN_MEDIATION_TOTAL_YIELD_PARTNERS => 'ATN_MEDIATION_TOTAL_YIELD_PARTNERS', + self::ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS => 'ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS', + self::ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS => 'ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS', + self::ATN_MEDIATION_VALID_AD_REQUESTS => 'ATN_MEDIATION_VALID_AD_REQUESTS', + self::ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS => 'ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS', + self::ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS => 'ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS', + self::ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT => 'ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT', + self::ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS => 'ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS', + self::ATN_PROGRAMMATIC_BIDS_IN_AUCTION => 'ATN_PROGRAMMATIC_BIDS_IN_AUCTION', + self::ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS => 'ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS', + self::ATN_PROGRAMMATIC_BID_REQUESTS_SENT => 'ATN_PROGRAMMATIC_BID_REQUESTS_SENT', + self::ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE => 'ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE', + self::ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES => 'ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES', + self::ATN_PROGRAMMATIC_BID_REQUEST_ERRORS => 'ATN_PROGRAMMATIC_BID_REQUEST_ERRORS', + self::ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS => 'ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS', + self::ATN_PROGRAMMATIC_REJECTED_BIDS => 'ATN_PROGRAMMATIC_REJECTED_BIDS', + self::ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS => 'ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS', + self::ATN_PROGRAMMATIC_TOTAL_BIDS => 'ATN_PROGRAMMATIC_TOTAL_BIDS', + self::ATN_PROGRAMMATIC_VALID_AD_REQUESTS => 'ATN_PROGRAMMATIC_VALID_AD_REQUESTS', + self::ATN_REJECTED_LINE_ITEMS => 'ATN_REJECTED_LINE_ITEMS', + self::ATN_SERVED_MEDIATION_CHAINS => 'ATN_SERVED_MEDIATION_CHAINS', + self::ATN_SERVED_SINGLE_ADS => 'ATN_SERVED_SINGLE_ADS', + self::ATN_TARGETED_LINE_ITEMS => 'ATN_TARGETED_LINE_ITEMS', + self::ATN_TOTAL_AD_REQUESTS => 'ATN_TOTAL_AD_REQUESTS', + self::ATN_TOTAL_COMPETING_ADS_IN_AUCTION => 'ATN_TOTAL_COMPETING_ADS_IN_AUCTION', + self::ATN_TOTAL_LOADED_ADS => 'ATN_TOTAL_LOADED_ADS', + self::ATN_VALID_AD_REQUESTS => 'ATN_VALID_AD_REQUESTS', + self::ATN_YIELD_GROUP_MEDIATION_PASSBACKS => 'ATN_YIELD_GROUP_MEDIATION_PASSBACKS', + self::AVERAGE_ECPM => 'AVERAGE_ECPM', + self::AVERAGE_ECPM_WITHOUT_CPD => 'AVERAGE_ECPM_WITHOUT_CPD', + self::AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION => 'AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION', + self::AVERAGE_ENGAGEMENT_SECONDS_PER_USER => 'AVERAGE_ENGAGEMENT_SECONDS_PER_USER', + self::AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR => 'AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR', + self::AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER => 'AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER', + self::AVERAGE_REVENUE_PER_USER => 'AVERAGE_REVENUE_PER_USER', + self::AVERAGE_SESSION_SECONDS => 'AVERAGE_SESSION_SECONDS', + self::BIDS => 'BIDS', + self::BID_AVERAGE_CPM => 'BID_AVERAGE_CPM', + self::BOUNCE_RATE => 'BOUNCE_RATE', + self::CLICKS => 'CLICKS', + self::CODE_SERVED_COUNT => 'CODE_SERVED_COUNT', + self::CPC_REVENUE => 'CPC_REVENUE', + self::CPM_REVENUE => 'CPM_REVENUE', + self::CREATIVE_LOAD_TIME_0_500_PERCENT => 'CREATIVE_LOAD_TIME_0_500_PERCENT', + self::CREATIVE_LOAD_TIME_1000_2000_PERCENT => 'CREATIVE_LOAD_TIME_1000_2000_PERCENT', + self::CREATIVE_LOAD_TIME_2000_4000_PERCENT => 'CREATIVE_LOAD_TIME_2000_4000_PERCENT', + self::CREATIVE_LOAD_TIME_4000_8000_PERCENT => 'CREATIVE_LOAD_TIME_4000_8000_PERCENT', + self::CREATIVE_LOAD_TIME_500_1000_PERCENT => 'CREATIVE_LOAD_TIME_500_1000_PERCENT', + self::CREATIVE_LOAD_TIME_GT_8000_PERCENT => 'CREATIVE_LOAD_TIME_GT_8000_PERCENT', + self::CTR => 'CTR', + self::DEALS_BIDS => 'DEALS_BIDS', + self::DEALS_BID_RATE => 'DEALS_BID_RATE', + self::DEALS_BID_REQUESTS => 'DEALS_BID_REQUESTS', + self::DEALS_WINNING_BIDS => 'DEALS_WINNING_BIDS', + self::DEALS_WIN_RATE => 'DEALS_WIN_RATE', + self::DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT => 'DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT', + self::DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT => 'DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT', + self::DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT => 'DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT', + self::DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT => 'DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT', + self::DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT => 'DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT', + self::DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT => 'DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT', + self::DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT => 'DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT', + self::DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT => 'DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT', + self::DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT => 'DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT', + self::DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT => 'DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT', + self::DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT => 'DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT', + self::DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT => 'DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT', + self::DROPOFF_RATE => 'DROPOFF_RATE', + self::ENGAGED_SESSIONS => 'ENGAGED_SESSIONS', + self::ENGAGED_SESSIONS_PER_USER => 'ENGAGED_SESSIONS_PER_USER', + self::ENGAGEMENT_RATE => 'ENGAGEMENT_RATE', + self::EUROPEAN_REGULATIONS_CONSENT_RATE => 'EUROPEAN_REGULATIONS_CONSENT_RATE', + self::EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE => 'EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE', + self::EUROPEAN_REGULATIONS_MESSAGES_SHOWN => 'EUROPEAN_REGULATIONS_MESSAGES_SHOWN', + self::EUROPEAN_REGULATIONS_NO_CONSENT_RATE => 'EUROPEAN_REGULATIONS_NO_CONSENT_RATE', + self::FILL_RATE => 'FILL_RATE', + self::GOOGLE_ANALYTICS_CLICKS => 'GOOGLE_ANALYTICS_CLICKS', + self::GOOGLE_ANALYTICS_CTR => 'GOOGLE_ANALYTICS_CTR', + self::GOOGLE_ANALYTICS_ECPM => 'GOOGLE_ANALYTICS_ECPM', + self::GOOGLE_ANALYTICS_IMPRESSIONS => 'GOOGLE_ANALYTICS_IMPRESSIONS', + self::GOOGLE_ANALYTICS_REVENUE => 'GOOGLE_ANALYTICS_REVENUE', + self::GOOGLE_ANALYTICS_VIEWS => 'GOOGLE_ANALYTICS_VIEWS', + self::GOOGLE_ANALYTICS_VIEWS_PER_USER => 'GOOGLE_ANALYTICS_VIEWS_PER_USER', + self::GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS => 'GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS', + self::GOOGLE_SOLD_AUCTION_IMPRESSIONS => 'GOOGLE_SOLD_AUCTION_IMPRESSIONS', + self::GOOGLE_SOLD_COVIEWED_IMPRESSIONS => 'GOOGLE_SOLD_COVIEWED_IMPRESSIONS', + self::GOOGLE_SOLD_IMPRESSIONS => 'GOOGLE_SOLD_IMPRESSIONS', + self::GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS => 'GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS', + self::GOOGLE_SOLD_RESERVATION_IMPRESSIONS => 'GOOGLE_SOLD_RESERVATION_IMPRESSIONS', + self::IMPRESSIONS => 'IMPRESSIONS', + self::INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS => 'INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS', + self::INVENTORY_SHARES => 'INVENTORY_SHARES', + self::INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES => 'INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES', + self::INVOICED_IMPRESSIONS => 'INVOICED_IMPRESSIONS', + self::INVOICED_UNFILLED_IMPRESSIONS => 'INVOICED_UNFILLED_IMPRESSIONS', + self::MEDIATION_CHAINS_FILLED => 'MEDIATION_CHAINS_FILLED', + self::MUTED_IMPRESSIONS => 'MUTED_IMPRESSIONS', + self::MUTE_ELIGIBLE_IMPRESSIONS => 'MUTE_ELIGIBLE_IMPRESSIONS', + self::OPPORTUNITIES => 'OPPORTUNITIES', + self::OVERDELIVERED_IMPRESSIONS => 'OVERDELIVERED_IMPRESSIONS', + self::PARTNER_SALES_FILLED_POD_REQUESTS => 'PARTNER_SALES_FILLED_POD_REQUESTS', + self::PARTNER_SALES_FILL_RATE => 'PARTNER_SALES_FILL_RATE', + self::PARTNER_SALES_PARTNER_MATCH_RATE => 'PARTNER_SALES_PARTNER_MATCH_RATE', + self::PARTNER_SALES_QUERIES => 'PARTNER_SALES_QUERIES', + self::PARTNER_SALES_UNFILLED_IMPRESSIONS => 'PARTNER_SALES_UNFILLED_IMPRESSIONS', + self::PARTNER_SALES_UNMATCHED_QUERIES => 'PARTNER_SALES_UNMATCHED_QUERIES', + self::PARTNER_SOLD_CODE_SERVED => 'PARTNER_SOLD_CODE_SERVED', + self::PARTNER_SOLD_COVIEWED_IMPRESSIONS => 'PARTNER_SOLD_COVIEWED_IMPRESSIONS', + self::PARTNER_SOLD_IMPRESSIONS => 'PARTNER_SOLD_IMPRESSIONS', + self::PROGRAMMATIC_ELIGIBLE_AD_REQUESTS => 'PROGRAMMATIC_ELIGIBLE_AD_REQUESTS', + self::PROGRAMMATIC_MATCH_RATE => 'PROGRAMMATIC_MATCH_RATE', + self::PROGRAMMATIC_RESPONSES_SERVED => 'PROGRAMMATIC_RESPONSES_SERVED', + self::REACH_IMPRESSIONS => 'REACH_IMPRESSIONS', + self::RESPONSES_SERVED => 'RESPONSES_SERVED', + self::RETENTION => 'RETENTION', + self::REVENUE => 'REVENUE', + self::REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT => 'REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT', + self::REVENUE_WITHOUT_CPD => 'REVENUE_WITHOUT_CPD', + self::REWARDS_GRANTED => 'REWARDS_GRANTED', + self::RICH_MEDIA_AVERAGE_DISPLAY_TIME => 'RICH_MEDIA_AVERAGE_DISPLAY_TIME', + self::RICH_MEDIA_AVERAGE_INTERACTION_TIME => 'RICH_MEDIA_AVERAGE_INTERACTION_TIME', + self::RICH_MEDIA_BACKUP_IMAGES => 'RICH_MEDIA_BACKUP_IMAGES', + self::RICH_MEDIA_CUSTOM_EVENT_COUNT => 'RICH_MEDIA_CUSTOM_EVENT_COUNT', + self::RICH_MEDIA_CUSTOM_EVENT_TIME => 'RICH_MEDIA_CUSTOM_EVENT_TIME', + self::RICH_MEDIA_DISPLAY_TIME => 'RICH_MEDIA_DISPLAY_TIME', + self::RICH_MEDIA_EXPANDING_TIME => 'RICH_MEDIA_EXPANDING_TIME', + self::RICH_MEDIA_EXPANSIONS => 'RICH_MEDIA_EXPANSIONS', + self::RICH_MEDIA_FULL_SCREEN_IMPRESSIONS => 'RICH_MEDIA_FULL_SCREEN_IMPRESSIONS', + self::RICH_MEDIA_INTERACTION_COUNT => 'RICH_MEDIA_INTERACTION_COUNT', + self::RICH_MEDIA_INTERACTION_RATE => 'RICH_MEDIA_INTERACTION_RATE', + self::RICH_MEDIA_INTERACTION_TIME => 'RICH_MEDIA_INTERACTION_TIME', + self::RICH_MEDIA_INTERACTIVE_IMPRESSIONS => 'RICH_MEDIA_INTERACTIVE_IMPRESSIONS', + self::RICH_MEDIA_MANUAL_CLOSES => 'RICH_MEDIA_MANUAL_CLOSES', + self::RICH_MEDIA_VIDEO_COMPLETES => 'RICH_MEDIA_VIDEO_COMPLETES', + self::RICH_MEDIA_VIDEO_INTERACTIONS => 'RICH_MEDIA_VIDEO_INTERACTIONS', + self::RICH_MEDIA_VIDEO_INTERACTION_RATE => 'RICH_MEDIA_VIDEO_INTERACTION_RATE', + self::RICH_MEDIA_VIDEO_MIDPOINTS => 'RICH_MEDIA_VIDEO_MIDPOINTS', + self::RICH_MEDIA_VIDEO_MUTES => 'RICH_MEDIA_VIDEO_MUTES', + self::RICH_MEDIA_VIDEO_PAUSES => 'RICH_MEDIA_VIDEO_PAUSES', + self::RICH_MEDIA_VIDEO_PLAYS => 'RICH_MEDIA_VIDEO_PLAYS', + self::RICH_MEDIA_VIDEO_REPLAYS => 'RICH_MEDIA_VIDEO_REPLAYS', + self::RICH_MEDIA_VIDEO_STOPS => 'RICH_MEDIA_VIDEO_STOPS', + self::RICH_MEDIA_VIDEO_UNMUTES => 'RICH_MEDIA_VIDEO_UNMUTES', + self::RICH_MEDIA_VIDEO_VIEW_RATE => 'RICH_MEDIA_VIDEO_VIEW_RATE', + self::RICH_MEDIA_VIDEO_VIEW_TIME => 'RICH_MEDIA_VIDEO_VIEW_TIME', + self::SELL_THROUGH_AVAILABLE_IMPRESSIONS => 'SELL_THROUGH_AVAILABLE_IMPRESSIONS', + self::SELL_THROUGH_FORECASTED_IMPRESSIONS => 'SELL_THROUGH_FORECASTED_IMPRESSIONS', + self::SELL_THROUGH_RESERVED_IMPRESSIONS => 'SELL_THROUGH_RESERVED_IMPRESSIONS', + self::SELL_THROUGH_SELL_THROUGH_RATE => 'SELL_THROUGH_SELL_THROUGH_RATE', + self::SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS => 'SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS', + self::SERVER_SIDE_UNWRAPPING_CALLOUTS => 'SERVER_SIDE_UNWRAPPING_CALLOUTS', + self::SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES => 'SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES', + self::SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES => 'SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES', + self::SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES => 'SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES', + self::SERVER_SIDE_UNWRAPPING_TIMEOUTS => 'SERVER_SIDE_UNWRAPPING_TIMEOUTS', + self::SESSIONS => 'SESSIONS', + self::TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT => 'TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT', + self::TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT => 'TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT', + self::TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT => 'TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT', + self::TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT => 'TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT', + self::TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT => 'TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT', + self::TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT => 'TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT', + self::TARGETED_CLICKS => 'TARGETED_CLICKS', + self::TARGETED_IMPRESSIONS => 'TARGETED_IMPRESSIONS', + self::UNFILLED_IMPRESSIONS => 'UNFILLED_IMPRESSIONS', + self::UNIQUE_VISITORS => 'UNIQUE_VISITORS', + self::UNLOADED_IMPRESSIONS_DUE_TO_CPU => 'UNLOADED_IMPRESSIONS_DUE_TO_CPU', + self::UNLOADED_IMPRESSIONS_DUE_TO_NETWORK => 'UNLOADED_IMPRESSIONS_DUE_TO_NETWORK', + self::UNMATCHED_AD_REQUESTS => 'UNMATCHED_AD_REQUESTS', + self::UNVIEWED_REASON_OTHER_PERCENT => 'UNVIEWED_REASON_OTHER_PERCENT', + self::UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT => 'UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT', + self::UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT => 'UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT', + self::UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT => 'UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT', + self::UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT => 'UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT', + self::USER_ENGAGEMENT_DURATION_IN_SECONDS => 'USER_ENGAGEMENT_DURATION_IN_SECONDS', + self::USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE => 'USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE', + self::USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT => 'USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT', + self::USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN => 'USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN', + self::USER_MESSAGES_ALLOW_ADS_PAGEVIEWS => 'USER_MESSAGES_ALLOW_ADS_PAGEVIEWS', + self::USER_MESSAGES_CCPA_MESSAGES_SHOWN => 'USER_MESSAGES_CCPA_MESSAGES_SHOWN', + self::USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN => 'USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN', + self::USER_MESSAGES_IDFA_ATT_CONSENT => 'USER_MESSAGES_IDFA_ATT_CONSENT', + self::USER_MESSAGES_IDFA_ATT_CONSENT_RATE => 'USER_MESSAGES_IDFA_ATT_CONSENT_RATE', + self::USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT => 'USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT', + self::USER_MESSAGES_IDFA_ATT_DECLINE_RATE => 'USER_MESSAGES_IDFA_ATT_DECLINE_RATE', + self::USER_MESSAGES_IDFA_EXPLAINERS_SHOWN => 'USER_MESSAGES_IDFA_EXPLAINERS_SHOWN', + self::USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN => 'USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN', + self::USER_MESSAGES_IDFA_NO_DECISION => 'USER_MESSAGES_IDFA_NO_DECISION', + self::USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN => 'USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN', + self::USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS => 'USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS', + self::USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS => 'USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS', + self::USER_MESSAGES_TOTAL_ESTIMATED_REVENUE => 'USER_MESSAGES_TOTAL_ESTIMATED_REVENUE', + self::USER_MESSAGES_UPTC_MESSAGES_SHOWN => 'USER_MESSAGES_UPTC_MESSAGES_SHOWN', + self::USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO => 'USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO', + self::VIDEO_ERROR_100_COUNT => 'VIDEO_ERROR_100_COUNT', + self::VIDEO_ERROR_101_COUNT => 'VIDEO_ERROR_101_COUNT', + self::VIDEO_ERROR_102_COUNT => 'VIDEO_ERROR_102_COUNT', + self::VIDEO_ERROR_200_COUNT => 'VIDEO_ERROR_200_COUNT', + self::VIDEO_ERROR_201_COUNT => 'VIDEO_ERROR_201_COUNT', + self::VIDEO_ERROR_202_COUNT => 'VIDEO_ERROR_202_COUNT', + self::VIDEO_ERROR_203_COUNT => 'VIDEO_ERROR_203_COUNT', + self::VIDEO_ERROR_300_COUNT => 'VIDEO_ERROR_300_COUNT', + self::VIDEO_ERROR_301_COUNT => 'VIDEO_ERROR_301_COUNT', + self::VIDEO_ERROR_302_COUNT => 'VIDEO_ERROR_302_COUNT', + self::VIDEO_ERROR_303_COUNT => 'VIDEO_ERROR_303_COUNT', + self::VIDEO_ERROR_400_COUNT => 'VIDEO_ERROR_400_COUNT', + self::VIDEO_ERROR_401_COUNT => 'VIDEO_ERROR_401_COUNT', + self::VIDEO_ERROR_402_COUNT => 'VIDEO_ERROR_402_COUNT', + self::VIDEO_ERROR_403_COUNT => 'VIDEO_ERROR_403_COUNT', + self::VIDEO_ERROR_405_COUNT => 'VIDEO_ERROR_405_COUNT', + self::VIDEO_ERROR_406_COUNT => 'VIDEO_ERROR_406_COUNT', + self::VIDEO_ERROR_407_COUNT => 'VIDEO_ERROR_407_COUNT', + self::VIDEO_ERROR_408_COUNT => 'VIDEO_ERROR_408_COUNT', + self::VIDEO_ERROR_409_COUNT => 'VIDEO_ERROR_409_COUNT', + self::VIDEO_ERROR_410_COUNT => 'VIDEO_ERROR_410_COUNT', + self::VIDEO_ERROR_500_COUNT => 'VIDEO_ERROR_500_COUNT', + self::VIDEO_ERROR_501_COUNT => 'VIDEO_ERROR_501_COUNT', + self::VIDEO_ERROR_502_COUNT => 'VIDEO_ERROR_502_COUNT', + self::VIDEO_ERROR_503_COUNT => 'VIDEO_ERROR_503_COUNT', + self::VIDEO_ERROR_600_COUNT => 'VIDEO_ERROR_600_COUNT', + self::VIDEO_ERROR_601_COUNT => 'VIDEO_ERROR_601_COUNT', + self::VIDEO_ERROR_602_COUNT => 'VIDEO_ERROR_602_COUNT', + self::VIDEO_ERROR_603_COUNT => 'VIDEO_ERROR_603_COUNT', + self::VIDEO_ERROR_604_COUNT => 'VIDEO_ERROR_604_COUNT', + self::VIDEO_ERROR_900_COUNT => 'VIDEO_ERROR_900_COUNT', + self::VIDEO_ERROR_901_COUNT => 'VIDEO_ERROR_901_COUNT', + self::VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE => 'VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE', + self::VIDEO_INTERACTION_COLLAPSES => 'VIDEO_INTERACTION_COLLAPSES', + self::VIDEO_INTERACTION_EXPANDS => 'VIDEO_INTERACTION_EXPANDS', + self::VIDEO_INTERACTION_FULL_SCREENS => 'VIDEO_INTERACTION_FULL_SCREENS', + self::VIDEO_INTERACTION_MUTES => 'VIDEO_INTERACTION_MUTES', + self::VIDEO_INTERACTION_PAUSES => 'VIDEO_INTERACTION_PAUSES', + self::VIDEO_INTERACTION_RESUMES => 'VIDEO_INTERACTION_RESUMES', + self::VIDEO_INTERACTION_REWINDS => 'VIDEO_INTERACTION_REWINDS', + self::VIDEO_INTERACTION_UNMUTES => 'VIDEO_INTERACTION_UNMUTES', + self::VIDEO_INTERACTION_VIDEO_SKIPS => 'VIDEO_INTERACTION_VIDEO_SKIPS', + self::VIDEO_MONETIZABLE_CONTENT_VIEWS => 'VIDEO_MONETIZABLE_CONTENT_VIEWS', + self::VIDEO_REAL_TIME_CREATIVE_SERVES => 'VIDEO_REAL_TIME_CREATIVE_SERVES', + self::VIDEO_REAL_TIME_ERROR_100_COUNT => 'VIDEO_REAL_TIME_ERROR_100_COUNT', + self::VIDEO_REAL_TIME_ERROR_101_COUNT => 'VIDEO_REAL_TIME_ERROR_101_COUNT', + self::VIDEO_REAL_TIME_ERROR_102_COUNT => 'VIDEO_REAL_TIME_ERROR_102_COUNT', + self::VIDEO_REAL_TIME_ERROR_200_COUNT => 'VIDEO_REAL_TIME_ERROR_200_COUNT', + self::VIDEO_REAL_TIME_ERROR_201_COUNT => 'VIDEO_REAL_TIME_ERROR_201_COUNT', + self::VIDEO_REAL_TIME_ERROR_202_COUNT => 'VIDEO_REAL_TIME_ERROR_202_COUNT', + self::VIDEO_REAL_TIME_ERROR_203_COUNT => 'VIDEO_REAL_TIME_ERROR_203_COUNT', + self::VIDEO_REAL_TIME_ERROR_300_COUNT => 'VIDEO_REAL_TIME_ERROR_300_COUNT', + self::VIDEO_REAL_TIME_ERROR_301_COUNT => 'VIDEO_REAL_TIME_ERROR_301_COUNT', + self::VIDEO_REAL_TIME_ERROR_302_COUNT => 'VIDEO_REAL_TIME_ERROR_302_COUNT', + self::VIDEO_REAL_TIME_ERROR_303_COUNT => 'VIDEO_REAL_TIME_ERROR_303_COUNT', + self::VIDEO_REAL_TIME_ERROR_400_COUNT => 'VIDEO_REAL_TIME_ERROR_400_COUNT', + self::VIDEO_REAL_TIME_ERROR_401_COUNT => 'VIDEO_REAL_TIME_ERROR_401_COUNT', + self::VIDEO_REAL_TIME_ERROR_402_COUNT => 'VIDEO_REAL_TIME_ERROR_402_COUNT', + self::VIDEO_REAL_TIME_ERROR_403_COUNT => 'VIDEO_REAL_TIME_ERROR_403_COUNT', + self::VIDEO_REAL_TIME_ERROR_405_COUNT => 'VIDEO_REAL_TIME_ERROR_405_COUNT', + self::VIDEO_REAL_TIME_ERROR_406_COUNT => 'VIDEO_REAL_TIME_ERROR_406_COUNT', + self::VIDEO_REAL_TIME_ERROR_407_COUNT => 'VIDEO_REAL_TIME_ERROR_407_COUNT', + self::VIDEO_REAL_TIME_ERROR_408_COUNT => 'VIDEO_REAL_TIME_ERROR_408_COUNT', + self::VIDEO_REAL_TIME_ERROR_409_COUNT => 'VIDEO_REAL_TIME_ERROR_409_COUNT', + self::VIDEO_REAL_TIME_ERROR_410_COUNT => 'VIDEO_REAL_TIME_ERROR_410_COUNT', + self::VIDEO_REAL_TIME_ERROR_500_COUNT => 'VIDEO_REAL_TIME_ERROR_500_COUNT', + self::VIDEO_REAL_TIME_ERROR_501_COUNT => 'VIDEO_REAL_TIME_ERROR_501_COUNT', + self::VIDEO_REAL_TIME_ERROR_502_COUNT => 'VIDEO_REAL_TIME_ERROR_502_COUNT', + self::VIDEO_REAL_TIME_ERROR_503_COUNT => 'VIDEO_REAL_TIME_ERROR_503_COUNT', + self::VIDEO_REAL_TIME_ERROR_600_COUNT => 'VIDEO_REAL_TIME_ERROR_600_COUNT', + self::VIDEO_REAL_TIME_ERROR_601_COUNT => 'VIDEO_REAL_TIME_ERROR_601_COUNT', + self::VIDEO_REAL_TIME_ERROR_602_COUNT => 'VIDEO_REAL_TIME_ERROR_602_COUNT', + self::VIDEO_REAL_TIME_ERROR_603_COUNT => 'VIDEO_REAL_TIME_ERROR_603_COUNT', + self::VIDEO_REAL_TIME_ERROR_604_COUNT => 'VIDEO_REAL_TIME_ERROR_604_COUNT', + self::VIDEO_REAL_TIME_ERROR_900_COUNT => 'VIDEO_REAL_TIME_ERROR_900_COUNT', + self::VIDEO_REAL_TIME_ERROR_901_COUNT => 'VIDEO_REAL_TIME_ERROR_901_COUNT', + self::VIDEO_REAL_TIME_IMPRESSIONS => 'VIDEO_REAL_TIME_IMPRESSIONS', + self::VIDEO_REAL_TIME_MATCHED_QUERIES => 'VIDEO_REAL_TIME_MATCHED_QUERIES', + self::VIDEO_REAL_TIME_TOTAL_ERROR_COUNT => 'VIDEO_REAL_TIME_TOTAL_ERROR_COUNT', + self::VIDEO_REAL_TIME_TOTAL_QUERIES => 'VIDEO_REAL_TIME_TOTAL_QUERIES', + self::VIDEO_REAL_TIME_UNMATCHED_QUERIES => 'VIDEO_REAL_TIME_UNMATCHED_QUERIES', + self::VIDEO_VIEWERSHIP_AUTO_PLAYS => 'VIDEO_VIEWERSHIP_AUTO_PLAYS', + self::VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE => 'VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE', + self::VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME => 'VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME', + self::VIDEO_VIEWERSHIP_CLICK_TO_PLAYS => 'VIDEO_VIEWERSHIP_CLICK_TO_PLAYS', + self::VIDEO_VIEWERSHIP_COMPLETES => 'VIDEO_VIEWERSHIP_COMPLETES', + self::VIDEO_VIEWERSHIP_COMPLETION_RATE => 'VIDEO_VIEWERSHIP_COMPLETION_RATE', + self::VIDEO_VIEWERSHIP_ENGAGED_VIEWS => 'VIDEO_VIEWERSHIP_ENGAGED_VIEWS', + self::VIDEO_VIEWERSHIP_FIRST_QUARTILES => 'VIDEO_VIEWERSHIP_FIRST_QUARTILES', + self::VIDEO_VIEWERSHIP_MIDPOINTS => 'VIDEO_VIEWERSHIP_MIDPOINTS', + self::VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN => 'VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN', + self::VIDEO_VIEWERSHIP_STARTS => 'VIDEO_VIEWERSHIP_STARTS', + self::VIDEO_VIEWERSHIP_THIRD_QUARTILES => 'VIDEO_VIEWERSHIP_THIRD_QUARTILES', + self::VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT => 'VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT', + self::VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE => 'VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE', + self::VIDEO_VIEWERSHIP_VIDEO_LENGTH => 'VIDEO_VIEWERSHIP_VIDEO_LENGTH', + self::VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE => 'VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE', + self::YIELD_GROUP_AUCTIONS_WON => 'YIELD_GROUP_AUCTIONS_WON', + self::YIELD_GROUP_BIDS => 'YIELD_GROUP_BIDS', + self::YIELD_GROUP_BIDS_IN_AUCTION => 'YIELD_GROUP_BIDS_IN_AUCTION', + self::YIELD_GROUP_CALLOUTS => 'YIELD_GROUP_CALLOUTS', + self::YIELD_GROUP_ESTIMATED_CPM => 'YIELD_GROUP_ESTIMATED_CPM', + self::YIELD_GROUP_ESTIMATED_REVENUE => 'YIELD_GROUP_ESTIMATED_REVENUE', + self::YIELD_GROUP_IMPRESSIONS => 'YIELD_GROUP_IMPRESSIONS', + self::YIELD_GROUP_MEDIATION_FILL_RATE => 'YIELD_GROUP_MEDIATION_FILL_RATE', + self::YIELD_GROUP_MEDIATION_MATCHED_QUERIES => 'YIELD_GROUP_MEDIATION_MATCHED_QUERIES', + self::YIELD_GROUP_MEDIATION_PASSBACKS => 'YIELD_GROUP_MEDIATION_PASSBACKS', + self::YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM => 'YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM', + self::YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT => 'YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT', + self::YIELD_GROUP_SUCCESSFUL_RESPONSES => 'YIELD_GROUP_SUCCESSFUL_RESPONSES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Metric::class, \Google\Ads\AdManager\V1\ReportDefinition_Metric::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/MetricValueType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/MetricValueType.php new file mode 100644 index 000000000000..9df47040facc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/MetricValueType.php @@ -0,0 +1,85 @@ +google.ads.admanager.v1.ReportDefinition.MetricValueType + */ +class MetricValueType +{ + /** + * The values for the primary date_range. + * + * Generated from protobuf enum PRIMARY = 0; + */ + const PRIMARY = 0; + /** + * Each metrics' percent of the total for the primary date_range. + * + * Generated from protobuf enum PRIMARY_PERCENT_OF_TOTAL = 1; + */ + const PRIMARY_PERCENT_OF_TOTAL = 1; + /** + * The values for the comparison_date_range. + * + * Generated from protobuf enum COMPARISON = 2; + */ + const COMPARISON = 2; + /** + * Each metrics' percent of the total for the comparison_date_range. + * + * Generated from protobuf enum COMPARISON_PERCENT_OF_TOTAL = 3; + */ + const COMPARISON_PERCENT_OF_TOTAL = 3; + /** + * The absolute change between the primary and comparison date ranges. + * + * Generated from protobuf enum ABSOLUTE_CHANGE = 4; + */ + const ABSOLUTE_CHANGE = 4; + /** + * The relative change between the primary and comparison date ranges. + * + * Generated from protobuf enum RELATIVE_CHANGE = 5; + */ + const RELATIVE_CHANGE = 5; + + private static $valueToName = [ + self::PRIMARY => 'PRIMARY', + self::PRIMARY_PERCENT_OF_TOTAL => 'PRIMARY_PERCENT_OF_TOTAL', + self::COMPARISON => 'COMPARISON', + self::COMPARISON_PERCENT_OF_TOTAL => 'COMPARISON_PERCENT_OF_TOTAL', + self::ABSOLUTE_CHANGE => 'ABSOLUTE_CHANGE', + self::RELATIVE_CHANGE => 'RELATIVE_CHANGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MetricValueType::class, \Google\Ads\AdManager\V1\ReportDefinition_MetricValueType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/ReportType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/ReportType.php new file mode 100644 index 000000000000..6618f6d8e33d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/ReportType.php @@ -0,0 +1,78 @@ +google.ads.admanager.v1.ReportDefinition.ReportType + */ +class ReportType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum REPORT_TYPE_UNSPECIFIED = 0; + */ + const REPORT_TYPE_UNSPECIFIED = 0; + /** + * Historical. + * + * Generated from protobuf enum HISTORICAL = 1; + */ + const HISTORICAL = 1; + /** + * Reach. + * + * Generated from protobuf enum REACH = 5; + */ + const REACH = 5; + /** + * Privacy and messaging. + * + * Generated from protobuf enum PRIVACY_AND_MESSAGING = 6; + */ + const PRIVACY_AND_MESSAGING = 6; + /** + * Ad speed. + * + * Generated from protobuf enum AD_SPEED = 13; + */ + const AD_SPEED = 13; + + private static $valueToName = [ + self::REPORT_TYPE_UNSPECIFIED => 'REPORT_TYPE_UNSPECIFIED', + self::HISTORICAL => 'HISTORICAL', + self::REACH => 'REACH', + self::PRIVACY_AND_MESSAGING => 'PRIVACY_AND_MESSAGING', + self::AD_SPEED => 'AD_SPEED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReportType::class, \Google\Ads\AdManager\V1\ReportDefinition_ReportType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Slice.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Slice.php new file mode 100644 index 000000000000..a54f52fcf7c0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Slice.php @@ -0,0 +1,116 @@ +google.ads.admanager.v1.ReportDefinition.Slice + */ +class Slice extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dimension to slice on. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dimension = 0; + /** + * Required. The value of the dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $dimension + * Required. The dimension to slice on. + * @type \Google\Ads\AdManager\V1\ReportValue $value + * Required. The value of the dimension. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dimension to slice on. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getDimension() + { + return $this->dimension; + } + + /** + * Required. The dimension to slice on. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setDimension($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\Dimension::class); + $this->dimension = $var; + + return $this; + } + + /** + * Required. The value of the dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\ReportValue|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Required. The value of the dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ReportValue $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportValue::class); + $this->value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Slice::class, \Google\Ads\AdManager\V1\ReportDefinition_Slice::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Sort.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Sort.php new file mode 100644 index 000000000000..c06fb305ab0c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Sort.php @@ -0,0 +1,254 @@ +google.ads.admanager.v1.ReportDefinition.Sort + */ +class Sort extends \Google\Protobuf\Internal\Message +{ + /** + * Required. A field (dimension or metric) to sort by. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field = null; + /** + * Optional. The sort order. If true the sort will be descending. + * + * Generated from protobuf field bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $descending = false; + /** + * Optional. Use to sort on a specific slice of data. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $slice = null; + /** + * Optional. When using time period columns, use this to sort on a specific + * column. + * + * Generated from protobuf field optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time_period_index = null; + /** + * Optional. Use to specify which metric value type to sort on. Defaults to + * PRIMARY. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_value_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ReportDefinition\Field $field + * Required. A field (dimension or metric) to sort by. + * @type bool $descending + * Optional. The sort order. If true the sort will be descending. + * @type \Google\Ads\AdManager\V1\ReportDefinition\Slice $slice + * Optional. Use to sort on a specific slice of data. + * @type int $time_period_index + * Optional. When using time period columns, use this to sort on a specific + * column. + * @type int $metric_value_type + * Optional. Use to specify which metric value type to sort on. Defaults to + * PRIMARY. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); + parent::__construct($data); + } + + /** + * Required. A field (dimension or metric) to sort by. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\ReportDefinition\Field|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Required. A field (dimension or metric) to sort by. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ReportDefinition\Field $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\Field::class); + $this->field = $var; + + return $this; + } + + /** + * Optional. The sort order. If true the sort will be descending. + * + * Generated from protobuf field bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDescending() + { + return $this->descending; + } + + /** + * Optional. The sort order. If true the sort will be descending. + * + * Generated from protobuf field bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDescending($var) + { + GPBUtil::checkBool($var); + $this->descending = $var; + + return $this; + } + + /** + * Optional. Use to sort on a specific slice of data. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\ReportDefinition\Slice|null + */ + public function getSlice() + { + return $this->slice; + } + + public function hasSlice() + { + return isset($this->slice); + } + + public function clearSlice() + { + unset($this->slice); + } + + /** + * Optional. Use to sort on a specific slice of data. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\ReportDefinition\Slice $var + * @return $this + */ + public function setSlice($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\Slice::class); + $this->slice = $var; + + return $this; + } + + /** + * Optional. When using time period columns, use this to sort on a specific + * column. + * + * Generated from protobuf field optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTimePeriodIndex() + { + return isset($this->time_period_index) ? $this->time_period_index : 0; + } + + public function hasTimePeriodIndex() + { + return isset($this->time_period_index); + } + + public function clearTimePeriodIndex() + { + unset($this->time_period_index); + } + + /** + * Optional. When using time period columns, use this to sort on a specific + * column. + * + * Generated from protobuf field optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTimePeriodIndex($var) + { + GPBUtil::checkInt32($var); + $this->time_period_index = $var; + + return $this; + } + + /** + * Optional. Use to specify which metric value type to sort on. Defaults to + * PRIMARY. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMetricValueType() + { + return isset($this->metric_value_type) ? $this->metric_value_type : 0; + } + + public function hasMetricValueType() + { + return isset($this->metric_value_type); + } + + public function clearMetricValueType() + { + unset($this->metric_value_type); + } + + /** + * Optional. Use to specify which metric value type to sort on. Defaults to + * PRIMARY. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMetricValueType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\MetricValueType::class); + $this->metric_value_type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Sort::class, \Google\Ads\AdManager\V1\ReportDefinition_Sort::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimePeriodColumn.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimePeriodColumn.php new file mode 100644 index 000000000000..f3e41dcd7759 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimePeriodColumn.php @@ -0,0 +1,78 @@ +google.ads.admanager.v1.ReportDefinition.TimePeriodColumn + */ +class TimePeriodColumn +{ + /** + * Default value. Report will have no time period column. + * + * Generated from protobuf enum TIME_PERIOD_COLUMN_UNSPECIFIED = 0; + */ + const TIME_PERIOD_COLUMN_UNSPECIFIED = 0; + /** + * A column for each date in the report. + * + * Generated from protobuf enum TIME_PERIOD_COLUMN_DATE = 1; + */ + const TIME_PERIOD_COLUMN_DATE = 1; + /** + * A column for each week in the report. + * + * Generated from protobuf enum TIME_PERIOD_COLUMN_WEEK = 2; + */ + const TIME_PERIOD_COLUMN_WEEK = 2; + /** + * A column for each month in the report. + * + * Generated from protobuf enum TIME_PERIOD_COLUMN_MONTH = 3; + */ + const TIME_PERIOD_COLUMN_MONTH = 3; + /** + * A column for each quarter in the report. + * + * Generated from protobuf enum TIME_PERIOD_COLUMN_QUARTER = 4; + */ + const TIME_PERIOD_COLUMN_QUARTER = 4; + + private static $valueToName = [ + self::TIME_PERIOD_COLUMN_UNSPECIFIED => 'TIME_PERIOD_COLUMN_UNSPECIFIED', + self::TIME_PERIOD_COLUMN_DATE => 'TIME_PERIOD_COLUMN_DATE', + self::TIME_PERIOD_COLUMN_WEEK => 'TIME_PERIOD_COLUMN_WEEK', + self::TIME_PERIOD_COLUMN_MONTH => 'TIME_PERIOD_COLUMN_MONTH', + self::TIME_PERIOD_COLUMN_QUARTER => 'TIME_PERIOD_COLUMN_QUARTER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TimePeriodColumn::class, \Google\Ads\AdManager\V1\ReportDefinition_TimePeriodColumn::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimeZoneSource.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimeZoneSource.php new file mode 100644 index 000000000000..76ace4fe37fd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimeZoneSource.php @@ -0,0 +1,83 @@ +google.ads.admanager.v1.ReportDefinition.TimeZoneSource + */ +class TimeZoneSource +{ + /** + * Unspecified default value. + * + * Generated from protobuf enum TIME_ZONE_SOURCE_UNSPECIFIED = 0; + */ + const TIME_ZONE_SOURCE_UNSPECIFIED = 0; + /** + * Use the publisher's time zone in network settings. + * + * Generated from protobuf enum PUBLISHER = 1; + */ + const PUBLISHER = 1; + /** + * Use the time zone of the ad exchange. + * Only compatible with Ad Exchange dimensions and metrics. + * + * Generated from protobuf enum AD_EXCHANGE = 2; + */ + const AD_EXCHANGE = 2; + /** + * Use UTC time zone. + * Only compatible with Revenue Verification reports. + * + * Generated from protobuf enum UTC = 3; + */ + const UTC = 3; + /** + * Use the time zone provided in the ReportDefinition.time_zone field. + * Has limited dimension and metric compatibility compared with PUBLISHER, + * and reports may take longer to run since the dates are dynamically + * calculated at request time. + * + * Generated from protobuf enum PROVIDED = 4; + */ + const PROVIDED = 4; + + private static $valueToName = [ + self::TIME_ZONE_SOURCE_UNSPECIFIED => 'TIME_ZONE_SOURCE_UNSPECIFIED', + self::PUBLISHER => 'PUBLISHER', + self::AD_EXCHANGE => 'AD_EXCHANGE', + self::UTC => 'UTC', + self::PROVIDED => 'PROVIDED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TimeZoneSource::class, \Google\Ads\AdManager\V1\ReportDefinition_TimeZoneSource::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue.php new file mode 100644 index 000000000000..aa1da1290baf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue.php @@ -0,0 +1,306 @@ +google.ads.admanager.v1.ReportValue + */ +class ReportValue extends \Google\Protobuf\Internal\Message +{ + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $int_value + * For integer values. + * @type float $double_value + * For double values. + * @type string $string_value + * For string values. + * @type bool $bool_value + * For boolean values. + * @type \Google\Ads\AdManager\V1\ReportValue\IntList $int_list_value + * For lists of integer values. + * @type \Google\Ads\AdManager\V1\ReportValue\StringList $string_list_value + * For lists of string values. + * @type \Google\Ads\AdManager\V1\ReportValue\DoubleList $double_list_value + * For lists of double values. + * @type string $bytes_value + * For bytes values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportValue::initOnce(); + parent::__construct($data); + } + + /** + * For integer values. + * + * Generated from protobuf field int64 int_value = 1; + * @return int|string + */ + public function getIntValue() + { + return $this->readOneof(1); + } + + public function hasIntValue() + { + return $this->hasOneof(1); + } + + /** + * For integer values. + * + * Generated from protobuf field int64 int_value = 1; + * @param int|string $var + * @return $this + */ + public function setIntValue($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * For double values. + * + * Generated from protobuf field double double_value = 2; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(2); + } + + public function hasDoubleValue() + { + return $this->hasOneof(2); + } + + /** + * For double values. + * + * Generated from protobuf field double double_value = 2; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * For string values. + * + * Generated from protobuf field string string_value = 3; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(3); + } + + public function hasStringValue() + { + return $this->hasOneof(3); + } + + /** + * For string values. + * + * Generated from protobuf field string string_value = 3; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * For boolean values. + * + * Generated from protobuf field bool bool_value = 4; + * @return bool + */ + public function getBoolValue() + { + return $this->readOneof(4); + } + + public function hasBoolValue() + { + return $this->hasOneof(4); + } + + /** + * For boolean values. + * + * Generated from protobuf field bool bool_value = 4; + * @param bool $var + * @return $this + */ + public function setBoolValue($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * For lists of integer values. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + * @return \Google\Ads\AdManager\V1\ReportValue\IntList|null + */ + public function getIntListValue() + { + return $this->readOneof(6); + } + + public function hasIntListValue() + { + return $this->hasOneof(6); + } + + /** + * For lists of integer values. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + * @param \Google\Ads\AdManager\V1\ReportValue\IntList $var + * @return $this + */ + public function setIntListValue($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportValue\IntList::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * For lists of string values. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + * @return \Google\Ads\AdManager\V1\ReportValue\StringList|null + */ + public function getStringListValue() + { + return $this->readOneof(7); + } + + public function hasStringListValue() + { + return $this->hasOneof(7); + } + + /** + * For lists of string values. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + * @param \Google\Ads\AdManager\V1\ReportValue\StringList $var + * @return $this + */ + public function setStringListValue($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportValue\StringList::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * For lists of double values. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + * @return \Google\Ads\AdManager\V1\ReportValue\DoubleList|null + */ + public function getDoubleListValue() + { + return $this->readOneof(9); + } + + public function hasDoubleListValue() + { + return $this->hasOneof(9); + } + + /** + * For lists of double values. + * + * Generated from protobuf field .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + * @param \Google\Ads\AdManager\V1\ReportValue\DoubleList $var + * @return $this + */ + public function setDoubleListValue($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportValue\DoubleList::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * For bytes values. + * + * Generated from protobuf field bytes bytes_value = 8; + * @return string + */ + public function getBytesValue() + { + return $this->readOneof(8); + } + + public function hasBytesValue() + { + return $this->hasOneof(8); + } + + /** + * For bytes values. + * + * Generated from protobuf field bytes bytes_value = 8; + * @param string $var + * @return $this + */ + public function setBytesValue($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/DoubleList.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/DoubleList.php new file mode 100644 index 000000000000..99e43d4128a8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/DoubleList.php @@ -0,0 +1,70 @@ +google.ads.admanager.v1.ReportValue.DoubleList + */ +class DoubleList extends \Google\Protobuf\Internal\Message +{ + /** + * The values + * + * Generated from protobuf field repeated double values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * The values + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportValue::initOnce(); + parent::__construct($data); + } + + /** + * The values + * + * Generated from protobuf field repeated double values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * The values + * + * Generated from protobuf field repeated double values = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); + $this->values = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DoubleList::class, \Google\Ads\AdManager\V1\ReportValue_DoubleList::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/IntList.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/IntList.php new file mode 100644 index 000000000000..f64fa62cb2c9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/IntList.php @@ -0,0 +1,70 @@ +google.ads.admanager.v1.ReportValue.IntList + */ +class IntList extends \Google\Protobuf\Internal\Message +{ + /** + * The values + * + * Generated from protobuf field repeated int64 values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|array|\Google\Protobuf\Internal\RepeatedField $values + * The values + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportValue::initOnce(); + parent::__construct($data); + } + + /** + * The values + * + * Generated from protobuf field repeated int64 values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * The values + * + * Generated from protobuf field repeated int64 values = 1; + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->values = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(IntList::class, \Google\Ads\AdManager\V1\ReportValue_IntList::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/StringList.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/StringList.php new file mode 100644 index 000000000000..40e2f754bf96 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/StringList.php @@ -0,0 +1,70 @@ +google.ads.admanager.v1.ReportValue.StringList + */ +class StringList extends \Google\Protobuf\Internal\Message +{ + /** + * The values + * + * Generated from protobuf field repeated string values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * The values + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportValue::initOnce(); + parent::__construct($data); + } + + /** + * The values + * + * Generated from protobuf field repeated string values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * The values + * + * Generated from protobuf field repeated string values = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(StringList::class, \Google\Ads\AdManager\V1\ReportValue_StringList::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum.php new file mode 100644 index 000000000000..be20db2b3e31 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum.php @@ -0,0 +1,37 @@ +google.ads.admanager.v1.RequestPlatformEnum + */ +class RequestPlatformEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\RequestPlatformEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum/RequestPlatform.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum/RequestPlatform.php new file mode 100644 index 000000000000..eedf0f286761 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum/RequestPlatform.php @@ -0,0 +1,72 @@ +google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform + */ +class RequestPlatform +{ + /** + * No value specified + * + * Generated from protobuf enum REQUEST_PLATFORM_UNSPECIFIED = 0; + */ + const REQUEST_PLATFORM_UNSPECIFIED = 0; + /** + * Represents a request made from a web browser (incl. desktop browsers, + * mobile browsers, webviews, etc.). + * + * Generated from protobuf enum BROWSER = 1; + */ + const BROWSER = 1; + /** + * Represents a request made from a Mobile Application. + * + * Generated from protobuf enum MOBILE_APP = 2; + */ + const MOBILE_APP = 2; + /** + * Represents a request made from a video player. + * + * Generated from protobuf enum VIDEO_PLAYER = 3; + */ + const VIDEO_PLAYER = 3; + + private static $valueToName = [ + self::REQUEST_PLATFORM_UNSPECIFIED => 'REQUEST_PLATFORM_UNSPECIFIED', + self::BROWSER => 'BROWSER', + self::MOBILE_APP => 'MOBILE_APP', + self::VIDEO_PLAYER => 'VIDEO_PLAYER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RequestPlatform::class, \Google\Ads\AdManager\V1\RequestPlatformEnum_RequestPlatform::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformTargeting.php new file mode 100644 index 000000000000..1ce28b113fbc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformTargeting.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.RequestPlatformTargeting + */ +class RequestPlatformTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The list of request platforms that should be targeted. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $request_platforms; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $request_platforms + * Optional. The list of request platforms that should be targeted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The list of request platforms that should be targeted. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequestPlatforms() + { + return $this->request_platforms; + } + + /** + * Optional. The list of request platforms that should be targeted. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequestPlatforms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\RequestPlatformEnum\RequestPlatform::class); + $this->request_platforms = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php new file mode 100644 index 000000000000..fa87ad2f35fb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php @@ -0,0 +1,291 @@ +google.ads.admanager.v1.Role + */ +class Role extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Role`. + * Format: `networks/{network_code}/roles/{role_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. `Role` ID. + * + * Generated from protobuf field optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $role_id = null; + /** + * Required. The display name of the `Role`. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. The description of the `Role`. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = null; + /** + * Output only. Whether the `Role` is a built-in or custom user role. + * + * Generated from protobuf field optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $built_in = null; + /** + * Output only. The status of the `Role`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Role`. + * Format: `networks/{network_code}/roles/{role_id}` + * @type int|string $role_id + * Output only. `Role` ID. + * @type string $display_name + * Required. The display name of the `Role`. + * @type string $description + * Optional. The description of the `Role`. + * @type bool $built_in + * Output only. Whether the `Role` is a built-in or custom user role. + * @type int $status + * Output only. The status of the `Role`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\RoleMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Role`. + * Format: `networks/{network_code}/roles/{role_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Role`. + * Format: `networks/{network_code}/roles/{role_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. `Role` ID. + * + * Generated from protobuf field optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getRoleId() + { + return isset($this->role_id) ? $this->role_id : 0; + } + + public function hasRoleId() + { + return isset($this->role_id); + } + + public function clearRoleId() + { + unset($this->role_id); + } + + /** + * Output only. `Role` ID. + * + * Generated from protobuf field optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setRoleId($var) + { + GPBUtil::checkInt64($var); + $this->role_id = $var; + + return $this; + } + + /** + * Required. The display name of the `Role`. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The display name of the `Role`. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The description of the `Role`. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Optional. The description of the `Role`. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. Whether the `Role` is a built-in or custom user role. + * + * Generated from protobuf field optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getBuiltIn() + { + return isset($this->built_in) ? $this->built_in : false; + } + + public function hasBuiltIn() + { + return isset($this->built_in); + } + + public function clearBuiltIn() + { + unset($this->built_in); + } + + /** + * Output only. Whether the `Role` is a built-in or custom user role. + * + * Generated from protobuf field optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setBuiltIn($var) + { + GPBUtil::checkBool($var); + $this->built_in = $var; + + return $this; + } + + /** + * Output only. The status of the `Role`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the `Role`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\RoleStatusEnum\RoleStatus::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php new file mode 100644 index 000000000000..f503830b55c8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.RoleStatusEnum + */ +class RoleStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\RoleEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php new file mode 100644 index 000000000000..ff2884a49981 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.RoleStatusEnum.RoleStatus + */ +class RoleStatus +{ + /** + * No value specified. + * + * Generated from protobuf enum ROLE_STATUS_UNSPECIFIED = 0; + */ + const ROLE_STATUS_UNSPECIFIED = 0; + /** + * Role is active. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * Role is inactive. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + + private static $valueToName = [ + self::ROLE_STATUS_UNSPECIFIED => 'ROLE_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RoleStatus::class, \Google\Ads\AdManager\V1\RoleStatusEnum_RoleStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php new file mode 100644 index 000000000000..8ef7b7307ec0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php @@ -0,0 +1,105 @@ +google.ads.admanager.v1.RunReportMetadata + */ +class RunReportMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * An estimate of how close this report is to being completed. Will always be + * 100 for failed and completed reports. + * + * Generated from protobuf field int32 percent_complete = 2; + */ + protected $percent_complete = 0; + /** + * The result's parent report. + * + * Generated from protobuf field string report = 4 [(.google.api.resource_reference) = { + */ + protected $report = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $percent_complete + * An estimate of how close this report is to being completed. Will always be + * 100 for failed and completed reports. + * @type string $report + * The result's parent report. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); + parent::__construct($data); + } + + /** + * An estimate of how close this report is to being completed. Will always be + * 100 for failed and completed reports. + * + * Generated from protobuf field int32 percent_complete = 2; + * @return int + */ + public function getPercentComplete() + { + return $this->percent_complete; + } + + /** + * An estimate of how close this report is to being completed. Will always be + * 100 for failed and completed reports. + * + * Generated from protobuf field int32 percent_complete = 2; + * @param int $var + * @return $this + */ + public function setPercentComplete($var) + { + GPBUtil::checkInt32($var); + $this->percent_complete = $var; + + return $this; + } + + /** + * The result's parent report. + * + * Generated from protobuf field string report = 4 [(.google.api.resource_reference) = { + * @return string + */ + public function getReport() + { + return $this->report; + } + + /** + * The result's parent report. + * + * Generated from protobuf field string report = 4 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setReport($var) + { + GPBUtil::checkString($var, True); + $this->report = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php new file mode 100644 index 000000000000..45effb973cb7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.RunReportRequest + */ +class RunReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The report to run. + * Format: `networks/{network_code}/reports/{report_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The report to run. + * Format: `networks/{network_code}/reports/{report_id}` + * Please see {@see ReportServiceClient::reportName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\RunReportRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The report to run. + * Format: `networks/{network_code}/reports/{report_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The report to run. + * Format: `networks/{network_code}/reports/{report_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The report to run. + * Format: `networks/{network_code}/reports/{report_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php new file mode 100644 index 000000000000..c19b155b00c9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.RunReportResponse + */ +class RunReportResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The unique name of the generated result. Use with `FetchReportResultRows` + * to retrieve data. + * + * Generated from protobuf field string report_result = 1; + */ + protected $report_result = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $report_result + * The unique name of the generated result. Use with `FetchReportResultRows` + * to retrieve data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); + parent::__construct($data); + } + + /** + * The unique name of the generated result. Use with `FetchReportResultRows` + * to retrieve data. + * + * Generated from protobuf field string report_result = 1; + * @return string + */ + public function getReportResult() + { + return $this->report_result; + } + + /** + * The unique name of the generated result. Use with `FetchReportResultRows` + * to retrieve data. + * + * Generated from protobuf field string report_result = 1; + * @param string $var + * @return $this + */ + public function setReportResult($var) + { + GPBUtil::checkString($var, True); + $this->report_result = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php new file mode 100644 index 000000000000..b982fc993b4c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php @@ -0,0 +1,149 @@ +google.ads.admanager.v1.ScheduleOptions + */ +class ScheduleOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Information pertaining to schedule itself. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; + */ + protected $schedule = null; + /** + * Option for when to deliver the scheduled report. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.DeliveryCondition delivery_condition = 2; + */ + protected $delivery_condition = 0; + /** + * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT + * is specified. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $flags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ScheduleOptions\Schedule $schedule + * Information pertaining to schedule itself. + * @type int $delivery_condition + * Option for when to deliver the scheduled report. + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $flags + * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT + * is specified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); + parent::__construct($data); + } + + /** + * Information pertaining to schedule itself. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; + * @return \Google\Ads\AdManager\V1\ScheduleOptions\Schedule|null + */ + public function getSchedule() + { + return $this->schedule; + } + + public function hasSchedule() + { + return isset($this->schedule); + } + + public function clearSchedule() + { + unset($this->schedule); + } + + /** + * Information pertaining to schedule itself. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; + * @param \Google\Ads\AdManager\V1\ScheduleOptions\Schedule $var + * @return $this + */ + public function setSchedule($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ScheduleOptions\Schedule::class); + $this->schedule = $var; + + return $this; + } + + /** + * Option for when to deliver the scheduled report. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.DeliveryCondition delivery_condition = 2; + * @return int + */ + public function getDeliveryCondition() + { + return $this->delivery_condition; + } + + /** + * Option for when to deliver the scheduled report. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.DeliveryCondition delivery_condition = 2; + * @param int $var + * @return $this + */ + public function setDeliveryCondition($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ScheduleOptions\DeliveryCondition::class); + $this->delivery_condition = $var; + + return $this; + } + + /** + * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT + * is specified. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFlags() + { + return $this->flags; + } + + /** + * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT + * is specified. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFlags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Flag::class); + $this->flags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php new file mode 100644 index 000000000000..a5d39bb84e6e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.ScheduleOptions.DeliveryCondition + */ +class DeliveryCondition +{ + /** + * Never deliver report. + * + * Generated from protobuf enum NEVER = 0; + */ + const NEVER = 0; + /** + * Always deliver report. + * + * Generated from protobuf enum ALWAYS = 1; + */ + const ALWAYS = 1; + /** + * Deliver report when flag's conditions are met. + * + * Generated from protobuf enum WHEN_FLAG_CONDITIONS_MET = 2; + */ + const WHEN_FLAG_CONDITIONS_MET = 2; + + private static $valueToName = [ + self::NEVER => 'NEVER', + self::ALWAYS => 'ALWAYS', + self::WHEN_FLAG_CONDITIONS_MET => 'WHEN_FLAG_CONDITIONS_MET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DeliveryCondition::class, \Google\Ads\AdManager\V1\ScheduleOptions_DeliveryCondition::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule.php new file mode 100644 index 000000000000..e90d79527b74 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule.php @@ -0,0 +1,309 @@ +google.ads.admanager.v1.ScheduleOptions.Schedule + */ +class Schedule extends \Google\Protobuf\Internal\Message +{ + /** + * Date for the first run of the report. + * + * Generated from protobuf field .google.type.Date start_date = 1; + */ + protected $start_date = null; + /** + * Date for the final run of the report. + * + * Generated from protobuf field .google.type.Date end_date = 2; + */ + protected $end_date = null; + /** + * Frequency to run report. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + */ + protected $frequency = 0; + /** + * Indicates start time for schedule to run + * Will use the time_zone from `ReportDefinition`. Defaults + * to the publisher's time zone if not specified. + * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this + * will be the time of day that the first report will run on the first day. + * For example, if the start time is 2:00 PM, and the frequency is + * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, + * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, + * 2:00 PM, 10:00 PM. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 4; + */ + protected $start_time = null; + protected $frequency_schedule; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ScheduleOptions\Schedule\WeeklySchedule $weekly_schedule + * Days of week to schedule report run. + * @type \Google\Ads\AdManager\V1\ScheduleOptions\Schedule\MonthlySchedule $monthly_schedule + * Days of month to schedule report run. + * @type \Google\Type\Date $start_date + * Date for the first run of the report. + * @type \Google\Type\Date $end_date + * Date for the final run of the report. + * @type int $frequency + * Frequency to run report. + * @type \Google\Type\TimeOfDay $start_time + * Indicates start time for schedule to run + * Will use the time_zone from `ReportDefinition`. Defaults + * to the publisher's time zone if not specified. + * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this + * will be the time of day that the first report will run on the first day. + * For example, if the start time is 2:00 PM, and the frequency is + * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, + * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, + * 2:00 PM, 10:00 PM. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); + parent::__construct($data); + } + + /** + * Days of week to schedule report run. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * @return \Google\Ads\AdManager\V1\ScheduleOptions\Schedule\WeeklySchedule|null + */ + public function getWeeklySchedule() + { + return $this->readOneof(6); + } + + public function hasWeeklySchedule() + { + return $this->hasOneof(6); + } + + /** + * Days of week to schedule report run. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * @param \Google\Ads\AdManager\V1\ScheduleOptions\Schedule\WeeklySchedule $var + * @return $this + */ + public function setWeeklySchedule($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ScheduleOptions\Schedule\WeeklySchedule::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Days of month to schedule report run. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * @return \Google\Ads\AdManager\V1\ScheduleOptions\Schedule\MonthlySchedule|null + */ + public function getMonthlySchedule() + { + return $this->readOneof(7); + } + + public function hasMonthlySchedule() + { + return $this->hasOneof(7); + } + + /** + * Days of month to schedule report run. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * @param \Google\Ads\AdManager\V1\ScheduleOptions\Schedule\MonthlySchedule $var + * @return $this + */ + public function setMonthlySchedule($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ScheduleOptions\Schedule\MonthlySchedule::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Date for the first run of the report. + * + * Generated from protobuf field .google.type.Date start_date = 1; + * @return \Google\Type\Date|null + */ + public function getStartDate() + { + return $this->start_date; + } + + public function hasStartDate() + { + return isset($this->start_date); + } + + public function clearStartDate() + { + unset($this->start_date); + } + + /** + * Date for the first run of the report. + * + * Generated from protobuf field .google.type.Date start_date = 1; + * @param \Google\Type\Date $var + * @return $this + */ + public function setStartDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->start_date = $var; + + return $this; + } + + /** + * Date for the final run of the report. + * + * Generated from protobuf field .google.type.Date end_date = 2; + * @return \Google\Type\Date|null + */ + public function getEndDate() + { + return $this->end_date; + } + + public function hasEndDate() + { + return isset($this->end_date); + } + + public function clearEndDate() + { + unset($this->end_date); + } + + /** + * Date for the final run of the report. + * + * Generated from protobuf field .google.type.Date end_date = 2; + * @param \Google\Type\Date $var + * @return $this + */ + public function setEndDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->end_date = $var; + + return $this; + } + + /** + * Frequency to run report. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * @return int + */ + public function getFrequency() + { + return $this->frequency; + } + + /** + * Frequency to run report. + * + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * @param int $var + * @return $this + */ + public function setFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ScheduleOptions\Schedule\Frequency::class); + $this->frequency = $var; + + return $this; + } + + /** + * Indicates start time for schedule to run + * Will use the time_zone from `ReportDefinition`. Defaults + * to the publisher's time zone if not specified. + * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this + * will be the time of day that the first report will run on the first day. + * For example, if the start time is 2:00 PM, and the frequency is + * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, + * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, + * 2:00 PM, 10:00 PM. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 4; + * @return \Google\Type\TimeOfDay|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Indicates start time for schedule to run + * Will use the time_zone from `ReportDefinition`. Defaults + * to the publisher's time zone if not specified. + * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this + * will be the time of day that the first report will run on the first day. + * For example, if the start time is 2:00 PM, and the frequency is + * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, + * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, + * 2:00 PM, 10:00 PM. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 4; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->start_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getFrequencySchedule() + { + return $this->whichOneof("frequency_schedule"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Schedule::class, \Google\Ads\AdManager\V1\ScheduleOptions_Schedule::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/Frequency.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/Frequency.php new file mode 100644 index 000000000000..b73a35573eb5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/Frequency.php @@ -0,0 +1,99 @@ +google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency + */ +class Frequency +{ + /** + * No Frequency specified. + * + * Generated from protobuf enum FREQUENCY_UNSPECIFIED = 0; + */ + const FREQUENCY_UNSPECIFIED = 0; + /** + * Schedule report to run every hour. + * + * Generated from protobuf enum HOURLY = 1; + */ + const HOURLY = 1; + /** + * Schedule report to run twice a day (every 12 hours). + * + * Generated from protobuf enum TWO_TIMES_DAILY = 2; + */ + const TWO_TIMES_DAILY = 2; + /** + * Schedule report to run three times a day (every 8 hours). + * + * Generated from protobuf enum THREE_TIMES_DAILY = 3; + */ + const THREE_TIMES_DAILY = 3; + /** + * Schedule report to run four times a day (every 6 hours). + * + * Generated from protobuf enum FOUR_TIMES_DAILY = 4; + */ + const FOUR_TIMES_DAILY = 4; + /** + * Schedule report to run on a daily basis. + * + * Generated from protobuf enum DAILY = 5; + */ + const DAILY = 5; + /** + * Schedule report to run on a weekly basis. + * + * Generated from protobuf enum WEEKLY = 6; + */ + const WEEKLY = 6; + /** + * Schedule report to run on a monthly basis. + * + * Generated from protobuf enum MONTHLY = 7; + */ + const MONTHLY = 7; + + private static $valueToName = [ + self::FREQUENCY_UNSPECIFIED => 'FREQUENCY_UNSPECIFIED', + self::HOURLY => 'HOURLY', + self::TWO_TIMES_DAILY => 'TWO_TIMES_DAILY', + self::THREE_TIMES_DAILY => 'THREE_TIMES_DAILY', + self::FOUR_TIMES_DAILY => 'FOUR_TIMES_DAILY', + self::DAILY => 'DAILY', + self::WEEKLY => 'WEEKLY', + self::MONTHLY => 'MONTHLY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Frequency::class, \Google\Ads\AdManager\V1\ScheduleOptions_Schedule_Frequency::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/MonthlySchedule.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/MonthlySchedule.php new file mode 100644 index 000000000000..e563148fba39 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/MonthlySchedule.php @@ -0,0 +1,74 @@ +google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + */ +class MonthlySchedule extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies days of the month to run report. Range is from 1-31. + * Will ignore days that are not valid for the given month. + * + * Generated from protobuf field repeated int32 monthly_scheduled_days = 1; + */ + private $monthly_scheduled_days; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $monthly_scheduled_days + * Specifies days of the month to run report. Range is from 1-31. + * Will ignore days that are not valid for the given month. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); + parent::__construct($data); + } + + /** + * Specifies days of the month to run report. Range is from 1-31. + * Will ignore days that are not valid for the given month. + * + * Generated from protobuf field repeated int32 monthly_scheduled_days = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMonthlyScheduledDays() + { + return $this->monthly_scheduled_days; + } + + /** + * Specifies days of the month to run report. Range is from 1-31. + * Will ignore days that are not valid for the given month. + * + * Generated from protobuf field repeated int32 monthly_scheduled_days = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMonthlyScheduledDays($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->monthly_scheduled_days = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MonthlySchedule::class, \Google\Ads\AdManager\V1\ScheduleOptions_Schedule_MonthlySchedule::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/WeeklySchedule.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/WeeklySchedule.php new file mode 100644 index 000000000000..e46c2b34eee3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/WeeklySchedule.php @@ -0,0 +1,70 @@ +google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + */ +class WeeklySchedule extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies days of the week on which to run report. + * + * Generated from protobuf field repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + */ + private $weekly_scheduled_days; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $weekly_scheduled_days + * Specifies days of the week on which to run report. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); + parent::__construct($data); + } + + /** + * Specifies days of the week on which to run report. + * + * Generated from protobuf field repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWeeklyScheduledDays() + { + return $this->weekly_scheduled_days; + } + + /** + * Specifies days of the week on which to run report. + * + * Generated from protobuf field repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWeeklyScheduledDays($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\DayOfWeek::class); + $this->weekly_scheduled_days = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(WeeklySchedule::class, \Google\Ads\AdManager\V1\ScheduleOptions_Schedule_WeeklySchedule::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsRequest.php new file mode 100644 index 000000000000..469c0b024a85 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsRequest.php @@ -0,0 +1,422 @@ +google.ads.admanager.v1.SearchAdReviewCenterAdsRequest + */ +class SearchAdReviewCenterAdsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of AdReviewCenterAds to return. The service + * may return fewer than this value. If unspecified, at most 50 + * AdReviewCenterAds will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. The page token to fetch the next page of AdReviewCenterAds. This + * is the value returned from a previous Search request, or empty. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Required. Only return ads with the given status. + * + * Generated from protobuf field .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $status = 0; + /** + * Optional. If provided, only return ads with the given AdReviewCenterAd IDs. + * + * Generated from protobuf field repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $ad_review_center_ad_id; + /** + * Optional. If provided, only return ads that served within the given date + * range (inclusive). The date range must be within the last 30 days. If not + * provided, the date range will be the last 30 days. + * + * Generated from protobuf field .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $date_time_range = null; + /** + * Optional. If provided, restrict the search to AdReviewCenterAds associated + * with the text (including any text on the ad or in the destination URL). If + * more than one value is provided, the search will combine them in a logical + * AND. For example, ['car', 'blue'] will match ads that contain both "car" + * and "blue", but not an ad that only contains "car". + * + * Generated from protobuf field repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $search_text; + /** + * Optional. If provided, restrict the search to creatives belonging to one of + * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx + * buyer account IDs can be found via the ProgrammaticBuyerService. + * + * Generated from protobuf field repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $buyer_account_id; + + /** + * @param string $parent Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * + * `networks/{network_code}/webProperties/display` + * + * `networks/{network_code}/webProperties/videoAndAudio` + * + * `networks/{network_code}/webProperties/mobileApp` + * + * `networks/{network_code}/webProperties/games` + * Please see {@see AdReviewCenterAdServiceClient::webPropertyName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\SearchAdReviewCenterAdsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * @type int $page_size + * Optional. The maximum number of AdReviewCenterAds to return. The service + * may return fewer than this value. If unspecified, at most 50 + * AdReviewCenterAds will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. The page token to fetch the next page of AdReviewCenterAds. This + * is the value returned from a previous Search request, or empty. + * @type int $status + * Required. Only return ads with the given status. + * @type array|\Google\Protobuf\Internal\RepeatedField $ad_review_center_ad_id + * Optional. If provided, only return ads with the given AdReviewCenterAd IDs. + * @type \Google\Type\Interval $date_time_range + * Optional. If provided, only return ads that served within the given date + * range (inclusive). The date range must be within the last 30 days. If not + * provided, the date range will be the last 30 days. + * @type array|\Google\Protobuf\Internal\RepeatedField $search_text + * Optional. If provided, restrict the search to AdReviewCenterAds associated + * with the text (including any text on the ad or in the destination URL). If + * more than one value is provided, the search will combine them in a logical + * AND. For example, ['car', 'blue'] will match ads that contain both "car" + * and "blue", but not an ad that only contains "car". + * @type array|array|\Google\Protobuf\Internal\RepeatedField $buyer_account_id + * Optional. If provided, restrict the search to creatives belonging to one of + * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx + * buyer account IDs can be found via the ProgrammaticBuyerService. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of AdReviewCenterAds. + * Format: networks/{network_code}/webProperties/{web_property_code} + * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the + * `ExchangeSyndicationProduct` as an alias for the web property code: + * `networks/{network_code}/webProperties/display` + * `networks/{network_code}/webProperties/videoAndAudio` + * `networks/{network_code}/webProperties/mobileApp` + * `networks/{network_code}/webProperties/games` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of AdReviewCenterAds to return. The service + * may return fewer than this value. If unspecified, at most 50 + * AdReviewCenterAds will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of AdReviewCenterAds to return. The service + * may return fewer than this value. If unspecified, at most 50 + * AdReviewCenterAds will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. The page token to fetch the next page of AdReviewCenterAds. This + * is the value returned from a previous Search request, or empty. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. The page token to fetch the next page of AdReviewCenterAds. This + * is the value returned from a previous Search request, or empty. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Required. Only return ads with the given status. + * + * Generated from protobuf field .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * Required. Only return ads with the given status. + * + * Generated from protobuf field .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\AdReviewCenterAdStatusEnum\AdReviewCenterAdStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. If provided, only return ads with the given AdReviewCenterAd IDs. + * + * Generated from protobuf field repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdReviewCenterAdId() + { + return $this->ad_review_center_ad_id; + } + + /** + * Optional. If provided, only return ads with the given AdReviewCenterAd IDs. + * + * Generated from protobuf field repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdReviewCenterAdId($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->ad_review_center_ad_id = $arr; + + return $this; + } + + /** + * Optional. If provided, only return ads that served within the given date + * range (inclusive). The date range must be within the last 30 days. If not + * provided, the date range will be the last 30 days. + * + * Generated from protobuf field .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\Interval|null + */ + public function getDateTimeRange() + { + return $this->date_time_range; + } + + public function hasDateTimeRange() + { + return isset($this->date_time_range); + } + + public function clearDateTimeRange() + { + unset($this->date_time_range); + } + + /** + * Optional. If provided, only return ads that served within the given date + * range (inclusive). The date range must be within the last 30 days. If not + * provided, the date range will be the last 30 days. + * + * Generated from protobuf field .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setDateTimeRange($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->date_time_range = $var; + + return $this; + } + + /** + * Optional. If provided, restrict the search to AdReviewCenterAds associated + * with the text (including any text on the ad or in the destination URL). If + * more than one value is provided, the search will combine them in a logical + * AND. For example, ['car', 'blue'] will match ads that contain both "car" + * and "blue", but not an ad that only contains "car". + * + * Generated from protobuf field repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSearchText() + { + return $this->search_text; + } + + /** + * Optional. If provided, restrict the search to AdReviewCenterAds associated + * with the text (including any text on the ad or in the destination URL). If + * more than one value is provided, the search will combine them in a logical + * AND. For example, ['car', 'blue'] will match ads that contain both "car" + * and "blue", but not an ad that only contains "car". + * + * Generated from protobuf field repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSearchText($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->search_text = $arr; + + return $this; + } + + /** + * Optional. If provided, restrict the search to creatives belonging to one of + * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx + * buyer account IDs can be found via the ProgrammaticBuyerService. + * + * Generated from protobuf field repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBuyerAccountId() + { + return $this->buyer_account_id; + } + + /** + * Optional. If provided, restrict the search to creatives belonging to one of + * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx + * buyer account IDs can be found via the ProgrammaticBuyerService. + * + * Generated from protobuf field repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBuyerAccountId($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->buyer_account_id = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsResponse.php new file mode 100644 index 000000000000..d8d393fa5557 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsResponse.php @@ -0,0 +1,105 @@ +google.ads.admanager.v1.SearchAdReviewCenterAdsResponse + */ +class SearchAdReviewCenterAdsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The AdReviewCenterAds that match the search request. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + private $ad_review_center_ads; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\AdReviewCenterAd>|\Google\Protobuf\Internal\RepeatedField $ad_review_center_ads + * The AdReviewCenterAds that match the search request. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdService::initOnce(); + parent::__construct($data); + } + + /** + * The AdReviewCenterAds that match the search request. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdReviewCenterAds() + { + return $this->ad_review_center_ads; + } + + /** + * The AdReviewCenterAds that match the search request. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + * @param array<\Google\Ads\AdManager\V1\AdReviewCenterAd>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdReviewCenterAds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdReviewCenterAd::class); + $this->ad_review_center_ads = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Site.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Site.php new file mode 100644 index 000000000000..a93bd640ef59 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Site.php @@ -0,0 +1,291 @@ +google.ads.admanager.v1.Site + */ +class Site extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Site`. + * Format: `networks/{network_code}/sites/{site_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The URL of the Site. + * + * Generated from protobuf field optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $url = null; + /** + * Optional. The network code of the child if the Site is being managed for an + * MCM child network, or null if owned by this network. + * + * Generated from protobuf field optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $child_network_code = null; + /** + * Output only. Status of the review performed on the Site by Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $approval_status = null; + /** + * Output only. The latest Site approval status change time. + * + * Generated from protobuf field optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $approval_status_update_time = null; + /** + * Output only. Provides reasons for disapproving the Site. It is null when + * the Site is not disapproved. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $disapproval_reasons; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Site`. + * Format: `networks/{network_code}/sites/{site_id}` + * @type string $url + * Required. The URL of the Site. + * @type string $child_network_code + * Optional. The network code of the child if the Site is being managed for an + * MCM child network, or null if owned by this network. + * @type int $approval_status + * Output only. Status of the review performed on the Site by Google. + * @type \Google\Protobuf\Timestamp $approval_status_update_time + * Output only. The latest Site approval status change time. + * @type array<\Google\Ads\AdManager\V1\DisapprovalReason>|\Google\Protobuf\Internal\RepeatedField $disapproval_reasons + * Output only. Provides reasons for disapproving the Site. It is null when + * the Site is not disapproved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Site`. + * Format: `networks/{network_code}/sites/{site_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Site`. + * Format: `networks/{network_code}/sites/{site_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The URL of the Site. + * + * Generated from protobuf field optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUrl() + { + return isset($this->url) ? $this->url : ''; + } + + public function hasUrl() + { + return isset($this->url); + } + + public function clearUrl() + { + unset($this->url); + } + + /** + * Required. The URL of the Site. + * + * Generated from protobuf field optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * Optional. The network code of the child if the Site is being managed for an + * MCM child network, or null if owned by this network. + * + * Generated from protobuf field optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getChildNetworkCode() + { + return isset($this->child_network_code) ? $this->child_network_code : ''; + } + + public function hasChildNetworkCode() + { + return isset($this->child_network_code); + } + + public function clearChildNetworkCode() + { + unset($this->child_network_code); + } + + /** + * Optional. The network code of the child if the Site is being managed for an + * MCM child network, or null if owned by this network. + * + * Generated from protobuf field optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setChildNetworkCode($var) + { + GPBUtil::checkString($var, True); + $this->child_network_code = $var; + + return $this; + } + + /** + * Output only. Status of the review performed on the Site by Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getApprovalStatus() + { + return isset($this->approval_status) ? $this->approval_status : 0; + } + + public function hasApprovalStatus() + { + return isset($this->approval_status); + } + + public function clearApprovalStatus() + { + unset($this->approval_status); + } + + /** + * Output only. Status of the review performed on the Site by Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setApprovalStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\SiteApprovalStatusEnum\SiteApprovalStatus::class); + $this->approval_status = $var; + + return $this; + } + + /** + * Output only. The latest Site approval status change time. + * + * Generated from protobuf field optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getApprovalStatusUpdateTime() + { + return $this->approval_status_update_time; + } + + public function hasApprovalStatusUpdateTime() + { + return isset($this->approval_status_update_time); + } + + public function clearApprovalStatusUpdateTime() + { + unset($this->approval_status_update_time); + } + + /** + * Output only. The latest Site approval status change time. + * + * Generated from protobuf field optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setApprovalStatusUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->approval_status_update_time = $var; + + return $this; + } + + /** + * Output only. Provides reasons for disapproving the Site. It is null when + * the Site is not disapproved. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDisapprovalReasons() + { + return $this->disapproval_reasons; + } + + /** + * Output only. Provides reasons for disapproving the Site. It is null when + * the Site is not disapproved. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Ads\AdManager\V1\DisapprovalReason>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDisapprovalReasons($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DisapprovalReason::class); + $this->disapproval_reasons = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum.php new file mode 100644 index 000000000000..36763ecbc68c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.SiteApprovalStatusEnum + */ +class SiteApprovalStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php new file mode 100644 index 000000000000..83c72f140a8d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php @@ -0,0 +1,88 @@ +google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus + */ +class SiteApprovalStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum SITE_APPROVAL_STATUS_UNSPECIFIED = 0; + */ + const SITE_APPROVAL_STATUS_UNSPECIFIED = 0; + /** + * The site has been approved to serve ads. + * + * Generated from protobuf enum APPROVED = 1; + */ + const APPROVED = 1; + /** + * The site has been disapproved from serving ads. + * + * Generated from protobuf enum DISAPPROVED = 2; + */ + const DISAPPROVED = 2; + /** + * The default status with which a site is created. + * + * Generated from protobuf enum DRAFT = 3; + */ + const DRAFT = 3; + /** + * The site has been deactivated and is not serving ads due to dormancy. It + * must be resubmitted for approval. + * + * Generated from protobuf enum REQUIRES_REVIEW = 4; + */ + const REQUIRES_REVIEW = 4; + /** + * Once the site is submitted for approval, its status changes from draft to + * unchecked. It will be reviwed with an estimated turn-around time of 24h. + * Such a site cannot serve ads. + * + * Generated from protobuf enum UNCHECKED = 5; + */ + const UNCHECKED = 5; + + private static $valueToName = [ + self::SITE_APPROVAL_STATUS_UNSPECIFIED => 'SITE_APPROVAL_STATUS_UNSPECIFIED', + self::APPROVED => 'APPROVED', + self::DISAPPROVED => 'DISAPPROVED', + self::DRAFT => 'DRAFT', + self::REQUIRES_REVIEW => 'REQUIRES_REVIEW', + self::UNCHECKED => 'UNCHECKED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SiteApprovalStatus::class, \Google\Ads\AdManager\V1\SiteApprovalStatusEnum_SiteApprovalStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum.php new file mode 100644 index 000000000000..e23f34c3341b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.SiteDisapprovalReasonEnum + */ +class SiteDisapprovalReasonEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php new file mode 100644 index 000000000000..6312a4662195 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason + */ +class SiteDisapprovalReason +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum SITE_DISAPPROVAL_REASON_UNSPECIFIED = 0; + */ + const SITE_DISAPPROVAL_REASON_UNSPECIFIED = 0; + /** + * The site has content that violates policy. + * + * Generated from protobuf enum CONTENT = 1; + */ + const CONTENT = 1; + /** + * Generic error type. + * + * Generated from protobuf enum OTHER = 2; + */ + const OTHER = 2; + /** + * The parent must be an authorized seller of the child network's inventory. + * + * Generated from protobuf enum OWNERSHIP = 3; + */ + const OWNERSHIP = 3; + + private static $valueToName = [ + self::SITE_DISAPPROVAL_REASON_UNSPECIFIED => 'SITE_DISAPPROVAL_REASON_UNSPECIFIED', + self::CONTENT => 'CONTENT', + self::OTHER => 'OTHER', + self::OWNERSHIP => 'OWNERSHIP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SiteDisapprovalReason::class, \Google\Ads\AdManager\V1\SiteDisapprovalReasonEnum_SiteDisapprovalReason::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php new file mode 100644 index 000000000000..47651043c22f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php @@ -0,0 +1,147 @@ +google.ads.admanager.v1.Size + */ +class Size extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The width of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * + * Generated from protobuf field int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $width = 0; + /** + * Required. The height of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * + * Generated from protobuf field int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $height = 0; + /** + * Required. The SizeType of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * + * Generated from protobuf field .google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $size_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $width + * Required. The width of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * @type int $height + * Required. The height of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * @type int $size_type + * Required. The SizeType of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Size::initOnce(); + parent::__construct($data); + } + + /** + * Required. The width of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * + * Generated from protobuf field int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getWidth() + { + return $this->width; + } + + /** + * Required. The width of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * + * Generated from protobuf field int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setWidth($var) + { + GPBUtil::checkInt32($var); + $this->width = $var; + + return $this; + } + + /** + * Required. The height of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * + * Generated from protobuf field int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getHeight() + { + return $this->height; + } + + /** + * Required. The height of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * + * Generated from protobuf field int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setHeight($var) + { + GPBUtil::checkInt32($var); + $this->height = $var; + + return $this; + } + + /** + * Required. The SizeType of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * + * Generated from protobuf field .google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getSizeType() + { + return $this->size_type; + } + + /** + * Required. The SizeType of the Creative, + * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. + * + * Generated from protobuf field .google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setSizeType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\SizeTypeEnum\SizeType::class); + $this->size_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php new file mode 100644 index 000000000000..245c82dc7304 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.SizeTypeEnum + */ +class SizeTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SizeTypeEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php new file mode 100644 index 000000000000..0398dcae2c6c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php @@ -0,0 +1,105 @@ +google.ads.admanager.v1.SizeTypeEnum.SizeType + */ +class SizeType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum SIZE_TYPE_UNSPECIFIED = 0; + */ + const SIZE_TYPE_UNSPECIFIED = 0; + /** + * Dimension based size, an actual height and width in pixels. + * + * Generated from protobuf enum PIXEL = 1; + */ + const PIXEL = 1; + /** + * Size is expressed as a ratio. For example, 4:1 could be + * met by a 100 x 25 sized image. + * + * Generated from protobuf enum ASPECT_RATIO = 2; + */ + const ASPECT_RATIO = 2; + /** + * Out-of-page (Interstitial) size that is not related to the slot it is + * served. This must be used with 1x1 size. + * + * Generated from protobuf enum INTERSTITIAL = 3; + */ + const INTERSTITIAL = 3; + /** + * Size is ignored. This must be used with 1x1 + * size. + * + * Generated from protobuf enum IGNORED = 4; + */ + const IGNORED = 4; + /** + * Native size, which is a function of the how the client renders the + * creative. This must be used with 1x1 size. + * + * Generated from protobuf enum NATIVE = 5; + */ + const NATIVE = 5; + /** + * Fluid size. Automatically sizes the ad by filling the width of the + * enclosing column and adjusting the height as appropriate. This must be + * used with 1x1 size. + * + * Generated from protobuf enum FLUID = 6; + */ + const FLUID = 6; + /** + * Audio size. Used with audio ads. This must be used with 1x1 size. + * + * Generated from protobuf enum AUDIO = 7; + */ + const AUDIO = 7; + + private static $valueToName = [ + self::SIZE_TYPE_UNSPECIFIED => 'SIZE_TYPE_UNSPECIFIED', + self::PIXEL => 'PIXEL', + self::ASPECT_RATIO => 'ASPECT_RATIO', + self::INTERSTITIAL => 'INTERSTITIAL', + self::IGNORED => 'IGNORED', + self::NATIVE => 'NATIVE', + self::FLUID => 'FLUID', + self::AUDIO => 'AUDIO', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SizeType::class, \Google\Ads\AdManager\V1\SizeTypeEnum_SizeType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php new file mode 100644 index 000000000000..40e9ca0edd29 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.SmartSizeModeEnum + */ +class SmartSizeModeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php new file mode 100644 index 000000000000..8f4f281107ee --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php @@ -0,0 +1,72 @@ +google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode + */ +class SmartSizeMode +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum SMART_SIZE_MODE_UNSPECIFIED = 0; + */ + const SMART_SIZE_MODE_UNSPECIFIED = 0; + /** + * Fixed size mode (default). + * + * Generated from protobuf enum NONE = 1; + */ + const NONE = 1; + /** + * The height is fixed for the request, the width is a range. + * + * Generated from protobuf enum SMART_BANNER = 2; + */ + const SMART_BANNER = 2; + /** + * Height and width are ranges. + * + * Generated from protobuf enum DYNAMIC_SIZE = 3; + */ + const DYNAMIC_SIZE = 3; + + private static $valueToName = [ + self::SMART_SIZE_MODE_UNSPECIFIED => 'SMART_SIZE_MODE_UNSPECIFIED', + self::NONE => 'NONE', + self::SMART_BANNER => 'SMART_BANNER', + self::DYNAMIC_SIZE => 'DYNAMIC_SIZE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SmartSizeMode::class, \Google\Ads\AdManager\V1\SmartSizeModeEnum_SmartSizeMode::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php new file mode 100644 index 000000000000..a8637484ab5b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.TargetWindowEnum + */ +class TargetWindowEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php new file mode 100644 index 000000000000..34e9c34ea8c0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php @@ -0,0 +1,65 @@ +google.ads.admanager.v1.TargetWindowEnum.TargetWindow + */ +class TargetWindow +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TARGET_WINDOW_UNSPECIFIED = 0; + */ + const TARGET_WINDOW_UNSPECIFIED = 0; + /** + * Specifies that the link should open in the full body of the page. + * + * Generated from protobuf enum TOP = 1; + */ + const TOP = 1; + /** + * Specifies that the link should open in a new window. + * + * Generated from protobuf enum BLANK = 2; + */ + const BLANK = 2; + + private static $valueToName = [ + self::TARGET_WINDOW_UNSPECIFIED => 'TARGET_WINDOW_UNSPECIFIED', + self::TOP => 'TOP', + self::BLANK => 'BLANK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TargetWindow::class, \Google\Ads\AdManager\V1\TargetWindowEnum_TargetWindow::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum.php new file mode 100644 index 000000000000..f504eceb4e4a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.TargetedVideoBumperTypeEnum + */ +class TargetedVideoBumperTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TargetedVideoBumperTypeEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum/TargetedVideoBumperType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum/TargetedVideoBumperType.php new file mode 100644 index 000000000000..74713d2f3cd4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum/TargetedVideoBumperType.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType + */ +class TargetedVideoBumperType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED = 0; + */ + const TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED = 0; + /** + * Represents the bumper position after the ad pod. + * + * Generated from protobuf enum AFTER = 1; + */ + const AFTER = 1; + /** + * Represents the bumper position before the ad pod. + * + * Generated from protobuf enum BEFORE = 2; + */ + const BEFORE = 2; + + private static $valueToName = [ + self::TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED => 'TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED', + self::AFTER => 'AFTER', + self::BEFORE => 'BEFORE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TargetedVideoBumperType::class, \Google\Ads\AdManager\V1\TargetedVideoBumperTypeEnum_TargetedVideoBumperType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Targeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Targeting.php new file mode 100644 index 000000000000..a748cbe66f7a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Targeting.php @@ -0,0 +1,477 @@ +google.ads.admanager.v1.Targeting + */ +class Targeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Used to target/exclude various geo targets. + * + * Generated from protobuf field .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $geo_targeting = null; + /** + * Optional. Used to target various technology targeting dimensions. + * + * Generated from protobuf field .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $technology_targeting = null; + /** + * Optional. Used to target/exclude various ad units and/or placements. + * + * Generated from protobuf field .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $inventory_targeting = null; + /** + * Optional. Used to target specific request platforms. + * + * Generated from protobuf field .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_platform_targeting = null; + /** + * Optional. Used to target key/values, audience segments, and/or CMS + * metadata. + * + * Generated from protobuf field .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $custom_targeting = null; + /** + * Optional. Used to target user domains. + * + * Generated from protobuf field .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $user_domain_targeting = null; + /** + * Optional. Used to target video positions. + * + * Generated from protobuf field .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $video_position_targeting = null; + /** + * Optional. Used to target data segments. + * + * Generated from protobuf field .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_segment_targeting = null; + /** + * Optional. Used to target content. + * + * Generated from protobuf field .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $content_targeting = null; + /** + * Optional. Used to target mobile applications. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $mobile_application_targeting = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\GeoTargeting $geo_targeting + * Optional. Used to target/exclude various geo targets. + * @type \Google\Ads\AdManager\V1\TechnologyTargeting $technology_targeting + * Optional. Used to target various technology targeting dimensions. + * @type \Google\Ads\AdManager\V1\InventoryTargeting $inventory_targeting + * Optional. Used to target/exclude various ad units and/or placements. + * @type \Google\Ads\AdManager\V1\RequestPlatformTargeting $request_platform_targeting + * Optional. Used to target specific request platforms. + * @type \Google\Ads\AdManager\V1\CustomTargeting $custom_targeting + * Optional. Used to target key/values, audience segments, and/or CMS + * metadata. + * @type \Google\Ads\AdManager\V1\UserDomainTargeting $user_domain_targeting + * Optional. Used to target user domains. + * @type \Google\Ads\AdManager\V1\VideoPositionTargeting $video_position_targeting + * Optional. Used to target video positions. + * @type \Google\Ads\AdManager\V1\DataSegmentTargeting $data_segment_targeting + * Optional. Used to target data segments. + * @type \Google\Ads\AdManager\V1\ContentTargeting $content_targeting + * Optional. Used to target content. + * @type \Google\Ads\AdManager\V1\MobileApplicationTargeting $mobile_application_targeting + * Optional. Used to target mobile applications. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Used to target/exclude various geo targets. + * + * Generated from protobuf field .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\GeoTargeting|null + */ + public function getGeoTargeting() + { + return $this->geo_targeting; + } + + public function hasGeoTargeting() + { + return isset($this->geo_targeting); + } + + public function clearGeoTargeting() + { + unset($this->geo_targeting); + } + + /** + * Optional. Used to target/exclude various geo targets. + * + * Generated from protobuf field .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\GeoTargeting $var + * @return $this + */ + public function setGeoTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\GeoTargeting::class); + $this->geo_targeting = $var; + + return $this; + } + + /** + * Optional. Used to target various technology targeting dimensions. + * + * Generated from protobuf field .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\TechnologyTargeting|null + */ + public function getTechnologyTargeting() + { + return $this->technology_targeting; + } + + public function hasTechnologyTargeting() + { + return isset($this->technology_targeting); + } + + public function clearTechnologyTargeting() + { + unset($this->technology_targeting); + } + + /** + * Optional. Used to target various technology targeting dimensions. + * + * Generated from protobuf field .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\TechnologyTargeting $var + * @return $this + */ + public function setTechnologyTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\TechnologyTargeting::class); + $this->technology_targeting = $var; + + return $this; + } + + /** + * Optional. Used to target/exclude various ad units and/or placements. + * + * Generated from protobuf field .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\InventoryTargeting|null + */ + public function getInventoryTargeting() + { + return $this->inventory_targeting; + } + + public function hasInventoryTargeting() + { + return isset($this->inventory_targeting); + } + + public function clearInventoryTargeting() + { + unset($this->inventory_targeting); + } + + /** + * Optional. Used to target/exclude various ad units and/or placements. + * + * Generated from protobuf field .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\InventoryTargeting $var + * @return $this + */ + public function setInventoryTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\InventoryTargeting::class); + $this->inventory_targeting = $var; + + return $this; + } + + /** + * Optional. Used to target specific request platforms. + * + * Generated from protobuf field .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\RequestPlatformTargeting|null + */ + public function getRequestPlatformTargeting() + { + return $this->request_platform_targeting; + } + + public function hasRequestPlatformTargeting() + { + return isset($this->request_platform_targeting); + } + + public function clearRequestPlatformTargeting() + { + unset($this->request_platform_targeting); + } + + /** + * Optional. Used to target specific request platforms. + * + * Generated from protobuf field .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\RequestPlatformTargeting $var + * @return $this + */ + public function setRequestPlatformTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\RequestPlatformTargeting::class); + $this->request_platform_targeting = $var; + + return $this; + } + + /** + * Optional. Used to target key/values, audience segments, and/or CMS + * metadata. + * + * Generated from protobuf field .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\CustomTargeting|null + */ + public function getCustomTargeting() + { + return $this->custom_targeting; + } + + public function hasCustomTargeting() + { + return isset($this->custom_targeting); + } + + public function clearCustomTargeting() + { + unset($this->custom_targeting); + } + + /** + * Optional. Used to target key/values, audience segments, and/or CMS + * metadata. + * + * Generated from protobuf field .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\CustomTargeting $var + * @return $this + */ + public function setCustomTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CustomTargeting::class); + $this->custom_targeting = $var; + + return $this; + } + + /** + * Optional. Used to target user domains. + * + * Generated from protobuf field .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\UserDomainTargeting|null + */ + public function getUserDomainTargeting() + { + return $this->user_domain_targeting; + } + + public function hasUserDomainTargeting() + { + return isset($this->user_domain_targeting); + } + + public function clearUserDomainTargeting() + { + unset($this->user_domain_targeting); + } + + /** + * Optional. Used to target user domains. + * + * Generated from protobuf field .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\UserDomainTargeting $var + * @return $this + */ + public function setUserDomainTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\UserDomainTargeting::class); + $this->user_domain_targeting = $var; + + return $this; + } + + /** + * Optional. Used to target video positions. + * + * Generated from protobuf field .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\VideoPositionTargeting|null + */ + public function getVideoPositionTargeting() + { + return $this->video_position_targeting; + } + + public function hasVideoPositionTargeting() + { + return isset($this->video_position_targeting); + } + + public function clearVideoPositionTargeting() + { + unset($this->video_position_targeting); + } + + /** + * Optional. Used to target video positions. + * + * Generated from protobuf field .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\VideoPositionTargeting $var + * @return $this + */ + public function setVideoPositionTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\VideoPositionTargeting::class); + $this->video_position_targeting = $var; + + return $this; + } + + /** + * Optional. Used to target data segments. + * + * Generated from protobuf field .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\DataSegmentTargeting|null + */ + public function getDataSegmentTargeting() + { + return $this->data_segment_targeting; + } + + public function hasDataSegmentTargeting() + { + return isset($this->data_segment_targeting); + } + + public function clearDataSegmentTargeting() + { + unset($this->data_segment_targeting); + } + + /** + * Optional. Used to target data segments. + * + * Generated from protobuf field .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\DataSegmentTargeting $var + * @return $this + */ + public function setDataSegmentTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DataSegmentTargeting::class); + $this->data_segment_targeting = $var; + + return $this; + } + + /** + * Optional. Used to target content. + * + * Generated from protobuf field .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\ContentTargeting|null + */ + public function getContentTargeting() + { + return $this->content_targeting; + } + + public function hasContentTargeting() + { + return isset($this->content_targeting); + } + + public function clearContentTargeting() + { + unset($this->content_targeting); + } + + /** + * Optional. Used to target content. + * + * Generated from protobuf field .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\ContentTargeting $var + * @return $this + */ + public function setContentTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ContentTargeting::class); + $this->content_targeting = $var; + + return $this; + } + + /** + * Optional. Used to target mobile applications. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\MobileApplicationTargeting|null + */ + public function getMobileApplicationTargeting() + { + return $this->mobile_application_targeting; + } + + public function hasMobileApplicationTargeting() + { + return isset($this->mobile_application_targeting); + } + + public function clearMobileApplicationTargeting() + { + unset($this->mobile_application_targeting); + } + + /** + * Optional. Used to target mobile applications. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\MobileApplicationTargeting $var + * @return $this + */ + public function setMobileApplicationTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\MobileApplicationTargeting::class); + $this->mobile_application_targeting = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php new file mode 100644 index 000000000000..410e42520a61 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php @@ -0,0 +1,367 @@ +google.ads.admanager.v1.TaxonomyCategory + */ +class TaxonomyCategory extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `TaxonomyCategory`. + * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. `TaxonomyCategory` ID. + * + * Generated from protobuf field optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $taxonomy_category_id = null; + /** + * Output only. Display name of the `TaxonomyCategory`. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = null; + /** + * Output only. Whether this `TaxonomyCategory` only serves to group its + * children. + * + * Generated from protobuf field optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $grouping_only = null; + /** + * Output only. The ID of the parent category this `TaxonomyCategory` descends + * from. + * + * Generated from protobuf field optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $parent_taxonomy_category_id = null; + /** + * Output only. The taxonomy that this `TaxonomyCategory` belongs to. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $taxonomy_type = null; + /** + * Output only. The list of names of the ancestors of this `TaxonomyCategory`. + * + * Generated from protobuf field repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $ancestor_names; + /** + * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. + * + * Generated from protobuf field repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $ancestor_taxonomy_category_ids; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `TaxonomyCategory`. + * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` + * @type int|string $taxonomy_category_id + * Output only. `TaxonomyCategory` ID. + * @type string $display_name + * Output only. Display name of the `TaxonomyCategory`. + * @type bool $grouping_only + * Output only. Whether this `TaxonomyCategory` only serves to group its + * children. + * @type int|string $parent_taxonomy_category_id + * Output only. The ID of the parent category this `TaxonomyCategory` descends + * from. + * @type int $taxonomy_type + * Output only. The taxonomy that this `TaxonomyCategory` belongs to. + * @type array|\Google\Protobuf\Internal\RepeatedField $ancestor_names + * Output only. The list of names of the ancestors of this `TaxonomyCategory`. + * @type array|array|\Google\Protobuf\Internal\RepeatedField $ancestor_taxonomy_category_ids + * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `TaxonomyCategory`. + * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `TaxonomyCategory`. + * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. `TaxonomyCategory` ID. + * + * Generated from protobuf field optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTaxonomyCategoryId() + { + return isset($this->taxonomy_category_id) ? $this->taxonomy_category_id : 0; + } + + public function hasTaxonomyCategoryId() + { + return isset($this->taxonomy_category_id); + } + + public function clearTaxonomyCategoryId() + { + unset($this->taxonomy_category_id); + } + + /** + * Output only. `TaxonomyCategory` ID. + * + * Generated from protobuf field optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTaxonomyCategoryId($var) + { + GPBUtil::checkInt64($var); + $this->taxonomy_category_id = $var; + + return $this; + } + + /** + * Output only. Display name of the `TaxonomyCategory`. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Output only. Display name of the `TaxonomyCategory`. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Whether this `TaxonomyCategory` only serves to group its + * children. + * + * Generated from protobuf field optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getGroupingOnly() + { + return isset($this->grouping_only) ? $this->grouping_only : false; + } + + public function hasGroupingOnly() + { + return isset($this->grouping_only); + } + + public function clearGroupingOnly() + { + unset($this->grouping_only); + } + + /** + * Output only. Whether this `TaxonomyCategory` only serves to group its + * children. + * + * Generated from protobuf field optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setGroupingOnly($var) + { + GPBUtil::checkBool($var); + $this->grouping_only = $var; + + return $this; + } + + /** + * Output only. The ID of the parent category this `TaxonomyCategory` descends + * from. + * + * Generated from protobuf field optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getParentTaxonomyCategoryId() + { + return isset($this->parent_taxonomy_category_id) ? $this->parent_taxonomy_category_id : 0; + } + + public function hasParentTaxonomyCategoryId() + { + return isset($this->parent_taxonomy_category_id); + } + + public function clearParentTaxonomyCategoryId() + { + unset($this->parent_taxonomy_category_id); + } + + /** + * Output only. The ID of the parent category this `TaxonomyCategory` descends + * from. + * + * Generated from protobuf field optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setParentTaxonomyCategoryId($var) + { + GPBUtil::checkInt64($var); + $this->parent_taxonomy_category_id = $var; + + return $this; + } + + /** + * Output only. The taxonomy that this `TaxonomyCategory` belongs to. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTaxonomyType() + { + return isset($this->taxonomy_type) ? $this->taxonomy_type : 0; + } + + public function hasTaxonomyType() + { + return isset($this->taxonomy_type); + } + + public function clearTaxonomyType() + { + unset($this->taxonomy_type); + } + + /** + * Output only. The taxonomy that this `TaxonomyCategory` belongs to. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTaxonomyType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TaxonomyTypeEnum\TaxonomyType::class); + $this->taxonomy_type = $var; + + return $this; + } + + /** + * Output only. The list of names of the ancestors of this `TaxonomyCategory`. + * + * Generated from protobuf field repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAncestorNames() + { + return $this->ancestor_names; + } + + /** + * Output only. The list of names of the ancestors of this `TaxonomyCategory`. + * + * Generated from protobuf field repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAncestorNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->ancestor_names = $arr; + + return $this; + } + + /** + * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. + * + * Generated from protobuf field repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAncestorTaxonomyCategoryIds() + { + return $this->ancestor_taxonomy_category_ids; + } + + /** + * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. + * + * Generated from protobuf field repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAncestorTaxonomyCategoryIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->ancestor_taxonomy_category_ids = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php new file mode 100644 index 000000000000..0eb538bca072 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.TaxonomyTypeEnum + */ +class TaxonomyTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyTypeEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php new file mode 100644 index 000000000000..22c497f2fc63 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php @@ -0,0 +1,93 @@ +google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType + */ +class TaxonomyType +{ + /** + * Unspecified/not present + * + * Generated from protobuf enum TAXONOMY_TYPE_UNSPECIFIED = 0; + */ + const TAXONOMY_TYPE_UNSPECIFIED = 0; + /** + * The IAB Audience Taxonomy v1.1. + * + * Generated from protobuf enum TAXONOMY_IAB_AUDIENCE_1_1 = 3; + */ + const TAXONOMY_IAB_AUDIENCE_1_1 = 3; + /** + * The IAB Content Taxonomy v1.0. + * + * Generated from protobuf enum TAXONOMY_IAB_CONTENT_1_0 = 8; + */ + const TAXONOMY_IAB_CONTENT_1_0 = 8; + /** + * The IAB Content Taxonomy v2.1. + * + * Generated from protobuf enum TAXONOMY_IAB_CONTENT_2_1 = 4; + */ + const TAXONOMY_IAB_CONTENT_2_1 = 4; + /** + * The IAB Content Taxonomy v2.2. + * + * Generated from protobuf enum TAXONOMY_IAB_CONTENT_2_2 = 6; + */ + const TAXONOMY_IAB_CONTENT_2_2 = 6; + /** + * The IAB Content Taxonomy v3.0. + * + * Generated from protobuf enum TAXONOMY_IAB_CONTENT_3_0 = 5; + */ + const TAXONOMY_IAB_CONTENT_3_0 = 5; + /** + * The PPS structured video signals taxonomy. + * + * Generated from protobuf enum TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0 = 7; + */ + const TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0 = 7; + + private static $valueToName = [ + self::TAXONOMY_TYPE_UNSPECIFIED => 'TAXONOMY_TYPE_UNSPECIFIED', + self::TAXONOMY_IAB_AUDIENCE_1_1 => 'TAXONOMY_IAB_AUDIENCE_1_1', + self::TAXONOMY_IAB_CONTENT_1_0 => 'TAXONOMY_IAB_CONTENT_1_0', + self::TAXONOMY_IAB_CONTENT_2_1 => 'TAXONOMY_IAB_CONTENT_2_1', + self::TAXONOMY_IAB_CONTENT_2_2 => 'TAXONOMY_IAB_CONTENT_2_2', + self::TAXONOMY_IAB_CONTENT_3_0 => 'TAXONOMY_IAB_CONTENT_3_0', + self::TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0 => 'TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TaxonomyType::class, \Google\Ads\AdManager\V1\TaxonomyTypeEnum_TaxonomyType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php new file mode 100644 index 000000000000..a40883cd942e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php @@ -0,0 +1,363 @@ +google.ads.admanager.v1.Team + */ +class Team extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `Team`. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The name of the Team. This value has a maximum length of 127 + * characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. The description of the Team. This value has a maximum length of + * 255 characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = null; + /** + * Output only. The status of the Team. This value determines the visibility + * of the team in the UI. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Optional. Whether or not users on this team have access to all companies. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with a Company. + * + * Generated from protobuf field optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $all_companies_access = null; + /** + * Optional. Whether or not users on this team have access to all inventory. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with an AdUnit. + * + * Generated from protobuf field optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $all_inventory_access = null; + /** + * Optional. The default access to orders for users on this team. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $access_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `Team`. + * Format: `networks/{network_code}/teams/{team_id}` + * @type string $display_name + * Required. The name of the Team. This value has a maximum length of 127 + * characters. + * @type string $description + * Optional. The description of the Team. This value has a maximum length of + * 255 characters. + * @type int $status + * Output only. The status of the Team. This value determines the visibility + * of the team in the UI. + * @type bool $all_companies_access + * Optional. Whether or not users on this team have access to all companies. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with a Company. + * @type bool $all_inventory_access + * Optional. Whether or not users on this team have access to all inventory. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with an AdUnit. + * @type int $access_type + * Optional. The default access to orders for users on this team. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `Team`. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `Team`. + * Format: `networks/{network_code}/teams/{team_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The name of the Team. This value has a maximum length of 127 + * characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The name of the Team. This value has a maximum length of 127 + * characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The description of the Team. This value has a maximum length of + * 255 characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Optional. The description of the Team. This value has a maximum length of + * 255 characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. The status of the Team. This value determines the visibility + * of the team in the UI. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the Team. This value determines the visibility + * of the team in the UI. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TeamStatusEnum\TeamStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. Whether or not users on this team have access to all companies. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with a Company. + * + * Generated from protobuf field optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllCompaniesAccess() + { + return isset($this->all_companies_access) ? $this->all_companies_access : false; + } + + public function hasAllCompaniesAccess() + { + return isset($this->all_companies_access); + } + + public function clearAllCompaniesAccess() + { + unset($this->all_companies_access); + } + + /** + * Optional. Whether or not users on this team have access to all companies. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with a Company. + * + * Generated from protobuf field optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllCompaniesAccess($var) + { + GPBUtil::checkBool($var); + $this->all_companies_access = $var; + + return $this; + } + + /** + * Optional. Whether or not users on this team have access to all inventory. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with an AdUnit. + * + * Generated from protobuf field optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllInventoryAccess() + { + return isset($this->all_inventory_access) ? $this->all_inventory_access : false; + } + + public function hasAllInventoryAccess() + { + return isset($this->all_inventory_access); + } + + public function clearAllInventoryAccess() + { + unset($this->all_inventory_access); + } + + /** + * Optional. Whether or not users on this team have access to all inventory. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with an AdUnit. + * + * Generated from protobuf field optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllInventoryAccess($var) + { + GPBUtil::checkBool($var); + $this->all_inventory_access = $var; + + return $this; + } + + /** + * Optional. The default access to orders for users on this team. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getAccessType() + { + return isset($this->access_type) ? $this->access_type : 0; + } + + public function hasAccessType() + { + return isset($this->access_type); + } + + public function clearAccessType() + { + unset($this->access_type); + } + + /** + * Optional. The default access to orders for users on this team. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setAccessType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TeamAccessTypeEnum\TeamAccessType::class); + $this->access_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum.php new file mode 100644 index 000000000000..c8d713303e5c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.TeamAccessTypeEnum + */ +class TeamAccessTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum/TeamAccessType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum/TeamAccessType.php new file mode 100644 index 000000000000..2a6d8a32c9c1 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum/TeamAccessType.php @@ -0,0 +1,73 @@ +google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType + */ +class TeamAccessType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TEAM_ACCESS_TYPE_UNSPECIFIED = 0; + */ + const TEAM_ACCESS_TYPE_UNSPECIFIED = 0; + /** + * The level of access in which team members can't view or edit a team's + * orders. + * + * Generated from protobuf enum NONE = 1; + */ + const NONE = 1; + /** + * The level of access in which team members can only view a team's orders. + * + * Generated from protobuf enum READ_ONLY = 2; + */ + const READ_ONLY = 2; + /** + * The level of access in which team members can view and edit a team's + * orders. + * + * Generated from protobuf enum READ_WRITE = 3; + */ + const READ_WRITE = 3; + + private static $valueToName = [ + self::TEAM_ACCESS_TYPE_UNSPECIFIED => 'TEAM_ACCESS_TYPE_UNSPECIFIED', + self::NONE => 'NONE', + self::READ_ONLY => 'READ_ONLY', + self::READ_WRITE => 'READ_WRITE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TeamAccessType::class, \Google\Ads\AdManager\V1\TeamAccessTypeEnum_TeamAccessType::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum.php new file mode 100644 index 000000000000..1f4120cc50b4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.TeamStatusEnum + */ +class TeamStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum/TeamStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum/TeamStatus.php new file mode 100644 index 000000000000..51cee4613d62 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum/TeamStatus.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.TeamStatusEnum.TeamStatus + */ +class TeamStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TEAM_STATUS_UNSPECIFIED = 0; + */ + const TEAM_STATUS_UNSPECIFIED = 0; + /** + * The status of an active team. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The status of an inactive team. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + + private static $valueToName = [ + self::TEAM_STATUS_UNSPECIFIED => 'TEAM_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TeamStatus::class, \Google\Ads\AdManager\V1\TeamStatusEnum_TeamStatus::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TechnologyTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TechnologyTargeting.php new file mode 100644 index 000000000000..fdb77af49595 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TechnologyTargeting.php @@ -0,0 +1,386 @@ +google.ads.admanager.v1.TechnologyTargeting + */ +class TechnologyTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Bandwidth targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $bandwidth_targeting = null; + /** + * Optional. Browser targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $browser_targeting = null; + /** + * Optional. Browser language targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $browser_language_targeting = null; + /** + * Optional. Device capability targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $device_capability_targeting = null; + /** + * Optional. Device category targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $device_category_targeting = null; + /** + * Optional. Device manufacturer targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $device_manufacturer_targeting = null; + /** + * Optional. Mobile carrier targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $mobile_carrier_targeting = null; + /** + * Optional. Operating system targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $operating_system_targeting = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\BandwidthTargeting $bandwidth_targeting + * Optional. Bandwidth targeting dimension. + * @type \Google\Ads\AdManager\V1\BrowserTargeting $browser_targeting + * Optional. Browser targeting dimension. + * @type \Google\Ads\AdManager\V1\BrowserLanguageTargeting $browser_language_targeting + * Optional. Browser language targeting dimension. + * @type \Google\Ads\AdManager\V1\DeviceCapabilityTargeting $device_capability_targeting + * Optional. Device capability targeting dimension. + * @type \Google\Ads\AdManager\V1\DeviceCategoryTargeting $device_category_targeting + * Optional. Device category targeting dimension. + * @type \Google\Ads\AdManager\V1\DeviceManufacturerTargeting $device_manufacturer_targeting + * Optional. Device manufacturer targeting dimension. + * @type \Google\Ads\AdManager\V1\MobileCarrierTargeting $mobile_carrier_targeting + * Optional. Mobile carrier targeting dimension. + * @type \Google\Ads\AdManager\V1\OperatingSystemTargeting $operating_system_targeting + * Optional. Operating system targeting dimension. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Bandwidth targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\BandwidthTargeting|null + */ + public function getBandwidthTargeting() + { + return $this->bandwidth_targeting; + } + + public function hasBandwidthTargeting() + { + return isset($this->bandwidth_targeting); + } + + public function clearBandwidthTargeting() + { + unset($this->bandwidth_targeting); + } + + /** + * Optional. Bandwidth targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\BandwidthTargeting $var + * @return $this + */ + public function setBandwidthTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\BandwidthTargeting::class); + $this->bandwidth_targeting = $var; + + return $this; + } + + /** + * Optional. Browser targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\BrowserTargeting|null + */ + public function getBrowserTargeting() + { + return $this->browser_targeting; + } + + public function hasBrowserTargeting() + { + return isset($this->browser_targeting); + } + + public function clearBrowserTargeting() + { + unset($this->browser_targeting); + } + + /** + * Optional. Browser targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\BrowserTargeting $var + * @return $this + */ + public function setBrowserTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\BrowserTargeting::class); + $this->browser_targeting = $var; + + return $this; + } + + /** + * Optional. Browser language targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\BrowserLanguageTargeting|null + */ + public function getBrowserLanguageTargeting() + { + return $this->browser_language_targeting; + } + + public function hasBrowserLanguageTargeting() + { + return isset($this->browser_language_targeting); + } + + public function clearBrowserLanguageTargeting() + { + unset($this->browser_language_targeting); + } + + /** + * Optional. Browser language targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\BrowserLanguageTargeting $var + * @return $this + */ + public function setBrowserLanguageTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\BrowserLanguageTargeting::class); + $this->browser_language_targeting = $var; + + return $this; + } + + /** + * Optional. Device capability targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\DeviceCapabilityTargeting|null + */ + public function getDeviceCapabilityTargeting() + { + return $this->device_capability_targeting; + } + + public function hasDeviceCapabilityTargeting() + { + return isset($this->device_capability_targeting); + } + + public function clearDeviceCapabilityTargeting() + { + unset($this->device_capability_targeting); + } + + /** + * Optional. Device capability targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\DeviceCapabilityTargeting $var + * @return $this + */ + public function setDeviceCapabilityTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DeviceCapabilityTargeting::class); + $this->device_capability_targeting = $var; + + return $this; + } + + /** + * Optional. Device category targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\DeviceCategoryTargeting|null + */ + public function getDeviceCategoryTargeting() + { + return $this->device_category_targeting; + } + + public function hasDeviceCategoryTargeting() + { + return isset($this->device_category_targeting); + } + + public function clearDeviceCategoryTargeting() + { + unset($this->device_category_targeting); + } + + /** + * Optional. Device category targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\DeviceCategoryTargeting $var + * @return $this + */ + public function setDeviceCategoryTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DeviceCategoryTargeting::class); + $this->device_category_targeting = $var; + + return $this; + } + + /** + * Optional. Device manufacturer targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\DeviceManufacturerTargeting|null + */ + public function getDeviceManufacturerTargeting() + { + return $this->device_manufacturer_targeting; + } + + public function hasDeviceManufacturerTargeting() + { + return isset($this->device_manufacturer_targeting); + } + + public function clearDeviceManufacturerTargeting() + { + unset($this->device_manufacturer_targeting); + } + + /** + * Optional. Device manufacturer targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\DeviceManufacturerTargeting $var + * @return $this + */ + public function setDeviceManufacturerTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DeviceManufacturerTargeting::class); + $this->device_manufacturer_targeting = $var; + + return $this; + } + + /** + * Optional. Mobile carrier targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\MobileCarrierTargeting|null + */ + public function getMobileCarrierTargeting() + { + return $this->mobile_carrier_targeting; + } + + public function hasMobileCarrierTargeting() + { + return isset($this->mobile_carrier_targeting); + } + + public function clearMobileCarrierTargeting() + { + unset($this->mobile_carrier_targeting); + } + + /** + * Optional. Mobile carrier targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\MobileCarrierTargeting $var + * @return $this + */ + public function setMobileCarrierTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\MobileCarrierTargeting::class); + $this->mobile_carrier_targeting = $var; + + return $this; + } + + /** + * Optional. Operating system targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\OperatingSystemTargeting|null + */ + public function getOperatingSystemTargeting() + { + return $this->operating_system_targeting; + } + + public function hasOperatingSystemTargeting() + { + return isset($this->operating_system_targeting); + } + + public function clearOperatingSystemTargeting() + { + unset($this->operating_system_targeting); + } + + /** + * Optional. Operating system targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\OperatingSystemTargeting $var + * @return $this + */ + public function setOperatingSystemTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\OperatingSystemTargeting::class); + $this->operating_system_targeting = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php new file mode 100644 index 000000000000..22d5fc47f884 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.TimeUnitEnum + */ +class TimeUnitEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TimeUnitEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php new file mode 100644 index 000000000000..0572d6d0dd7e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php @@ -0,0 +1,107 @@ +google.ads.admanager.v1.TimeUnitEnum.TimeUnit + */ +class TimeUnit +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TIME_UNIT_UNSPECIFIED = 0; + */ + const TIME_UNIT_UNSPECIFIED = 0; + /** + * Minute + * + * Generated from protobuf enum MINUTE = 1; + */ + const MINUTE = 1; + /** + * Hour + * + * Generated from protobuf enum HOUR = 2; + */ + const HOUR = 2; + /** + * Day + * + * Generated from protobuf enum DAY = 3; + */ + const DAY = 3; + /** + * Week + * + * Generated from protobuf enum WEEK = 4; + */ + const WEEK = 4; + /** + * Month + * + * Generated from protobuf enum MONTH = 5; + */ + const MONTH = 5; + /** + * Lifetime + * + * Generated from protobuf enum LIFETIME = 6; + */ + const LIFETIME = 6; + /** + * Per pod of ads in a video stream. Only valid for entities in a + * VIDEO_PLAYER environment. + * + * Generated from protobuf enum POD = 7; + */ + const POD = 7; + /** + * Per video stream. Only valid for entities in a VIDEO_PLAYER environment. + * + * Generated from protobuf enum STREAM = 8; + */ + const STREAM = 8; + + private static $valueToName = [ + self::TIME_UNIT_UNSPECIFIED => 'TIME_UNIT_UNSPECIFIED', + self::MINUTE => 'MINUTE', + self::HOUR => 'HOUR', + self::DAY => 'DAY', + self::WEEK => 'WEEK', + self::MONTH => 'MONTH', + self::LIFETIME => 'LIFETIME', + self::POD => 'POD', + self::STREAM => 'STREAM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TimeUnit::class, \Google\Ads\AdManager\V1\TimeUnitEnum_TimeUnit::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateAdBreakRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateAdBreakRequest.php new file mode 100644 index 000000000000..a68439e03955 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateAdBreakRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.UpdateAdBreakRequest + */ +class UpdateAdBreakRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `AdBreak` to update. + * The `AdBreak`'s `name` is used to identify the `AdBreak` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ad_break = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\AdBreak $adBreak Required. The `AdBreak` to update. + * + * The `AdBreak`'s `name` is used to identify the `AdBreak` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateAdBreakRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\AdBreak $adBreak, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setAdBreak($adBreak) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\AdBreak $ad_break + * Required. The `AdBreak` to update. + * The `AdBreak`'s `name` is used to identify the `AdBreak` to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `AdBreak` to update. + * The `AdBreak`'s `name` is used to identify the `AdBreak` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\AdBreak|null + */ + public function getAdBreak() + { + return $this->ad_break; + } + + public function hasAdBreak() + { + return isset($this->ad_break); + } + + public function clearAdBreak() + { + unset($this->ad_break); + } + + /** + * Required. The `AdBreak` to update. + * The `AdBreak`'s `name` is used to identify the `AdBreak` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\AdBreak $var + * @return $this + */ + public function setAdBreak($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\AdBreak::class); + $this->ad_break = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateContactRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateContactRequest.php new file mode 100644 index 000000000000..e7e0c5edc59b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateContactRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.UpdateContactRequest + */ +class UpdateContactRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `Contact` to update. + * The `Contact`'s `name` is used to identify the `Contact` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $contact = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\Contact $contact Required. The `Contact` to update. + * + * The `Contact`'s `name` is used to identify the `Contact` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateContactRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\Contact $contact, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setContact($contact) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Contact $contact + * Required. The `Contact` to update. + * The `Contact`'s `name` is used to identify the `Contact` to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ContactService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `Contact` to update. + * The `Contact`'s `name` is used to identify the `Contact` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Contact|null + */ + public function getContact() + { + return $this->contact; + } + + public function hasContact() + { + return isset($this->contact); + } + + public function clearContact() + { + unset($this->contact); + } + + /** + * Required. The `Contact` to update. + * The `Contact`'s `name` is used to identify the `Contact` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Contact $var + * @return $this + */ + public function setContact($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Contact::class); + $this->contact = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateCustomFieldRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateCustomFieldRequest.php new file mode 100644 index 000000000000..01d31346566a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateCustomFieldRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.UpdateCustomFieldRequest + */ +class UpdateCustomFieldRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `CustomField` to update. + * The `CustomField`'s `name` is used to identify the `CustomField` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_field = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\CustomField $customField Required. The `CustomField` to update. + * + * The `CustomField`'s `name` is used to identify the `CustomField` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateCustomFieldRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\CustomField $customField, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setCustomField($customField) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\CustomField $custom_field + * Required. The `CustomField` to update. + * The `CustomField`'s `name` is used to identify the `CustomField` to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `CustomField` to update. + * The `CustomField`'s `name` is used to identify the `CustomField` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\CustomField|null + */ + public function getCustomField() + { + return $this->custom_field; + } + + public function hasCustomField() + { + return isset($this->custom_field); + } + + public function clearCustomField() + { + unset($this->custom_field); + } + + /** + * Required. The `CustomField` to update. + * The `CustomField`'s `name` is used to identify the `CustomField` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CustomField $var + * @return $this + */ + public function setCustomField($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CustomField::class); + $this->custom_field = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php new file mode 100644 index 000000000000..0a9d17a8a645 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php @@ -0,0 +1,157 @@ +google.ads.admanager.v1.UpdateEntitySignalsMappingRequest + */ +class UpdateEntitySignalsMappingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `EntitySignalsMapping` to update. + * The EntitySignalsMapping's name is used to identify the + * EntitySignalsMapping to update. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` + * + * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entity_signals_mapping = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping Required. The `EntitySignalsMapping` to update. + * + * The EntitySignalsMapping's name is used to identify the + * EntitySignalsMapping to update. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setEntitySignalsMapping($entitySignalsMapping) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\EntitySignalsMapping $entity_signals_mapping + * Required. The `EntitySignalsMapping` to update. + * The EntitySignalsMapping's name is used to identify the + * EntitySignalsMapping to update. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `EntitySignalsMapping` to update. + * The EntitySignalsMapping's name is used to identify the + * EntitySignalsMapping to update. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` + * + * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\EntitySignalsMapping|null + */ + public function getEntitySignalsMapping() + { + return $this->entity_signals_mapping; + } + + public function hasEntitySignalsMapping() + { + return isset($this->entity_signals_mapping); + } + + public function clearEntitySignalsMapping() + { + unset($this->entity_signals_mapping); + } + + /** + * Required. The `EntitySignalsMapping` to update. + * The EntitySignalsMapping's name is used to identify the + * EntitySignalsMapping to update. + * Format: + * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` + * + * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $var + * @return $this + */ + public function setEntitySignalsMapping($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); + $this->entity_signals_mapping = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePlacementRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePlacementRequest.php new file mode 100644 index 000000000000..758e615a794d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePlacementRequest.php @@ -0,0 +1,152 @@ +google.ads.admanager.v1.UpdatePlacementRequest + */ +class UpdatePlacementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `Placement` to update. + * The `Placement`'s name is used to identify the `Placement` to + * update. Format: + * `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $placement = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\Placement $placement Required. The `Placement` to update. + * + * The `Placement`'s name is used to identify the `Placement` to + * update. Format: + * `networks/{network_code}/placements/{placement_id}` + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdatePlacementRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\Placement $placement, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setPlacement($placement) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Placement $placement + * Required. The `Placement` to update. + * The `Placement`'s name is used to identify the `Placement` to + * update. Format: + * `networks/{network_code}/placements/{placement_id}` + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `Placement` to update. + * The `Placement`'s name is used to identify the `Placement` to + * update. Format: + * `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Placement|null + */ + public function getPlacement() + { + return $this->placement; + } + + public function hasPlacement() + { + return isset($this->placement); + } + + public function clearPlacement() + { + unset($this->placement); + } + + /** + * Required. The `Placement` to update. + * The `Placement`'s name is used to identify the `Placement` to + * update. Format: + * `networks/{network_code}/placements/{placement_id}` + * + * Generated from protobuf field .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Placement $var + * @return $this + */ + public function setPlacement($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Placement::class); + $this->placement = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionDealRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionDealRequest.php new file mode 100644 index 000000000000..4db3e56be421 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionDealRequest.php @@ -0,0 +1,147 @@ +google.ads.admanager.v1.UpdatePrivateAuctionDealRequest + */ +class UpdatePrivateAuctionDealRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `PrivateAuctionDeal` to update. + * The `PrivateAuctionDeal`'s `name` is used to identify the + * `PrivateAuctionDeal` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $private_auction_deal = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\PrivateAuctionDeal $privateAuctionDeal Required. The `PrivateAuctionDeal` to update. + * + * The `PrivateAuctionDeal`'s `name` is used to identify the + * `PrivateAuctionDeal` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdatePrivateAuctionDealRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\PrivateAuctionDeal $privateAuctionDeal, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setPrivateAuctionDeal($privateAuctionDeal) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\PrivateAuctionDeal $private_auction_deal + * Required. The `PrivateAuctionDeal` to update. + * The `PrivateAuctionDeal`'s `name` is used to identify the + * `PrivateAuctionDeal` to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `PrivateAuctionDeal` to update. + * The `PrivateAuctionDeal`'s `name` is used to identify the + * `PrivateAuctionDeal` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\PrivateAuctionDeal|null + */ + public function getPrivateAuctionDeal() + { + return $this->private_auction_deal; + } + + public function hasPrivateAuctionDeal() + { + return isset($this->private_auction_deal); + } + + public function clearPrivateAuctionDeal() + { + unset($this->private_auction_deal); + } + + /** + * Required. The `PrivateAuctionDeal` to update. + * The `PrivateAuctionDeal`'s `name` is used to identify the + * `PrivateAuctionDeal` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\PrivateAuctionDeal $var + * @return $this + */ + public function setPrivateAuctionDeal($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\PrivateAuctionDeal::class); + $this->private_auction_deal = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionRequest.php new file mode 100644 index 000000000000..78cb16a9634f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionRequest.php @@ -0,0 +1,147 @@ +google.ads.admanager.v1.UpdatePrivateAuctionRequest + */ +class UpdatePrivateAuctionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `PrivateAuction` to update. + * The `PrivateAuction`'s `name` is used to identify the + * `PrivateAuction` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $private_auction = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\PrivateAuction $privateAuction Required. The `PrivateAuction` to update. + * + * The `PrivateAuction`'s `name` is used to identify the + * `PrivateAuction` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdatePrivateAuctionRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\PrivateAuction $privateAuction, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setPrivateAuction($privateAuction) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\PrivateAuction $private_auction + * Required. The `PrivateAuction` to update. + * The `PrivateAuction`'s `name` is used to identify the + * `PrivateAuction` to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `PrivateAuction` to update. + * The `PrivateAuction`'s `name` is used to identify the + * `PrivateAuction` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\PrivateAuction|null + */ + public function getPrivateAuction() + { + return $this->private_auction; + } + + public function hasPrivateAuction() + { + return isset($this->private_auction); + } + + public function clearPrivateAuction() + { + unset($this->private_auction); + } + + /** + * Required. The `PrivateAuction` to update. + * The `PrivateAuction`'s `name` is used to identify the + * `PrivateAuction` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\PrivateAuction $var + * @return $this + */ + public function setPrivateAuction($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\PrivateAuction::class); + $this->private_auction = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php new file mode 100644 index 000000000000..e34757d484ce --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php @@ -0,0 +1,136 @@ +google.ads.admanager.v1.UpdateReportRequest + */ +class UpdateReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `Report` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Report report = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $report = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\Report $report Required. The `Report` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateReportRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\Report $report, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setReport($report) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Report $report + * Required. The `Report` to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `Report` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Report report = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Report|null + */ + public function getReport() + { + return $this->report; + } + + public function hasReport() + { + return isset($this->report); + } + + public function clearReport() + { + unset($this->report); + } + + /** + * Required. The `Report` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Report report = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Report $var + * @return $this + */ + public function setReport($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report::class); + $this->report = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateSiteRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateSiteRequest.php new file mode 100644 index 000000000000..1b4e512d03d0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateSiteRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.UpdateSiteRequest + */ +class UpdateSiteRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `Site` to update. + * The `Site`'s `name` is used to identify the `Site` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $site = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\Site $site Required. The `Site` to update. + * + * The `Site`'s `name` is used to identify the `Site` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateSiteRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\Site $site, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setSite($site) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Site $site + * Required. The `Site` to update. + * The `Site`'s `name` is used to identify the `Site` to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\SiteService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `Site` to update. + * The `Site`'s `name` is used to identify the `Site` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Site|null + */ + public function getSite() + { + return $this->site; + } + + public function hasSite() + { + return isset($this->site); + } + + public function clearSite() + { + unset($this->site); + } + + /** + * Required. The `Site` to update. + * The `Site`'s `name` is used to identify the `Site` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Site $var + * @return $this + */ + public function setSite($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Site::class); + $this->site = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateTeamRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateTeamRequest.php new file mode 100644 index 000000000000..b739d1d9593d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateTeamRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.UpdateTeamRequest + */ +class UpdateTeamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `Team` to update. + * The `Team`'s `name` is used to identify the `Team` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $team = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\Team $team Required. The `Team` to update. + * + * The `Team`'s `name` is used to identify the `Team` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateTeamRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\Team $team, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setTeam($team) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Team $team + * Required. The `Team` to update. + * The `Team`'s `name` is used to identify the `Team` to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\TeamService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `Team` to update. + * The `Team`'s `name` is used to identify the `Team` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Team|null + */ + public function getTeam() + { + return $this->team; + } + + public function hasTeam() + { + return isset($this->team); + } + + public function clearTeam() + { + unset($this->team); + } + + /** + * Required. The `Team` to update. + * The `Team`'s `name` is used to identify the `Team` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Team $var + * @return $this + */ + public function setTeam($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Team::class); + $this->team = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php new file mode 100644 index 000000000000..76609c5200b1 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php @@ -0,0 +1,459 @@ +google.ads.admanager.v1.User + */ +class User extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the User. + * Format: `networks/{network_code}/users/{user_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. `User` ID. + * + * Generated from protobuf field optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $user_id = null; + /** + * Required. The name of the User. It has a maximum length of 128 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Required. The email or login of the User. In order to create a new user, + * you must already have a Google Account. + * + * Generated from protobuf field optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $email = null; + /** + * Required. The unique Role ID of the User. Roles that are created by Google + * will have negative IDs. + * + * Generated from protobuf field optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $role = null; + /** + * Output only. Specifies whether or not the User is active. An inactive user + * cannot log in to the system or perform any operations. + * + * Generated from protobuf field optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $active = null; + /** + * Optional. An identifier for the User that is meaningful to the publisher. + * This attribute has a maximum length of 255 characters. + * + * Generated from protobuf field optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $external_id = null; + /** + * Output only. Whether the user is an OAuth2 service account user. + * Service account users can only be added through the UI. + * + * Generated from protobuf field optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service_account = null; + /** + * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", + * used in the orders and line items UI for this User. If not provided, the UI + * then defaults to using the Network's timezone. This setting only affects + * the UI for this user and does not affect the timezone of any dates and + * times returned in API responses. + * + * Generated from protobuf field optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $orders_ui_local_time_zone = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the User. + * Format: `networks/{network_code}/users/{user_id}` + * @type int|string $user_id + * Output only. `User` ID. + * @type string $display_name + * Required. The name of the User. It has a maximum length of 128 characters. + * @type string $email + * Required. The email or login of the User. In order to create a new user, + * you must already have a Google Account. + * @type string $role + * Required. The unique Role ID of the User. Roles that are created by Google + * will have negative IDs. + * @type bool $active + * Output only. Specifies whether or not the User is active. An inactive user + * cannot log in to the system or perform any operations. + * @type string $external_id + * Optional. An identifier for the User that is meaningful to the publisher. + * This attribute has a maximum length of 255 characters. + * @type bool $service_account + * Output only. Whether the user is an OAuth2 service account user. + * Service account users can only be added through the UI. + * @type string $orders_ui_local_time_zone + * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", + * used in the orders and line items UI for this User. If not provided, the UI + * then defaults to using the Network's timezone. This setting only affects + * the UI for this user and does not affect the timezone of any dates and + * times returned in API responses. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\UserMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the User. + * Format: `networks/{network_code}/users/{user_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the User. + * Format: `networks/{network_code}/users/{user_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. `User` ID. + * + * Generated from protobuf field optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getUserId() + { + return isset($this->user_id) ? $this->user_id : 0; + } + + public function hasUserId() + { + return isset($this->user_id); + } + + public function clearUserId() + { + unset($this->user_id); + } + + /** + * Output only. `User` ID. + * + * Generated from protobuf field optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkInt64($var); + $this->user_id = $var; + + return $this; + } + + /** + * Required. The name of the User. It has a maximum length of 128 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The name of the User. It has a maximum length of 128 characters. + * + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. The email or login of the User. In order to create a new user, + * you must already have a Google Account. + * + * Generated from protobuf field optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEmail() + { + return isset($this->email) ? $this->email : ''; + } + + public function hasEmail() + { + return isset($this->email); + } + + public function clearEmail() + { + unset($this->email); + } + + /** + * Required. The email or login of the User. In order to create a new user, + * you must already have a Google Account. + * + * Generated from protobuf field optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + + /** + * Required. The unique Role ID of the User. Roles that are created by Google + * will have negative IDs. + * + * Generated from protobuf field optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getRole() + { + return isset($this->role) ? $this->role : ''; + } + + public function hasRole() + { + return isset($this->role); + } + + public function clearRole() + { + unset($this->role); + } + + /** + * Required. The unique Role ID of the User. Roles that are created by Google + * will have negative IDs. + * + * Generated from protobuf field optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkString($var, True); + $this->role = $var; + + return $this; + } + + /** + * Output only. Specifies whether or not the User is active. An inactive user + * cannot log in to the system or perform any operations. + * + * Generated from protobuf field optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getActive() + { + return isset($this->active) ? $this->active : false; + } + + public function hasActive() + { + return isset($this->active); + } + + public function clearActive() + { + unset($this->active); + } + + /** + * Output only. Specifies whether or not the User is active. An inactive user + * cannot log in to the system or perform any operations. + * + * Generated from protobuf field optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setActive($var) + { + GPBUtil::checkBool($var); + $this->active = $var; + + return $this; + } + + /** + * Optional. An identifier for the User that is meaningful to the publisher. + * This attribute has a maximum length of 255 characters. + * + * Generated from protobuf field optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getExternalId() + { + return isset($this->external_id) ? $this->external_id : ''; + } + + public function hasExternalId() + { + return isset($this->external_id); + } + + public function clearExternalId() + { + unset($this->external_id); + } + + /** + * Optional. An identifier for the User that is meaningful to the publisher. + * This attribute has a maximum length of 255 characters. + * + * Generated from protobuf field optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setExternalId($var) + { + GPBUtil::checkString($var, True); + $this->external_id = $var; + + return $this; + } + + /** + * Output only. Whether the user is an OAuth2 service account user. + * Service account users can only be added through the UI. + * + * Generated from protobuf field optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getServiceAccount() + { + return isset($this->service_account) ? $this->service_account : false; + } + + public function hasServiceAccount() + { + return isset($this->service_account); + } + + public function clearServiceAccount() + { + unset($this->service_account); + } + + /** + * Output only. Whether the user is an OAuth2 service account user. + * Service account users can only be added through the UI. + * + * Generated from protobuf field optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkBool($var); + $this->service_account = $var; + + return $this; + } + + /** + * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", + * used in the orders and line items UI for this User. If not provided, the UI + * then defaults to using the Network's timezone. This setting only affects + * the UI for this user and does not affect the timezone of any dates and + * times returned in API responses. + * + * Generated from protobuf field optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrdersUiLocalTimeZone() + { + return isset($this->orders_ui_local_time_zone) ? $this->orders_ui_local_time_zone : ''; + } + + public function hasOrdersUiLocalTimeZone() + { + return isset($this->orders_ui_local_time_zone); + } + + public function clearOrdersUiLocalTimeZone() + { + unset($this->orders_ui_local_time_zone); + } + + /** + * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", + * used in the orders and line items UI for this User. If not provided, the UI + * then defaults to using the Network's timezone. This setting only affects + * the UI for this user and does not affect the timezone of any dates and + * times returned in API responses. + * + * Generated from protobuf field optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrdersUiLocalTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->orders_ui_local_time_zone = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UserDomainTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UserDomainTargeting.php new file mode 100644 index 000000000000..212d743108b0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UserDomainTargeting.php @@ -0,0 +1,101 @@ +google.ads.admanager.v1.UserDomainTargeting + */ +class UserDomainTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of user domains that should be targeted/included. + * + * Generated from protobuf field repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $targeted_user_domains; + /** + * Optional. A list of user domains that should be excluded. + * + * Generated from protobuf field repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $excluded_user_domains; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_user_domains + * Optional. A list of user domains that should be targeted/included. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_user_domains + * Optional. A list of user domains that should be excluded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of user domains that should be targeted/included. + * + * Generated from protobuf field repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetedUserDomains() + { + return $this->targeted_user_domains; + } + + /** + * Optional. A list of user domains that should be targeted/included. + * + * Generated from protobuf field repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetedUserDomains($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->targeted_user_domains = $arr; + + return $this; + } + + /** + * Optional. A list of user domains that should be excluded. + * + * Generated from protobuf field repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedUserDomains() + { + return $this->excluded_user_domains; + } + + /** + * Optional. A list of user domains that should be excluded. + * + * Generated from protobuf field repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedUserDomains($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_user_domains = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPosition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPosition.php new file mode 100644 index 000000000000..f9158ddc4499 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPosition.php @@ -0,0 +1,293 @@ +google.ads.admanager.v1.VideoPosition + */ +class VideoPosition extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The index of the mid-roll to target. This field is ignored when + * targeting any video position (e.g. position_type) other than MIDROLL. + * + * Generated from protobuf field optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $midroll_index = null; + /** + * Optional. The index from the back of the pod of the mid-roll to target. + * This field is ignored when targeting any video position (e.g. + * position_type) other than MIDROLL or if targeting a specific midroll index + * (e.g. midroll_index != 0). + * + * Generated from protobuf field optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $reverse_midroll_index = null; + /** + * Optional. The video position within a pod to target. This field must be + * unset in order to target a specific video position (e.g. position_type), + * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id). + * + * Generated from protobuf field optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $pod_position = null; + /** + * Optional. The position within a video to target. A video ad can target a + * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll + * index. + * + * Generated from protobuf field optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $position_type = null; + /** + * Optional. The video bumper type to target. This field must be unset in + * order to target a specific video position (e.g. position_type), pod + * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id). + * + * Generated from protobuf field optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $bumper_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $midroll_index + * Optional. The index of the mid-roll to target. This field is ignored when + * targeting any video position (e.g. position_type) other than MIDROLL. + * @type int|string $reverse_midroll_index + * Optional. The index from the back of the pod of the mid-roll to target. + * This field is ignored when targeting any video position (e.g. + * position_type) other than MIDROLL or if targeting a specific midroll index + * (e.g. midroll_index != 0). + * @type int|string $pod_position + * Optional. The video position within a pod to target. This field must be + * unset in order to target a specific video position (e.g. position_type), + * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id). + * @type int $position_type + * Optional. The position within a video to target. A video ad can target a + * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll + * index. + * @type int $bumper_type + * Optional. The video bumper type to target. This field must be unset in + * order to target a specific video position (e.g. position_type), pod + * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The index of the mid-roll to target. This field is ignored when + * targeting any video position (e.g. position_type) other than MIDROLL. + * + * Generated from protobuf field optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getMidrollIndex() + { + return isset($this->midroll_index) ? $this->midroll_index : 0; + } + + public function hasMidrollIndex() + { + return isset($this->midroll_index); + } + + public function clearMidrollIndex() + { + unset($this->midroll_index); + } + + /** + * Optional. The index of the mid-roll to target. This field is ignored when + * targeting any video position (e.g. position_type) other than MIDROLL. + * + * Generated from protobuf field optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setMidrollIndex($var) + { + GPBUtil::checkInt64($var); + $this->midroll_index = $var; + + return $this; + } + + /** + * Optional. The index from the back of the pod of the mid-roll to target. + * This field is ignored when targeting any video position (e.g. + * position_type) other than MIDROLL or if targeting a specific midroll index + * (e.g. midroll_index != 0). + * + * Generated from protobuf field optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getReverseMidrollIndex() + { + return isset($this->reverse_midroll_index) ? $this->reverse_midroll_index : 0; + } + + public function hasReverseMidrollIndex() + { + return isset($this->reverse_midroll_index); + } + + public function clearReverseMidrollIndex() + { + unset($this->reverse_midroll_index); + } + + /** + * Optional. The index from the back of the pod of the mid-roll to target. + * This field is ignored when targeting any video position (e.g. + * position_type) other than MIDROLL or if targeting a specific midroll index + * (e.g. midroll_index != 0). + * + * Generated from protobuf field optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setReverseMidrollIndex($var) + { + GPBUtil::checkInt64($var); + $this->reverse_midroll_index = $var; + + return $this; + } + + /** + * Optional. The video position within a pod to target. This field must be + * unset in order to target a specific video position (e.g. position_type), + * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id). + * + * Generated from protobuf field optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getPodPosition() + { + return isset($this->pod_position) ? $this->pod_position : 0; + } + + public function hasPodPosition() + { + return isset($this->pod_position); + } + + public function clearPodPosition() + { + unset($this->pod_position); + } + + /** + * Optional. The video position within a pod to target. This field must be + * unset in order to target a specific video position (e.g. position_type), + * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id). + * + * Generated from protobuf field optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setPodPosition($var) + { + GPBUtil::checkInt64($var); + $this->pod_position = $var; + + return $this; + } + + /** + * Optional. The position within a video to target. A video ad can target a + * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll + * index. + * + * Generated from protobuf field optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPositionType() + { + return isset($this->position_type) ? $this->position_type : 0; + } + + public function hasPositionType() + { + return isset($this->position_type); + } + + public function clearPositionType() + { + unset($this->position_type); + } + + /** + * Optional. The position within a video to target. A video ad can target a + * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll + * index. + * + * Generated from protobuf field optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPositionType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\VideoPositionEnum\VideoPosition::class); + $this->position_type = $var; + + return $this; + } + + /** + * Optional. The video bumper type to target. This field must be unset in + * order to target a specific video position (e.g. position_type), pod + * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id). + * + * Generated from protobuf field optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getBumperType() + { + return isset($this->bumper_type) ? $this->bumper_type : 0; + } + + public function hasBumperType() + { + return isset($this->bumper_type); + } + + public function clearBumperType() + { + unset($this->bumper_type); + } + + /** + * Optional. The video bumper type to target. This field must be unset in + * order to target a specific video position (e.g. position_type), pod + * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id). + * + * Generated from protobuf field optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setBumperType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TargetedVideoBumperTypeEnum\TargetedVideoBumperType::class); + $this->bumper_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum.php new file mode 100644 index 000000000000..47a715a657b4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.VideoPositionEnum + */ +class VideoPositionEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\VideoPositionEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum/VideoPosition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum/VideoPosition.php new file mode 100644 index 000000000000..f4a100255757 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum/VideoPosition.php @@ -0,0 +1,78 @@ +google.ads.admanager.v1.VideoPositionEnum.VideoPosition + */ +class VideoPosition +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum VIDEO_POSITION_UNSPECIFIED = 0; + */ + const VIDEO_POSITION_UNSPECIFIED = 0; + /** + * Allow ad placement at any position within the video. + * + * Generated from protobuf enum ALL = 1; + */ + const ALL = 1; + /** + * Target ad placement during the video. + * + * Generated from protobuf enum MIDROLL = 2; + */ + const MIDROLL = 2; + /** + * Target ad placement after the video ends. + * + * Generated from protobuf enum POSTROLL = 3; + */ + const POSTROLL = 3; + /** + * Target ad placement before the video starts. + * + * Generated from protobuf enum PREROLL = 4; + */ + const PREROLL = 4; + + private static $valueToName = [ + self::VIDEO_POSITION_UNSPECIFIED => 'VIDEO_POSITION_UNSPECIFIED', + self::ALL => 'ALL', + self::MIDROLL => 'MIDROLL', + self::POSTROLL => 'POSTROLL', + self::PREROLL => 'PREROLL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VideoPosition::class, \Google\Ads\AdManager\V1\VideoPositionEnum_VideoPosition::class); + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionTargeting.php new file mode 100644 index 000000000000..6e289d450687 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionTargeting.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.VideoPositionTargeting + */ +class VideoPositionTargeting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of video position targeting criterion (applied with a + * logical AND). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $video_positions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Ads\AdManager\V1\VideoPosition>|\Google\Protobuf\Internal\RepeatedField $video_positions + * Optional. A list of video position targeting criterion (applied with a + * logical AND). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of video position targeting criterion (applied with a + * logical AND). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVideoPositions() + { + return $this->video_positions; + } + + /** + * Optional. A list of video position targeting criterion (applied with a + * logical AND). + * + * Generated from protobuf field repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\VideoPosition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVideoPositions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\VideoPosition::class); + $this->video_positions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/WebProperty.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/WebProperty.php new file mode 100644 index 000000000000..1408c29ff4d8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/WebProperty.php @@ -0,0 +1,177 @@ +google.ads.admanager.v1.WebProperty + */ +class WebProperty extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the WebProperty. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The `WebProperty` code. + * + * Generated from protobuf field string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $web_property_code = ''; + /** + * Required. The ExchangeSyndicationProduct associated with this WebProperty. + * + * Generated from protobuf field .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $product_type = 0; + /** + * Optional. The `WebProperty` ID. + * + * Generated from protobuf field int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $web_property_id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the WebProperty. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}` + * @type string $web_property_code + * Required. The `WebProperty` code. + * @type int $product_type + * Required. The ExchangeSyndicationProduct associated with this WebProperty. + * @type int|string $web_property_id + * Optional. The `WebProperty` ID. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\WebProperty::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the WebProperty. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the WebProperty. + * Format: + * `networks/{network_code}/webProperties/{web_property_code}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The `WebProperty` code. + * + * Generated from protobuf field string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getWebPropertyCode() + { + return $this->web_property_code; + } + + /** + * Required. The `WebProperty` code. + * + * Generated from protobuf field string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setWebPropertyCode($var) + { + GPBUtil::checkString($var, True); + $this->web_property_code = $var; + + return $this; + } + + /** + * Required. The ExchangeSyndicationProduct associated with this WebProperty. + * + * Generated from protobuf field .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getProductType() + { + return $this->product_type; + } + + /** + * Required. The ExchangeSyndicationProduct associated with this WebProperty. + * + * Generated from protobuf field .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setProductType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ExchangeSyndicationProductEnum\ExchangeSyndicationProduct::class); + $this->product_type = $var; + + return $this; + } + + /** + * Optional. The `WebProperty` ID. + * + * Generated from protobuf field int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getWebPropertyId() + { + return $this->web_property_id; + } + + /** + * Optional. The `WebProperty` ID. + * + * Generated from protobuf field int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setWebPropertyId($var) + { + GPBUtil::checkInt64($var); + $this->web_property_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/create_ad_break.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/create_ad_break.php new file mode 100644 index 000000000000..8e1f7e834f31 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/create_ad_break.php @@ -0,0 +1,106 @@ +setDuration($adBreakDuration); + $request = (new CreateAdBreakRequest()) + ->setParent($formattedParent) + ->setAdBreak($adBreak); + + // Call the API and handle any network failures. + try { + /** @var AdBreak $response */ + $response = $adBreakServiceClient->createAdBreak($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AdBreakServiceClient::liveStreamEventName( + '[NETWORK_CODE]', + '[LIVE_STREAM_EVENT]' + ); + + create_ad_break_sample($formattedParent); +} +// [END admanager_v1_generated_AdBreakService_CreateAdBreak_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/delete_ad_break.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/delete_ad_break.php new file mode 100644 index 000000000000..7bcb84e5e72a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/delete_ad_break.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $adBreakServiceClient->deleteAdBreak($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AdBreakServiceClient::adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); + + delete_ad_break_sample($formattedName); +} +// [END admanager_v1_generated_AdBreakService_DeleteAdBreak_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/get_ad_break.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/get_ad_break.php new file mode 100644 index 000000000000..4ccb018d1afb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/get_ad_break.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AdBreak $response */ + $response = $adBreakServiceClient->getAdBreak($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AdBreakServiceClient::adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); + + get_ad_break_sample($formattedName); +} +// [END admanager_v1_generated_AdBreakService_GetAdBreak_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/list_ad_breaks.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/list_ad_breaks.php new file mode 100644 index 000000000000..a8af2bbffe39 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/list_ad_breaks.php @@ -0,0 +1,85 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $adBreakServiceClient->listAdBreaks($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AdBreakServiceClient::liveStreamEventName( + '[NETWORK_CODE]', + '[LIVE_STREAM_EVENT]' + ); + + list_ad_breaks_sample($formattedParent); +} +// [END admanager_v1_generated_AdBreakService_ListAdBreaks_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/update_ad_break.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/update_ad_break.php new file mode 100644 index 000000000000..d24c5dbe91b6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/update_ad_break.php @@ -0,0 +1,68 @@ +setDuration($adBreakDuration); + $updateMask = new FieldMask(); + $request = (new UpdateAdBreakRequest()) + ->setAdBreak($adBreak) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var AdBreak $response */ + $response = $adBreakServiceClient->updateAdBreak($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END admanager_v1_generated_AdBreakService_UpdateAdBreak_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_allow_ad_review_center_ads.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_allow_ad_review_center_ads.php new file mode 100644 index 000000000000..cc5f0266472c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_allow_ad_review_center_ads.php @@ -0,0 +1,115 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $adReviewCenterAdServiceClient->batchAllowAdReviewCenterAds($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var BatchAllowAdReviewCenterAdsResponse $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AdReviewCenterAdServiceClient::webPropertyName( + '[NETWORK_CODE]', + '[WEB_PROPERTY]' + ); + $formattedNamesElement = AdReviewCenterAdServiceClient::adReviewCenterAdName( + '[NETWORK_CODE]', + '[WEB_PROPERTY_CODE]', + '[AD_REVIEW_CENTER_AD]' + ); + + batch_allow_ad_review_center_ads_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_block_ad_review_center_ads.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_block_ad_review_center_ads.php new file mode 100644 index 000000000000..c43421e1a64c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_block_ad_review_center_ads.php @@ -0,0 +1,115 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $adReviewCenterAdServiceClient->batchBlockAdReviewCenterAds($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var BatchBlockAdReviewCenterAdsResponse $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AdReviewCenterAdServiceClient::webPropertyName( + '[NETWORK_CODE]', + '[WEB_PROPERTY]' + ); + $formattedNamesElement = AdReviewCenterAdServiceClient::adReviewCenterAdName( + '[NETWORK_CODE]', + '[WEB_PROPERTY_CODE]', + '[AD_REVIEW_CENTER_AD]' + ); + + batch_block_ad_review_center_ads_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/search_ad_review_center_ads.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/search_ad_review_center_ads.php new file mode 100644 index 000000000000..bc995e483f4f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/search_ad_review_center_ads.php @@ -0,0 +1,94 @@ +setParent($formattedParent) + ->setStatus($status); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $adReviewCenterAdServiceClient->searchAdReviewCenterAds($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AdReviewCenterAdServiceClient::webPropertyName( + '[NETWORK_CODE]', + '[WEB_PROPERTY]' + ); + $status = AdReviewCenterAdStatus::AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED; + + search_ad_review_center_ads_sample($formattedParent, $status); +} +// [END admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php new file mode 100644 index 000000000000..a4fb2cc07a50 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AdUnit $response */ + $response = $adUnitServiceClient->getAdUnit($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AdUnitServiceClient::adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); + + get_ad_unit_sample($formattedName); +} +// [END admanager_v1_generated_AdUnitService_GetAdUnit_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php new file mode 100644 index 000000000000..5a45bf71d949 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $adUnitServiceClient->listAdUnitSizes($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AdUnitServiceClient::networkName('[NETWORK_CODE]'); + + list_ad_unit_sizes_sample($formattedParent); +} +// [END admanager_v1_generated_AdUnitService_ListAdUnitSizes_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php new file mode 100644 index 000000000000..d2a371377641 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $adUnitServiceClient->listAdUnits($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AdUnitServiceClient::networkName('[NETWORK_CODE]'); + + list_ad_units_sample($formattedParent); +} +// [END admanager_v1_generated_AdUnitService_ListAdUnits_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/get_application.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/get_application.php new file mode 100644 index 000000000000..9ac83a331c59 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/get_application.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Application $response */ + $response = $applicationServiceClient->getApplication($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ApplicationServiceClient::applicationName('[NETWORK_CODE]', '[APPLICATION]'); + + get_application_sample($formattedName); +} +// [END admanager_v1_generated_ApplicationService_GetApplication_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/list_applications.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/list_applications.php new file mode 100644 index 000000000000..9ac7644304a2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/list_applications.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $applicationServiceClient->listApplications($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ApplicationServiceClient::networkName('[NETWORK_CODE]'); + + list_applications_sample($formattedParent); +} +// [END admanager_v1_generated_ApplicationService_ListApplications_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php new file mode 100644 index 000000000000..e7f8dd5fdc36 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AudienceSegment $response */ + $response = $audienceSegmentServiceClient->getAudienceSegment($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AudienceSegmentServiceClient::audienceSegmentName( + '[NETWORK_CODE]', + '[AUDIENCE_SEGMENT]' + ); + + get_audience_segment_sample($formattedName); +} +// [END admanager_v1_generated_AudienceSegmentService_GetAudienceSegment_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php new file mode 100644 index 000000000000..a892f2ee4269 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $audienceSegmentServiceClient->listAudienceSegments($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AudienceSegmentServiceClient::networkName('[NETWORK_CODE]'); + + list_audience_segments_sample($formattedParent); +} +// [END admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/get_bandwidth_group.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/get_bandwidth_group.php new file mode 100644 index 000000000000..50ca52d71282 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/get_bandwidth_group.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var BandwidthGroup $response */ + $response = $bandwidthGroupServiceClient->getBandwidthGroup($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BandwidthGroupServiceClient::bandwidthGroupName( + '[NETWORK_CODE]', + '[BANDWIDTH_GROUP]' + ); + + get_bandwidth_group_sample($formattedName); +} +// [END admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/list_bandwidth_groups.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/list_bandwidth_groups.php new file mode 100644 index 000000000000..0e1d0ae7a4c7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/list_bandwidth_groups.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $bandwidthGroupServiceClient->listBandwidthGroups($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BandwidthGroupServiceClient::networkName('[NETWORK_CODE]'); + + list_bandwidth_groups_sample($formattedParent); +} +// [END admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/get_browser_language.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/get_browser_language.php new file mode 100644 index 000000000000..80de5a74b0da --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/get_browser_language.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var BrowserLanguage $response */ + $response = $browserLanguageServiceClient->getBrowserLanguage($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BrowserLanguageServiceClient::browserLanguageName( + '[NETWORK_CODE]', + '[BROWSER_LANGUAGE]' + ); + + get_browser_language_sample($formattedName); +} +// [END admanager_v1_generated_BrowserLanguageService_GetBrowserLanguage_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/list_browser_languages.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/list_browser_languages.php new file mode 100644 index 000000000000..a6cb4b6855f2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/list_browser_languages.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $browserLanguageServiceClient->listBrowserLanguages($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BrowserLanguageServiceClient::networkName('[NETWORK_CODE]'); + + list_browser_languages_sample($formattedParent); +} +// [END admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/get_browser.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/get_browser.php new file mode 100644 index 000000000000..42b1106dbda0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/get_browser.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Browser $response */ + $response = $browserServiceClient->getBrowser($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BrowserServiceClient::browserName('[NETWORK_CODE]', '[BROWSER]'); + + get_browser_sample($formattedName); +} +// [END admanager_v1_generated_BrowserService_GetBrowser_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/list_browsers.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/list_browsers.php new file mode 100644 index 000000000000..715b30f2dc7a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/list_browsers.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $browserServiceClient->listBrowsers($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BrowserServiceClient::networkName('[NETWORK_CODE]'); + + list_browsers_sample($formattedParent); +} +// [END admanager_v1_generated_BrowserService_ListBrowsers_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/get_cms_metadata_key.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/get_cms_metadata_key.php new file mode 100644 index 000000000000..b6510d28c904 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/get_cms_metadata_key.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CmsMetadataKey $response */ + $response = $cmsMetadataKeyServiceClient->getCmsMetadataKey($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CmsMetadataKeyServiceClient::cmsMetadataKeyName( + '[NETWORK_CODE]', + '[CMS_METADATA_KEY]' + ); + + get_cms_metadata_key_sample($formattedName); +} +// [END admanager_v1_generated_CmsMetadataKeyService_GetCmsMetadataKey_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/list_cms_metadata_keys.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/list_cms_metadata_keys.php new file mode 100644 index 000000000000..92aba2475823 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/list_cms_metadata_keys.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cmsMetadataKeyServiceClient->listCmsMetadataKeys($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CmsMetadataKeyServiceClient::networkName('[NETWORK_CODE]'); + + list_cms_metadata_keys_sample($formattedParent); +} +// [END admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/get_cms_metadata_value.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/get_cms_metadata_value.php new file mode 100644 index 000000000000..c717eba30a30 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/get_cms_metadata_value.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CmsMetadataValue $response */ + $response = $cmsMetadataValueServiceClient->getCmsMetadataValue($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CmsMetadataValueServiceClient::cmsMetadataValueName( + '[NETWORK_CODE]', + '[CMS_METADATA_VALUE]' + ); + + get_cms_metadata_value_sample($formattedName); +} +// [END admanager_v1_generated_CmsMetadataValueService_GetCmsMetadataValue_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/list_cms_metadata_values.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/list_cms_metadata_values.php new file mode 100644 index 000000000000..c970e59e17eb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/list_cms_metadata_values.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cmsMetadataValueServiceClient->listCmsMetadataValues($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CmsMetadataValueServiceClient::networkName('[NETWORK_CODE]'); + + list_cms_metadata_values_sample($formattedParent); +} +// [END admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php new file mode 100644 index 000000000000..6ae94b3f9a4b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Company $response */ + $response = $companyServiceClient->getCompany($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CompanyServiceClient::companyName('[NETWORK_CODE]', '[COMPANY]'); + + get_company_sample($formattedName); +} +// [END admanager_v1_generated_CompanyService_GetCompany_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php new file mode 100644 index 000000000000..253a20403f3e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $companyServiceClient->listCompanies($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CompanyServiceClient::networkName('[NETWORK_CODE]'); + + list_companies_sample($formattedParent); +} +// [END admanager_v1_generated_CompanyService_ListCompanies_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_create_contacts.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_create_contacts.php new file mode 100644 index 000000000000..9512a96dc9fd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_create_contacts.php @@ -0,0 +1,104 @@ +setDisplayName($requestsContactDisplayName) + ->setCompany($formattedRequestsContactCompany); + $createContactRequest = (new CreateContactRequest()) + ->setParent($formattedRequestsParent) + ->setContact($requestsContact); + $requests = [$createContactRequest,]; + $request = (new BatchCreateContactsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateContactsResponse $response */ + $response = $contactServiceClient->batchCreateContacts($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContactServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = ContactServiceClient::networkName('[NETWORK_CODE]'); + $requestsContactDisplayName = '[DISPLAY_NAME]'; + $formattedRequestsContactCompany = ContactServiceClient::companyName('[NETWORK_CODE]', '[COMPANY]'); + + batch_create_contacts_sample( + $formattedParent, + $formattedRequestsParent, + $requestsContactDisplayName, + $formattedRequestsContactCompany + ); +} +// [END admanager_v1_generated_ContactService_BatchCreateContacts_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_update_contacts.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_update_contacts.php new file mode 100644 index 000000000000..52164012b944 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_update_contacts.php @@ -0,0 +1,100 @@ +setDisplayName($requestsContactDisplayName) + ->setCompany($formattedRequestsContactCompany); + $requestsUpdateMask = new FieldMask(); + $updateContactRequest = (new UpdateContactRequest()) + ->setContact($requestsContact) + ->setUpdateMask($requestsUpdateMask); + $requests = [$updateContactRequest,]; + $request = (new BatchUpdateContactsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateContactsResponse $response */ + $response = $contactServiceClient->batchUpdateContacts($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContactServiceClient::networkName('[NETWORK_CODE]'); + $requestsContactDisplayName = '[DISPLAY_NAME]'; + $formattedRequestsContactCompany = ContactServiceClient::companyName('[NETWORK_CODE]', '[COMPANY]'); + + batch_update_contacts_sample( + $formattedParent, + $requestsContactDisplayName, + $formattedRequestsContactCompany + ); +} +// [END admanager_v1_generated_ContactService_BatchUpdateContacts_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/create_contact.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/create_contact.php new file mode 100644 index 000000000000..89fbb277a04e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/create_contact.php @@ -0,0 +1,86 @@ +setDisplayName($contactDisplayName) + ->setCompany($formattedContactCompany); + $request = (new CreateContactRequest()) + ->setParent($formattedParent) + ->setContact($contact); + + // Call the API and handle any network failures. + try { + /** @var Contact $response */ + $response = $contactServiceClient->createContact($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContactServiceClient::networkName('[NETWORK_CODE]'); + $contactDisplayName = '[DISPLAY_NAME]'; + $formattedContactCompany = ContactServiceClient::companyName('[NETWORK_CODE]', '[COMPANY]'); + + create_contact_sample($formattedParent, $contactDisplayName, $formattedContactCompany); +} +// [END admanager_v1_generated_ContactService_CreateContact_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/get_contact.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/get_contact.php new file mode 100644 index 000000000000..d0f26c11593e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/get_contact.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Contact $response */ + $response = $contactServiceClient->getContact($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContactServiceClient::contactName('[NETWORK_CODE]', '[CONTACT]'); + + get_contact_sample($formattedName); +} +// [END admanager_v1_generated_ContactService_GetContact_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/list_contacts.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/list_contacts.php new file mode 100644 index 000000000000..221cf59ccfb5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/list_contacts.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $contactServiceClient->listContacts($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContactServiceClient::networkName('[NETWORK_CODE]'); + + list_contacts_sample($formattedParent); +} +// [END admanager_v1_generated_ContactService_ListContacts_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/update_contact.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/update_contact.php new file mode 100644 index 000000000000..22475a260661 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/update_contact.php @@ -0,0 +1,81 @@ +setDisplayName($contactDisplayName) + ->setCompany($formattedContactCompany); + $updateMask = new FieldMask(); + $request = (new UpdateContactRequest()) + ->setContact($contact) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Contact $response */ + $response = $contactServiceClient->updateContact($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $contactDisplayName = '[DISPLAY_NAME]'; + $formattedContactCompany = ContactServiceClient::companyName('[NETWORK_CODE]', '[COMPANY]'); + + update_contact_sample($contactDisplayName, $formattedContactCompany); +} +// [END admanager_v1_generated_ContactService_UpdateContact_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/get_content_bundle.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/get_content_bundle.php new file mode 100644 index 000000000000..9d6ef0a40faf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/get_content_bundle.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ContentBundle $response */ + $response = $contentBundleServiceClient->getContentBundle($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContentBundleServiceClient::contentBundleName( + '[NETWORK_CODE]', + '[CONTENT_BUNDLE]' + ); + + get_content_bundle_sample($formattedName); +} +// [END admanager_v1_generated_ContentBundleService_GetContentBundle_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/list_content_bundles.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/list_content_bundles.php new file mode 100644 index 000000000000..a3067a7b6a2c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/list_content_bundles.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $contentBundleServiceClient->listContentBundles($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContentBundleServiceClient::networkName('[NETWORK_CODE]'); + + list_content_bundles_sample($formattedParent); +} +// [END admanager_v1_generated_ContentBundleService_ListContentBundles_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/get_content_label.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/get_content_label.php new file mode 100644 index 000000000000..db8295a0e698 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/get_content_label.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ContentLabel $response */ + $response = $contentLabelServiceClient->getContentLabel($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContentLabelServiceClient::contentLabelName('[NETWORK_CODE]', '[CONTENT_LABEL]'); + + get_content_label_sample($formattedName); +} +// [END admanager_v1_generated_ContentLabelService_GetContentLabel_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/list_content_labels.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/list_content_labels.php new file mode 100644 index 000000000000..40b84eff9241 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/list_content_labels.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $contentLabelServiceClient->listContentLabels($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContentLabelServiceClient::networkName('[NETWORK_CODE]'); + + list_content_labels_sample($formattedParent); +} +// [END admanager_v1_generated_ContentLabelService_ListContentLabels_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/get_content.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/get_content.php new file mode 100644 index 000000000000..9b05117bbcc4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/get_content.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Content $response */ + $response = $contentServiceClient->getContent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContentServiceClient::contentName('[NETWORK_CODE]', '[CONTENT]'); + + get_content_sample($formattedName); +} +// [END admanager_v1_generated_ContentService_GetContent_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/list_content.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/list_content.php new file mode 100644 index 000000000000..4170a42ba82b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/list_content.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $contentServiceClient->listContent($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContentServiceClient::networkName('[NETWORK_CODE]'); + + list_content_sample($formattedParent); +} +// [END admanager_v1_generated_ContentService_ListContent_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/get_creative_template.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/get_creative_template.php new file mode 100644 index 000000000000..65c93e453e5f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/get_creative_template.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CreativeTemplate $response */ + $response = $creativeTemplateServiceClient->getCreativeTemplate($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CreativeTemplateServiceClient::creativeTemplateName( + '[NETWORK_CODE]', + '[CREATIVE_TEMPLATE]' + ); + + get_creative_template_sample($formattedName); +} +// [END admanager_v1_generated_CreativeTemplateService_GetCreativeTemplate_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/list_creative_templates.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/list_creative_templates.php new file mode 100644 index 000000000000..1911814649a2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/list_creative_templates.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $creativeTemplateServiceClient->listCreativeTemplates($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CreativeTemplateServiceClient::networkName('[NETWORK_CODE]'); + + list_creative_templates_sample($formattedParent); +} +// [END admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php new file mode 100644 index 000000000000..78a714090dde --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php @@ -0,0 +1,82 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchActivateCustomFieldsResponse $response */ + $response = $customFieldServiceClient->batchActivateCustomFields($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CustomFieldServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = CustomFieldServiceClient::customFieldName( + '[NETWORK_CODE]', + '[CUSTOM_FIELD]' + ); + + batch_activate_custom_fields_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_CustomFieldService_BatchActivateCustomFields_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php new file mode 100644 index 000000000000..739a3777c644 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php @@ -0,0 +1,114 @@ +setDisplayName($requestsCustomFieldDisplayName) + ->setEntityType($requestsCustomFieldEntityType) + ->setDataType($requestsCustomFieldDataType) + ->setVisibility($requestsCustomFieldVisibility); + $createCustomFieldRequest = (new CreateCustomFieldRequest()) + ->setParent($formattedRequestsParent) + ->setCustomField($requestsCustomField); + $requests = [$createCustomFieldRequest,]; + $request = (new BatchCreateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateCustomFieldsResponse $response */ + $response = $customFieldServiceClient->batchCreateCustomFields($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CustomFieldServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = CustomFieldServiceClient::networkName('[NETWORK_CODE]'); + $requestsCustomFieldDisplayName = '[DISPLAY_NAME]'; + $requestsCustomFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $requestsCustomFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $requestsCustomFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + + batch_create_custom_fields_sample( + $formattedParent, + $formattedRequestsParent, + $requestsCustomFieldDisplayName, + $requestsCustomFieldEntityType, + $requestsCustomFieldDataType, + $requestsCustomFieldVisibility + ); +} +// [END admanager_v1_generated_CustomFieldService_BatchCreateCustomFields_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php new file mode 100644 index 000000000000..782e0a0efb64 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php @@ -0,0 +1,82 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchDeactivateCustomFieldsResponse $response */ + $response = $customFieldServiceClient->batchDeactivateCustomFields($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CustomFieldServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = CustomFieldServiceClient::customFieldName( + '[NETWORK_CODE]', + '[CUSTOM_FIELD]' + ); + + batch_deactivate_custom_fields_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_CustomFieldService_BatchDeactivateCustomFields_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php new file mode 100644 index 000000000000..4d2a494c1a88 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php @@ -0,0 +1,110 @@ +setDisplayName($requestsCustomFieldDisplayName) + ->setEntityType($requestsCustomFieldEntityType) + ->setDataType($requestsCustomFieldDataType) + ->setVisibility($requestsCustomFieldVisibility); + $requestsUpdateMask = new FieldMask(); + $updateCustomFieldRequest = (new UpdateCustomFieldRequest()) + ->setCustomField($requestsCustomField) + ->setUpdateMask($requestsUpdateMask); + $requests = [$updateCustomFieldRequest,]; + $request = (new BatchUpdateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateCustomFieldsResponse $response */ + $response = $customFieldServiceClient->batchUpdateCustomFields($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CustomFieldServiceClient::networkName('[NETWORK_CODE]'); + $requestsCustomFieldDisplayName = '[DISPLAY_NAME]'; + $requestsCustomFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $requestsCustomFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $requestsCustomFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + + batch_update_custom_fields_sample( + $formattedParent, + $requestsCustomFieldDisplayName, + $requestsCustomFieldEntityType, + $requestsCustomFieldDataType, + $requestsCustomFieldVisibility + ); +} +// [END admanager_v1_generated_CustomFieldService_BatchUpdateCustomFields_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/create_custom_field.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/create_custom_field.php new file mode 100644 index 000000000000..61036e57b07b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/create_custom_field.php @@ -0,0 +1,100 @@ +setDisplayName($customFieldDisplayName) + ->setEntityType($customFieldEntityType) + ->setDataType($customFieldDataType) + ->setVisibility($customFieldVisibility); + $request = (new CreateCustomFieldRequest()) + ->setParent($formattedParent) + ->setCustomField($customField); + + // Call the API and handle any network failures. + try { + /** @var CustomField $response */ + $response = $customFieldServiceClient->createCustomField($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CustomFieldServiceClient::networkName('[NETWORK_CODE]'); + $customFieldDisplayName = '[DISPLAY_NAME]'; + $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + + create_custom_field_sample( + $formattedParent, + $customFieldDisplayName, + $customFieldEntityType, + $customFieldDataType, + $customFieldVisibility + ); +} +// [END admanager_v1_generated_CustomFieldService_CreateCustomField_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php new file mode 100644 index 000000000000..8e9d590e0b03 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CustomField $response */ + $response = $customFieldServiceClient->getCustomField($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CustomFieldServiceClient::customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); + + get_custom_field_sample($formattedName); +} +// [END admanager_v1_generated_CustomFieldService_GetCustomField_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php new file mode 100644 index 000000000000..678d92867331 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $customFieldServiceClient->listCustomFields($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CustomFieldServiceClient::networkName('[NETWORK_CODE]'); + + list_custom_fields_sample($formattedParent); +} +// [END admanager_v1_generated_CustomFieldService_ListCustomFields_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/update_custom_field.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/update_custom_field.php new file mode 100644 index 000000000000..e3f1eb0caa88 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/update_custom_field.php @@ -0,0 +1,96 @@ +setDisplayName($customFieldDisplayName) + ->setEntityType($customFieldEntityType) + ->setDataType($customFieldDataType) + ->setVisibility($customFieldVisibility); + $updateMask = new FieldMask(); + $request = (new UpdateCustomFieldRequest()) + ->setCustomField($customField) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var CustomField $response */ + $response = $customFieldServiceClient->updateCustomField($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $customFieldDisplayName = '[DISPLAY_NAME]'; + $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + + update_custom_field_sample( + $customFieldDisplayName, + $customFieldEntityType, + $customFieldDataType, + $customFieldVisibility + ); +} +// [END admanager_v1_generated_CustomFieldService_UpdateCustomField_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php new file mode 100644 index 000000000000..34d335ca95f7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CustomTargetingKey $response */ + $response = $customTargetingKeyServiceClient->getCustomTargetingKey($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CustomTargetingKeyServiceClient::customTargetingKeyName( + '[NETWORK_CODE]', + '[CUSTOM_TARGETING_KEY]' + ); + + get_custom_targeting_key_sample($formattedName); +} +// [END admanager_v1_generated_CustomTargetingKeyService_GetCustomTargetingKey_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php new file mode 100644 index 000000000000..e8e1fd9e9ef7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $customTargetingKeyServiceClient->listCustomTargetingKeys($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CustomTargetingKeyServiceClient::networkName('[NETWORK_CODE]'); + + list_custom_targeting_keys_sample($formattedParent); +} +// [END admanager_v1_generated_CustomTargetingKeyService_ListCustomTargetingKeys_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php new file mode 100644 index 000000000000..dfe2d94bcee6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CustomTargetingValue $response */ + $response = $customTargetingValueServiceClient->getCustomTargetingValue($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CustomTargetingValueServiceClient::customTargetingValueName( + '[NETWORK_CODE]', + '[CUSTOM_TARGETING_VALUE]' + ); + + get_custom_targeting_value_sample($formattedName); +} +// [END admanager_v1_generated_CustomTargetingValueService_GetCustomTargetingValue_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php new file mode 100644 index 000000000000..66974a9b1bca --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $customTargetingValueServiceClient->listCustomTargetingValues($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CustomTargetingValueServiceClient::networkName('[NETWORK_CODE]'); + + list_custom_targeting_values_sample($formattedParent); +} +// [END admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/get_device_capability.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/get_device_capability.php new file mode 100644 index 000000000000..563a997d0e3e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/get_device_capability.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DeviceCapability $response */ + $response = $deviceCapabilityServiceClient->getDeviceCapability($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DeviceCapabilityServiceClient::deviceCapabilityName( + '[NETWORK_CODE]', + '[DEVICE_CAPABILITY]' + ); + + get_device_capability_sample($formattedName); +} +// [END admanager_v1_generated_DeviceCapabilityService_GetDeviceCapability_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/list_device_capabilities.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/list_device_capabilities.php new file mode 100644 index 000000000000..939cf69c2c62 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/list_device_capabilities.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $deviceCapabilityServiceClient->listDeviceCapabilities($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DeviceCapabilityServiceClient::networkName('[NETWORK_CODE]'); + + list_device_capabilities_sample($formattedParent); +} +// [END admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/get_device_category.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/get_device_category.php new file mode 100644 index 000000000000..de71d3642ee3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/get_device_category.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DeviceCategory $response */ + $response = $deviceCategoryServiceClient->getDeviceCategory($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DeviceCategoryServiceClient::deviceCategoryName( + '[NETWORK_CODE]', + '[DEVICE_CATEGORY]' + ); + + get_device_category_sample($formattedName); +} +// [END admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/list_device_categories.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/list_device_categories.php new file mode 100644 index 000000000000..f436c287bf7c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/list_device_categories.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $deviceCategoryServiceClient->listDeviceCategories($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DeviceCategoryServiceClient::networkName('[NETWORK_CODE]'); + + list_device_categories_sample($formattedParent); +} +// [END admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/get_device_manufacturer.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/get_device_manufacturer.php new file mode 100644 index 000000000000..7789385da8de --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/get_device_manufacturer.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DeviceManufacturer $response */ + $response = $deviceManufacturerServiceClient->getDeviceManufacturer($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DeviceManufacturerServiceClient::deviceManufacturerName( + '[NETWORK_CODE]', + '[DEVICE_MANUFACTURER]' + ); + + get_device_manufacturer_sample($formattedName); +} +// [END admanager_v1_generated_DeviceManufacturerService_GetDeviceManufacturer_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/list_device_manufacturers.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/list_device_manufacturers.php new file mode 100644 index 000000000000..b033b474d2d0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/list_device_manufacturers.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $deviceManufacturerServiceClient->listDeviceManufacturers($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DeviceManufacturerServiceClient::networkName('[NETWORK_CODE]'); + + list_device_manufacturers_sample($formattedParent); +} +// [END admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php new file mode 100644 index 000000000000..9dd762245173 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php @@ -0,0 +1,87 @@ +setParent($formattedRequestsParent) + ->setEntitySignalsMapping($requestsEntitySignalsMapping); + $requests = [$createEntitySignalsMappingRequest,]; + $request = (new BatchCreateEntitySignalsMappingsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateEntitySignalsMappingsResponse $response */ + $response = $entitySignalsMappingServiceClient->batchCreateEntitySignalsMappings($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); + + batch_create_entity_signals_mappings_sample($formattedParent, $formattedRequestsParent); +} +// [END admanager_v1_generated_EntitySignalsMappingService_BatchCreateEntitySignalsMappings_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php new file mode 100644 index 000000000000..b7397611ba50 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php @@ -0,0 +1,83 @@ +setEntitySignalsMapping($requestsEntitySignalsMapping) + ->setUpdateMask($requestsUpdateMask); + $requests = [$updateEntitySignalsMappingRequest,]; + $request = (new BatchUpdateEntitySignalsMappingsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateEntitySignalsMappingsResponse $response */ + $response = $entitySignalsMappingServiceClient->batchUpdateEntitySignalsMappings($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); + + batch_update_entity_signals_mappings_sample($formattedParent); +} +// [END admanager_v1_generated_EntitySignalsMappingService_BatchUpdateEntitySignalsMappings_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php new file mode 100644 index 000000000000..8db78bfc2418 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setEntitySignalsMapping($entitySignalsMapping); + + // Call the API and handle any network failures. + try { + /** @var EntitySignalsMapping $response */ + $response = $entitySignalsMappingServiceClient->createEntitySignalsMapping($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); + + create_entity_signals_mapping_sample($formattedParent); +} +// [END admanager_v1_generated_EntitySignalsMappingService_CreateEntitySignalsMapping_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php new file mode 100644 index 000000000000..ca430d56c2ec --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var EntitySignalsMapping $response */ + $response = $entitySignalsMappingServiceClient->getEntitySignalsMapping($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = EntitySignalsMappingServiceClient::entitySignalsMappingName( + '[NETWORK_CODE]', + '[ENTITY_SIGNALS_MAPPING]' + ); + + get_entity_signals_mapping_sample($formattedName); +} +// [END admanager_v1_generated_EntitySignalsMappingService_GetEntitySignalsMapping_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php new file mode 100644 index 000000000000..e531966f2de3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $entitySignalsMappingServiceClient->listEntitySignalsMappings($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); + + list_entity_signals_mappings_sample($formattedParent); +} +// [END admanager_v1_generated_EntitySignalsMappingService_ListEntitySignalsMappings_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php new file mode 100644 index 000000000000..b408ce04bab7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php @@ -0,0 +1,62 @@ +setEntitySignalsMapping($entitySignalsMapping) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var EntitySignalsMapping $response */ + $response = $entitySignalsMappingServiceClient->updateEntitySignalsMapping($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END admanager_v1_generated_EntitySignalsMappingService_UpdateEntitySignalsMapping_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/get_geo_target.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/get_geo_target.php new file mode 100644 index 000000000000..7a748ca4c2eb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/get_geo_target.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var GeoTarget $response */ + $response = $geoTargetServiceClient->getGeoTarget($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GeoTargetServiceClient::geoTargetName('[NETWORK_CODE]', '[GEO_TARGET]'); + + get_geo_target_sample($formattedName); +} +// [END admanager_v1_generated_GeoTargetService_GetGeoTarget_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/list_geo_targets.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/list_geo_targets.php new file mode 100644 index 000000000000..bce9ace9b419 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/list_geo_targets.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $geoTargetServiceClient->listGeoTargets($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = GeoTargetServiceClient::networkName('[NETWORK_CODE]'); + + list_geo_targets_sample($formattedParent); +} +// [END admanager_v1_generated_GeoTargetService_ListGeoTargets_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/get_mobile_carrier.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/get_mobile_carrier.php new file mode 100644 index 000000000000..3247b64f386f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/get_mobile_carrier.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var MobileCarrier $response */ + $response = $mobileCarrierServiceClient->getMobileCarrier($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = MobileCarrierServiceClient::mobileCarrierName( + '[NETWORK_CODE]', + '[MOBILE_CARRIER]' + ); + + get_mobile_carrier_sample($formattedName); +} +// [END admanager_v1_generated_MobileCarrierService_GetMobileCarrier_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/list_mobile_carriers.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/list_mobile_carriers.php new file mode 100644 index 000000000000..8defa00e4cfe --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/list_mobile_carriers.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $mobileCarrierServiceClient->listMobileCarriers($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = MobileCarrierServiceClient::networkName('[NETWORK_CODE]'); + + list_mobile_carriers_sample($formattedParent); +} +// [END admanager_v1_generated_MobileCarrierService_ListMobileCarriers_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/get_mobile_device.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/get_mobile_device.php new file mode 100644 index 000000000000..e310765cb5fd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/get_mobile_device.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var MobileDevice $response */ + $response = $mobileDeviceServiceClient->getMobileDevice($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = MobileDeviceServiceClient::mobileDeviceName('[NETWORK_CODE]', '[MOBILE_DEVICE]'); + + get_mobile_device_sample($formattedName); +} +// [END admanager_v1_generated_MobileDeviceService_GetMobileDevice_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/list_mobile_devices.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/list_mobile_devices.php new file mode 100644 index 000000000000..ed62d7424649 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/list_mobile_devices.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $mobileDeviceServiceClient->listMobileDevices($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = MobileDeviceServiceClient::networkName('[NETWORK_CODE]'); + + list_mobile_devices_sample($formattedParent); +} +// [END admanager_v1_generated_MobileDeviceService_ListMobileDevices_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/get_mobile_device_submodel.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/get_mobile_device_submodel.php new file mode 100644 index 000000000000..d5ab581f07b8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/get_mobile_device_submodel.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var MobileDeviceSubmodel $response */ + $response = $mobileDeviceSubmodelServiceClient->getMobileDeviceSubmodel($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = MobileDeviceSubmodelServiceClient::mobileDeviceSubmodelName( + '[NETWORK_CODE]', + '[MOBILE_DEVICE_SUBMODEL]' + ); + + get_mobile_device_submodel_sample($formattedName); +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_GetMobileDeviceSubmodel_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/list_mobile_device_submodels.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/list_mobile_device_submodels.php new file mode 100644 index 000000000000..667feea4be02 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/list_mobile_device_submodels.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $mobileDeviceSubmodelServiceClient->listMobileDeviceSubmodels($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = MobileDeviceSubmodelServiceClient::networkName('[NETWORK_CODE]'); + + list_mobile_device_submodels_sample($formattedParent); +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php new file mode 100644 index 000000000000..f167972be97e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Network $response */ + $response = $networkServiceClient->getNetwork($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NetworkServiceClient::networkName('[NETWORK_CODE]'); + + get_network_sample($formattedName); +} +// [END admanager_v1_generated_NetworkService_GetNetwork_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php new file mode 100644 index 000000000000..c52ae03e7d7d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php @@ -0,0 +1,57 @@ +listNetworks($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END admanager_v1_generated_NetworkService_ListNetworks_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/get_operating_system.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/get_operating_system.php new file mode 100644 index 000000000000..decd3841a5be --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/get_operating_system.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperatingSystem $response */ + $response = $operatingSystemServiceClient->getOperatingSystem($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OperatingSystemServiceClient::operatingSystemName( + '[NETWORK_CODE]', + '[OPERATING_SYSTEM]' + ); + + get_operating_system_sample($formattedName); +} +// [END admanager_v1_generated_OperatingSystemService_GetOperatingSystem_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/list_operating_systems.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/list_operating_systems.php new file mode 100644 index 000000000000..9c845a0c2a28 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/list_operating_systems.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $operatingSystemServiceClient->listOperatingSystems($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OperatingSystemServiceClient::networkName('[NETWORK_CODE]'); + + list_operating_systems_sample($formattedParent); +} +// [END admanager_v1_generated_OperatingSystemService_ListOperatingSystems_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/get_operating_system_version.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/get_operating_system_version.php new file mode 100644 index 000000000000..48880b58eb6c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/get_operating_system_version.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperatingSystemVersion $response */ + $response = $operatingSystemVersionServiceClient->getOperatingSystemVersion($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OperatingSystemVersionServiceClient::operatingSystemVersionName( + '[NETWORK_CODE]', + '[OPERATING_SYSTEM_VERSION]' + ); + + get_operating_system_version_sample($formattedName); +} +// [END admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/list_operating_system_versions.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/list_operating_system_versions.php new file mode 100644 index 000000000000..07d8fbf7b264 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/list_operating_system_versions.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $operatingSystemVersionServiceClient->listOperatingSystemVersions($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OperatingSystemVersionServiceClient::networkName('[NETWORK_CODE]'); + + list_operating_system_versions_sample($formattedParent); +} +// [END admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php new file mode 100644 index 000000000000..1dfc30c7689d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Order $response */ + $response = $orderServiceClient->getOrder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OrderServiceClient::orderName('[NETWORK_CODE]', '[ORDER]'); + + get_order_sample($formattedName); +} +// [END admanager_v1_generated_OrderService_GetOrder_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php new file mode 100644 index 000000000000..8d4d9726ed99 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php @@ -0,0 +1,80 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $orderServiceClient->listOrders($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OrderServiceClient::networkName('[NETWORK_CODE]'); + + list_orders_sample($formattedParent); +} +// [END admanager_v1_generated_OrderService_ListOrders_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_activate_placements.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_activate_placements.php new file mode 100644 index 000000000000..599b766d579c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_activate_placements.php @@ -0,0 +1,79 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchActivatePlacementsResponse $response */ + $response = $placementServiceClient->batchActivatePlacements($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PlacementServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = PlacementServiceClient::placementName('[NETWORK_CODE]', '[PLACEMENT]'); + + batch_activate_placements_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_PlacementService_BatchActivatePlacements_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_archive_placements.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_archive_placements.php new file mode 100644 index 000000000000..ce56d8ae9163 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_archive_placements.php @@ -0,0 +1,79 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchArchivePlacementsResponse $response */ + $response = $placementServiceClient->batchArchivePlacements($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PlacementServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = PlacementServiceClient::placementName('[NETWORK_CODE]', '[PLACEMENT]'); + + batch_archive_placements_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_PlacementService_BatchArchivePlacements_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_create_placements.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_create_placements.php new file mode 100644 index 000000000000..9f602d326f00 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_create_placements.php @@ -0,0 +1,97 @@ +setDisplayName($requestsPlacementDisplayName); + $createPlacementRequest = (new CreatePlacementRequest()) + ->setParent($formattedRequestsParent) + ->setPlacement($requestsPlacement); + $requests = [$createPlacementRequest,]; + $request = (new BatchCreatePlacementsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreatePlacementsResponse $response */ + $response = $placementServiceClient->batchCreatePlacements($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PlacementServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = PlacementServiceClient::networkName('[NETWORK_CODE]'); + $requestsPlacementDisplayName = '[DISPLAY_NAME]'; + + batch_create_placements_sample( + $formattedParent, + $formattedRequestsParent, + $requestsPlacementDisplayName + ); +} +// [END admanager_v1_generated_PlacementService_BatchCreatePlacements_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_deactivate_placements.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_deactivate_placements.php new file mode 100644 index 000000000000..a81415b072dd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_deactivate_placements.php @@ -0,0 +1,79 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchDeactivatePlacementsResponse $response */ + $response = $placementServiceClient->batchDeactivatePlacements($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PlacementServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = PlacementServiceClient::placementName('[NETWORK_CODE]', '[PLACEMENT]'); + + batch_deactivate_placements_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_PlacementService_BatchDeactivatePlacements_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_update_placements.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_update_placements.php new file mode 100644 index 000000000000..4a86ec217a1c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_update_placements.php @@ -0,0 +1,90 @@ +setDisplayName($requestsPlacementDisplayName); + $requestsUpdateMask = new FieldMask(); + $updatePlacementRequest = (new UpdatePlacementRequest()) + ->setPlacement($requestsPlacement) + ->setUpdateMask($requestsUpdateMask); + $requests = [$updatePlacementRequest,]; + $request = (new BatchUpdatePlacementsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdatePlacementsResponse $response */ + $response = $placementServiceClient->batchUpdatePlacements($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PlacementServiceClient::networkName('[NETWORK_CODE]'); + $requestsPlacementDisplayName = '[DISPLAY_NAME]'; + + batch_update_placements_sample($formattedParent, $requestsPlacementDisplayName); +} +// [END admanager_v1_generated_PlacementService_BatchUpdatePlacements_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/create_placement.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/create_placement.php new file mode 100644 index 000000000000..8e635181e5f8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/create_placement.php @@ -0,0 +1,78 @@ +setDisplayName($placementDisplayName); + $request = (new CreatePlacementRequest()) + ->setParent($formattedParent) + ->setPlacement($placement); + + // Call the API and handle any network failures. + try { + /** @var Placement $response */ + $response = $placementServiceClient->createPlacement($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PlacementServiceClient::networkName('[NETWORK_CODE]'); + $placementDisplayName = '[DISPLAY_NAME]'; + + create_placement_sample($formattedParent, $placementDisplayName); +} +// [END admanager_v1_generated_PlacementService_CreatePlacement_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php new file mode 100644 index 000000000000..dfed470aa663 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Placement $response */ + $response = $placementServiceClient->getPlacement($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = PlacementServiceClient::placementName('[NETWORK_CODE]', '[PLACEMENT]'); + + get_placement_sample($formattedName); +} +// [END admanager_v1_generated_PlacementService_GetPlacement_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php new file mode 100644 index 000000000000..51a2d36a2700 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $placementServiceClient->listPlacements($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PlacementServiceClient::networkName('[NETWORK_CODE]'); + + list_placements_sample($formattedParent); +} +// [END admanager_v1_generated_PlacementService_ListPlacements_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/update_placement.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/update_placement.php new file mode 100644 index 000000000000..8e7b92ad31cd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/update_placement.php @@ -0,0 +1,76 @@ +setDisplayName($placementDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdatePlacementRequest()) + ->setPlacement($placement) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Placement $response */ + $response = $placementServiceClient->updatePlacement($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $placementDisplayName = '[DISPLAY_NAME]'; + + update_placement_sample($placementDisplayName); +} +// [END admanager_v1_generated_PlacementService_UpdatePlacement_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/create_private_auction_deal.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/create_private_auction_deal.php new file mode 100644 index 000000000000..e1025105da9e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/create_private_auction_deal.php @@ -0,0 +1,77 @@ +setFloorPrice($privateAuctionDealFloorPrice); + $request = (new CreatePrivateAuctionDealRequest()) + ->setParent($formattedParent) + ->setPrivateAuctionDeal($privateAuctionDeal); + + // Call the API and handle any network failures. + try { + /** @var PrivateAuctionDeal $response */ + $response = $privateAuctionDealServiceClient->createPrivateAuctionDeal($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PrivateAuctionDealServiceClient::networkName('[NETWORK_CODE]'); + + create_private_auction_deal_sample($formattedParent); +} +// [END admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/get_private_auction_deal.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/get_private_auction_deal.php new file mode 100644 index 000000000000..5b03ce151c45 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/get_private_auction_deal.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PrivateAuctionDeal $response */ + $response = $privateAuctionDealServiceClient->getPrivateAuctionDeal($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = PrivateAuctionDealServiceClient::privateAuctionDealName( + '[NETWORK_CODE]', + '[PRIVATE_AUCTION_DEAL]' + ); + + get_private_auction_deal_sample($formattedName); +} +// [END admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/list_private_auction_deals.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/list_private_auction_deals.php new file mode 100644 index 000000000000..a87f0873fa2c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/list_private_auction_deals.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $privateAuctionDealServiceClient->listPrivateAuctionDeals($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PrivateAuctionDealServiceClient::networkName('[NETWORK_CODE]'); + + list_private_auction_deals_sample($formattedParent); +} +// [END admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/update_private_auction_deal.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/update_private_auction_deal.php new file mode 100644 index 000000000000..b0cc6cd18fbd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/update_private_auction_deal.php @@ -0,0 +1,65 @@ +setFloorPrice($privateAuctionDealFloorPrice); + $updateMask = new FieldMask(); + $request = (new UpdatePrivateAuctionDealRequest()) + ->setPrivateAuctionDeal($privateAuctionDeal) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var PrivateAuctionDeal $response */ + $response = $privateAuctionDealServiceClient->updatePrivateAuctionDeal($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_UpdatePrivateAuctionDeal_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/create_private_auction.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/create_private_auction.php new file mode 100644 index 000000000000..7ca343e333b5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/create_private_auction.php @@ -0,0 +1,80 @@ +setDisplayName($privateAuctionDisplayName); + $request = (new CreatePrivateAuctionRequest()) + ->setParent($formattedParent) + ->setPrivateAuction($privateAuction); + + // Call the API and handle any network failures. + try { + /** @var PrivateAuction $response */ + $response = $privateAuctionServiceClient->createPrivateAuction($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PrivateAuctionServiceClient::networkName('[NETWORK_CODE]'); + $privateAuctionDisplayName = '[DISPLAY_NAME]'; + + create_private_auction_sample($formattedParent, $privateAuctionDisplayName); +} +// [END admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/get_private_auction.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/get_private_auction.php new file mode 100644 index 000000000000..19633d01a55a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/get_private_auction.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PrivateAuction $response */ + $response = $privateAuctionServiceClient->getPrivateAuction($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = PrivateAuctionServiceClient::privateAuctionName( + '[NETWORK_CODE]', + '[PRIVATE_AUCTION]' + ); + + get_private_auction_sample($formattedName); +} +// [END admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/list_private_auctions.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/list_private_auctions.php new file mode 100644 index 000000000000..a01af83e5165 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/list_private_auctions.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $privateAuctionServiceClient->listPrivateAuctions($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PrivateAuctionServiceClient::networkName('[NETWORK_CODE]'); + + list_private_auctions_sample($formattedParent); +} +// [END admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/update_private_auction.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/update_private_auction.php new file mode 100644 index 000000000000..7a6e7440c766 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/update_private_auction.php @@ -0,0 +1,76 @@ +setDisplayName($privateAuctionDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdatePrivateAuctionRequest()) + ->setPrivateAuction($privateAuction) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var PrivateAuction $response */ + $response = $privateAuctionServiceClient->updatePrivateAuction($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $privateAuctionDisplayName = '[DISPLAY_NAME]'; + + update_private_auction_sample($privateAuctionDisplayName); +} +// [END admanager_v1_generated_PrivateAuctionService_UpdatePrivateAuction_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/get_programmatic_buyer.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/get_programmatic_buyer.php new file mode 100644 index 000000000000..a74e8a80ff57 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/get_programmatic_buyer.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ProgrammaticBuyer $response */ + $response = $programmaticBuyerServiceClient->getProgrammaticBuyer($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ProgrammaticBuyerServiceClient::programmaticBuyerName( + '[NETWORK_CODE]', + '[PROGRAMMATIC_BUYER]' + ); + + get_programmatic_buyer_sample($formattedName); +} +// [END admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/list_programmatic_buyers.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/list_programmatic_buyers.php new file mode 100644 index 000000000000..fc6f1fd020c6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/list_programmatic_buyers.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $programmaticBuyerServiceClient->listProgrammaticBuyers($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ProgrammaticBuyerServiceClient::networkName('[NETWORK_CODE]'); + + list_programmatic_buyers_sample($formattedParent); +} +// [END admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php new file mode 100644 index 000000000000..51fe7657f73e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php @@ -0,0 +1,105 @@ +setDimensions($reportReportDefinitionDimensions) + ->setMetrics($reportReportDefinitionMetrics) + ->setDateRange($reportReportDefinitionDateRange) + ->setReportType($reportReportDefinitionReportType); + $report = (new Report()) + ->setReportDefinition($reportReportDefinition); + $request = (new CreateReportRequest()) + ->setParent($formattedParent) + ->setReport($report); + + // Call the API and handle any network failures. + try { + /** @var Report $response */ + $response = $reportServiceClient->createReport($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ReportServiceClient::networkName('[NETWORK_CODE]'); + $reportReportDefinitionDimensionsElement = Dimension::DIMENSION_UNSPECIFIED; + $reportReportDefinitionMetricsElement = Metric::METRIC_UNSPECIFIED; + $reportReportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; + + create_report_sample( + $formattedParent, + $reportReportDefinitionDimensionsElement, + $reportReportDefinitionMetricsElement, + $reportReportDefinitionReportType + ); +} +// [END admanager_v1_generated_ReportService_CreateReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php new file mode 100644 index 000000000000..c26575c18c05 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php @@ -0,0 +1,60 @@ +fetchReportResultRows($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END admanager_v1_generated_ReportService_FetchReportResultRows_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php new file mode 100644 index 000000000000..00f44ba6e72e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Report $response */ + $response = $reportServiceClient->getReport($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ReportServiceClient::reportName('[NETWORK_CODE]', '[REPORT]'); + + get_report_sample($formattedName); +} +// [END admanager_v1_generated_ReportService_GetReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php new file mode 100644 index 000000000000..e222727eac51 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $reportServiceClient->listReports($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ReportServiceClient::networkName('[NETWORK_CODE]'); + + list_reports_sample($formattedParent); +} +// [END admanager_v1_generated_ReportService_ListReports_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php new file mode 100644 index 000000000000..0177f6b826bd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php @@ -0,0 +1,91 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $reportServiceClient->runReport($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var RunReportResponse $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ReportServiceClient::reportName('[NETWORK_CODE]', '[REPORT]'); + + run_report_sample($formattedName); +} +// [END admanager_v1_generated_ReportService_RunReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php new file mode 100644 index 000000000000..662d7eb805e8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php @@ -0,0 +1,101 @@ +setDimensions($reportReportDefinitionDimensions) + ->setMetrics($reportReportDefinitionMetrics) + ->setDateRange($reportReportDefinitionDateRange) + ->setReportType($reportReportDefinitionReportType); + $report = (new Report()) + ->setReportDefinition($reportReportDefinition); + $updateMask = new FieldMask(); + $request = (new UpdateReportRequest()) + ->setReport($report) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Report $response */ + $response = $reportServiceClient->updateReport($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $reportReportDefinitionDimensionsElement = Dimension::DIMENSION_UNSPECIFIED; + $reportReportDefinitionMetricsElement = Metric::METRIC_UNSPECIFIED; + $reportReportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; + + update_report_sample( + $reportReportDefinitionDimensionsElement, + $reportReportDefinitionMetricsElement, + $reportReportDefinitionReportType + ); +} +// [END admanager_v1_generated_ReportService_UpdateReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php new file mode 100644 index 000000000000..41c4df415b21 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Role $response */ + $response = $roleServiceClient->getRole($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RoleServiceClient::roleName('[NETWORK_CODE]', '[ROLE]'); + + get_role_sample($formattedName); +} +// [END admanager_v1_generated_RoleService_GetRole_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php new file mode 100644 index 000000000000..834817ae3fb3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $roleServiceClient->listRoles($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RoleServiceClient::networkName('[NETWORK_CODE]'); + + list_roles_sample($formattedParent); +} +// [END admanager_v1_generated_RoleService_ListRoles_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_create_sites.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_create_sites.php new file mode 100644 index 000000000000..3c902352aa9c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_create_sites.php @@ -0,0 +1,92 @@ +setUrl($requestsSiteUrl); + $createSiteRequest = (new CreateSiteRequest()) + ->setParent($formattedRequestsParent) + ->setSite($requestsSite); + $requests = [$createSiteRequest,]; + $request = (new BatchCreateSitesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateSitesResponse $response */ + $response = $siteServiceClient->batchCreateSites($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = SiteServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = SiteServiceClient::networkName('[NETWORK_CODE]'); + $requestsSiteUrl = '[URL]'; + + batch_create_sites_sample($formattedParent, $formattedRequestsParent, $requestsSiteUrl); +} +// [END admanager_v1_generated_SiteService_BatchCreateSites_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_deactivate_sites.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_deactivate_sites.php new file mode 100644 index 000000000000..0e54a1fdea9d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_deactivate_sites.php @@ -0,0 +1,75 @@ +setParent($formattedParent) + ->setNames($names); + + // Call the API and handle any network failures. + try { + /** @var BatchDeactivateSitesResponse $response */ + $response = $siteServiceClient->batchDeactivateSites($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = SiteServiceClient::networkName('[NETWORK_CODE]'); + $namesElement = '[NAMES]'; + + batch_deactivate_sites_sample($formattedParent, $namesElement); +} +// [END admanager_v1_generated_SiteService_BatchDeactivateSites_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_submit_sites_for_approval.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_submit_sites_for_approval.php new file mode 100644 index 000000000000..768ed310ad7d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_submit_sites_for_approval.php @@ -0,0 +1,77 @@ +setParent($formattedParent) + ->setNames($names); + + // Call the API and handle any network failures. + try { + /** @var BatchSubmitSitesForApprovalResponse $response */ + $response = $siteServiceClient->batchSubmitSitesForApproval($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = SiteServiceClient::networkName('[NETWORK_CODE]'); + $namesElement = '[NAMES]'; + + batch_submit_sites_for_approval_sample($formattedParent, $namesElement); +} +// [END admanager_v1_generated_SiteService_BatchSubmitSitesForApproval_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_update_sites.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_update_sites.php new file mode 100644 index 000000000000..3f7a83882c2d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_update_sites.php @@ -0,0 +1,87 @@ +setUrl($requestsSiteUrl); + $requestsUpdateMask = new FieldMask(); + $updateSiteRequest = (new UpdateSiteRequest()) + ->setSite($requestsSite) + ->setUpdateMask($requestsUpdateMask); + $requests = [$updateSiteRequest,]; + $request = (new BatchUpdateSitesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateSitesResponse $response */ + $response = $siteServiceClient->batchUpdateSites($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = SiteServiceClient::networkName('[NETWORK_CODE]'); + $requestsSiteUrl = '[URL]'; + + batch_update_sites_sample($formattedParent, $requestsSiteUrl); +} +// [END admanager_v1_generated_SiteService_BatchUpdateSites_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/create_site.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/create_site.php new file mode 100644 index 000000000000..c458d2409708 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/create_site.php @@ -0,0 +1,77 @@ +setUrl($siteUrl); + $request = (new CreateSiteRequest()) + ->setParent($formattedParent) + ->setSite($site); + + // Call the API and handle any network failures. + try { + /** @var Site $response */ + $response = $siteServiceClient->createSite($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = SiteServiceClient::networkName('[NETWORK_CODE]'); + $siteUrl = '[URL]'; + + create_site_sample($formattedParent, $siteUrl); +} +// [END admanager_v1_generated_SiteService_CreateSite_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/get_site.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/get_site.php new file mode 100644 index 000000000000..45771c513acc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/get_site.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Site $response */ + $response = $siteServiceClient->getSite($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = SiteServiceClient::siteName('[NETWORK_CODE]', '[SITE]'); + + get_site_sample($formattedName); +} +// [END admanager_v1_generated_SiteService_GetSite_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/list_sites.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/list_sites.php new file mode 100644 index 000000000000..70c2daaa91a4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/list_sites.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $siteServiceClient->listSites($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = SiteServiceClient::networkName('[NETWORK_CODE]'); + + list_sites_sample($formattedParent); +} +// [END admanager_v1_generated_SiteService_ListSites_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/update_site.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/update_site.php new file mode 100644 index 000000000000..1d93891aaf5d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/update_site.php @@ -0,0 +1,75 @@ +setUrl($siteUrl); + $updateMask = new FieldMask(); + $request = (new UpdateSiteRequest()) + ->setSite($site) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Site $response */ + $response = $siteServiceClient->updateSite($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $siteUrl = '[URL]'; + + update_site_sample($siteUrl); +} +// [END admanager_v1_generated_SiteService_UpdateSite_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php new file mode 100644 index 000000000000..8b33e12264f7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var TaxonomyCategory $response */ + $response = $taxonomyCategoryServiceClient->getTaxonomyCategory($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = TaxonomyCategoryServiceClient::taxonomyCategoryName( + '[NETWORK_CODE]', + '[TAXONOMY_CATEGORY]' + ); + + get_taxonomy_category_sample($formattedName); +} +// [END admanager_v1_generated_TaxonomyCategoryService_GetTaxonomyCategory_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php new file mode 100644 index 000000000000..9dd400d86e8d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $taxonomyCategoryServiceClient->listTaxonomyCategories($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = TaxonomyCategoryServiceClient::networkName('[NETWORK_CODE]'); + + list_taxonomy_categories_sample($formattedParent); +} +// [END admanager_v1_generated_TaxonomyCategoryService_ListTaxonomyCategories_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_activate_teams.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_activate_teams.php new file mode 100644 index 000000000000..45f5f635fbdf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_activate_teams.php @@ -0,0 +1,77 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchActivateTeamsResponse $response */ + $response = $teamServiceClient->batchActivateTeams($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = TeamServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = TeamServiceClient::teamName('[NETWORK_CODE]', '[TEAM]'); + + batch_activate_teams_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_TeamService_BatchActivateTeams_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_create_teams.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_create_teams.php new file mode 100644 index 000000000000..10e8b18f74ad --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_create_teams.php @@ -0,0 +1,93 @@ +setDisplayName($requestsTeamDisplayName); + $createTeamRequest = (new CreateTeamRequest()) + ->setParent($formattedRequestsParent) + ->setTeam($requestsTeam); + $requests = [$createTeamRequest,]; + $request = (new BatchCreateTeamsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateTeamsResponse $response */ + $response = $teamServiceClient->batchCreateTeams($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = TeamServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = TeamServiceClient::networkName('[NETWORK_CODE]'); + $requestsTeamDisplayName = '[DISPLAY_NAME]'; + + batch_create_teams_sample($formattedParent, $formattedRequestsParent, $requestsTeamDisplayName); +} +// [END admanager_v1_generated_TeamService_BatchCreateTeams_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_deactivate_teams.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_deactivate_teams.php new file mode 100644 index 000000000000..b401d6c64267 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_deactivate_teams.php @@ -0,0 +1,79 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchDeactivateTeamsResponse $response */ + $response = $teamServiceClient->batchDeactivateTeams($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = TeamServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = TeamServiceClient::teamName('[NETWORK_CODE]', '[TEAM]'); + + batch_deactivate_teams_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_TeamService_BatchDeactivateTeams_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_update_teams.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_update_teams.php new file mode 100644 index 000000000000..87cc83bbffd5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_update_teams.php @@ -0,0 +1,88 @@ +setDisplayName($requestsTeamDisplayName); + $requestsUpdateMask = new FieldMask(); + $updateTeamRequest = (new UpdateTeamRequest()) + ->setTeam($requestsTeam) + ->setUpdateMask($requestsUpdateMask); + $requests = [$updateTeamRequest,]; + $request = (new BatchUpdateTeamsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateTeamsResponse $response */ + $response = $teamServiceClient->batchUpdateTeams($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = TeamServiceClient::networkName('[NETWORK_CODE]'); + $requestsTeamDisplayName = '[DISPLAY_NAME]'; + + batch_update_teams_sample($formattedParent, $requestsTeamDisplayName); +} +// [END admanager_v1_generated_TeamService_BatchUpdateTeams_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/create_team.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/create_team.php new file mode 100644 index 000000000000..fa220eb9d4f2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/create_team.php @@ -0,0 +1,78 @@ +setDisplayName($teamDisplayName); + $request = (new CreateTeamRequest()) + ->setParent($formattedParent) + ->setTeam($team); + + // Call the API and handle any network failures. + try { + /** @var Team $response */ + $response = $teamServiceClient->createTeam($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = TeamServiceClient::networkName('[NETWORK_CODE]'); + $teamDisplayName = '[DISPLAY_NAME]'; + + create_team_sample($formattedParent, $teamDisplayName); +} +// [END admanager_v1_generated_TeamService_CreateTeam_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/get_team.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/get_team.php new file mode 100644 index 000000000000..a735ed2fb7e4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/get_team.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Team $response */ + $response = $teamServiceClient->getTeam($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = TeamServiceClient::teamName('[NETWORK_CODE]', '[TEAM]'); + + get_team_sample($formattedName); +} +// [END admanager_v1_generated_TeamService_GetTeam_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/list_teams.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/list_teams.php new file mode 100644 index 000000000000..a36097046e4a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/list_teams.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $teamServiceClient->listTeams($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = TeamServiceClient::networkName('[NETWORK_CODE]'); + + list_teams_sample($formattedParent); +} +// [END admanager_v1_generated_TeamService_ListTeams_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/update_team.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/update_team.php new file mode 100644 index 000000000000..a0570a5a99a5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/update_team.php @@ -0,0 +1,76 @@ +setDisplayName($teamDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateTeamRequest()) + ->setTeam($team) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Team $response */ + $response = $teamServiceClient->updateTeam($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $teamDisplayName = '[DISPLAY_NAME]'; + + update_team_sample($teamDisplayName); +} +// [END admanager_v1_generated_TeamService_UpdateTeam_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php new file mode 100644 index 000000000000..2ba3b53ca6a9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var User $response */ + $response = $userServiceClient->getUser($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = UserServiceClient::userName('[NETWORK_CODE]', '[USER]'); + + get_user_sample($formattedName); +} +// [END admanager_v1_generated_UserService_GetUser_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdBreakServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdBreakServiceClient.php new file mode 100644 index 000000000000..00c55b5e896a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdBreakServiceClient.php @@ -0,0 +1,435 @@ + createAdBreakAsync(CreateAdBreakRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAdBreakAsync(DeleteAdBreakRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAdBreakAsync(GetAdBreakRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAdBreaksAsync(ListAdBreaksRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAdBreakAsync(UpdateAdBreakRequest $request, array $optionalArgs = []) + */ +final class AdBreakServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.AdBreakService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/ad_break_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/ad_break_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/ad_break_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a ad_break + * resource. + * + * @param string $networkCode + * @param string $assetKey + * @param string $adBreak + * + * @return string The formatted ad_break resource. + */ + public static function adBreakName(string $networkCode, string $assetKey, string $adBreak): string + { + return self::getPathTemplate('adBreak')->render([ + 'network_code' => $networkCode, + 'asset_key' => $assetKey, + 'ad_break' => $adBreak, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * live_stream_event resource. + * + * @param string $networkCode + * @param string $liveStreamEvent + * + * @return string The formatted live_stream_event resource. + */ + public static function liveStreamEventName(string $networkCode, string $liveStreamEvent): string + { + return self::getPathTemplate('liveStreamEvent')->render([ + 'network_code' => $networkCode, + 'live_stream_event' => $liveStreamEvent, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - adBreak: networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break} + * - liveStreamEvent: networks/{network_code}/liveStreamEvents/{live_stream_event} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\AdBreakServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new AdBreakServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to create an `AdBreak` object. + * + * Informs DAI of an upcoming ad break for a live stream event, with an + * optional expected start time. DAI will begin decisioning ads for the break + * shortly before the expected start time, if provided. Each live stream + * event can only have one incomplete ad break at any given time. The next ad + * break can be scheduled after the previous ad break has started serving, + * indicated by its state being + * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], + * or it has been deleted. + * + * This method cannot be used if the `LiveStreamEvent` has + * [prefetching ad breaks + * enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) + * or the event is not active. If a `LiveStreamEvent` is deactivated after + * creating an ad break and before the ad break is complete, the ad break + * is discarded. + * + * An ad break's state is complete when the following occurs: + * - Full service DAI: after a matching ad break shows in the + * `LiveStreamEvent` manifest only when the ad break has started decisioning. + * - Pod Serving: after the ad break is requested using the ad break ID or + * break sequence. + * + * The async variant is {@see AdBreakServiceClient::createAdBreakAsync()} . + * + * @example samples/V1/AdBreakServiceClient/create_ad_break.php + * + * @param CreateAdBreakRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AdBreak + * + * @throws ApiException Thrown if the API call fails. + */ + public function createAdBreak(CreateAdBreakRequest $request, array $callOptions = []): AdBreak + { + return $this->startApiCall('CreateAdBreak', $request, $callOptions)->wait(); + } + + /** + * API to delete an `AdBreak` object. + * + * Deletes and cancels an incomplete ad break, mitigating the need to wait + * for the current break to serve before recreating an ad break. You can + * delete an ad break that has not started serving or seen in manifests, + * indicated by its state being + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] + * or + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. + * + * The async variant is {@see AdBreakServiceClient::deleteAdBreakAsync()} . + * + * @example samples/V1/AdBreakServiceClient/delete_ad_break.php + * + * @param DeleteAdBreakRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteAdBreak(DeleteAdBreakRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteAdBreak', $request, $callOptions)->wait(); + } + + /** + * API to retrieve an `AdBreak` object. + * + * Query an ad break by its resource name or custom asset key. Check the + * resource's `breakState` field to determine its state. + * + * The async variant is {@see AdBreakServiceClient::getAdBreakAsync()} . + * + * @example samples/V1/AdBreakServiceClient/get_ad_break.php + * + * @param GetAdBreakRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AdBreak + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAdBreak(GetAdBreakRequest $request, array $callOptions = []): AdBreak + { + return $this->startApiCall('GetAdBreak', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `AdBreak` objects. + * + * By default, when no `orderBy` query parameter is specified, ad breaks are + * ordered reverse chronologically. However, ad breaks with a 'breakState' of + * 'SCHEDULED' or 'DECISIONED' are prioritized and appear first. + * + * The async variant is {@see AdBreakServiceClient::listAdBreaksAsync()} . + * + * @example samples/V1/AdBreakServiceClient/list_ad_breaks.php + * + * @param ListAdBreaksRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAdBreaks(ListAdBreaksRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAdBreaks', $request, $callOptions); + } + + /** + * API to update an `AdBreak` object. + * + * Modify an ad break when its state is + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED]. + * + * The async variant is {@see AdBreakServiceClient::updateAdBreakAsync()} . + * + * @example samples/V1/AdBreakServiceClient/update_ad_break.php + * + * @param UpdateAdBreakRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AdBreak + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateAdBreak(UpdateAdBreakRequest $request, array $callOptions = []): AdBreak + { + return $this->startApiCall('UpdateAdBreak', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdReviewCenterAdServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdReviewCenterAdServiceClient.php new file mode 100644 index 000000000000..23b83d4aff14 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdReviewCenterAdServiceClient.php @@ -0,0 +1,405 @@ + batchAllowAdReviewCenterAdsAsync(BatchAllowAdReviewCenterAdsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchBlockAdReviewCenterAdsAsync(BatchBlockAdReviewCenterAdsRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchAdReviewCenterAdsAsync(SearchAdReviewCenterAdsRequest $request, array $optionalArgs = []) + */ +final class AdReviewCenterAdServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.AdReviewCenterAdService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/ad_review_center_ad_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/ad_review_center_ad_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/ad_review_center_ad_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * ad_review_center_ad resource. + * + * @param string $networkCode + * @param string $webPropertyCode + * @param string $adReviewCenterAd + * + * @return string The formatted ad_review_center_ad resource. + */ + public static function adReviewCenterAdName(string $networkCode, string $webPropertyCode, string $adReviewCenterAd): string + { + return self::getPathTemplate('adReviewCenterAd')->render([ + 'network_code' => $networkCode, + 'web_property_code' => $webPropertyCode, + 'ad_review_center_ad' => $adReviewCenterAd, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a web_property + * resource. + * + * @param string $networkCode + * @param string $webProperty + * + * @return string The formatted web_property resource. + */ + public static function webPropertyName(string $networkCode, string $webProperty): string + { + return self::getPathTemplate('webProperty')->render([ + 'network_code' => $networkCode, + 'web_property' => $webProperty, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - adReviewCenterAd: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad} + * - webProperty: networks/{network_code}/webProperties/{web_property} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\AdReviewCenterAdServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new AdReviewCenterAdServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to batch allow AdReviewCenterAds. + * This method supports partial success. Some operations may succeed while + * others fail. Callers should check the failedRequests field in the response + * to determine which operations failed. + * + * The async variant is + * {@see AdReviewCenterAdServiceClient::batchAllowAdReviewCenterAdsAsync()} . + * + * @example samples/V1/AdReviewCenterAdServiceClient/batch_allow_ad_review_center_ads.php + * + * @param BatchAllowAdReviewCenterAdsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchAllowAdReviewCenterAds(BatchAllowAdReviewCenterAdsRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('BatchAllowAdReviewCenterAds', $request, $callOptions)->wait(); + } + + /** + * API to batch block AdReviewCenterAds. + * This method supports partial success. Some operations may succeed while + * others fail. Callers should check the failedRequests field in the response + * to determine which operations failed. + * + * The async variant is + * {@see AdReviewCenterAdServiceClient::batchBlockAdReviewCenterAdsAsync()} . + * + * @example samples/V1/AdReviewCenterAdServiceClient/batch_block_ad_review_center_ads.php + * + * @param BatchBlockAdReviewCenterAdsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchBlockAdReviewCenterAds(BatchBlockAdReviewCenterAdsRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('BatchBlockAdReviewCenterAds', $request, $callOptions)->wait(); + } + + /** + * API to search for AdReviewCenterAds. + * + * The async variant is + * {@see AdReviewCenterAdServiceClient::searchAdReviewCenterAdsAsync()} . + * + * @example samples/V1/AdReviewCenterAdServiceClient/search_ad_review_center_ads.php + * + * @param SearchAdReviewCenterAdsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function searchAdReviewCenterAds(SearchAdReviewCenterAdsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchAdReviewCenterAds', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php new file mode 100644 index 000000000000..2344bf4c6012 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php @@ -0,0 +1,337 @@ + getAdUnitAsync(GetAdUnitRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAdUnitSizesAsync(ListAdUnitSizesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAdUnitsAsync(ListAdUnitsRequest $request, array $optionalArgs = []) + */ +final class AdUnitServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.AdUnitService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/ad_unit_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/ad_unit_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/ad_unit_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a ad_unit + * resource. + * + * @param string $networkCode + * @param string $adUnit + * + * @return string The formatted ad_unit resource. + */ + public static function adUnitName(string $networkCode, string $adUnit): string + { + return self::getPathTemplate('adUnit')->render([ + 'network_code' => $networkCode, + 'ad_unit' => $adUnit, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - adUnit: networks/{network_code}/adUnits/{ad_unit} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\AdUnitServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new AdUnitServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve an AdUnit object. + * + * The async variant is {@see AdUnitServiceClient::getAdUnitAsync()} . + * + * @example samples/V1/AdUnitServiceClient/get_ad_unit.php + * + * @param GetAdUnitRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AdUnit + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAdUnit(GetAdUnitRequest $request, array $callOptions = []): AdUnit + { + return $this->startApiCall('GetAdUnit', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of AdUnitSize objects. + * + * The async variant is {@see AdUnitServiceClient::listAdUnitSizesAsync()} . + * + * @example samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php + * + * @param ListAdUnitSizesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAdUnitSizes(ListAdUnitSizesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAdUnitSizes', $request, $callOptions); + } + + /** + * API to retrieve a list of AdUnit objects. + * + * The async variant is {@see AdUnitServiceClient::listAdUnitsAsync()} . + * + * @example samples/V1/AdUnitServiceClient/list_ad_units.php + * + * @param ListAdUnitsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAdUnits(ListAdUnitsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAdUnits', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ApplicationServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ApplicationServiceClient.php new file mode 100644 index 000000000000..3a544ea79870 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ApplicationServiceClient.php @@ -0,0 +1,309 @@ + getApplicationAsync(GetApplicationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApplicationsAsync(ListApplicationsRequest $request, array $optionalArgs = []) + */ +final class ApplicationServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.ApplicationService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/application_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/application_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/application_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a application + * resource. + * + * @param string $networkCode + * @param string $application + * + * @return string The formatted application resource. + */ + public static function applicationName(string $networkCode, string $application): string + { + return self::getPathTemplate('application')->render([ + 'network_code' => $networkCode, + 'application' => $application, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - application: networks/{network_code}/applications/{application} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\ApplicationServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ApplicationServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `Application` object. + * + * The async variant is {@see ApplicationServiceClient::getApplicationAsync()} . + * + * @example samples/V1/ApplicationServiceClient/get_application.php + * + * @param GetApplicationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Application + * + * @throws ApiException Thrown if the API call fails. + */ + public function getApplication(GetApplicationRequest $request, array $callOptions = []): Application + { + return $this->startApiCall('GetApplication', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Application` objects. + * + * The async variant is {@see ApplicationServiceClient::listApplicationsAsync()} . + * + * @example samples/V1/ApplicationServiceClient/list_applications.php + * + * @param ListApplicationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listApplications(ListApplicationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListApplications', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AudienceSegmentServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AudienceSegmentServiceClient.php new file mode 100644 index 000000000000..6e253faf9a4e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AudienceSegmentServiceClient.php @@ -0,0 +1,311 @@ + getAudienceSegmentAsync(GetAudienceSegmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAudienceSegmentsAsync(ListAudienceSegmentsRequest $request, array $optionalArgs = []) + */ +final class AudienceSegmentServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.AudienceSegmentService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/audience_segment_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/audience_segment_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/audience_segment_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * audience_segment resource. + * + * @param string $networkCode + * @param string $audienceSegment + * + * @return string The formatted audience_segment resource. + */ + public static function audienceSegmentName(string $networkCode, string $audienceSegment): string + { + return self::getPathTemplate('audienceSegment')->render([ + 'network_code' => $networkCode, + 'audience_segment' => $audienceSegment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - audienceSegment: networks/{network_code}/audienceSegments/{audience_segment} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\AudienceSegmentServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new AudienceSegmentServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve an `AudienceSegment` object. + * + * The async variant is + * {@see AudienceSegmentServiceClient::getAudienceSegmentAsync()} . + * + * @example samples/V1/AudienceSegmentServiceClient/get_audience_segment.php + * + * @param GetAudienceSegmentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AudienceSegment + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAudienceSegment(GetAudienceSegmentRequest $request, array $callOptions = []): AudienceSegment + { + return $this->startApiCall('GetAudienceSegment', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `AudienceSegment` objects. + * + * The async variant is + * {@see AudienceSegmentServiceClient::listAudienceSegmentsAsync()} . + * + * @example samples/V1/AudienceSegmentServiceClient/list_audience_segments.php + * + * @param ListAudienceSegmentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAudienceSegments(ListAudienceSegmentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAudienceSegments', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BandwidthGroupServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BandwidthGroupServiceClient.php new file mode 100644 index 000000000000..57bbd0ebc78d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BandwidthGroupServiceClient.php @@ -0,0 +1,311 @@ + getBandwidthGroupAsync(GetBandwidthGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBandwidthGroupsAsync(ListBandwidthGroupsRequest $request, array $optionalArgs = []) + */ +final class BandwidthGroupServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.BandwidthGroupService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/bandwidth_group_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/bandwidth_group_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/bandwidth_group_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * bandwidth_group resource. + * + * @param string $networkCode + * @param string $bandwidthGroup + * + * @return string The formatted bandwidth_group resource. + */ + public static function bandwidthGroupName(string $networkCode, string $bandwidthGroup): string + { + return self::getPathTemplate('bandwidthGroup')->render([ + 'network_code' => $networkCode, + 'bandwidth_group' => $bandwidthGroup, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - bandwidthGroup: networks/{network_code}/bandwidthGroups/{bandwidth_group} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\BandwidthGroupServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new BandwidthGroupServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `BandwidthGroup` object. + * + * The async variant is + * {@see BandwidthGroupServiceClient::getBandwidthGroupAsync()} . + * + * @example samples/V1/BandwidthGroupServiceClient/get_bandwidth_group.php + * + * @param GetBandwidthGroupRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BandwidthGroup + * + * @throws ApiException Thrown if the API call fails. + */ + public function getBandwidthGroup(GetBandwidthGroupRequest $request, array $callOptions = []): BandwidthGroup + { + return $this->startApiCall('GetBandwidthGroup', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `BandwidthGroup` objects. + * + * The async variant is + * {@see BandwidthGroupServiceClient::listBandwidthGroupsAsync()} . + * + * @example samples/V1/BandwidthGroupServiceClient/list_bandwidth_groups.php + * + * @param ListBandwidthGroupsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listBandwidthGroups(ListBandwidthGroupsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListBandwidthGroups', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserLanguageServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserLanguageServiceClient.php new file mode 100644 index 000000000000..0dbfa99dd522 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserLanguageServiceClient.php @@ -0,0 +1,311 @@ + getBrowserLanguageAsync(GetBrowserLanguageRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBrowserLanguagesAsync(ListBrowserLanguagesRequest $request, array $optionalArgs = []) + */ +final class BrowserLanguageServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.BrowserLanguageService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/browser_language_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/browser_language_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/browser_language_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * browser_language resource. + * + * @param string $networkCode + * @param string $browserLanguage + * + * @return string The formatted browser_language resource. + */ + public static function browserLanguageName(string $networkCode, string $browserLanguage): string + { + return self::getPathTemplate('browserLanguage')->render([ + 'network_code' => $networkCode, + 'browser_language' => $browserLanguage, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - browserLanguage: networks/{network_code}/browserLanguages/{browser_language} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\BrowserLanguageServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new BrowserLanguageServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `BrowserLanguage` object. + * + * The async variant is + * {@see BrowserLanguageServiceClient::getBrowserLanguageAsync()} . + * + * @example samples/V1/BrowserLanguageServiceClient/get_browser_language.php + * + * @param GetBrowserLanguageRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BrowserLanguage + * + * @throws ApiException Thrown if the API call fails. + */ + public function getBrowserLanguage(GetBrowserLanguageRequest $request, array $callOptions = []): BrowserLanguage + { + return $this->startApiCall('GetBrowserLanguage', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `BrowserLanguage` objects. + * + * The async variant is + * {@see BrowserLanguageServiceClient::listBrowserLanguagesAsync()} . + * + * @example samples/V1/BrowserLanguageServiceClient/list_browser_languages.php + * + * @param ListBrowserLanguagesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listBrowserLanguages(ListBrowserLanguagesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListBrowserLanguages', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserServiceClient.php new file mode 100644 index 000000000000..861eaeb6a832 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserServiceClient.php @@ -0,0 +1,309 @@ + getBrowserAsync(GetBrowserRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBrowsersAsync(ListBrowsersRequest $request, array $optionalArgs = []) + */ +final class BrowserServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.BrowserService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/browser_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/browser_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/browser_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a browser + * resource. + * + * @param string $networkCode + * @param string $browser + * + * @return string The formatted browser resource. + */ + public static function browserName(string $networkCode, string $browser): string + { + return self::getPathTemplate('browser')->render([ + 'network_code' => $networkCode, + 'browser' => $browser, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - browser: networks/{network_code}/browsers/{browser} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\BrowserServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new BrowserServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `Browser` object. + * + * The async variant is {@see BrowserServiceClient::getBrowserAsync()} . + * + * @example samples/V1/BrowserServiceClient/get_browser.php + * + * @param GetBrowserRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Browser + * + * @throws ApiException Thrown if the API call fails. + */ + public function getBrowser(GetBrowserRequest $request, array $callOptions = []): Browser + { + return $this->startApiCall('GetBrowser', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Browser` objects. + * + * The async variant is {@see BrowserServiceClient::listBrowsersAsync()} . + * + * @example samples/V1/BrowserServiceClient/list_browsers.php + * + * @param ListBrowsersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listBrowsers(ListBrowsersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListBrowsers', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataKeyServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataKeyServiceClient.php new file mode 100644 index 000000000000..a40ab6189077 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataKeyServiceClient.php @@ -0,0 +1,311 @@ + getCmsMetadataKeyAsync(GetCmsMetadataKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCmsMetadataKeysAsync(ListCmsMetadataKeysRequest $request, array $optionalArgs = []) + */ +final class CmsMetadataKeyServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.CmsMetadataKeyService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cms_metadata_key_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cms_metadata_key_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cms_metadata_key_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * cms_metadata_key resource. + * + * @param string $networkCode + * @param string $cmsMetadataKey + * + * @return string The formatted cms_metadata_key resource. + */ + public static function cmsMetadataKeyName(string $networkCode, string $cmsMetadataKey): string + { + return self::getPathTemplate('cmsMetadataKey')->render([ + 'network_code' => $networkCode, + 'cms_metadata_key' => $cmsMetadataKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - cmsMetadataKey: networks/{network_code}/cmsMetadataKeys/{cms_metadata_key} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\CmsMetadataKeyServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CmsMetadataKeyServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `CmsMetadataKey` object. + * + * The async variant is + * {@see CmsMetadataKeyServiceClient::getCmsMetadataKeyAsync()} . + * + * @example samples/V1/CmsMetadataKeyServiceClient/get_cms_metadata_key.php + * + * @param GetCmsMetadataKeyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CmsMetadataKey + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCmsMetadataKey(GetCmsMetadataKeyRequest $request, array $callOptions = []): CmsMetadataKey + { + return $this->startApiCall('GetCmsMetadataKey', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `CmsMetadataKey` objects. + * + * The async variant is + * {@see CmsMetadataKeyServiceClient::listCmsMetadataKeysAsync()} . + * + * @example samples/V1/CmsMetadataKeyServiceClient/list_cms_metadata_keys.php + * + * @param ListCmsMetadataKeysRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCmsMetadataKeys(ListCmsMetadataKeysRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCmsMetadataKeys', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataValueServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataValueServiceClient.php new file mode 100644 index 000000000000..a6aaad6da1c3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataValueServiceClient.php @@ -0,0 +1,311 @@ + getCmsMetadataValueAsync(GetCmsMetadataValueRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCmsMetadataValuesAsync(ListCmsMetadataValuesRequest $request, array $optionalArgs = []) + */ +final class CmsMetadataValueServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.CmsMetadataValueService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cms_metadata_value_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cms_metadata_value_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cms_metadata_value_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * cms_metadata_value resource. + * + * @param string $networkCode + * @param string $cmsMetadataValue + * + * @return string The formatted cms_metadata_value resource. + */ + public static function cmsMetadataValueName(string $networkCode, string $cmsMetadataValue): string + { + return self::getPathTemplate('cmsMetadataValue')->render([ + 'network_code' => $networkCode, + 'cms_metadata_value' => $cmsMetadataValue, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - cmsMetadataValue: networks/{network_code}/cmsMetadataValues/{cms_metadata_value} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\CmsMetadataValueServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CmsMetadataValueServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `CmsMetadataKey` object. + * + * The async variant is + * {@see CmsMetadataValueServiceClient::getCmsMetadataValueAsync()} . + * + * @example samples/V1/CmsMetadataValueServiceClient/get_cms_metadata_value.php + * + * @param GetCmsMetadataValueRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CmsMetadataValue + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCmsMetadataValue(GetCmsMetadataValueRequest $request, array $callOptions = []): CmsMetadataValue + { + return $this->startApiCall('GetCmsMetadataValue', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `CmsMetadataValue` objects. + * + * The async variant is + * {@see CmsMetadataValueServiceClient::listCmsMetadataValuesAsync()} . + * + * @example samples/V1/CmsMetadataValueServiceClient/list_cms_metadata_values.php + * + * @param ListCmsMetadataValuesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCmsMetadataValues(ListCmsMetadataValuesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCmsMetadataValues', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php new file mode 100644 index 000000000000..eb536b95549c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php @@ -0,0 +1,309 @@ + getCompanyAsync(GetCompanyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCompaniesAsync(ListCompaniesRequest $request, array $optionalArgs = []) + */ +final class CompanyServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.CompanyService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/company_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/company_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/company_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a company + * resource. + * + * @param string $networkCode + * @param string $company + * + * @return string The formatted company resource. + */ + public static function companyName(string $networkCode, string $company): string + { + return self::getPathTemplate('company')->render([ + 'network_code' => $networkCode, + 'company' => $company, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - company: networks/{network_code}/companies/{company} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\CompanyServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CompanyServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `Company` object. + * + * The async variant is {@see CompanyServiceClient::getCompanyAsync()} . + * + * @example samples/V1/CompanyServiceClient/get_company.php + * + * @param GetCompanyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Company + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCompany(GetCompanyRequest $request, array $callOptions = []): Company + { + return $this->startApiCall('GetCompany', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Company` objects. + * + * The async variant is {@see CompanyServiceClient::listCompaniesAsync()} . + * + * @example samples/V1/CompanyServiceClient/list_companies.php + * + * @param ListCompaniesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCompanies(ListCompaniesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCompanies', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContactServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContactServiceClient.php new file mode 100644 index 000000000000..617bd8c55ec0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContactServiceClient.php @@ -0,0 +1,441 @@ + batchCreateContactsAsync(BatchCreateContactsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateContactsAsync(BatchUpdateContactsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createContactAsync(CreateContactRequest $request, array $optionalArgs = []) + * @method PromiseInterface getContactAsync(GetContactRequest $request, array $optionalArgs = []) + * @method PromiseInterface listContactsAsync(ListContactsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateContactAsync(UpdateContactRequest $request, array $optionalArgs = []) + */ +final class ContactServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.ContactService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/contact_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/contact_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/contact_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a company + * resource. + * + * @param string $networkCode + * @param string $company + * + * @return string The formatted company resource. + */ + public static function companyName(string $networkCode, string $company): string + { + return self::getPathTemplate('company')->render([ + 'network_code' => $networkCode, + 'company' => $company, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a contact + * resource. + * + * @param string $networkCode + * @param string $contact + * + * @return string The formatted contact resource. + */ + public static function contactName(string $networkCode, string $contact): string + { + return self::getPathTemplate('contact')->render([ + 'network_code' => $networkCode, + 'contact' => $contact, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - company: networks/{network_code}/companies/{company} + * - contact: networks/{network_code}/contacts/{contact} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\ContactServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ContactServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to batch create `Contact` objects. + * + * The async variant is {@see ContactServiceClient::batchCreateContactsAsync()} . + * + * @example samples/V1/ContactServiceClient/batch_create_contacts.php + * + * @param BatchCreateContactsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateContactsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateContacts(BatchCreateContactsRequest $request, array $callOptions = []): BatchCreateContactsResponse + { + return $this->startApiCall('BatchCreateContacts', $request, $callOptions)->wait(); + } + + /** + * API to batch update `Contact` objects. + * + * The async variant is {@see ContactServiceClient::batchUpdateContactsAsync()} . + * + * @example samples/V1/ContactServiceClient/batch_update_contacts.php + * + * @param BatchUpdateContactsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateContactsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateContacts(BatchUpdateContactsRequest $request, array $callOptions = []): BatchUpdateContactsResponse + { + return $this->startApiCall('BatchUpdateContacts', $request, $callOptions)->wait(); + } + + /** + * API to create a `Contact` object. + * + * The async variant is {@see ContactServiceClient::createContactAsync()} . + * + * @example samples/V1/ContactServiceClient/create_contact.php + * + * @param CreateContactRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Contact + * + * @throws ApiException Thrown if the API call fails. + */ + public function createContact(CreateContactRequest $request, array $callOptions = []): Contact + { + return $this->startApiCall('CreateContact', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a `Contact` object. + * + * The async variant is {@see ContactServiceClient::getContactAsync()} . + * + * @example samples/V1/ContactServiceClient/get_contact.php + * + * @param GetContactRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Contact + * + * @throws ApiException Thrown if the API call fails. + */ + public function getContact(GetContactRequest $request, array $callOptions = []): Contact + { + return $this->startApiCall('GetContact', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Contact` objects. + * + * The async variant is {@see ContactServiceClient::listContactsAsync()} . + * + * @example samples/V1/ContactServiceClient/list_contacts.php + * + * @param ListContactsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listContacts(ListContactsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListContacts', $request, $callOptions); + } + + /** + * API to update a `Contact` object. + * + * The async variant is {@see ContactServiceClient::updateContactAsync()} . + * + * @example samples/V1/ContactServiceClient/update_contact.php + * + * @param UpdateContactRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Contact + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateContact(UpdateContactRequest $request, array $callOptions = []): Contact + { + return $this->startApiCall('UpdateContact', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentBundleServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentBundleServiceClient.php new file mode 100644 index 000000000000..d11d005f96c1 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentBundleServiceClient.php @@ -0,0 +1,311 @@ + getContentBundleAsync(GetContentBundleRequest $request, array $optionalArgs = []) + * @method PromiseInterface listContentBundlesAsync(ListContentBundlesRequest $request, array $optionalArgs = []) + */ +final class ContentBundleServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.ContentBundleService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/content_bundle_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/content_bundle_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/content_bundle_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * content_bundle resource. + * + * @param string $networkCode + * @param string $contentBundle + * + * @return string The formatted content_bundle resource. + */ + public static function contentBundleName(string $networkCode, string $contentBundle): string + { + return self::getPathTemplate('contentBundle')->render([ + 'network_code' => $networkCode, + 'content_bundle' => $contentBundle, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - contentBundle: networks/{network_code}/contentBundles/{content_bundle} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\ContentBundleServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ContentBundleServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `ContentBundle` object. + * + * The async variant is {@see ContentBundleServiceClient::getContentBundleAsync()} + * . + * + * @example samples/V1/ContentBundleServiceClient/get_content_bundle.php + * + * @param GetContentBundleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ContentBundle + * + * @throws ApiException Thrown if the API call fails. + */ + public function getContentBundle(GetContentBundleRequest $request, array $callOptions = []): ContentBundle + { + return $this->startApiCall('GetContentBundle', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `ContentBundle` objects. + * + * The async variant is + * {@see ContentBundleServiceClient::listContentBundlesAsync()} . + * + * @example samples/V1/ContentBundleServiceClient/list_content_bundles.php + * + * @param ListContentBundlesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listContentBundles(ListContentBundlesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListContentBundles', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentLabelServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentLabelServiceClient.php new file mode 100644 index 000000000000..d2e1df931597 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentLabelServiceClient.php @@ -0,0 +1,310 @@ + getContentLabelAsync(GetContentLabelRequest $request, array $optionalArgs = []) + * @method PromiseInterface listContentLabelsAsync(ListContentLabelsRequest $request, array $optionalArgs = []) + */ +final class ContentLabelServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.ContentLabelService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/content_label_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/content_label_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/content_label_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * content_label resource. + * + * @param string $networkCode + * @param string $contentLabel + * + * @return string The formatted content_label resource. + */ + public static function contentLabelName(string $networkCode, string $contentLabel): string + { + return self::getPathTemplate('contentLabel')->render([ + 'network_code' => $networkCode, + 'content_label' => $contentLabel, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - contentLabel: networks/{network_code}/contentLabels/{content_label} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\ContentLabelServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ContentLabelServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `ContentLabel` object. + * + * The async variant is {@see ContentLabelServiceClient::getContentLabelAsync()} . + * + * @example samples/V1/ContentLabelServiceClient/get_content_label.php + * + * @param GetContentLabelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ContentLabel + * + * @throws ApiException Thrown if the API call fails. + */ + public function getContentLabel(GetContentLabelRequest $request, array $callOptions = []): ContentLabel + { + return $this->startApiCall('GetContentLabel', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `ContentLabel` objects. + * + * The async variant is {@see ContentLabelServiceClient::listContentLabelsAsync()} + * . + * + * @example samples/V1/ContentLabelServiceClient/list_content_labels.php + * + * @param ListContentLabelsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listContentLabels(ListContentLabelsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListContentLabels', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentServiceClient.php new file mode 100644 index 000000000000..59097dc699d9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentServiceClient.php @@ -0,0 +1,309 @@ + getContentAsync(GetContentRequest $request, array $optionalArgs = []) + * @method PromiseInterface listContentAsync(ListContentRequest $request, array $optionalArgs = []) + */ +final class ContentServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.ContentService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/content_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/content_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/content_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a content + * resource. + * + * @param string $networkCode + * @param string $content + * + * @return string The formatted content resource. + */ + public static function contentName(string $networkCode, string $content): string + { + return self::getPathTemplate('content')->render([ + 'network_code' => $networkCode, + 'content' => $content, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - content: networks/{network_code}/content/{content} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\ContentServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ContentServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `Content` object. + * + * The async variant is {@see ContentServiceClient::getContentAsync()} . + * + * @example samples/V1/ContentServiceClient/get_content.php + * + * @param GetContentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Content + * + * @throws ApiException Thrown if the API call fails. + */ + public function getContent(GetContentRequest $request, array $callOptions = []): Content + { + return $this->startApiCall('GetContent', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Content` objects. + * + * The async variant is {@see ContentServiceClient::listContentAsync()} . + * + * @example samples/V1/ContentServiceClient/list_content.php + * + * @param ListContentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listContent(ListContentRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListContent', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CreativeTemplateServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CreativeTemplateServiceClient.php new file mode 100644 index 000000000000..10c390da8ba0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CreativeTemplateServiceClient.php @@ -0,0 +1,311 @@ + getCreativeTemplateAsync(GetCreativeTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCreativeTemplatesAsync(ListCreativeTemplatesRequest $request, array $optionalArgs = []) + */ +final class CreativeTemplateServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.CreativeTemplateService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/creative_template_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/creative_template_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/creative_template_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * creative_template resource. + * + * @param string $networkCode + * @param string $creativeTemplate + * + * @return string The formatted creative_template resource. + */ + public static function creativeTemplateName(string $networkCode, string $creativeTemplate): string + { + return self::getPathTemplate('creativeTemplate')->render([ + 'network_code' => $networkCode, + 'creative_template' => $creativeTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - creativeTemplate: networks/{network_code}/creativeTemplates/{creative_template} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\CreativeTemplateServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CreativeTemplateServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `CreativeTemplate` object. + * + * The async variant is + * {@see CreativeTemplateServiceClient::getCreativeTemplateAsync()} . + * + * @example samples/V1/CreativeTemplateServiceClient/get_creative_template.php + * + * @param GetCreativeTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CreativeTemplate + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCreativeTemplate(GetCreativeTemplateRequest $request, array $callOptions = []): CreativeTemplate + { + return $this->startApiCall('GetCreativeTemplate', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `CreativeTemplate` objects. + * + * The async variant is + * {@see CreativeTemplateServiceClient::listCreativeTemplatesAsync()} . + * + * @example samples/V1/CreativeTemplateServiceClient/list_creative_templates.php + * + * @param ListCreativeTemplatesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCreativeTemplates(ListCreativeTemplatesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCreativeTemplates', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php new file mode 100644 index 000000000000..64ebc3671e68 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php @@ -0,0 +1,485 @@ + batchActivateCustomFieldsAsync(BatchActivateCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateCustomFieldsAsync(BatchCreateCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchDeactivateCustomFieldsAsync(BatchDeactivateCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateCustomFieldsAsync(BatchUpdateCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCustomFieldAsync(CreateCustomFieldRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomFieldAsync(GetCustomFieldRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomFieldsAsync(ListCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCustomFieldAsync(UpdateCustomFieldRequest $request, array $optionalArgs = []) + */ +final class CustomFieldServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.CustomFieldService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/custom_field_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/custom_field_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/custom_field_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a custom_field + * resource. + * + * @param string $networkCode + * @param string $customField + * + * @return string The formatted custom_field resource. + */ + public static function customFieldName(string $networkCode, string $customField): string + { + return self::getPathTemplate('customField')->render([ + 'network_code' => $networkCode, + 'custom_field' => $customField, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - customField: networks/{network_code}/customFields/{custom_field} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\CustomFieldServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CustomFieldServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Activates a list of `CustomField` objects. + * + * The async variant is + * {@see CustomFieldServiceClient::batchActivateCustomFieldsAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php + * + * @param BatchActivateCustomFieldsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchActivateCustomFieldsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchActivateCustomFields(BatchActivateCustomFieldsRequest $request, array $callOptions = []): BatchActivateCustomFieldsResponse + { + return $this->startApiCall('BatchActivateCustomFields', $request, $callOptions)->wait(); + } + + /** + * API to batch create `CustomField` objects. + * + * The async variant is + * {@see CustomFieldServiceClient::batchCreateCustomFieldsAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php + * + * @param BatchCreateCustomFieldsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateCustomFieldsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateCustomFields(BatchCreateCustomFieldsRequest $request, array $callOptions = []): BatchCreateCustomFieldsResponse + { + return $this->startApiCall('BatchCreateCustomFields', $request, $callOptions)->wait(); + } + + /** + * Deactivates a list of `CustomField` objects. + * + * The async variant is + * {@see CustomFieldServiceClient::batchDeactivateCustomFieldsAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php + * + * @param BatchDeactivateCustomFieldsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchDeactivateCustomFieldsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchDeactivateCustomFields(BatchDeactivateCustomFieldsRequest $request, array $callOptions = []): BatchDeactivateCustomFieldsResponse + { + return $this->startApiCall('BatchDeactivateCustomFields', $request, $callOptions)->wait(); + } + + /** + * API to batch update `CustomField` objects. + * + * The async variant is + * {@see CustomFieldServiceClient::batchUpdateCustomFieldsAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php + * + * @param BatchUpdateCustomFieldsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateCustomFieldsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateCustomFields(BatchUpdateCustomFieldsRequest $request, array $callOptions = []): BatchUpdateCustomFieldsResponse + { + return $this->startApiCall('BatchUpdateCustomFields', $request, $callOptions)->wait(); + } + + /** + * API to create a `CustomField` object. + * + * The async variant is {@see CustomFieldServiceClient::createCustomFieldAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/create_custom_field.php + * + * @param CreateCustomFieldRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomField + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCustomField(CreateCustomFieldRequest $request, array $callOptions = []): CustomField + { + return $this->startApiCall('CreateCustomField', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a `CustomField` object. + * + * The async variant is {@see CustomFieldServiceClient::getCustomFieldAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/get_custom_field.php + * + * @param GetCustomFieldRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomField + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCustomField(GetCustomFieldRequest $request, array $callOptions = []): CustomField + { + return $this->startApiCall('GetCustomField', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `CustomField` objects. + * + * The async variant is {@see CustomFieldServiceClient::listCustomFieldsAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/list_custom_fields.php + * + * @param ListCustomFieldsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCustomFields(ListCustomFieldsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomFields', $request, $callOptions); + } + + /** + * API to update a `CustomField` object. + * + * The async variant is {@see CustomFieldServiceClient::updateCustomFieldAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/update_custom_field.php + * + * @param UpdateCustomFieldRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomField + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCustomField(UpdateCustomFieldRequest $request, array $callOptions = []): CustomField + { + return $this->startApiCall('UpdateCustomField', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php new file mode 100644 index 000000000000..79c9df7eb220 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php @@ -0,0 +1,311 @@ + getCustomTargetingKeyAsync(GetCustomTargetingKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomTargetingKeysAsync(ListCustomTargetingKeysRequest $request, array $optionalArgs = []) + */ +final class CustomTargetingKeyServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.CustomTargetingKeyService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/custom_targeting_key_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/custom_targeting_key_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/custom_targeting_key_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_targeting_key resource. + * + * @param string $networkCode + * @param string $customTargetingKey + * + * @return string The formatted custom_targeting_key resource. + */ + public static function customTargetingKeyName(string $networkCode, string $customTargetingKey): string + { + return self::getPathTemplate('customTargetingKey')->render([ + 'network_code' => $networkCode, + 'custom_targeting_key' => $customTargetingKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - customTargetingKey: networks/{network_code}/customTargetingKeys/{custom_targeting_key} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\CustomTargetingKeyServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CustomTargetingKeyServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `CustomTargetingKey` object. + * + * The async variant is + * {@see CustomTargetingKeyServiceClient::getCustomTargetingKeyAsync()} . + * + * @example samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php + * + * @param GetCustomTargetingKeyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomTargetingKey + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCustomTargetingKey(GetCustomTargetingKeyRequest $request, array $callOptions = []): CustomTargetingKey + { + return $this->startApiCall('GetCustomTargetingKey', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `CustomTargetingKey` objects. + * + * The async variant is + * {@see CustomTargetingKeyServiceClient::listCustomTargetingKeysAsync()} . + * + * @example samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php + * + * @param ListCustomTargetingKeysRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCustomTargetingKeys(ListCustomTargetingKeysRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomTargetingKeys', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php new file mode 100644 index 000000000000..f26f8c1d7a4a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php @@ -0,0 +1,311 @@ + getCustomTargetingValueAsync(GetCustomTargetingValueRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomTargetingValuesAsync(ListCustomTargetingValuesRequest $request, array $optionalArgs = []) + */ +final class CustomTargetingValueServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.CustomTargetingValueService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/custom_targeting_value_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/custom_targeting_value_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/custom_targeting_value_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_targeting_value resource. + * + * @param string $networkCode + * @param string $customTargetingValue + * + * @return string The formatted custom_targeting_value resource. + */ + public static function customTargetingValueName(string $networkCode, string $customTargetingValue): string + { + return self::getPathTemplate('customTargetingValue')->render([ + 'network_code' => $networkCode, + 'custom_targeting_value' => $customTargetingValue, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - customTargetingValue: networks/{network_code}/customTargetingValues/{custom_targeting_value} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\CustomTargetingValueServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CustomTargetingValueServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `CustomTargetingValue` object. + * + * The async variant is + * {@see CustomTargetingValueServiceClient::getCustomTargetingValueAsync()} . + * + * @example samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php + * + * @param GetCustomTargetingValueRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomTargetingValue + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCustomTargetingValue(GetCustomTargetingValueRequest $request, array $callOptions = []): CustomTargetingValue + { + return $this->startApiCall('GetCustomTargetingValue', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `CustomTargetingValue` objects. + * + * The async variant is + * {@see CustomTargetingValueServiceClient::listCustomTargetingValuesAsync()} . + * + * @example samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php + * + * @param ListCustomTargetingValuesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCustomTargetingValues(ListCustomTargetingValuesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomTargetingValues', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCapabilityServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCapabilityServiceClient.php new file mode 100644 index 000000000000..9f97cb3b8b88 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCapabilityServiceClient.php @@ -0,0 +1,311 @@ + getDeviceCapabilityAsync(GetDeviceCapabilityRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDeviceCapabilitiesAsync(ListDeviceCapabilitiesRequest $request, array $optionalArgs = []) + */ +final class DeviceCapabilityServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.DeviceCapabilityService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/device_capability_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/device_capability_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/device_capability_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * device_capability resource. + * + * @param string $networkCode + * @param string $deviceCapability + * + * @return string The formatted device_capability resource. + */ + public static function deviceCapabilityName(string $networkCode, string $deviceCapability): string + { + return self::getPathTemplate('deviceCapability')->render([ + 'network_code' => $networkCode, + 'device_capability' => $deviceCapability, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - deviceCapability: networks/{network_code}/deviceCapabilities/{device_capability} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\DeviceCapabilityServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DeviceCapabilityServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `DeviceCapability` object. + * + * The async variant is + * {@see DeviceCapabilityServiceClient::getDeviceCapabilityAsync()} . + * + * @example samples/V1/DeviceCapabilityServiceClient/get_device_capability.php + * + * @param GetDeviceCapabilityRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DeviceCapability + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDeviceCapability(GetDeviceCapabilityRequest $request, array $callOptions = []): DeviceCapability + { + return $this->startApiCall('GetDeviceCapability', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `DeviceCapability` objects. + * + * The async variant is + * {@see DeviceCapabilityServiceClient::listDeviceCapabilitiesAsync()} . + * + * @example samples/V1/DeviceCapabilityServiceClient/list_device_capabilities.php + * + * @param ListDeviceCapabilitiesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDeviceCapabilities(ListDeviceCapabilitiesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDeviceCapabilities', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCategoryServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCategoryServiceClient.php new file mode 100644 index 000000000000..5ca8845393d8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCategoryServiceClient.php @@ -0,0 +1,311 @@ + getDeviceCategoryAsync(GetDeviceCategoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDeviceCategoriesAsync(ListDeviceCategoriesRequest $request, array $optionalArgs = []) + */ +final class DeviceCategoryServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.DeviceCategoryService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/device_category_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/device_category_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/device_category_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * device_category resource. + * + * @param string $networkCode + * @param string $deviceCategory + * + * @return string The formatted device_category resource. + */ + public static function deviceCategoryName(string $networkCode, string $deviceCategory): string + { + return self::getPathTemplate('deviceCategory')->render([ + 'network_code' => $networkCode, + 'device_category' => $deviceCategory, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - deviceCategory: networks/{network_code}/deviceCategories/{device_category} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\DeviceCategoryServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DeviceCategoryServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `DeviceCategory` object. + * + * The async variant is + * {@see DeviceCategoryServiceClient::getDeviceCategoryAsync()} . + * + * @example samples/V1/DeviceCategoryServiceClient/get_device_category.php + * + * @param GetDeviceCategoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DeviceCategory + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDeviceCategory(GetDeviceCategoryRequest $request, array $callOptions = []): DeviceCategory + { + return $this->startApiCall('GetDeviceCategory', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `DeviceCategory` objects. + * + * The async variant is + * {@see DeviceCategoryServiceClient::listDeviceCategoriesAsync()} . + * + * @example samples/V1/DeviceCategoryServiceClient/list_device_categories.php + * + * @param ListDeviceCategoriesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDeviceCategories(ListDeviceCategoriesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDeviceCategories', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceManufacturerServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceManufacturerServiceClient.php new file mode 100644 index 000000000000..acad02f683e1 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceManufacturerServiceClient.php @@ -0,0 +1,311 @@ + getDeviceManufacturerAsync(GetDeviceManufacturerRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDeviceManufacturersAsync(ListDeviceManufacturersRequest $request, array $optionalArgs = []) + */ +final class DeviceManufacturerServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.DeviceManufacturerService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/device_manufacturer_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/device_manufacturer_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/device_manufacturer_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * device_manufacturer resource. + * + * @param string $networkCode + * @param string $deviceManufacturer + * + * @return string The formatted device_manufacturer resource. + */ + public static function deviceManufacturerName(string $networkCode, string $deviceManufacturer): string + { + return self::getPathTemplate('deviceManufacturer')->render([ + 'network_code' => $networkCode, + 'device_manufacturer' => $deviceManufacturer, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - deviceManufacturer: networks/{network_code}/deviceManufacturers/{device_manufacturer} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\DeviceManufacturerServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DeviceManufacturerServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `DeviceManufacturer` object. + * + * The async variant is + * {@see DeviceManufacturerServiceClient::getDeviceManufacturerAsync()} . + * + * @example samples/V1/DeviceManufacturerServiceClient/get_device_manufacturer.php + * + * @param GetDeviceManufacturerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DeviceManufacturer + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDeviceManufacturer(GetDeviceManufacturerRequest $request, array $callOptions = []): DeviceManufacturer + { + return $this->startApiCall('GetDeviceManufacturer', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `DeviceManufacturer` objects. + * + * The async variant is + * {@see DeviceManufacturerServiceClient::listDeviceManufacturersAsync()} . + * + * @example samples/V1/DeviceManufacturerServiceClient/list_device_manufacturers.php + * + * @param ListDeviceManufacturersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDeviceManufacturers(ListDeviceManufacturersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDeviceManufacturers', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php new file mode 100644 index 000000000000..c050851a2420 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php @@ -0,0 +1,431 @@ + batchCreateEntitySignalsMappingsAsync(BatchCreateEntitySignalsMappingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateEntitySignalsMappingsAsync(BatchUpdateEntitySignalsMappingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEntitySignalsMappingAsync(CreateEntitySignalsMappingRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEntitySignalsMappingAsync(GetEntitySignalsMappingRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntitySignalsMappingsAsync(ListEntitySignalsMappingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEntitySignalsMappingAsync(UpdateEntitySignalsMappingRequest $request, array $optionalArgs = []) + */ +final class EntitySignalsMappingServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.EntitySignalsMappingService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/entity_signals_mapping_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/entity_signals_mapping_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/entity_signals_mapping_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * entity_signals_mapping resource. + * + * @param string $networkCode + * @param string $entitySignalsMapping + * + * @return string The formatted entity_signals_mapping resource. + */ + public static function entitySignalsMappingName(string $networkCode, string $entitySignalsMapping): string + { + return self::getPathTemplate('entitySignalsMapping')->render([ + 'network_code' => $networkCode, + 'entity_signals_mapping' => $entitySignalsMapping, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - entitySignalsMapping: networks/{network_code}/entitySignalsMappings/{entity_signals_mapping} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\EntitySignalsMappingServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new EntitySignalsMappingServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to batch create `EntitySignalsMapping` objects. + * + * The async variant is + * {@see EntitySignalsMappingServiceClient::batchCreateEntitySignalsMappingsAsync()} + * . + * + * @example samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php + * + * @param BatchCreateEntitySignalsMappingsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateEntitySignalsMappingsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateEntitySignalsMappings(BatchCreateEntitySignalsMappingsRequest $request, array $callOptions = []): BatchCreateEntitySignalsMappingsResponse + { + return $this->startApiCall('BatchCreateEntitySignalsMappings', $request, $callOptions)->wait(); + } + + /** + * API to batch update `EntitySignalsMapping` objects. + * + * The async variant is + * {@see EntitySignalsMappingServiceClient::batchUpdateEntitySignalsMappingsAsync()} + * . + * + * @example samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php + * + * @param BatchUpdateEntitySignalsMappingsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateEntitySignalsMappingsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateEntitySignalsMappings(BatchUpdateEntitySignalsMappingsRequest $request, array $callOptions = []): BatchUpdateEntitySignalsMappingsResponse + { + return $this->startApiCall('BatchUpdateEntitySignalsMappings', $request, $callOptions)->wait(); + } + + /** + * API to create an `EntitySignalsMapping` object. + * + * The async variant is + * {@see EntitySignalsMappingServiceClient::createEntitySignalsMappingAsync()} . + * + * @example samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php + * + * @param CreateEntitySignalsMappingRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EntitySignalsMapping + * + * @throws ApiException Thrown if the API call fails. + */ + public function createEntitySignalsMapping(CreateEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping + { + return $this->startApiCall('CreateEntitySignalsMapping', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a `EntitySignalsMapping` object. + * + * The async variant is + * {@see EntitySignalsMappingServiceClient::getEntitySignalsMappingAsync()} . + * + * @example samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php + * + * @param GetEntitySignalsMappingRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EntitySignalsMapping + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEntitySignalsMapping(GetEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping + { + return $this->startApiCall('GetEntitySignalsMapping', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `EntitySignalsMapping` objects. + * + * The async variant is + * {@see EntitySignalsMappingServiceClient::listEntitySignalsMappingsAsync()} . + * + * @example samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php + * + * @param ListEntitySignalsMappingsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listEntitySignalsMappings(ListEntitySignalsMappingsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEntitySignalsMappings', $request, $callOptions); + } + + /** + * API to update an `EntitySignalsMapping` object. + * + * The async variant is + * {@see EntitySignalsMappingServiceClient::updateEntitySignalsMappingAsync()} . + * + * @example samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php + * + * @param UpdateEntitySignalsMappingRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EntitySignalsMapping + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateEntitySignalsMapping(UpdateEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping + { + return $this->startApiCall('UpdateEntitySignalsMapping', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/GeoTargetServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/GeoTargetServiceClient.php new file mode 100644 index 000000000000..850c8a4033d6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/GeoTargetServiceClient.php @@ -0,0 +1,309 @@ + getGeoTargetAsync(GetGeoTargetRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGeoTargetsAsync(ListGeoTargetsRequest $request, array $optionalArgs = []) + */ +final class GeoTargetServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.GeoTargetService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/geo_target_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/geo_target_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/geo_target_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a geo_target + * resource. + * + * @param string $networkCode + * @param string $geoTarget + * + * @return string The formatted geo_target resource. + */ + public static function geoTargetName(string $networkCode, string $geoTarget): string + { + return self::getPathTemplate('geoTarget')->render([ + 'network_code' => $networkCode, + 'geo_target' => $geoTarget, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - geoTarget: networks/{network_code}/geoTargets/{geo_target} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\GeoTargetServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new GeoTargetServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `GeoTarget` object. + * + * The async variant is {@see GeoTargetServiceClient::getGeoTargetAsync()} . + * + * @example samples/V1/GeoTargetServiceClient/get_geo_target.php + * + * @param GetGeoTargetRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return GeoTarget + * + * @throws ApiException Thrown if the API call fails. + */ + public function getGeoTarget(GetGeoTargetRequest $request, array $callOptions = []): GeoTarget + { + return $this->startApiCall('GetGeoTarget', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `GeoTarget` objects. + * + * The async variant is {@see GeoTargetServiceClient::listGeoTargetsAsync()} . + * + * @example samples/V1/GeoTargetServiceClient/list_geo_targets.php + * + * @param ListGeoTargetsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listGeoTargets(ListGeoTargetsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListGeoTargets', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileCarrierServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileCarrierServiceClient.php new file mode 100644 index 000000000000..f033e5dbe798 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileCarrierServiceClient.php @@ -0,0 +1,311 @@ + getMobileCarrierAsync(GetMobileCarrierRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMobileCarriersAsync(ListMobileCarriersRequest $request, array $optionalArgs = []) + */ +final class MobileCarrierServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.MobileCarrierService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/mobile_carrier_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/mobile_carrier_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/mobile_carrier_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * mobile_carrier resource. + * + * @param string $networkCode + * @param string $mobileCarrier + * + * @return string The formatted mobile_carrier resource. + */ + public static function mobileCarrierName(string $networkCode, string $mobileCarrier): string + { + return self::getPathTemplate('mobileCarrier')->render([ + 'network_code' => $networkCode, + 'mobile_carrier' => $mobileCarrier, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - mobileCarrier: networks/{network_code}/mobileCarriers/{mobile_carrier} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\MobileCarrierServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new MobileCarrierServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `MobileCarrier` object. + * + * The async variant is {@see MobileCarrierServiceClient::getMobileCarrierAsync()} + * . + * + * @example samples/V1/MobileCarrierServiceClient/get_mobile_carrier.php + * + * @param GetMobileCarrierRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MobileCarrier + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMobileCarrier(GetMobileCarrierRequest $request, array $callOptions = []): MobileCarrier + { + return $this->startApiCall('GetMobileCarrier', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `MobileCarrier` objects. + * + * The async variant is + * {@see MobileCarrierServiceClient::listMobileCarriersAsync()} . + * + * @example samples/V1/MobileCarrierServiceClient/list_mobile_carriers.php + * + * @param ListMobileCarriersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listMobileCarriers(ListMobileCarriersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMobileCarriers', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceServiceClient.php new file mode 100644 index 000000000000..55637ac863f2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceServiceClient.php @@ -0,0 +1,310 @@ + getMobileDeviceAsync(GetMobileDeviceRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMobileDevicesAsync(ListMobileDevicesRequest $request, array $optionalArgs = []) + */ +final class MobileDeviceServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.MobileDeviceService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/mobile_device_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/mobile_device_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/mobile_device_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * mobile_device resource. + * + * @param string $networkCode + * @param string $mobileDevice + * + * @return string The formatted mobile_device resource. + */ + public static function mobileDeviceName(string $networkCode, string $mobileDevice): string + { + return self::getPathTemplate('mobileDevice')->render([ + 'network_code' => $networkCode, + 'mobile_device' => $mobileDevice, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - mobileDevice: networks/{network_code}/mobileDevices/{mobile_device} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\MobileDeviceServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new MobileDeviceServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `MobileDevice` object. + * + * The async variant is {@see MobileDeviceServiceClient::getMobileDeviceAsync()} . + * + * @example samples/V1/MobileDeviceServiceClient/get_mobile_device.php + * + * @param GetMobileDeviceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MobileDevice + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMobileDevice(GetMobileDeviceRequest $request, array $callOptions = []): MobileDevice + { + return $this->startApiCall('GetMobileDevice', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `MobileDevice` objects. + * + * The async variant is {@see MobileDeviceServiceClient::listMobileDevicesAsync()} + * . + * + * @example samples/V1/MobileDeviceServiceClient/list_mobile_devices.php + * + * @param ListMobileDevicesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listMobileDevices(ListMobileDevicesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMobileDevices', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceSubmodelServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceSubmodelServiceClient.php new file mode 100644 index 000000000000..b368e57f520c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceSubmodelServiceClient.php @@ -0,0 +1,311 @@ + getMobileDeviceSubmodelAsync(GetMobileDeviceSubmodelRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMobileDeviceSubmodelsAsync(ListMobileDeviceSubmodelsRequest $request, array $optionalArgs = []) + */ +final class MobileDeviceSubmodelServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.MobileDeviceSubmodelService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/mobile_device_submodel_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/mobile_device_submodel_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/mobile_device_submodel_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * mobile_device_submodel resource. + * + * @param string $networkCode + * @param string $mobileDeviceSubmodel + * + * @return string The formatted mobile_device_submodel resource. + */ + public static function mobileDeviceSubmodelName(string $networkCode, string $mobileDeviceSubmodel): string + { + return self::getPathTemplate('mobileDeviceSubmodel')->render([ + 'network_code' => $networkCode, + 'mobile_device_submodel' => $mobileDeviceSubmodel, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - mobileDeviceSubmodel: networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\MobileDeviceSubmodelServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new MobileDeviceSubmodelServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `MobileDeviceSubmodel` object. + * + * The async variant is + * {@see MobileDeviceSubmodelServiceClient::getMobileDeviceSubmodelAsync()} . + * + * @example samples/V1/MobileDeviceSubmodelServiceClient/get_mobile_device_submodel.php + * + * @param GetMobileDeviceSubmodelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MobileDeviceSubmodel + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMobileDeviceSubmodel(GetMobileDeviceSubmodelRequest $request, array $callOptions = []): MobileDeviceSubmodel + { + return $this->startApiCall('GetMobileDeviceSubmodel', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `MobileDeviceSubmodel` objects. + * + * The async variant is + * {@see MobileDeviceSubmodelServiceClient::listMobileDeviceSubmodelsAsync()} . + * + * @example samples/V1/MobileDeviceSubmodelServiceClient/list_mobile_device_submodels.php + * + * @param ListMobileDeviceSubmodelsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listMobileDeviceSubmodels(ListMobileDeviceSubmodelsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMobileDeviceSubmodels', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php new file mode 100644 index 000000000000..37b944c91f1a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php @@ -0,0 +1,291 @@ + getNetworkAsync(GetNetworkRequest $request, array $optionalArgs = []) + * @method PromiseInterface listNetworksAsync(ListNetworksRequest $request, array $optionalArgs = []) + */ +final class NetworkServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.NetworkService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/network_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/network_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/network_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\NetworkServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new NetworkServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a Network object. + * + * The async variant is {@see NetworkServiceClient::getNetworkAsync()} . + * + * @example samples/V1/NetworkServiceClient/get_network.php + * + * @param GetNetworkRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Network + * + * @throws ApiException Thrown if the API call fails. + */ + public function getNetwork(GetNetworkRequest $request, array $callOptions = []): Network + { + return $this->startApiCall('GetNetwork', $request, $callOptions)->wait(); + } + + /** + * API to retrieve all the networks the current user has access to. + * + * The async variant is {@see NetworkServiceClient::listNetworksAsync()} . + * + * @example samples/V1/NetworkServiceClient/list_networks.php + * + * @param ListNetworksRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ListNetworksResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listNetworks(ListNetworksRequest $request, array $callOptions = []): ListNetworksResponse + { + return $this->startApiCall('ListNetworks', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemServiceClient.php new file mode 100644 index 000000000000..c0b0788b994c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemServiceClient.php @@ -0,0 +1,311 @@ + getOperatingSystemAsync(GetOperatingSystemRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOperatingSystemsAsync(ListOperatingSystemsRequest $request, array $optionalArgs = []) + */ +final class OperatingSystemServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.OperatingSystemService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/operating_system_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/operating_system_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/operating_system_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * operating_system resource. + * + * @param string $networkCode + * @param string $operatingSystem + * + * @return string The formatted operating_system resource. + */ + public static function operatingSystemName(string $networkCode, string $operatingSystem): string + { + return self::getPathTemplate('operatingSystem')->render([ + 'network_code' => $networkCode, + 'operating_system' => $operatingSystem, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * - operatingSystem: networks/{network_code}/operatingSystems/{operating_system} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\OperatingSystemServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new OperatingSystemServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `OperatingSystem` object. + * + * The async variant is + * {@see OperatingSystemServiceClient::getOperatingSystemAsync()} . + * + * @example samples/V1/OperatingSystemServiceClient/get_operating_system.php + * + * @param GetOperatingSystemRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperatingSystem + * + * @throws ApiException Thrown if the API call fails. + */ + public function getOperatingSystem(GetOperatingSystemRequest $request, array $callOptions = []): OperatingSystem + { + return $this->startApiCall('GetOperatingSystem', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `OperatingSystem` objects. + * + * The async variant is + * {@see OperatingSystemServiceClient::listOperatingSystemsAsync()} . + * + * @example samples/V1/OperatingSystemServiceClient/list_operating_systems.php + * + * @param ListOperatingSystemsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listOperatingSystems(ListOperatingSystemsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListOperatingSystems', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemVersionServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemVersionServiceClient.php new file mode 100644 index 000000000000..a66fc723e37c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemVersionServiceClient.php @@ -0,0 +1,311 @@ + getOperatingSystemVersionAsync(GetOperatingSystemVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOperatingSystemVersionsAsync(ListOperatingSystemVersionsRequest $request, array $optionalArgs = []) + */ +final class OperatingSystemVersionServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.OperatingSystemVersionService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/operating_system_version_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/operating_system_version_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/operating_system_version_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * operating_system_version resource. + * + * @param string $networkCode + * @param string $operatingSystemVersion + * + * @return string The formatted operating_system_version resource. + */ + public static function operatingSystemVersionName(string $networkCode, string $operatingSystemVersion): string + { + return self::getPathTemplate('operatingSystemVersion')->render([ + 'network_code' => $networkCode, + 'operating_system_version' => $operatingSystemVersion, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * - operatingSystemVersion: networks/{network_code}/operatingSystemVersions/{operating_system_version} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\OperatingSystemVersionServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new OperatingSystemVersionServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `OperatingSystemVersion` object. + * + * The async variant is + * {@see OperatingSystemVersionServiceClient::getOperatingSystemVersionAsync()} . + * + * @example samples/V1/OperatingSystemVersionServiceClient/get_operating_system_version.php + * + * @param GetOperatingSystemVersionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperatingSystemVersion + * + * @throws ApiException Thrown if the API call fails. + */ + public function getOperatingSystemVersion(GetOperatingSystemVersionRequest $request, array $callOptions = []): OperatingSystemVersion + { + return $this->startApiCall('GetOperatingSystemVersion', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `OperatingSystemVersion` objects. + * + * The async variant is + * {@see OperatingSystemVersionServiceClient::listOperatingSystemVersionsAsync()} . + * + * @example samples/V1/OperatingSystemVersionServiceClient/list_operating_system_versions.php + * + * @param ListOperatingSystemVersionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listOperatingSystemVersions(ListOperatingSystemVersionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListOperatingSystemVersions', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php new file mode 100644 index 000000000000..8a888b0fbfe6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php @@ -0,0 +1,314 @@ + getOrderAsync(GetOrderRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOrdersAsync(ListOrdersRequest $request, array $optionalArgs = []) + */ +final class OrderServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.OrderService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/order_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/order_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/order_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a order + * resource. + * + * @param string $networkCode + * @param string $order + * + * @return string The formatted order resource. + */ + public static function orderName(string $networkCode, string $order): string + { + return self::getPathTemplate('order')->render([ + 'network_code' => $networkCode, + 'order' => $order, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * - order: networks/{network_code}/orders/{order} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\OrderServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new OrderServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve an Order object. + * + * The async variant is {@see OrderServiceClient::getOrderAsync()} . + * + * @example samples/V1/OrderServiceClient/get_order.php + * + * @param GetOrderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Order + * + * @throws ApiException Thrown if the API call fails. + */ + public function getOrder(GetOrderRequest $request, array $callOptions = []): Order + { + return $this->startApiCall('GetOrder', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Order` objects. + * + * Fields used for literal matching in filter string: + * * `order_id` + * * `display_name` + * * `external_order_id` + * + * The async variant is {@see OrderServiceClient::listOrdersAsync()} . + * + * @example samples/V1/OrderServiceClient/list_orders.php + * + * @param ListOrdersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listOrders(ListOrdersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListOrders', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php new file mode 100644 index 000000000000..2142d9bb22e3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php @@ -0,0 +1,533 @@ + batchActivatePlacementsAsync(BatchActivatePlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchArchivePlacementsAsync(BatchArchivePlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreatePlacementsAsync(BatchCreatePlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchDeactivatePlacementsAsync(BatchDeactivatePlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdatePlacementsAsync(BatchUpdatePlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createPlacementAsync(CreatePlacementRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPlacementAsync(GetPlacementRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPlacementsAsync(ListPlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePlacementAsync(UpdatePlacementRequest $request, array $optionalArgs = []) + */ +final class PlacementServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.PlacementService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/placement_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/placement_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/placement_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a ad_unit + * resource. + * + * @param string $networkCode + * @param string $adUnit + * + * @return string The formatted ad_unit resource. + */ + public static function adUnitName(string $networkCode, string $adUnit): string + { + return self::getPathTemplate('adUnit')->render([ + 'network_code' => $networkCode, + 'ad_unit' => $adUnit, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a placement + * resource. + * + * @param string $networkCode + * @param string $placement + * + * @return string The formatted placement resource. + */ + public static function placementName(string $networkCode, string $placement): string + { + return self::getPathTemplate('placement')->render([ + 'network_code' => $networkCode, + 'placement' => $placement, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - adUnit: networks/{network_code}/adUnits/{ad_unit} + * - network: networks/{network_code} + * - placement: networks/{network_code}/placements/{placement} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\PlacementServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new PlacementServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Activates a list of `Placement` objects. + * + * The async variant is + * {@see PlacementServiceClient::batchActivatePlacementsAsync()} . + * + * @example samples/V1/PlacementServiceClient/batch_activate_placements.php + * + * @param BatchActivatePlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchActivatePlacementsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchActivatePlacements(BatchActivatePlacementsRequest $request, array $callOptions = []): BatchActivatePlacementsResponse + { + return $this->startApiCall('BatchActivatePlacements', $request, $callOptions)->wait(); + } + + /** + * Archives a list of `Placement` objects. + * + * The async variant is + * {@see PlacementServiceClient::batchArchivePlacementsAsync()} . + * + * @example samples/V1/PlacementServiceClient/batch_archive_placements.php + * + * @param BatchArchivePlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchArchivePlacementsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchArchivePlacements(BatchArchivePlacementsRequest $request, array $callOptions = []): BatchArchivePlacementsResponse + { + return $this->startApiCall('BatchArchivePlacements', $request, $callOptions)->wait(); + } + + /** + * API to batch create `Placement` objects. + * + * The async variant is {@see PlacementServiceClient::batchCreatePlacementsAsync()} + * . + * + * @example samples/V1/PlacementServiceClient/batch_create_placements.php + * + * @param BatchCreatePlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreatePlacementsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreatePlacements(BatchCreatePlacementsRequest $request, array $callOptions = []): BatchCreatePlacementsResponse + { + return $this->startApiCall('BatchCreatePlacements', $request, $callOptions)->wait(); + } + + /** + * Deactivates a list of `Placement` objects. + * + * The async variant is + * {@see PlacementServiceClient::batchDeactivatePlacementsAsync()} . + * + * @example samples/V1/PlacementServiceClient/batch_deactivate_placements.php + * + * @param BatchDeactivatePlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchDeactivatePlacementsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchDeactivatePlacements(BatchDeactivatePlacementsRequest $request, array $callOptions = []): BatchDeactivatePlacementsResponse + { + return $this->startApiCall('BatchDeactivatePlacements', $request, $callOptions)->wait(); + } + + /** + * API to batch update `Placement` objects. + * + * The async variant is {@see PlacementServiceClient::batchUpdatePlacementsAsync()} + * . + * + * @example samples/V1/PlacementServiceClient/batch_update_placements.php + * + * @param BatchUpdatePlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdatePlacementsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdatePlacements(BatchUpdatePlacementsRequest $request, array $callOptions = []): BatchUpdatePlacementsResponse + { + return $this->startApiCall('BatchUpdatePlacements', $request, $callOptions)->wait(); + } + + /** + * API to create an `Placement` object. + * + * The async variant is {@see PlacementServiceClient::createPlacementAsync()} . + * + * @example samples/V1/PlacementServiceClient/create_placement.php + * + * @param CreatePlacementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Placement + * + * @throws ApiException Thrown if the API call fails. + */ + public function createPlacement(CreatePlacementRequest $request, array $callOptions = []): Placement + { + return $this->startApiCall('CreatePlacement', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a `Placement` object. + * + * The async variant is {@see PlacementServiceClient::getPlacementAsync()} . + * + * @example samples/V1/PlacementServiceClient/get_placement.php + * + * @param GetPlacementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Placement + * + * @throws ApiException Thrown if the API call fails. + */ + public function getPlacement(GetPlacementRequest $request, array $callOptions = []): Placement + { + return $this->startApiCall('GetPlacement', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Placement` objects. + * + * The async variant is {@see PlacementServiceClient::listPlacementsAsync()} . + * + * @example samples/V1/PlacementServiceClient/list_placements.php + * + * @param ListPlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listPlacements(ListPlacementsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListPlacements', $request, $callOptions); + } + + /** + * API to update an `Placement` object. + * + * The async variant is {@see PlacementServiceClient::updatePlacementAsync()} . + * + * @example samples/V1/PlacementServiceClient/update_placement.php + * + * @param UpdatePlacementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Placement + * + * @throws ApiException Thrown if the API call fails. + */ + public function updatePlacement(UpdatePlacementRequest $request, array $callOptions = []): Placement + { + return $this->startApiCall('UpdatePlacement', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionDealServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionDealServiceClient.php new file mode 100644 index 000000000000..a79e1e9e0cca --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionDealServiceClient.php @@ -0,0 +1,747 @@ + createPrivateAuctionDealAsync(CreatePrivateAuctionDealRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPrivateAuctionDealAsync(GetPrivateAuctionDealRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPrivateAuctionDealsAsync(ListPrivateAuctionDealsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePrivateAuctionDealAsync(UpdatePrivateAuctionDealRequest $request, array $optionalArgs = []) + */ +final class PrivateAuctionDealServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.PrivateAuctionDealService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/private_auction_deal_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/private_auction_deal_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/private_auction_deal_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a ad_unit + * resource. + * + * @param string $networkCode + * @param string $adUnit + * + * @return string The formatted ad_unit resource. + */ + public static function adUnitName(string $networkCode, string $adUnit): string + { + return self::getPathTemplate('adUnit')->render([ + 'network_code' => $networkCode, + 'ad_unit' => $adUnit, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a application + * resource. + * + * @param string $networkCode + * @param string $application + * + * @return string The formatted application resource. + */ + public static function applicationName(string $networkCode, string $application): string + { + return self::getPathTemplate('application')->render([ + 'network_code' => $networkCode, + 'application' => $application, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * audience_segment resource. + * + * @param string $networkCode + * @param string $audienceSegment + * + * @return string The formatted audience_segment resource. + */ + public static function audienceSegmentName(string $networkCode, string $audienceSegment): string + { + return self::getPathTemplate('audienceSegment')->render([ + 'network_code' => $networkCode, + 'audience_segment' => $audienceSegment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * bandwidth_group resource. + * + * @param string $networkCode + * @param string $bandwidthGroup + * + * @return string The formatted bandwidth_group resource. + */ + public static function bandwidthGroupName(string $networkCode, string $bandwidthGroup): string + { + return self::getPathTemplate('bandwidthGroup')->render([ + 'network_code' => $networkCode, + 'bandwidth_group' => $bandwidthGroup, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a browser + * resource. + * + * @param string $networkCode + * @param string $browser + * + * @return string The formatted browser resource. + */ + public static function browserName(string $networkCode, string $browser): string + { + return self::getPathTemplate('browser')->render([ + 'network_code' => $networkCode, + 'browser' => $browser, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * browser_language resource. + * + * @param string $networkCode + * @param string $browserLanguage + * + * @return string The formatted browser_language resource. + */ + public static function browserLanguageName(string $networkCode, string $browserLanguage): string + { + return self::getPathTemplate('browserLanguage')->render([ + 'network_code' => $networkCode, + 'browser_language' => $browserLanguage, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * cms_metadata_value resource. + * + * @param string $networkCode + * @param string $cmsMetadataValue + * + * @return string The formatted cms_metadata_value resource. + */ + public static function cmsMetadataValueName(string $networkCode, string $cmsMetadataValue): string + { + return self::getPathTemplate('cmsMetadataValue')->render([ + 'network_code' => $networkCode, + 'cms_metadata_value' => $cmsMetadataValue, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a content + * resource. + * + * @param string $networkCode + * @param string $content + * + * @return string The formatted content resource. + */ + public static function contentName(string $networkCode, string $content): string + { + return self::getPathTemplate('content')->render([ + 'network_code' => $networkCode, + 'content' => $content, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * content_bundle resource. + * + * @param string $networkCode + * @param string $contentBundle + * + * @return string The formatted content_bundle resource. + */ + public static function contentBundleName(string $networkCode, string $contentBundle): string + { + return self::getPathTemplate('contentBundle')->render([ + 'network_code' => $networkCode, + 'content_bundle' => $contentBundle, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_targeting_key resource. + * + * @param string $networkCode + * @param string $customTargetingKey + * + * @return string The formatted custom_targeting_key resource. + */ + public static function customTargetingKeyName(string $networkCode, string $customTargetingKey): string + { + return self::getPathTemplate('customTargetingKey')->render([ + 'network_code' => $networkCode, + 'custom_targeting_key' => $customTargetingKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_targeting_value resource. + * + * @param string $networkCode + * @param string $customTargetingValue + * + * @return string The formatted custom_targeting_value resource. + */ + public static function customTargetingValueName(string $networkCode, string $customTargetingValue): string + { + return self::getPathTemplate('customTargetingValue')->render([ + 'network_code' => $networkCode, + 'custom_targeting_value' => $customTargetingValue, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * device_capability resource. + * + * @param string $networkCode + * @param string $deviceCapability + * + * @return string The formatted device_capability resource. + */ + public static function deviceCapabilityName(string $networkCode, string $deviceCapability): string + { + return self::getPathTemplate('deviceCapability')->render([ + 'network_code' => $networkCode, + 'device_capability' => $deviceCapability, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * device_category resource. + * + * @param string $networkCode + * @param string $deviceCategory + * + * @return string The formatted device_category resource. + */ + public static function deviceCategoryName(string $networkCode, string $deviceCategory): string + { + return self::getPathTemplate('deviceCategory')->render([ + 'network_code' => $networkCode, + 'device_category' => $deviceCategory, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * device_manufacturer resource. + * + * @param string $networkCode + * @param string $deviceManufacturer + * + * @return string The formatted device_manufacturer resource. + */ + public static function deviceManufacturerName(string $networkCode, string $deviceManufacturer): string + { + return self::getPathTemplate('deviceManufacturer')->render([ + 'network_code' => $networkCode, + 'device_manufacturer' => $deviceManufacturer, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a geo_target + * resource. + * + * @param string $networkCode + * @param string $geoTarget + * + * @return string The formatted geo_target resource. + */ + public static function geoTargetName(string $networkCode, string $geoTarget): string + { + return self::getPathTemplate('geoTarget')->render([ + 'network_code' => $networkCode, + 'geo_target' => $geoTarget, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * mobile_carrier resource. + * + * @param string $networkCode + * @param string $mobileCarrier + * + * @return string The formatted mobile_carrier resource. + */ + public static function mobileCarrierName(string $networkCode, string $mobileCarrier): string + { + return self::getPathTemplate('mobileCarrier')->render([ + 'network_code' => $networkCode, + 'mobile_carrier' => $mobileCarrier, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * mobile_device resource. + * + * @param string $networkCode + * @param string $mobileDevice + * + * @return string The formatted mobile_device resource. + */ + public static function mobileDeviceName(string $networkCode, string $mobileDevice): string + { + return self::getPathTemplate('mobileDevice')->render([ + 'network_code' => $networkCode, + 'mobile_device' => $mobileDevice, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * mobile_device_submodel resource. + * + * @param string $networkCode + * @param string $mobileDeviceSubmodel + * + * @return string The formatted mobile_device_submodel resource. + */ + public static function mobileDeviceSubmodelName(string $networkCode, string $mobileDeviceSubmodel): string + { + return self::getPathTemplate('mobileDeviceSubmodel')->render([ + 'network_code' => $networkCode, + 'mobile_device_submodel' => $mobileDeviceSubmodel, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * operating_system resource. + * + * @param string $networkCode + * @param string $operatingSystem + * + * @return string The formatted operating_system resource. + */ + public static function operatingSystemName(string $networkCode, string $operatingSystem): string + { + return self::getPathTemplate('operatingSystem')->render([ + 'network_code' => $networkCode, + 'operating_system' => $operatingSystem, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * operating_system_version resource. + * + * @param string $networkCode + * @param string $operatingSystemVersion + * + * @return string The formatted operating_system_version resource. + */ + public static function operatingSystemVersionName(string $networkCode, string $operatingSystemVersion): string + { + return self::getPathTemplate('operatingSystemVersion')->render([ + 'network_code' => $networkCode, + 'operating_system_version' => $operatingSystemVersion, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a placement + * resource. + * + * @param string $networkCode + * @param string $placement + * + * @return string The formatted placement resource. + */ + public static function placementName(string $networkCode, string $placement): string + { + return self::getPathTemplate('placement')->render([ + 'network_code' => $networkCode, + 'placement' => $placement, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * private_auction_deal resource. + * + * @param string $networkCode + * @param string $privateAuctionDeal + * + * @return string The formatted private_auction_deal resource. + */ + public static function privateAuctionDealName(string $networkCode, string $privateAuctionDeal): string + { + return self::getPathTemplate('privateAuctionDeal')->render([ + 'network_code' => $networkCode, + 'private_auction_deal' => $privateAuctionDeal, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - adUnit: networks/{network_code}/adUnits/{ad_unit} + * - application: networks/{network_code}/applications/{application} + * - audienceSegment: networks/{network_code}/audienceSegments/{audience_segment} + * - bandwidthGroup: networks/{network_code}/bandwidthGroups/{bandwidth_group} + * - browser: networks/{network_code}/browsers/{browser} + * - browserLanguage: networks/{network_code}/browserLanguages/{browser_language} + * - cmsMetadataValue: networks/{network_code}/cmsMetadataValues/{cms_metadata_value} + * - content: networks/{network_code}/content/{content} + * - contentBundle: networks/{network_code}/contentBundles/{content_bundle} + * - customTargetingKey: networks/{network_code}/customTargetingKeys/{custom_targeting_key} + * - customTargetingValue: networks/{network_code}/customTargetingValues/{custom_targeting_value} + * - deviceCapability: networks/{network_code}/deviceCapabilities/{device_capability} + * - deviceCategory: networks/{network_code}/deviceCategories/{device_category} + * - deviceManufacturer: networks/{network_code}/deviceManufacturers/{device_manufacturer} + * - geoTarget: networks/{network_code}/geoTargets/{geo_target} + * - mobileCarrier: networks/{network_code}/mobileCarriers/{mobile_carrier} + * - mobileDevice: networks/{network_code}/mobileDevices/{mobile_device} + * - mobileDeviceSubmodel: networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel} + * - network: networks/{network_code} + * - operatingSystem: networks/{network_code}/operatingSystems/{operating_system} + * - operatingSystemVersion: networks/{network_code}/operatingSystemVersions/{operating_system_version} + * - placement: networks/{network_code}/placements/{placement} + * - privateAuctionDeal: networks/{network_code}/privateAuctionDeals/{private_auction_deal} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\PrivateAuctionDealServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new PrivateAuctionDealServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to create a `PrivateAuctionDeal` object. + * + * The async variant is + * {@see PrivateAuctionDealServiceClient::createPrivateAuctionDealAsync()} . + * + * @example samples/V1/PrivateAuctionDealServiceClient/create_private_auction_deal.php + * + * @param CreatePrivateAuctionDealRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PrivateAuctionDeal + * + * @throws ApiException Thrown if the API call fails. + */ + public function createPrivateAuctionDeal(CreatePrivateAuctionDealRequest $request, array $callOptions = []): PrivateAuctionDeal + { + return $this->startApiCall('CreatePrivateAuctionDeal', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a `PrivateAuctionDeal` object. + * + * The async variant is + * {@see PrivateAuctionDealServiceClient::getPrivateAuctionDealAsync()} . + * + * @example samples/V1/PrivateAuctionDealServiceClient/get_private_auction_deal.php + * + * @param GetPrivateAuctionDealRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PrivateAuctionDeal + * + * @throws ApiException Thrown if the API call fails. + */ + public function getPrivateAuctionDeal(GetPrivateAuctionDealRequest $request, array $callOptions = []): PrivateAuctionDeal + { + return $this->startApiCall('GetPrivateAuctionDeal', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `PrivateAuctionDeal` objects. + * + * The async variant is + * {@see PrivateAuctionDealServiceClient::listPrivateAuctionDealsAsync()} . + * + * @example samples/V1/PrivateAuctionDealServiceClient/list_private_auction_deals.php + * + * @param ListPrivateAuctionDealsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listPrivateAuctionDeals(ListPrivateAuctionDealsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListPrivateAuctionDeals', $request, $callOptions); + } + + /** + * API to update a `PrivateAuctionDeal` object. + * + * The async variant is + * {@see PrivateAuctionDealServiceClient::updatePrivateAuctionDealAsync()} . + * + * @example samples/V1/PrivateAuctionDealServiceClient/update_private_auction_deal.php + * + * @param UpdatePrivateAuctionDealRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PrivateAuctionDeal + * + * @throws ApiException Thrown if the API call fails. + */ + public function updatePrivateAuctionDeal(UpdatePrivateAuctionDealRequest $request, array $callOptions = []): PrivateAuctionDeal + { + return $this->startApiCall('UpdatePrivateAuctionDeal', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionServiceClient.php new file mode 100644 index 000000000000..6fab10876050 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionServiceClient.php @@ -0,0 +1,387 @@ + createPrivateAuctionAsync(CreatePrivateAuctionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPrivateAuctionAsync(GetPrivateAuctionRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPrivateAuctionsAsync(ListPrivateAuctionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePrivateAuctionAsync(UpdatePrivateAuctionRequest $request, array $optionalArgs = []) + */ +final class PrivateAuctionServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.PrivateAuctionService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/private_auction_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/private_auction_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/private_auction_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * private_auction resource. + * + * @param string $networkCode + * @param string $privateAuction + * + * @return string The formatted private_auction resource. + */ + public static function privateAuctionName(string $networkCode, string $privateAuction): string + { + return self::getPathTemplate('privateAuction')->render([ + 'network_code' => $networkCode, + 'private_auction' => $privateAuction, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a user + * resource. + * + * @param string $networkCode + * @param string $user + * + * @return string The formatted user resource. + */ + public static function userName(string $networkCode, string $user): string + { + return self::getPathTemplate('user')->render([ + 'network_code' => $networkCode, + 'user' => $user, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * - privateAuction: networks/{network_code}/privateAuctions/{private_auction} + * - user: networks/{network_code}/users/{user} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\PrivateAuctionServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new PrivateAuctionServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to create a `PrivateAuction` object. + * + * The async variant is + * {@see PrivateAuctionServiceClient::createPrivateAuctionAsync()} . + * + * @example samples/V1/PrivateAuctionServiceClient/create_private_auction.php + * + * @param CreatePrivateAuctionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PrivateAuction + * + * @throws ApiException Thrown if the API call fails. + */ + public function createPrivateAuction(CreatePrivateAuctionRequest $request, array $callOptions = []): PrivateAuction + { + return $this->startApiCall('CreatePrivateAuction', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a `PrivateAuction` object. + * + * The async variant is + * {@see PrivateAuctionServiceClient::getPrivateAuctionAsync()} . + * + * @example samples/V1/PrivateAuctionServiceClient/get_private_auction.php + * + * @param GetPrivateAuctionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PrivateAuction + * + * @throws ApiException Thrown if the API call fails. + */ + public function getPrivateAuction(GetPrivateAuctionRequest $request, array $callOptions = []): PrivateAuction + { + return $this->startApiCall('GetPrivateAuction', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `PrivateAuction` objects. + * + * The async variant is + * {@see PrivateAuctionServiceClient::listPrivateAuctionsAsync()} . + * + * @example samples/V1/PrivateAuctionServiceClient/list_private_auctions.php + * + * @param ListPrivateAuctionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listPrivateAuctions(ListPrivateAuctionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListPrivateAuctions', $request, $callOptions); + } + + /** + * API to update a `PrivateAuction` object. + * + * The async variant is + * {@see PrivateAuctionServiceClient::updatePrivateAuctionAsync()} . + * + * @example samples/V1/PrivateAuctionServiceClient/update_private_auction.php + * + * @param UpdatePrivateAuctionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PrivateAuction + * + * @throws ApiException Thrown if the API call fails. + */ + public function updatePrivateAuction(UpdatePrivateAuctionRequest $request, array $callOptions = []): PrivateAuction + { + return $this->startApiCall('UpdatePrivateAuction', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ProgrammaticBuyerServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ProgrammaticBuyerServiceClient.php new file mode 100644 index 000000000000..900f29aa16b8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ProgrammaticBuyerServiceClient.php @@ -0,0 +1,311 @@ + getProgrammaticBuyerAsync(GetProgrammaticBuyerRequest $request, array $optionalArgs = []) + * @method PromiseInterface listProgrammaticBuyersAsync(ListProgrammaticBuyersRequest $request, array $optionalArgs = []) + */ +final class ProgrammaticBuyerServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.ProgrammaticBuyerService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/programmatic_buyer_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/programmatic_buyer_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/programmatic_buyer_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * programmatic_buyer resource. + * + * @param string $networkCode + * @param string $programmaticBuyer + * + * @return string The formatted programmatic_buyer resource. + */ + public static function programmaticBuyerName(string $networkCode, string $programmaticBuyer): string + { + return self::getPathTemplate('programmaticBuyer')->render([ + 'network_code' => $networkCode, + 'programmatic_buyer' => $programmaticBuyer, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * - programmaticBuyer: networks/{network_code}/programmaticBuyers/{programmatic_buyer} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\ProgrammaticBuyerServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ProgrammaticBuyerServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `ProgrammaticBuyer` object. + * + * The async variant is + * {@see ProgrammaticBuyerServiceClient::getProgrammaticBuyerAsync()} . + * + * @example samples/V1/ProgrammaticBuyerServiceClient/get_programmatic_buyer.php + * + * @param GetProgrammaticBuyerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ProgrammaticBuyer + * + * @throws ApiException Thrown if the API call fails. + */ + public function getProgrammaticBuyer(GetProgrammaticBuyerRequest $request, array $callOptions = []): ProgrammaticBuyer + { + return $this->startApiCall('GetProgrammaticBuyer', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `ProgrammaticBuyer` objects. + * + * The async variant is + * {@see ProgrammaticBuyerServiceClient::listProgrammaticBuyersAsync()} . + * + * @example samples/V1/ProgrammaticBuyerServiceClient/list_programmatic_buyers.php + * + * @param ListProgrammaticBuyersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listProgrammaticBuyers(ListProgrammaticBuyersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListProgrammaticBuyers', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php new file mode 100644 index 000000000000..10b79a77b41d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php @@ -0,0 +1,487 @@ + createReportAsync(CreateReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchReportResultRowsAsync(FetchReportResultRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getReportAsync(GetReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReportsAsync(ListReportsRequest $request, array $optionalArgs = []) + * @method PromiseInterface runReportAsync(RunReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateReportAsync(UpdateReportRequest $request, array $optionalArgs = []) + */ +final class ReportServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.ReportService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/report_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/report_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/report_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a report + * resource. + * + * @param string $networkCode + * @param string $report + * + * @return string The formatted report resource. + */ + public static function reportName(string $networkCode, string $report): string + { + return self::getPathTemplate('report')->render([ + 'network_code' => $networkCode, + 'report' => $report, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * - report: networks/{network_code}/reports/{report} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\ReportServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ReportServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to create a `Report` object. + * + * The async variant is {@see ReportServiceClient::createReportAsync()} . + * + * @example samples/V1/ReportServiceClient/create_report.php + * + * @param CreateReportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Report + * + * @throws ApiException Thrown if the API call fails. + */ + public function createReport(CreateReportRequest $request, array $callOptions = []): Report + { + return $this->startApiCall('CreateReport', $request, $callOptions)->wait(); + } + + /** + * Returns the result rows from a completed report. + * The caller must have previously called `RunReport` and waited for that + * operation to complete. The rows will be returned according to the order + * specified by the `sorts` member of the report definition. + * + * The async variant is {@see ReportServiceClient::fetchReportResultRowsAsync()} . + * + * @example samples/V1/ReportServiceClient/fetch_report_result_rows.php + * + * @param FetchReportResultRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FetchReportResultRowsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function fetchReportResultRows(FetchReportResultRowsRequest $request, array $callOptions = []): FetchReportResultRowsResponse + { + return $this->startApiCall('FetchReportResultRows', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a `Report` object. + * + * The async variant is {@see ReportServiceClient::getReportAsync()} . + * + * @example samples/V1/ReportServiceClient/get_report.php + * + * @param GetReportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Report + * + * @throws ApiException Thrown if the API call fails. + */ + public function getReport(GetReportRequest $request, array $callOptions = []): Report + { + return $this->startApiCall('GetReport', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Report` objects. + * + * The async variant is {@see ReportServiceClient::listReportsAsync()} . + * + * @example samples/V1/ReportServiceClient/list_reports.php + * + * @param ListReportsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listReports(ListReportsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListReports', $request, $callOptions); + } + + /** + * Initiates the execution of an existing report asynchronously. Users can + * get the report by polling this operation using + * `OperationsService.GetOperation`. + * Poll every 5 seconds initially, with an exponential + * backoff. Once a report is complete, the operation will contain a + * `RunReportResponse` in its response field containing a report_result that + * can be passed to the `FetchReportResultRows` method to retrieve the report + * data. + * + * The async variant is {@see ReportServiceClient::runReportAsync()} . + * + * @example samples/V1/ReportServiceClient/run_report.php + * + * @param RunReportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function runReport(RunReportRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('RunReport', $request, $callOptions)->wait(); + } + + /** + * API to update a `Report` object. + * + * The async variant is {@see ReportServiceClient::updateReportAsync()} . + * + * @example samples/V1/ReportServiceClient/update_report.php + * + * @param UpdateReportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Report + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateReport(UpdateReportRequest $request, array $callOptions = []): Report + { + return $this->startApiCall('UpdateReport', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php new file mode 100644 index 000000000000..07d15dd063ea --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php @@ -0,0 +1,309 @@ + getRoleAsync(GetRoleRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRolesAsync(ListRolesRequest $request, array $optionalArgs = []) + */ +final class RoleServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.RoleService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/role_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/role_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/role_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a role + * resource. + * + * @param string $networkCode + * @param string $role + * + * @return string The formatted role resource. + */ + public static function roleName(string $networkCode, string $role): string + { + return self::getPathTemplate('role')->render([ + 'network_code' => $networkCode, + 'role' => $role, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * - role: networks/{network_code}/roles/{role} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\RoleServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new RoleServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `Role` object. + * + * The async variant is {@see RoleServiceClient::getRoleAsync()} . + * + * @example samples/V1/RoleServiceClient/get_role.php + * + * @param GetRoleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Role + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRole(GetRoleRequest $request, array $callOptions = []): Role + { + return $this->startApiCall('GetRole', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Role` objects. + * + * The async variant is {@see RoleServiceClient::listRolesAsync()} . + * + * @example samples/V1/RoleServiceClient/list_roles.php + * + * @param ListRolesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRoles(ListRolesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRoles', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/SiteServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/SiteServiceClient.php new file mode 100644 index 000000000000..8d4c0848c717 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/SiteServiceClient.php @@ -0,0 +1,482 @@ + batchCreateSitesAsync(BatchCreateSitesRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchDeactivateSitesAsync(BatchDeactivateSitesRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchSubmitSitesForApprovalAsync(BatchSubmitSitesForApprovalRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateSitesAsync(BatchUpdateSitesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSiteAsync(CreateSiteRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSiteAsync(GetSiteRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSitesAsync(ListSitesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSiteAsync(UpdateSiteRequest $request, array $optionalArgs = []) + */ +final class SiteServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.SiteService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/site_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/site_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/site_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a site + * resource. + * + * @param string $networkCode + * @param string $site + * + * @return string The formatted site resource. + */ + public static function siteName(string $networkCode, string $site): string + { + return self::getPathTemplate('site')->render([ + 'network_code' => $networkCode, + 'site' => $site, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * - site: networks/{network_code}/sites/{site} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\SiteServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new SiteServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to batch create `Site` objects. + * + * The async variant is {@see SiteServiceClient::batchCreateSitesAsync()} . + * + * @example samples/V1/SiteServiceClient/batch_create_sites.php + * + * @param BatchCreateSitesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateSitesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateSites(BatchCreateSitesRequest $request, array $callOptions = []): BatchCreateSitesResponse + { + return $this->startApiCall('BatchCreateSites', $request, $callOptions)->wait(); + } + + /** + * Deactivates a list of `Site` objects. + * + * The async variant is {@see SiteServiceClient::batchDeactivateSitesAsync()} . + * + * @example samples/V1/SiteServiceClient/batch_deactivate_sites.php + * + * @param BatchDeactivateSitesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchDeactivateSitesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchDeactivateSites(BatchDeactivateSitesRequest $request, array $callOptions = []): BatchDeactivateSitesResponse + { + return $this->startApiCall('BatchDeactivateSites', $request, $callOptions)->wait(); + } + + /** + * Submits a list of `Site` objects for approval. + * + * The async variant is + * {@see SiteServiceClient::batchSubmitSitesForApprovalAsync()} . + * + * @example samples/V1/SiteServiceClient/batch_submit_sites_for_approval.php + * + * @param BatchSubmitSitesForApprovalRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchSubmitSitesForApprovalResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchSubmitSitesForApproval(BatchSubmitSitesForApprovalRequest $request, array $callOptions = []): BatchSubmitSitesForApprovalResponse + { + return $this->startApiCall('BatchSubmitSitesForApproval', $request, $callOptions)->wait(); + } + + /** + * API to batch update `Site` objects. + * + * The async variant is {@see SiteServiceClient::batchUpdateSitesAsync()} . + * + * @example samples/V1/SiteServiceClient/batch_update_sites.php + * + * @param BatchUpdateSitesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateSitesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateSites(BatchUpdateSitesRequest $request, array $callOptions = []): BatchUpdateSitesResponse + { + return $this->startApiCall('BatchUpdateSites', $request, $callOptions)->wait(); + } + + /** + * API to create a `Site` object. + * + * The async variant is {@see SiteServiceClient::createSiteAsync()} . + * + * @example samples/V1/SiteServiceClient/create_site.php + * + * @param CreateSiteRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Site + * + * @throws ApiException Thrown if the API call fails. + */ + public function createSite(CreateSiteRequest $request, array $callOptions = []): Site + { + return $this->startApiCall('CreateSite', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a `Site` object. + * + * The async variant is {@see SiteServiceClient::getSiteAsync()} . + * + * @example samples/V1/SiteServiceClient/get_site.php + * + * @param GetSiteRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Site + * + * @throws ApiException Thrown if the API call fails. + */ + public function getSite(GetSiteRequest $request, array $callOptions = []): Site + { + return $this->startApiCall('GetSite', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Site` objects. + * + * The async variant is {@see SiteServiceClient::listSitesAsync()} . + * + * @example samples/V1/SiteServiceClient/list_sites.php + * + * @param ListSitesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listSites(ListSitesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSites', $request, $callOptions); + } + + /** + * API to update a `Site` object. + * + * The async variant is {@see SiteServiceClient::updateSiteAsync()} . + * + * @example samples/V1/SiteServiceClient/update_site.php + * + * @param UpdateSiteRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Site + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateSite(UpdateSiteRequest $request, array $callOptions = []): Site + { + return $this->startApiCall('UpdateSite', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php new file mode 100644 index 000000000000..9d715c573f42 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php @@ -0,0 +1,311 @@ + getTaxonomyCategoryAsync(GetTaxonomyCategoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTaxonomyCategoriesAsync(ListTaxonomyCategoriesRequest $request, array $optionalArgs = []) + */ +final class TaxonomyCategoryServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.TaxonomyCategoryService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/taxonomy_category_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/taxonomy_category_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/taxonomy_category_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * taxonomy_category resource. + * + * @param string $networkCode + * @param string $taxonomyCategory + * + * @return string The formatted taxonomy_category resource. + */ + public static function taxonomyCategoryName(string $networkCode, string $taxonomyCategory): string + { + return self::getPathTemplate('taxonomyCategory')->render([ + 'network_code' => $networkCode, + 'taxonomy_category' => $taxonomyCategory, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * - taxonomyCategory: networks/{network_code}/taxonomyCategories/{taxonomy_category} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\TaxonomyCategoryServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new TaxonomyCategoryServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a `TaxonomyCategory` object. + * + * The async variant is + * {@see TaxonomyCategoryServiceClient::getTaxonomyCategoryAsync()} . + * + * @example samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php + * + * @param GetTaxonomyCategoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TaxonomyCategory + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTaxonomyCategory(GetTaxonomyCategoryRequest $request, array $callOptions = []): TaxonomyCategory + { + return $this->startApiCall('GetTaxonomyCategory', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `TaxonomyCategory` objects. + * + * The async variant is + * {@see TaxonomyCategoryServiceClient::listTaxonomyCategoriesAsync()} . + * + * @example samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php + * + * @param ListTaxonomyCategoriesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listTaxonomyCategories(ListTaxonomyCategoriesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTaxonomyCategories', $request, $callOptions); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TeamServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TeamServiceClient.php new file mode 100644 index 000000000000..1278783dd7aa --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TeamServiceClient.php @@ -0,0 +1,481 @@ + batchActivateTeamsAsync(BatchActivateTeamsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateTeamsAsync(BatchCreateTeamsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchDeactivateTeamsAsync(BatchDeactivateTeamsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateTeamsAsync(BatchUpdateTeamsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTeamAsync(CreateTeamRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTeamAsync(GetTeamRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTeamsAsync(ListTeamsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTeamAsync(UpdateTeamRequest $request, array $optionalArgs = []) + */ +final class TeamServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.TeamService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/team_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/team_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/team_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a team + * resource. + * + * @param string $networkCode + * @param string $team + * + * @return string The formatted team resource. + */ + public static function teamName(string $networkCode, string $team): string + { + return self::getPathTemplate('team')->render([ + 'network_code' => $networkCode, + 'team' => $team, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - network: networks/{network_code} + * - team: networks/{network_code}/teams/{team} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\TeamServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new TeamServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to batch activate `Team` objects. + * + * The async variant is {@see TeamServiceClient::batchActivateTeamsAsync()} . + * + * @example samples/V1/TeamServiceClient/batch_activate_teams.php + * + * @param BatchActivateTeamsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchActivateTeamsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchActivateTeams(BatchActivateTeamsRequest $request, array $callOptions = []): BatchActivateTeamsResponse + { + return $this->startApiCall('BatchActivateTeams', $request, $callOptions)->wait(); + } + + /** + * API to batch create `Team` objects. + * + * The async variant is {@see TeamServiceClient::batchCreateTeamsAsync()} . + * + * @example samples/V1/TeamServiceClient/batch_create_teams.php + * + * @param BatchCreateTeamsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateTeamsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateTeams(BatchCreateTeamsRequest $request, array $callOptions = []): BatchCreateTeamsResponse + { + return $this->startApiCall('BatchCreateTeams', $request, $callOptions)->wait(); + } + + /** + * API to batch deactivate `Team` objects. + * + * The async variant is {@see TeamServiceClient::batchDeactivateTeamsAsync()} . + * + * @example samples/V1/TeamServiceClient/batch_deactivate_teams.php + * + * @param BatchDeactivateTeamsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchDeactivateTeamsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchDeactivateTeams(BatchDeactivateTeamsRequest $request, array $callOptions = []): BatchDeactivateTeamsResponse + { + return $this->startApiCall('BatchDeactivateTeams', $request, $callOptions)->wait(); + } + + /** + * API to batch update `Team` objects. + * + * The async variant is {@see TeamServiceClient::batchUpdateTeamsAsync()} . + * + * @example samples/V1/TeamServiceClient/batch_update_teams.php + * + * @param BatchUpdateTeamsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateTeamsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateTeams(BatchUpdateTeamsRequest $request, array $callOptions = []): BatchUpdateTeamsResponse + { + return $this->startApiCall('BatchUpdateTeams', $request, $callOptions)->wait(); + } + + /** + * API to create a `Team` object. + * + * The async variant is {@see TeamServiceClient::createTeamAsync()} . + * + * @example samples/V1/TeamServiceClient/create_team.php + * + * @param CreateTeamRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Team + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTeam(CreateTeamRequest $request, array $callOptions = []): Team + { + return $this->startApiCall('CreateTeam', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a `Team` object. + * + * The async variant is {@see TeamServiceClient::getTeamAsync()} . + * + * @example samples/V1/TeamServiceClient/get_team.php + * + * @param GetTeamRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Team + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTeam(GetTeamRequest $request, array $callOptions = []): Team + { + return $this->startApiCall('GetTeam', $request, $callOptions)->wait(); + } + + /** + * API to retrieve a list of `Team` objects. + * + * The async variant is {@see TeamServiceClient::listTeamsAsync()} . + * + * @example samples/V1/TeamServiceClient/list_teams.php + * + * @param ListTeamsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listTeams(ListTeamsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTeams', $request, $callOptions); + } + + /** + * API to update a `Team` object. + * + * The async variant is {@see TeamServiceClient::updateTeamAsync()} . + * + * @example samples/V1/TeamServiceClient/update_team.php + * + * @param UpdateTeamRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Team + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTeam(UpdateTeamRequest $request, array $callOptions = []): Team + { + return $this->startApiCall('UpdateTeam', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php new file mode 100644 index 000000000000..53550171e95f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php @@ -0,0 +1,267 @@ + getUserAsync(GetUserRequest $request, array $optionalArgs = []) + */ +final class UserServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.UserService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/user_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/user_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/user_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a user + * resource. + * + * @param string $networkCode + * @param string $user + * + * @return string The formatted user resource. + */ + public static function userName(string $networkCode, string $user): string + { + return self::getPathTemplate('user')->render([ + 'network_code' => $networkCode, + 'user' => $user, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - user: networks/{network_code}/users/{user} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\UserServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new UserServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * API to retrieve a User object. + * + * To get the current user, the resource name + * `networks/{networkCode}/users/me` can be used. + * + * The async variant is {@see UserServiceClient::getUserAsync()} . + * + * @example samples/V1/UserServiceClient/get_user.php + * + * @param GetUserRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return User + * + * @throws ApiException Thrown if the API call fails. + */ + public function getUser(GetUserRequest $request, array $callOptions = []): User + { + return $this->startApiCall('GetUser', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..d1e0f2196cde --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json @@ -0,0 +1,1013 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.ads.admanager.v1", + "libraryPackage": "Google\\Ads\\AdManager\\V1", + "services": { + "AdBreakService": { + "clients": { + "grpc": { + "libraryClient": "AdBreakServiceGapicClient", + "rpcs": { + "CreateAdBreak": { + "methods": [ + "createAdBreak" + ] + }, + "DeleteAdBreak": { + "methods": [ + "deleteAdBreak" + ] + }, + "GetAdBreak": { + "methods": [ + "getAdBreak" + ] + }, + "ListAdBreaks": { + "methods": [ + "listAdBreaks" + ] + }, + "UpdateAdBreak": { + "methods": [ + "updateAdBreak" + ] + } + } + } + } + }, + "AdReviewCenterAdService": { + "clients": { + "grpc": { + "libraryClient": "AdReviewCenterAdServiceGapicClient", + "rpcs": { + "BatchAllowAdReviewCenterAds": { + "methods": [ + "batchAllowAdReviewCenterAds" + ] + }, + "BatchBlockAdReviewCenterAds": { + "methods": [ + "batchBlockAdReviewCenterAds" + ] + }, + "SearchAdReviewCenterAds": { + "methods": [ + "searchAdReviewCenterAds" + ] + } + } + } + } + }, + "AdUnitService": { + "clients": { + "grpc": { + "libraryClient": "AdUnitServiceGapicClient", + "rpcs": { + "GetAdUnit": { + "methods": [ + "getAdUnit" + ] + }, + "ListAdUnitSizes": { + "methods": [ + "listAdUnitSizes" + ] + }, + "ListAdUnits": { + "methods": [ + "listAdUnits" + ] + } + } + } + } + }, + "ApplicationService": { + "clients": { + "grpc": { + "libraryClient": "ApplicationServiceGapicClient", + "rpcs": { + "GetApplication": { + "methods": [ + "getApplication" + ] + }, + "ListApplications": { + "methods": [ + "listApplications" + ] + } + } + } + } + }, + "AudienceSegmentService": { + "clients": { + "grpc": { + "libraryClient": "AudienceSegmentServiceGapicClient", + "rpcs": { + "GetAudienceSegment": { + "methods": [ + "getAudienceSegment" + ] + }, + "ListAudienceSegments": { + "methods": [ + "listAudienceSegments" + ] + } + } + } + } + }, + "BandwidthGroupService": { + "clients": { + "grpc": { + "libraryClient": "BandwidthGroupServiceGapicClient", + "rpcs": { + "GetBandwidthGroup": { + "methods": [ + "getBandwidthGroup" + ] + }, + "ListBandwidthGroups": { + "methods": [ + "listBandwidthGroups" + ] + } + } + } + } + }, + "BrowserLanguageService": { + "clients": { + "grpc": { + "libraryClient": "BrowserLanguageServiceGapicClient", + "rpcs": { + "GetBrowserLanguage": { + "methods": [ + "getBrowserLanguage" + ] + }, + "ListBrowserLanguages": { + "methods": [ + "listBrowserLanguages" + ] + } + } + } + } + }, + "BrowserService": { + "clients": { + "grpc": { + "libraryClient": "BrowserServiceGapicClient", + "rpcs": { + "GetBrowser": { + "methods": [ + "getBrowser" + ] + }, + "ListBrowsers": { + "methods": [ + "listBrowsers" + ] + } + } + } + } + }, + "CmsMetadataKeyService": { + "clients": { + "grpc": { + "libraryClient": "CmsMetadataKeyServiceGapicClient", + "rpcs": { + "GetCmsMetadataKey": { + "methods": [ + "getCmsMetadataKey" + ] + }, + "ListCmsMetadataKeys": { + "methods": [ + "listCmsMetadataKeys" + ] + } + } + } + } + }, + "CmsMetadataValueService": { + "clients": { + "grpc": { + "libraryClient": "CmsMetadataValueServiceGapicClient", + "rpcs": { + "GetCmsMetadataValue": { + "methods": [ + "getCmsMetadataValue" + ] + }, + "ListCmsMetadataValues": { + "methods": [ + "listCmsMetadataValues" + ] + } + } + } + } + }, + "CompanyService": { + "clients": { + "grpc": { + "libraryClient": "CompanyServiceGapicClient", + "rpcs": { + "GetCompany": { + "methods": [ + "getCompany" + ] + }, + "ListCompanies": { + "methods": [ + "listCompanies" + ] + } + } + } + } + }, + "ContactService": { + "clients": { + "grpc": { + "libraryClient": "ContactServiceGapicClient", + "rpcs": { + "BatchCreateContacts": { + "methods": [ + "batchCreateContacts" + ] + }, + "BatchUpdateContacts": { + "methods": [ + "batchUpdateContacts" + ] + }, + "CreateContact": { + "methods": [ + "createContact" + ] + }, + "GetContact": { + "methods": [ + "getContact" + ] + }, + "ListContacts": { + "methods": [ + "listContacts" + ] + }, + "UpdateContact": { + "methods": [ + "updateContact" + ] + } + } + } + } + }, + "ContentBundleService": { + "clients": { + "grpc": { + "libraryClient": "ContentBundleServiceGapicClient", + "rpcs": { + "GetContentBundle": { + "methods": [ + "getContentBundle" + ] + }, + "ListContentBundles": { + "methods": [ + "listContentBundles" + ] + } + } + } + } + }, + "ContentLabelService": { + "clients": { + "grpc": { + "libraryClient": "ContentLabelServiceGapicClient", + "rpcs": { + "GetContentLabel": { + "methods": [ + "getContentLabel" + ] + }, + "ListContentLabels": { + "methods": [ + "listContentLabels" + ] + } + } + } + } + }, + "ContentService": { + "clients": { + "grpc": { + "libraryClient": "ContentServiceGapicClient", + "rpcs": { + "GetContent": { + "methods": [ + "getContent" + ] + }, + "ListContent": { + "methods": [ + "listContent" + ] + } + } + } + } + }, + "CreativeTemplateService": { + "clients": { + "grpc": { + "libraryClient": "CreativeTemplateServiceGapicClient", + "rpcs": { + "GetCreativeTemplate": { + "methods": [ + "getCreativeTemplate" + ] + }, + "ListCreativeTemplates": { + "methods": [ + "listCreativeTemplates" + ] + } + } + } + } + }, + "CustomFieldService": { + "clients": { + "grpc": { + "libraryClient": "CustomFieldServiceGapicClient", + "rpcs": { + "BatchActivateCustomFields": { + "methods": [ + "batchActivateCustomFields" + ] + }, + "BatchCreateCustomFields": { + "methods": [ + "batchCreateCustomFields" + ] + }, + "BatchDeactivateCustomFields": { + "methods": [ + "batchDeactivateCustomFields" + ] + }, + "BatchUpdateCustomFields": { + "methods": [ + "batchUpdateCustomFields" + ] + }, + "CreateCustomField": { + "methods": [ + "createCustomField" + ] + }, + "GetCustomField": { + "methods": [ + "getCustomField" + ] + }, + "ListCustomFields": { + "methods": [ + "listCustomFields" + ] + }, + "UpdateCustomField": { + "methods": [ + "updateCustomField" + ] + } + } + } + } + }, + "CustomTargetingKeyService": { + "clients": { + "grpc": { + "libraryClient": "CustomTargetingKeyServiceGapicClient", + "rpcs": { + "GetCustomTargetingKey": { + "methods": [ + "getCustomTargetingKey" + ] + }, + "ListCustomTargetingKeys": { + "methods": [ + "listCustomTargetingKeys" + ] + } + } + } + } + }, + "CustomTargetingValueService": { + "clients": { + "grpc": { + "libraryClient": "CustomTargetingValueServiceGapicClient", + "rpcs": { + "GetCustomTargetingValue": { + "methods": [ + "getCustomTargetingValue" + ] + }, + "ListCustomTargetingValues": { + "methods": [ + "listCustomTargetingValues" + ] + } + } + } + } + }, + "DeviceCapabilityService": { + "clients": { + "grpc": { + "libraryClient": "DeviceCapabilityServiceGapicClient", + "rpcs": { + "GetDeviceCapability": { + "methods": [ + "getDeviceCapability" + ] + }, + "ListDeviceCapabilities": { + "methods": [ + "listDeviceCapabilities" + ] + } + } + } + } + }, + "DeviceCategoryService": { + "clients": { + "grpc": { + "libraryClient": "DeviceCategoryServiceGapicClient", + "rpcs": { + "GetDeviceCategory": { + "methods": [ + "getDeviceCategory" + ] + }, + "ListDeviceCategories": { + "methods": [ + "listDeviceCategories" + ] + } + } + } + } + }, + "DeviceManufacturerService": { + "clients": { + "grpc": { + "libraryClient": "DeviceManufacturerServiceGapicClient", + "rpcs": { + "GetDeviceManufacturer": { + "methods": [ + "getDeviceManufacturer" + ] + }, + "ListDeviceManufacturers": { + "methods": [ + "listDeviceManufacturers" + ] + } + } + } + } + }, + "EntitySignalsMappingService": { + "clients": { + "grpc": { + "libraryClient": "EntitySignalsMappingServiceGapicClient", + "rpcs": { + "BatchCreateEntitySignalsMappings": { + "methods": [ + "batchCreateEntitySignalsMappings" + ] + }, + "BatchUpdateEntitySignalsMappings": { + "methods": [ + "batchUpdateEntitySignalsMappings" + ] + }, + "CreateEntitySignalsMapping": { + "methods": [ + "createEntitySignalsMapping" + ] + }, + "GetEntitySignalsMapping": { + "methods": [ + "getEntitySignalsMapping" + ] + }, + "ListEntitySignalsMappings": { + "methods": [ + "listEntitySignalsMappings" + ] + }, + "UpdateEntitySignalsMapping": { + "methods": [ + "updateEntitySignalsMapping" + ] + } + } + } + } + }, + "GeoTargetService": { + "clients": { + "grpc": { + "libraryClient": "GeoTargetServiceGapicClient", + "rpcs": { + "GetGeoTarget": { + "methods": [ + "getGeoTarget" + ] + }, + "ListGeoTargets": { + "methods": [ + "listGeoTargets" + ] + } + } + } + } + }, + "MobileCarrierService": { + "clients": { + "grpc": { + "libraryClient": "MobileCarrierServiceGapicClient", + "rpcs": { + "GetMobileCarrier": { + "methods": [ + "getMobileCarrier" + ] + }, + "ListMobileCarriers": { + "methods": [ + "listMobileCarriers" + ] + } + } + } + } + }, + "MobileDeviceService": { + "clients": { + "grpc": { + "libraryClient": "MobileDeviceServiceGapicClient", + "rpcs": { + "GetMobileDevice": { + "methods": [ + "getMobileDevice" + ] + }, + "ListMobileDevices": { + "methods": [ + "listMobileDevices" + ] + } + } + } + } + }, + "MobileDeviceSubmodelService": { + "clients": { + "grpc": { + "libraryClient": "MobileDeviceSubmodelServiceGapicClient", + "rpcs": { + "GetMobileDeviceSubmodel": { + "methods": [ + "getMobileDeviceSubmodel" + ] + }, + "ListMobileDeviceSubmodels": { + "methods": [ + "listMobileDeviceSubmodels" + ] + } + } + } + } + }, + "NetworkService": { + "clients": { + "grpc": { + "libraryClient": "NetworkServiceGapicClient", + "rpcs": { + "GetNetwork": { + "methods": [ + "getNetwork" + ] + }, + "ListNetworks": { + "methods": [ + "listNetworks" + ] + } + } + } + } + }, + "OperatingSystemService": { + "clients": { + "grpc": { + "libraryClient": "OperatingSystemServiceGapicClient", + "rpcs": { + "GetOperatingSystem": { + "methods": [ + "getOperatingSystem" + ] + }, + "ListOperatingSystems": { + "methods": [ + "listOperatingSystems" + ] + } + } + } + } + }, + "OperatingSystemVersionService": { + "clients": { + "grpc": { + "libraryClient": "OperatingSystemVersionServiceGapicClient", + "rpcs": { + "GetOperatingSystemVersion": { + "methods": [ + "getOperatingSystemVersion" + ] + }, + "ListOperatingSystemVersions": { + "methods": [ + "listOperatingSystemVersions" + ] + } + } + } + } + }, + "OrderService": { + "clients": { + "grpc": { + "libraryClient": "OrderServiceGapicClient", + "rpcs": { + "GetOrder": { + "methods": [ + "getOrder" + ] + }, + "ListOrders": { + "methods": [ + "listOrders" + ] + } + } + } + } + }, + "PlacementService": { + "clients": { + "grpc": { + "libraryClient": "PlacementServiceGapicClient", + "rpcs": { + "BatchActivatePlacements": { + "methods": [ + "batchActivatePlacements" + ] + }, + "BatchArchivePlacements": { + "methods": [ + "batchArchivePlacements" + ] + }, + "BatchCreatePlacements": { + "methods": [ + "batchCreatePlacements" + ] + }, + "BatchDeactivatePlacements": { + "methods": [ + "batchDeactivatePlacements" + ] + }, + "BatchUpdatePlacements": { + "methods": [ + "batchUpdatePlacements" + ] + }, + "CreatePlacement": { + "methods": [ + "createPlacement" + ] + }, + "GetPlacement": { + "methods": [ + "getPlacement" + ] + }, + "ListPlacements": { + "methods": [ + "listPlacements" + ] + }, + "UpdatePlacement": { + "methods": [ + "updatePlacement" + ] + } + } + } + } + }, + "PrivateAuctionDealService": { + "clients": { + "grpc": { + "libraryClient": "PrivateAuctionDealServiceGapicClient", + "rpcs": { + "CreatePrivateAuctionDeal": { + "methods": [ + "createPrivateAuctionDeal" + ] + }, + "GetPrivateAuctionDeal": { + "methods": [ + "getPrivateAuctionDeal" + ] + }, + "ListPrivateAuctionDeals": { + "methods": [ + "listPrivateAuctionDeals" + ] + }, + "UpdatePrivateAuctionDeal": { + "methods": [ + "updatePrivateAuctionDeal" + ] + } + } + } + } + }, + "PrivateAuctionService": { + "clients": { + "grpc": { + "libraryClient": "PrivateAuctionServiceGapicClient", + "rpcs": { + "CreatePrivateAuction": { + "methods": [ + "createPrivateAuction" + ] + }, + "GetPrivateAuction": { + "methods": [ + "getPrivateAuction" + ] + }, + "ListPrivateAuctions": { + "methods": [ + "listPrivateAuctions" + ] + }, + "UpdatePrivateAuction": { + "methods": [ + "updatePrivateAuction" + ] + } + } + } + } + }, + "ProgrammaticBuyerService": { + "clients": { + "grpc": { + "libraryClient": "ProgrammaticBuyerServiceGapicClient", + "rpcs": { + "GetProgrammaticBuyer": { + "methods": [ + "getProgrammaticBuyer" + ] + }, + "ListProgrammaticBuyers": { + "methods": [ + "listProgrammaticBuyers" + ] + } + } + } + } + }, + "ReportService": { + "clients": { + "grpc": { + "libraryClient": "ReportServiceGapicClient", + "rpcs": { + "CreateReport": { + "methods": [ + "createReport" + ] + }, + "FetchReportResultRows": { + "methods": [ + "fetchReportResultRows" + ] + }, + "GetReport": { + "methods": [ + "getReport" + ] + }, + "ListReports": { + "methods": [ + "listReports" + ] + }, + "RunReport": { + "methods": [ + "runReport" + ] + }, + "UpdateReport": { + "methods": [ + "updateReport" + ] + } + } + } + } + }, + "RoleService": { + "clients": { + "grpc": { + "libraryClient": "RoleServiceGapicClient", + "rpcs": { + "GetRole": { + "methods": [ + "getRole" + ] + }, + "ListRoles": { + "methods": [ + "listRoles" + ] + } + } + } + } + }, + "SiteService": { + "clients": { + "grpc": { + "libraryClient": "SiteServiceGapicClient", + "rpcs": { + "BatchCreateSites": { + "methods": [ + "batchCreateSites" + ] + }, + "BatchDeactivateSites": { + "methods": [ + "batchDeactivateSites" + ] + }, + "BatchSubmitSitesForApproval": { + "methods": [ + "batchSubmitSitesForApproval" + ] + }, + "BatchUpdateSites": { + "methods": [ + "batchUpdateSites" + ] + }, + "CreateSite": { + "methods": [ + "createSite" + ] + }, + "GetSite": { + "methods": [ + "getSite" + ] + }, + "ListSites": { + "methods": [ + "listSites" + ] + }, + "UpdateSite": { + "methods": [ + "updateSite" + ] + } + } + } + } + }, + "TaxonomyCategoryService": { + "clients": { + "grpc": { + "libraryClient": "TaxonomyCategoryServiceGapicClient", + "rpcs": { + "GetTaxonomyCategory": { + "methods": [ + "getTaxonomyCategory" + ] + }, + "ListTaxonomyCategories": { + "methods": [ + "listTaxonomyCategories" + ] + } + } + } + } + }, + "TeamService": { + "clients": { + "grpc": { + "libraryClient": "TeamServiceGapicClient", + "rpcs": { + "BatchActivateTeams": { + "methods": [ + "batchActivateTeams" + ] + }, + "BatchCreateTeams": { + "methods": [ + "batchCreateTeams" + ] + }, + "BatchDeactivateTeams": { + "methods": [ + "batchDeactivateTeams" + ] + }, + "BatchUpdateTeams": { + "methods": [ + "batchUpdateTeams" + ] + }, + "CreateTeam": { + "methods": [ + "createTeam" + ] + }, + "GetTeam": { + "methods": [ + "getTeam" + ] + }, + "ListTeams": { + "methods": [ + "listTeams" + ] + }, + "UpdateTeam": { + "methods": [ + "updateTeam" + ] + } + } + } + } + }, + "UserService": { + "clients": { + "grpc": { + "libraryClient": "UserServiceGapicClient", + "rpcs": { + "GetUser": { + "methods": [ + "getUser" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_client_config.json new file mode 100644 index 000000000000..5847adceb5d9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_client_config.json @@ -0,0 +1,47 @@ +{ + "interfaces": { + "google.ads.admanager.v1.AdBreakService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "CreateAdBreak": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteAdBreak": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetAdBreak": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListAdBreaks": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateAdBreak": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_descriptor_config.php new file mode 100644 index 000000000000..3ece9e4c9dd2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_descriptor_config.php @@ -0,0 +1,101 @@ + [ + 'google.ads.admanager.v1.AdBreakService' => [ + 'CreateAdBreak' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\AdBreak', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAdBreak' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetAdBreak' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\AdBreak', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAdBreaks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAdBreaks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListAdBreaksResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateAdBreak' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\AdBreak', + 'headerParams' => [ + [ + 'keyName' => 'ad_break.name', + 'fieldAccessors' => [ + 'getAdBreak', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'adBreak' => 'networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}', + 'liveStreamEvent' => 'networks/{network_code}/liveStreamEvents/{live_stream_event}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_rest_client_config.php new file mode 100644 index 000000000000..9d689c07198b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_rest_client_config.php @@ -0,0 +1,135 @@ + [ + 'google.ads.admanager.v1.AdBreakService' => [ + 'CreateAdBreak' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaks', + 'body' => 'ad_break', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaks', + 'body' => 'ad_break', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks', + 'body' => 'ad_break', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAdBreak' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAdBreak' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/liveStreamEventsByCustomAssetKey/*/adBreaks/*}', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/liveStreamEvents/*/adBreaks/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAdBreaks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaks', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaks', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateAdBreak' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{ad_break.name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}', + 'body' => 'ad_break', + 'placeholders' => [ + 'ad_break.name' => [ + 'getters' => [ + 'getAdBreak', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_client_config.json new file mode 100644 index 000000000000..c91b629a8fe7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_client_config.json @@ -0,0 +1,37 @@ +{ + "interfaces": { + "google.ads.admanager.v1.AdReviewCenterAdService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchAllowAdReviewCenterAds": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchBlockAdReviewCenterAds": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SearchAdReviewCenterAds": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_descriptor_config.php new file mode 100644 index 000000000000..63c868cf3296 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_descriptor_config.php @@ -0,0 +1,90 @@ + [ + 'google.ads.admanager.v1.AdReviewCenterAdService' => [ + 'BatchAllowAdReviewCenterAds' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Ads\AdManager\V1\BatchAllowAdReviewCenterAdsResponse', + 'metadataReturnType' => '\Google\Ads\AdManager\V1\BatchAdReviewCenterAdsOperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchBlockAdReviewCenterAds' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Ads\AdManager\V1\BatchBlockAdReviewCenterAdsResponse', + 'metadataReturnType' => '\Google\Ads\AdManager\V1\BatchAdReviewCenterAdsOperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'SearchAdReviewCenterAds' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAdReviewCenterAds', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\SearchAdReviewCenterAdsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'adReviewCenterAd' => 'networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}', + 'webProperty' => 'networks/{network_code}/webProperties/{web_property}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_rest_client_config.php new file mode 100644 index 000000000000..80f0197ccd55 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_rest_client_config.php @@ -0,0 +1,77 @@ + [ + 'google.ads.admanager.v1.AdReviewCenterAdService' => [ + 'BatchAllowAdReviewCenterAds' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:batchAllow', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchBlockAdReviewCenterAds' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:batchBlock', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'SearchAdReviewCenterAds' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:search', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json new file mode 100644 index 000000000000..5fdf2cea857b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json @@ -0,0 +1,37 @@ +{ + "interfaces": { + "google.ads.admanager.v1.AdUnitService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetAdUnit": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListAdUnitSizes": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListAdUnits": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php new file mode 100644 index 000000000000..9c643cc808b5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php @@ -0,0 +1,84 @@ + [ + 'google.ads.admanager.v1.AdUnitService' => [ + 'GetAdUnit' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\AdUnit', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAdUnitSizes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAdUnitSizes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListAdUnitSizesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListAdUnits' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAdUnits', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListAdUnitsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'adUnit' => 'networks/{network_code}/adUnits/{ad_unit}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php new file mode 100644 index 000000000000..3ee1205f4bbe --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php @@ -0,0 +1,75 @@ + [ + 'google.ads.admanager.v1.AdUnitService' => [ + 'GetAdUnit' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/adUnits/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAdUnitSizes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/adUnitSizes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAdUnits' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/adUnits', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_client_config.json new file mode 100644 index 000000000000..bb64e8fa9612 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.ApplicationService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetApplication": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListApplications": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_descriptor_config.php new file mode 100644 index 000000000000..dc9b42d7a40b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.ApplicationService' => [ + 'GetApplication' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Application', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListApplications' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getApplications', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListApplicationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'application' => 'networks/{network_code}/applications/{application}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_rest_client_config.php new file mode 100644 index 000000000000..e5b05944ec30 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.ApplicationService' => [ + 'GetApplication' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/applications/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListApplications' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/applications', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_client_config.json new file mode 100644 index 000000000000..8b6d16b3203f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.AudienceSegmentService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetAudienceSegment": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListAudienceSegments": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_descriptor_config.php new file mode 100644 index 000000000000..9ed13d205bf2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.AudienceSegmentService' => [ + 'GetAudienceSegment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\AudienceSegment', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAudienceSegments' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAudienceSegments', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListAudienceSegmentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'audienceSegment' => 'networks/{network_code}/audienceSegments/{audience_segment}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_rest_client_config.php new file mode 100644 index 000000000000..f25b8bfa2cbe --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.AudienceSegmentService' => [ + 'GetAudienceSegment' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/audienceSegments/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAudienceSegments' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/audienceSegments', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_client_config.json new file mode 100644 index 000000000000..6ba24954bd35 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.BandwidthGroupService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetBandwidthGroup": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListBandwidthGroups": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_descriptor_config.php new file mode 100644 index 000000000000..32362f113a4a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.BandwidthGroupService' => [ + 'GetBandwidthGroup' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BandwidthGroup', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListBandwidthGroups' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getBandwidthGroups', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListBandwidthGroupsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'bandwidthGroup' => 'networks/{network_code}/bandwidthGroups/{bandwidth_group}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_rest_client_config.php new file mode 100644 index 000000000000..daf651c72f56 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.BandwidthGroupService' => [ + 'GetBandwidthGroup' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/bandwidthGroups/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListBandwidthGroups' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/bandwidthGroups', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_client_config.json new file mode 100644 index 000000000000..6c787fff7d1b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.BrowserLanguageService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetBrowserLanguage": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListBrowserLanguages": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_descriptor_config.php new file mode 100644 index 000000000000..5cb94bd1e55e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.BrowserLanguageService' => [ + 'GetBrowserLanguage' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BrowserLanguage', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListBrowserLanguages' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getBrowserLanguages', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListBrowserLanguagesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'browserLanguage' => 'networks/{network_code}/browserLanguages/{browser_language}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_rest_client_config.php new file mode 100644 index 000000000000..ba837d2362be --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.BrowserLanguageService' => [ + 'GetBrowserLanguage' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/browserLanguages/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListBrowserLanguages' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/browserLanguages', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_client_config.json new file mode 100644 index 000000000000..89c46c3ac3a7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.BrowserService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetBrowser": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListBrowsers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_descriptor_config.php new file mode 100644 index 000000000000..c463f2d6aa9a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.BrowserService' => [ + 'GetBrowser' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Browser', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListBrowsers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getBrowsers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListBrowsersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'browser' => 'networks/{network_code}/browsers/{browser}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_rest_client_config.php new file mode 100644 index 000000000000..cecd80b05732 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.BrowserService' => [ + 'GetBrowser' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/browsers/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListBrowsers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/browsers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_client_config.json new file mode 100644 index 000000000000..ce722c8cfe92 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.CmsMetadataKeyService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetCmsMetadataKey": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListCmsMetadataKeys": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_descriptor_config.php new file mode 100644 index 000000000000..f8385224a189 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CmsMetadataKeyService' => [ + 'GetCmsMetadataKey' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CmsMetadataKey', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCmsMetadataKeys' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCmsMetadataKeys', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListCmsMetadataKeysResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'cmsMetadataKey' => 'networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_rest_client_config.php new file mode 100644 index 000000000000..b505014dd953 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CmsMetadataKeyService' => [ + 'GetCmsMetadataKey' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/cmsMetadataKeys/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCmsMetadataKeys' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/cmsMetadataKeys', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_client_config.json new file mode 100644 index 000000000000..faca0f996228 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.CmsMetadataValueService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetCmsMetadataValue": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListCmsMetadataValues": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_descriptor_config.php new file mode 100644 index 000000000000..877a76e63100 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CmsMetadataValueService' => [ + 'GetCmsMetadataValue' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CmsMetadataValue', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCmsMetadataValues' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCmsMetadataValues', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListCmsMetadataValuesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'cmsMetadataValue' => 'networks/{network_code}/cmsMetadataValues/{cms_metadata_value}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_rest_client_config.php new file mode 100644 index 000000000000..883105fce99e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CmsMetadataValueService' => [ + 'GetCmsMetadataValue' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/cmsMetadataValues/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCmsMetadataValues' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/cmsMetadataValues', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json new file mode 100644 index 000000000000..00bdee6fd628 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.CompanyService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetCompany": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListCompanies": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php new file mode 100644 index 000000000000..0de84ef423b8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CompanyService' => [ + 'GetCompany' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Company', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCompanies' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCompanies', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListCompaniesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'company' => 'networks/{network_code}/companies/{company}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php new file mode 100644 index 000000000000..e38e4a6c1fb6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CompanyService' => [ + 'GetCompany' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/companies/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCompanies' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/companies', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_client_config.json new file mode 100644 index 000000000000..44bd6387f3bd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_client_config.json @@ -0,0 +1,52 @@ +{ + "interfaces": { + "google.ads.admanager.v1.ContactService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchCreateContacts": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateContacts": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateContact": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetContact": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListContacts": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateContact": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_descriptor_config.php new file mode 100644 index 000000000000..f04672f7ac95 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_descriptor_config.php @@ -0,0 +1,114 @@ + [ + 'google.ads.admanager.v1.ContactService' => [ + 'BatchCreateContacts' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateContactsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateContacts' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateContactsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateContact' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Contact', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetContact' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Contact', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListContacts' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getContacts', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListContactsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateContact' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Contact', + 'headerParams' => [ + [ + 'keyName' => 'contact.name', + 'fieldAccessors' => [ + 'getContact', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'company' => 'networks/{network_code}/companies/{company}', + 'contact' => 'networks/{network_code}/contacts/{contact}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_rest_client_config.php new file mode 100644 index 000000000000..676bc0d66e5b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_rest_client_config.php @@ -0,0 +1,116 @@ + [ + 'google.ads.admanager.v1.ContactService' => [ + 'BatchCreateContacts' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/contacts:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateContacts' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/contacts:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateContact' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/contacts', + 'body' => 'contact', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetContact' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/contacts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListContacts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/contacts', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateContact' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{contact.name=networks/*/contacts/*}', + 'body' => 'contact', + 'placeholders' => [ + 'contact.name' => [ + 'getters' => [ + 'getContact', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_client_config.json new file mode 100644 index 000000000000..4a7146ed4e3b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.ContentBundleService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetContentBundle": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListContentBundles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_descriptor_config.php new file mode 100644 index 000000000000..75f84ad16ac8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.ContentBundleService' => [ + 'GetContentBundle' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ContentBundle', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListContentBundles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getContentBundles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListContentBundlesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'contentBundle' => 'networks/{network_code}/contentBundles/{content_bundle}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_rest_client_config.php new file mode 100644 index 000000000000..3b09659da55e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.ContentBundleService' => [ + 'GetContentBundle' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/contentBundles/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListContentBundles' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/contentBundles', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_client_config.json new file mode 100644 index 000000000000..6252bfa3b254 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.ContentLabelService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetContentLabel": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListContentLabels": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_descriptor_config.php new file mode 100644 index 000000000000..c3b7e8b83d57 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.ContentLabelService' => [ + 'GetContentLabel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ContentLabel', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListContentLabels' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getContentLabels', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListContentLabelsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'contentLabel' => 'networks/{network_code}/contentLabels/{content_label}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_rest_client_config.php new file mode 100644 index 000000000000..edaecf687628 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.ContentLabelService' => [ + 'GetContentLabel' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/contentLabels/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListContentLabels' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/contentLabels', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_client_config.json new file mode 100644 index 000000000000..d2da72f0491f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.ContentService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetContent": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListContent": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_descriptor_config.php new file mode 100644 index 000000000000..65de8ae3afaa --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.ContentService' => [ + 'GetContent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Content', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListContent' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getContent', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListContentResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'content' => 'networks/{network_code}/content/{content}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_rest_client_config.php new file mode 100644 index 000000000000..cff16a05f780 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.ContentService' => [ + 'GetContent' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/content/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListContent' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/content', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_client_config.json new file mode 100644 index 000000000000..75af61df4193 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.CreativeTemplateService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetCreativeTemplate": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListCreativeTemplates": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_descriptor_config.php new file mode 100644 index 000000000000..90fcea4e24b2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CreativeTemplateService' => [ + 'GetCreativeTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CreativeTemplate', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCreativeTemplates' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCreativeTemplates', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListCreativeTemplatesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'creativeTemplate' => 'networks/{network_code}/creativeTemplates/{creative_template}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_rest_client_config.php new file mode 100644 index 000000000000..79a57d492246 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CreativeTemplateService' => [ + 'GetCreativeTemplate' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/creativeTemplates/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCreativeTemplates' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/creativeTemplates', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json new file mode 100644 index 000000000000..2e9f9e2ab6dc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json @@ -0,0 +1,62 @@ +{ + "interfaces": { + "google.ads.admanager.v1.CustomFieldService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchActivateCustomFields": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchCreateCustomFields": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchDeactivateCustomFields": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateCustomFields": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateCustomField": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetCustomField": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListCustomFields": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateCustomField": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php new file mode 100644 index 000000000000..1baa51a829ba --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php @@ -0,0 +1,137 @@ + [ + 'google.ads.admanager.v1.CustomFieldService' => [ + 'BatchActivateCustomFields' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchActivateCustomFieldsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateCustomFields' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateCustomFieldsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateCustomFields' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchDeactivateCustomFieldsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateCustomFields' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateCustomFieldsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomField' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CustomField', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetCustomField' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CustomField', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCustomFields' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomFields', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListCustomFieldsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateCustomField' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CustomField', + 'headerParams' => [ + [ + 'keyName' => 'custom_field.name', + 'fieldAccessors' => [ + 'getCustomField', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'customField' => 'networks/{network_code}/customFields/{custom_field}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php new file mode 100644 index 000000000000..57c58c335acf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php @@ -0,0 +1,140 @@ + [ + 'google.ads.admanager.v1.CustomFieldService' => [ + 'BatchActivateCustomFields' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchActivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateCustomFields' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateCustomFields' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchDeactivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateCustomFields' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomField' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields', + 'body' => 'custom_field', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetCustomField' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/customFields/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCustomFields' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateCustomField' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{custom_field.name=networks/*/customFields/*}', + 'body' => 'custom_field', + 'placeholders' => [ + 'custom_field.name' => [ + 'getters' => [ + 'getCustomField', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json new file mode 100644 index 000000000000..031df8f440ba --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.CustomTargetingKeyService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetCustomTargetingKey": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListCustomTargetingKeys": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php new file mode 100644 index 000000000000..e812151e40bd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CustomTargetingKeyService' => [ + 'GetCustomTargetingKey' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CustomTargetingKey', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCustomTargetingKeys' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomTargetingKeys', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListCustomTargetingKeysResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'customTargetingKey' => 'networks/{network_code}/customTargetingKeys/{custom_targeting_key}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php new file mode 100644 index 000000000000..c6345179cd9a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CustomTargetingKeyService' => [ + 'GetCustomTargetingKey' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/customTargetingKeys/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCustomTargetingKeys' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/customTargetingKeys', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json new file mode 100644 index 000000000000..e2444ae9ce7b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.CustomTargetingValueService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetCustomTargetingValue": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListCustomTargetingValues": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php new file mode 100644 index 000000000000..ccb4b68598a7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.CustomTargetingValueService' => [ + 'GetCustomTargetingValue' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CustomTargetingValue', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCustomTargetingValues' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomTargetingValues', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListCustomTargetingValuesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'customTargetingValue' => 'networks/{network_code}/customTargetingValues/{custom_targeting_value}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php new file mode 100644 index 000000000000..0c905b342b08 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php @@ -0,0 +1,76 @@ + [ + 'google.ads.admanager.v1.CustomTargetingValueService' => [ + 'GetCustomTargetingValue' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/customTargetingValues/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/customTargetingKeys/*/customTargetingValues/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCustomTargetingValues' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/customTargetingValues', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*/customTargetingKeys/*}/customTargetingValues', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_client_config.json new file mode 100644 index 000000000000..492b7bbd286b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.DeviceCapabilityService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetDeviceCapability": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDeviceCapabilities": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_descriptor_config.php new file mode 100644 index 000000000000..9c8e2f8c2492 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.DeviceCapabilityService' => [ + 'GetDeviceCapability' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\DeviceCapability', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDeviceCapabilities' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDeviceCapabilities', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListDeviceCapabilitiesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'deviceCapability' => 'networks/{network_code}/deviceCapabilities/{device_capability}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_rest_client_config.php new file mode 100644 index 000000000000..8adef8c90ddb --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.DeviceCapabilityService' => [ + 'GetDeviceCapability' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/deviceCapabilities/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDeviceCapabilities' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/deviceCapabilities', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_client_config.json new file mode 100644 index 000000000000..237c2407312a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.DeviceCategoryService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetDeviceCategory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDeviceCategories": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_descriptor_config.php new file mode 100644 index 000000000000..bff023e7424a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.DeviceCategoryService' => [ + 'GetDeviceCategory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\DeviceCategory', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDeviceCategories' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDeviceCategories', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListDeviceCategoriesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'deviceCategory' => 'networks/{network_code}/deviceCategories/{device_category}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_rest_client_config.php new file mode 100644 index 000000000000..a8b6129c4494 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.DeviceCategoryService' => [ + 'GetDeviceCategory' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/deviceCategories/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDeviceCategories' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/deviceCategories', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_client_config.json new file mode 100644 index 000000000000..e6f3ca01e5ee --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.DeviceManufacturerService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetDeviceManufacturer": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDeviceManufacturers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_descriptor_config.php new file mode 100644 index 000000000000..7c28e5dfce51 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.DeviceManufacturerService' => [ + 'GetDeviceManufacturer' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\DeviceManufacturer', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDeviceManufacturers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDeviceManufacturers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListDeviceManufacturersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'deviceManufacturer' => 'networks/{network_code}/deviceManufacturers/{device_manufacturer}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_rest_client_config.php new file mode 100644 index 000000000000..6ae7e184b176 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.DeviceManufacturerService' => [ + 'GetDeviceManufacturer' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/deviceManufacturers/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDeviceManufacturers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/deviceManufacturers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json new file mode 100644 index 000000000000..22fd1b90d729 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json @@ -0,0 +1,52 @@ +{ + "interfaces": { + "google.ads.admanager.v1.EntitySignalsMappingService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchCreateEntitySignalsMappings": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateEntitySignalsMappings": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateEntitySignalsMapping": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetEntitySignalsMapping": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListEntitySignalsMappings": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateEntitySignalsMapping": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php new file mode 100644 index 000000000000..1becab7b8e54 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php @@ -0,0 +1,113 @@ + [ + 'google.ads.admanager.v1.EntitySignalsMappingService' => [ + 'BatchCreateEntitySignalsMappings' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateEntitySignalsMappingsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateEntitySignalsMappings' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateEntitySignalsMappingsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateEntitySignalsMapping' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\EntitySignalsMapping', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetEntitySignalsMapping' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\EntitySignalsMapping', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListEntitySignalsMappings' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntitySignalsMappings', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListEntitySignalsMappingsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateEntitySignalsMapping' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\EntitySignalsMapping', + 'headerParams' => [ + [ + 'keyName' => 'entity_signals_mapping.name', + 'fieldAccessors' => [ + 'getEntitySignalsMapping', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'entitySignalsMapping' => 'networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php new file mode 100644 index 000000000000..ae23b997470e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php @@ -0,0 +1,116 @@ + [ + 'google.ads.admanager.v1.EntitySignalsMappingService' => [ + 'BatchCreateEntitySignalsMappings' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateEntitySignalsMappings' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateEntitySignalsMapping' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings', + 'body' => 'entity_signals_mapping', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetEntitySignalsMapping' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/entitySignalsMappings/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListEntitySignalsMappings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateEntitySignalsMapping' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{entity_signals_mapping.name=networks/*/entitySignalsMappings/*}', + 'body' => 'entity_signals_mapping', + 'placeholders' => [ + 'entity_signals_mapping.name' => [ + 'getters' => [ + 'getEntitySignalsMapping', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_client_config.json new file mode 100644 index 000000000000..a0eabfcdb67a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.GeoTargetService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetGeoTarget": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListGeoTargets": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_descriptor_config.php new file mode 100644 index 000000000000..849d00c5ecc3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.GeoTargetService' => [ + 'GetGeoTarget' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\GeoTarget', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListGeoTargets' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getGeoTargets', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListGeoTargetsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'geoTarget' => 'networks/{network_code}/geoTargets/{geo_target}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_rest_client_config.php new file mode 100644 index 000000000000..ab9ae7fb7ea2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.GeoTargetService' => [ + 'GetGeoTarget' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/geoTargets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListGeoTargets' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/geoTargets', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_client_config.json new file mode 100644 index 000000000000..e52339f89d25 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.MobileCarrierService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetMobileCarrier": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListMobileCarriers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_descriptor_config.php new file mode 100644 index 000000000000..343f2bfe096f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.MobileCarrierService' => [ + 'GetMobileCarrier' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\MobileCarrier', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListMobileCarriers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMobileCarriers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListMobileCarriersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'mobileCarrier' => 'networks/{network_code}/mobileCarriers/{mobile_carrier}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_rest_client_config.php new file mode 100644 index 000000000000..81b96c1945a5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.MobileCarrierService' => [ + 'GetMobileCarrier' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/mobileCarriers/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListMobileCarriers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/mobileCarriers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_client_config.json new file mode 100644 index 000000000000..83fc4e6920a6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.MobileDeviceService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetMobileDevice": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListMobileDevices": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_descriptor_config.php new file mode 100644 index 000000000000..be6dc20617e2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.MobileDeviceService' => [ + 'GetMobileDevice' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\MobileDevice', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListMobileDevices' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMobileDevices', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListMobileDevicesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'mobileDevice' => 'networks/{network_code}/mobileDevices/{mobile_device}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_rest_client_config.php new file mode 100644 index 000000000000..3680518643d7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.MobileDeviceService' => [ + 'GetMobileDevice' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/mobileDevices/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListMobileDevices' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/mobileDevices', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_client_config.json new file mode 100644 index 000000000000..44e32b8e3bd3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.MobileDeviceSubmodelService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetMobileDeviceSubmodel": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListMobileDeviceSubmodels": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_descriptor_config.php new file mode 100644 index 000000000000..09cc238914d7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.MobileDeviceSubmodelService' => [ + 'GetMobileDeviceSubmodel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\MobileDeviceSubmodel', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListMobileDeviceSubmodels' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMobileDeviceSubmodels', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListMobileDeviceSubmodelsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'mobileDeviceSubmodel' => 'networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_rest_client_config.php new file mode 100644 index 000000000000..2356b6c1fec7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.MobileDeviceSubmodelService' => [ + 'GetMobileDeviceSubmodel' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/mobileDeviceSubmodels/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListMobileDeviceSubmodels' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/mobileDeviceSubmodels', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json new file mode 100644 index 000000000000..aec7ab1f074c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.NetworkService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetNetwork": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListNetworks": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php new file mode 100644 index 000000000000..069e325fe37c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php @@ -0,0 +1,47 @@ + [ + 'google.ads.admanager.v1.NetworkService' => [ + 'GetNetwork' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Network', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListNetworks' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListNetworksResponse', + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php new file mode 100644 index 000000000000..04d5e848d9b0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php @@ -0,0 +1,57 @@ + [ + 'google.ads.admanager.v1.NetworkService' => [ + 'GetNetwork' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListNetworks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/networks', + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_client_config.json new file mode 100644 index 000000000000..dcda85481f3b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.OperatingSystemService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetOperatingSystem": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListOperatingSystems": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_descriptor_config.php new file mode 100644 index 000000000000..fb3f27945838 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.OperatingSystemService' => [ + 'GetOperatingSystem' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\OperatingSystem', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListOperatingSystems' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getOperatingSystems', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListOperatingSystemsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + 'operatingSystem' => 'networks/{network_code}/operatingSystems/{operating_system}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_rest_client_config.php new file mode 100644 index 000000000000..08ad6366f641 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.OperatingSystemService' => [ + 'GetOperatingSystem' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operatingSystems/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperatingSystems' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/operatingSystems', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_client_config.json new file mode 100644 index 000000000000..2f54e88b4d22 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.OperatingSystemVersionService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetOperatingSystemVersion": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListOperatingSystemVersions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_descriptor_config.php new file mode 100644 index 000000000000..b4ee7c06e592 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.OperatingSystemVersionService' => [ + 'GetOperatingSystemVersion' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\OperatingSystemVersion', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListOperatingSystemVersions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getOperatingSystemVersions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListOperatingSystemVersionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + 'operatingSystemVersion' => 'networks/{network_code}/operatingSystemVersions/{operating_system_version}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_rest_client_config.php new file mode 100644 index 000000000000..86355344d010 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.OperatingSystemVersionService' => [ + 'GetOperatingSystemVersion' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operatingSystemVersions/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperatingSystemVersions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/operatingSystemVersions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json new file mode 100644 index 000000000000..de7c27588915 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json @@ -0,0 +1,44 @@ +{ + "interfaces": { + "google.ads.admanager.v1.OrderService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "GetOrder": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListOrders": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php new file mode 100644 index 000000000000..b1df1fc01747 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.OrderService' => [ + 'GetOrder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Order', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListOrders' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getOrders', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListOrdersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + 'order' => 'networks/{network_code}/orders/{order}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php new file mode 100644 index 000000000000..25fa03967a20 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.OrderService' => [ + 'GetOrder' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/orders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOrders' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/orders', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json new file mode 100644 index 000000000000..5c98f37c18ed --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json @@ -0,0 +1,67 @@ +{ + "interfaces": { + "google.ads.admanager.v1.PlacementService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchActivatePlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchArchivePlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchCreatePlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchDeactivatePlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdatePlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreatePlacement": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetPlacement": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListPlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdatePlacement": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php new file mode 100644 index 000000000000..c7d746ba9837 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php @@ -0,0 +1,150 @@ + [ + 'google.ads.admanager.v1.PlacementService' => [ + 'BatchActivatePlacements' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchActivatePlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchArchivePlacements' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchArchivePlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreatePlacements' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreatePlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivatePlacements' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchDeactivatePlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdatePlacements' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdatePlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreatePlacement' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Placement', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetPlacement' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Placement', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListPlacements' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getPlacements', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListPlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdatePlacement' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Placement', + 'headerParams' => [ + [ + 'keyName' => 'placement.name', + 'fieldAccessors' => [ + 'getPlacement', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'adUnit' => 'networks/{network_code}/adUnits/{ad_unit}', + 'network' => 'networks/{network_code}', + 'placement' => 'networks/{network_code}/placements/{placement}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php new file mode 100644 index 000000000000..f1db13666f62 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php @@ -0,0 +1,152 @@ + [ + 'google.ads.admanager.v1.PlacementService' => [ + 'BatchActivatePlacements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchActivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchArchivePlacements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchArchive', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreatePlacements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivatePlacements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchDeactivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdatePlacements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreatePlacement' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements', + 'body' => 'placement', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetPlacement' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/placements/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListPlacements' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/placements', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdatePlacement' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{placement.name=networks/*/placements/*}', + 'body' => 'placement', + 'placeholders' => [ + 'placement.name' => [ + 'getters' => [ + 'getPlacement', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_client_config.json new file mode 100644 index 000000000000..484e9fe1324f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_client_config.json @@ -0,0 +1,42 @@ +{ + "interfaces": { + "google.ads.admanager.v1.PrivateAuctionDealService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "CreatePrivateAuctionDeal": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetPrivateAuctionDeal": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListPrivateAuctionDeals": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdatePrivateAuctionDeal": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_descriptor_config.php new file mode 100644 index 000000000000..8fee83088d12 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_descriptor_config.php @@ -0,0 +1,110 @@ + [ + 'google.ads.admanager.v1.PrivateAuctionDealService' => [ + 'CreatePrivateAuctionDeal' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuctionDeal', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetPrivateAuctionDeal' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuctionDeal', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListPrivateAuctionDeals' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getPrivateAuctionDeals', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListPrivateAuctionDealsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdatePrivateAuctionDeal' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuctionDeal', + 'headerParams' => [ + [ + 'keyName' => 'private_auction_deal.name', + 'fieldAccessors' => [ + 'getPrivateAuctionDeal', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'adUnit' => 'networks/{network_code}/adUnits/{ad_unit}', + 'application' => 'networks/{network_code}/applications/{application}', + 'audienceSegment' => 'networks/{network_code}/audienceSegments/{audience_segment}', + 'bandwidthGroup' => 'networks/{network_code}/bandwidthGroups/{bandwidth_group}', + 'browser' => 'networks/{network_code}/browsers/{browser}', + 'browserLanguage' => 'networks/{network_code}/browserLanguages/{browser_language}', + 'cmsMetadataValue' => 'networks/{network_code}/cmsMetadataValues/{cms_metadata_value}', + 'content' => 'networks/{network_code}/content/{content}', + 'contentBundle' => 'networks/{network_code}/contentBundles/{content_bundle}', + 'customTargetingKey' => 'networks/{network_code}/customTargetingKeys/{custom_targeting_key}', + 'customTargetingValue' => 'networks/{network_code}/customTargetingValues/{custom_targeting_value}', + 'deviceCapability' => 'networks/{network_code}/deviceCapabilities/{device_capability}', + 'deviceCategory' => 'networks/{network_code}/deviceCategories/{device_category}', + 'deviceManufacturer' => 'networks/{network_code}/deviceManufacturers/{device_manufacturer}', + 'geoTarget' => 'networks/{network_code}/geoTargets/{geo_target}', + 'mobileCarrier' => 'networks/{network_code}/mobileCarriers/{mobile_carrier}', + 'mobileDevice' => 'networks/{network_code}/mobileDevices/{mobile_device}', + 'mobileDeviceSubmodel' => 'networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}', + 'network' => 'networks/{network_code}', + 'operatingSystem' => 'networks/{network_code}/operatingSystems/{operating_system}', + 'operatingSystemVersion' => 'networks/{network_code}/operatingSystemVersions/{operating_system_version}', + 'placement' => 'networks/{network_code}/placements/{placement}', + 'privateAuctionDeal' => 'networks/{network_code}/privateAuctionDeals/{private_auction_deal}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_rest_client_config.php new file mode 100644 index 000000000000..7b78da5b2b4d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_rest_client_config.php @@ -0,0 +1,92 @@ + [ + 'google.ads.admanager.v1.PrivateAuctionDealService' => [ + 'CreatePrivateAuctionDeal' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/privateAuctionDeals', + 'body' => 'private_auction_deal', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetPrivateAuctionDeal' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/privateAuctionDeals/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListPrivateAuctionDeals' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/privateAuctionDeals', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdatePrivateAuctionDeal' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{private_auction_deal.name=networks/*/privateAuctionDeals/*}', + 'body' => 'private_auction_deal', + 'placeholders' => [ + 'private_auction_deal.name' => [ + 'getters' => [ + 'getPrivateAuctionDeal', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_client_config.json new file mode 100644 index 000000000000..481c20204110 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_client_config.json @@ -0,0 +1,42 @@ +{ + "interfaces": { + "google.ads.admanager.v1.PrivateAuctionService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "CreatePrivateAuction": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetPrivateAuction": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListPrivateAuctions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdatePrivateAuction": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_descriptor_config.php new file mode 100644 index 000000000000..ee1c1cb6536e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_descriptor_config.php @@ -0,0 +1,90 @@ + [ + 'google.ads.admanager.v1.PrivateAuctionService' => [ + 'CreatePrivateAuction' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuction', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetPrivateAuction' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuction', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListPrivateAuctions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getPrivateAuctions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListPrivateAuctionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdatePrivateAuction' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuction', + 'headerParams' => [ + [ + 'keyName' => 'private_auction.name', + 'fieldAccessors' => [ + 'getPrivateAuction', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + 'privateAuction' => 'networks/{network_code}/privateAuctions/{private_auction}', + 'user' => 'networks/{network_code}/users/{user}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_rest_client_config.php new file mode 100644 index 000000000000..ad70f205ecc4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_rest_client_config.php @@ -0,0 +1,92 @@ + [ + 'google.ads.admanager.v1.PrivateAuctionService' => [ + 'CreatePrivateAuction' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/privateAuctions', + 'body' => 'private_auction', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetPrivateAuction' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/privateAuctions/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListPrivateAuctions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/privateAuctions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdatePrivateAuction' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{private_auction.name=networks/*/privateAuctions/*}', + 'body' => 'private_auction', + 'placeholders' => [ + 'private_auction.name' => [ + 'getters' => [ + 'getPrivateAuction', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_client_config.json new file mode 100644 index 000000000000..8a0cf3d381e5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.ProgrammaticBuyerService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetProgrammaticBuyer": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListProgrammaticBuyers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_descriptor_config.php new file mode 100644 index 000000000000..107ae4c9ad22 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.ProgrammaticBuyerService' => [ + 'GetProgrammaticBuyer' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ProgrammaticBuyer', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListProgrammaticBuyers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getProgrammaticBuyers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListProgrammaticBuyersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + 'programmaticBuyer' => 'networks/{network_code}/programmaticBuyers/{programmatic_buyer}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_rest_client_config.php new file mode 100644 index 000000000000..3ca8989bfae2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.ProgrammaticBuyerService' => [ + 'GetProgrammaticBuyer' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/programmaticBuyers/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListProgrammaticBuyers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/programmaticBuyers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json new file mode 100644 index 000000000000..30eac575d3c6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json @@ -0,0 +1,52 @@ +{ + "interfaces": { + "google.ads.admanager.v1.ReportService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "CreateReport": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchReportResultRows": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetReport": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListReports": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "RunReport": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateReport": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php new file mode 100644 index 000000000000..168a811a5a8a --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php @@ -0,0 +1,120 @@ + [ + 'google.ads.admanager.v1.ReportService' => [ + 'RunReport' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Ads\AdManager\V1\RunReportResponse', + 'metadataReturnType' => '\Google\Ads\AdManager\V1\RunReportMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateReport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Report', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'FetchReportResultRows' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\FetchReportResultRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetReport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Report', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListReports' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getReports', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListReportsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateReport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Report', + 'headerParams' => [ + [ + 'keyName' => 'report.name', + 'fieldAccessors' => [ + 'getReport', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + 'report' => 'networks/{network_code}/reports/{report}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php new file mode 100644 index 000000000000..c1b90844f554 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php @@ -0,0 +1,115 @@ + [ + 'google.ads.admanager.v1.ReportService' => [ + 'CreateReport' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/reports', + 'body' => 'report', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'FetchReportResultRows' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/reports/*/results/*}:fetchRows', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetReport' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/reports/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListReports' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/reports', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RunReport' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=networks/*/reports/*}:run', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateReport' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{report.name=networks/*/reports/*}', + 'body' => 'report', + 'placeholders' => [ + 'report.name' => [ + 'getters' => [ + 'getReport', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json new file mode 100644 index 000000000000..ac76997d5641 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.RoleService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetRole": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListRoles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php new file mode 100644 index 000000000000..e5fccde6c68c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.RoleService' => [ + 'GetRole' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Role', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListRoles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRoles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListRolesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + 'role' => 'networks/{network_code}/roles/{role}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php new file mode 100644 index 000000000000..56dad0661bb7 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.RoleService' => [ + 'GetRole' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/roles/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListRoles' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/roles', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_client_config.json new file mode 100644 index 000000000000..f2db52f52cdd --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_client_config.json @@ -0,0 +1,62 @@ +{ + "interfaces": { + "google.ads.admanager.v1.SiteService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchCreateSites": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchDeactivateSites": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchSubmitSitesForApproval": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateSites": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateSite": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetSite": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListSites": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateSite": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_descriptor_config.php new file mode 100644 index 000000000000..eb087a9a4f7d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_descriptor_config.php @@ -0,0 +1,137 @@ + [ + 'google.ads.admanager.v1.SiteService' => [ + 'BatchCreateSites' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateSitesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateSites' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchDeactivateSitesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchSubmitSitesForApproval' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchSubmitSitesForApprovalResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateSites' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateSitesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateSite' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Site', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetSite' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Site', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListSites' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSites', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListSitesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateSite' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Site', + 'headerParams' => [ + [ + 'keyName' => 'site.name', + 'fieldAccessors' => [ + 'getSite', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + 'site' => 'networks/{network_code}/sites/{site}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_rest_client_config.php new file mode 100644 index 000000000000..66549ae7e9d4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_rest_client_config.php @@ -0,0 +1,140 @@ + [ + 'google.ads.admanager.v1.SiteService' => [ + 'BatchCreateSites' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/sites:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateSites' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/sites:batchDeactivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchSubmitSitesForApproval' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/sites:batchSubmitForApproval', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateSites' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/sites:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateSite' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/sites', + 'body' => 'site', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetSite' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/sites/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListSites' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/sites', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateSite' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{site.name=networks/*/sites/*}', + 'body' => 'site', + 'placeholders' => [ + 'site.name' => [ + 'getters' => [ + 'getSite', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json new file mode 100644 index 000000000000..2de30370c2f5 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json @@ -0,0 +1,32 @@ +{ + "interfaces": { + "google.ads.admanager.v1.TaxonomyCategoryService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetTaxonomyCategory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListTaxonomyCategories": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php new file mode 100644 index 000000000000..42d63f9f16d4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.TaxonomyCategoryService' => [ + 'GetTaxonomyCategory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\TaxonomyCategory', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListTaxonomyCategories' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTaxonomyCategories', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListTaxonomyCategoriesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + 'taxonomyCategory' => 'networks/{network_code}/taxonomyCategories/{taxonomy_category}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php new file mode 100644 index 000000000000..3298420fd056 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php @@ -0,0 +1,64 @@ + [ + 'google.ads.admanager.v1.TaxonomyCategoryService' => [ + 'GetTaxonomyCategory' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/taxonomyCategories/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListTaxonomyCategories' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/taxonomyCategories', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_client_config.json new file mode 100644 index 000000000000..5163914e80b3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_client_config.json @@ -0,0 +1,62 @@ +{ + "interfaces": { + "google.ads.admanager.v1.TeamService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchActivateTeams": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchCreateTeams": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchDeactivateTeams": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateTeams": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateTeam": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetTeam": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListTeams": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateTeam": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_descriptor_config.php new file mode 100644 index 000000000000..a405e242c2ca --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_descriptor_config.php @@ -0,0 +1,137 @@ + [ + 'google.ads.admanager.v1.TeamService' => [ + 'BatchActivateTeams' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchActivateTeamsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateTeams' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateTeamsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateTeams' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchDeactivateTeamsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateTeams' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateTeamsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTeam' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Team', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetTeam' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Team', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListTeams' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTeams', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListTeamsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateTeam' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Team', + 'headerParams' => [ + [ + 'keyName' => 'team.name', + 'fieldAccessors' => [ + 'getTeam', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'network' => 'networks/{network_code}', + 'team' => 'networks/{network_code}/teams/{team}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_rest_client_config.php new file mode 100644 index 000000000000..b94e904a8422 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_rest_client_config.php @@ -0,0 +1,140 @@ + [ + 'google.ads.admanager.v1.TeamService' => [ + 'BatchActivateTeams' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/teams:batchActivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateTeams' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/teams:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateTeams' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/teams:batchDeactivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateTeams' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/teams:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTeam' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/teams', + 'body' => 'team', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetTeam' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/teams/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListTeams' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/teams', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateTeam' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{team.name=networks/*/teams/*}', + 'body' => 'team', + 'placeholders' => [ + 'team.name' => [ + 'getters' => [ + 'getTeam', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json new file mode 100644 index 000000000000..34a4b4903db2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json @@ -0,0 +1,27 @@ +{ + "interfaces": { + "google.ads.admanager.v1.UserService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "GetUser": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php new file mode 100644 index 000000000000..bbaf933b1efc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php @@ -0,0 +1,43 @@ + [ + 'google.ads.admanager.v1.UserService' => [ + 'GetUser' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\User', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'user' => 'networks/{network_code}/users/{user}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php new file mode 100644 index 000000000000..acb09ac7480b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php @@ -0,0 +1,53 @@ + [ + 'google.ads.admanager.v1.UserService' => [ + 'GetUser' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/users/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdBreakServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdBreakServiceClientTest.php new file mode 100644 index 000000000000..985787ae2478 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdBreakServiceClientTest.php @@ -0,0 +1,508 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AdBreakServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AdBreakServiceClient($options); + } + + /** @test */ + public function createAdBreakTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $adBreakId = 'adBreakId-514252553'; + $assetKey = 'assetKey1315618960'; + $customAssetKey = 'customAssetKey-2017235646'; + $breakSequence = 1853489407; + $podTemplateName = 'podTemplateName-120206666'; + $customParams = 'customParams1065802260'; + $scte35CueOut = 'scte35CueOut1064400035'; + $expectedResponse = new AdBreak(); + $expectedResponse->setName($name); + $expectedResponse->setAdBreakId($adBreakId); + $expectedResponse->setAssetKey($assetKey); + $expectedResponse->setCustomAssetKey($customAssetKey); + $expectedResponse->setBreakSequence($breakSequence); + $expectedResponse->setPodTemplateName($podTemplateName); + $expectedResponse->setCustomParams($customParams); + $expectedResponse->setScte35CueOut($scte35CueOut); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->liveStreamEventName('[NETWORK_CODE]', '[LIVE_STREAM_EVENT]'); + $adBreak = new AdBreak(); + $adBreakDuration = new Duration(); + $adBreak->setDuration($adBreakDuration); + $request = (new CreateAdBreakRequest()) + ->setParent($formattedParent) + ->setAdBreak($adBreak); + $response = $gapicClient->createAdBreak($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdBreakService/CreateAdBreak', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getAdBreak(); + $this->assertProtobufEquals($adBreak, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAdBreakExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->liveStreamEventName('[NETWORK_CODE]', '[LIVE_STREAM_EVENT]'); + $adBreak = new AdBreak(); + $adBreakDuration = new Duration(); + $adBreak->setDuration($adBreakDuration); + $request = (new CreateAdBreakRequest()) + ->setParent($formattedParent) + ->setAdBreak($adBreak); + try { + $gapicClient->createAdBreak($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAdBreakTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); + $request = (new DeleteAdBreakRequest()) + ->setName($formattedName); + $gapicClient->deleteAdBreak($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdBreakService/DeleteAdBreak', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAdBreakExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); + $request = (new DeleteAdBreakRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteAdBreak($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAdBreakTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $adBreakId = 'adBreakId-514252553'; + $assetKey = 'assetKey1315618960'; + $customAssetKey = 'customAssetKey-2017235646'; + $breakSequence = 1853489407; + $podTemplateName = 'podTemplateName-120206666'; + $customParams = 'customParams1065802260'; + $scte35CueOut = 'scte35CueOut1064400035'; + $expectedResponse = new AdBreak(); + $expectedResponse->setName($name2); + $expectedResponse->setAdBreakId($adBreakId); + $expectedResponse->setAssetKey($assetKey); + $expectedResponse->setCustomAssetKey($customAssetKey); + $expectedResponse->setBreakSequence($breakSequence); + $expectedResponse->setPodTemplateName($podTemplateName); + $expectedResponse->setCustomParams($customParams); + $expectedResponse->setScte35CueOut($scte35CueOut); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); + $request = (new GetAdBreakRequest()) + ->setName($formattedName); + $response = $gapicClient->getAdBreak($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdBreakService/GetAdBreak', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAdBreakExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); + $request = (new GetAdBreakRequest()) + ->setName($formattedName); + try { + $gapicClient->getAdBreak($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAdBreaksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $adBreaksElement = new AdBreak(); + $adBreaks = [ + $adBreaksElement, + ]; + $expectedResponse = new ListAdBreaksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setAdBreaks($adBreaks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->liveStreamEventName('[NETWORK_CODE]', '[LIVE_STREAM_EVENT]'); + $request = (new ListAdBreaksRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAdBreaks($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAdBreaks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdBreakService/ListAdBreaks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAdBreaksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->liveStreamEventName('[NETWORK_CODE]', '[LIVE_STREAM_EVENT]'); + $request = (new ListAdBreaksRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAdBreaks($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAdBreakTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $adBreakId = 'adBreakId-514252553'; + $assetKey = 'assetKey1315618960'; + $customAssetKey = 'customAssetKey-2017235646'; + $breakSequence = 1853489407; + $podTemplateName = 'podTemplateName-120206666'; + $customParams = 'customParams1065802260'; + $scte35CueOut = 'scte35CueOut1064400035'; + $expectedResponse = new AdBreak(); + $expectedResponse->setName($name); + $expectedResponse->setAdBreakId($adBreakId); + $expectedResponse->setAssetKey($assetKey); + $expectedResponse->setCustomAssetKey($customAssetKey); + $expectedResponse->setBreakSequence($breakSequence); + $expectedResponse->setPodTemplateName($podTemplateName); + $expectedResponse->setCustomParams($customParams); + $expectedResponse->setScte35CueOut($scte35CueOut); + $transport->addResponse($expectedResponse); + // Mock request + $adBreak = new AdBreak(); + $adBreakDuration = new Duration(); + $adBreak->setDuration($adBreakDuration); + $updateMask = new FieldMask(); + $request = (new UpdateAdBreakRequest()) + ->setAdBreak($adBreak) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateAdBreak($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdBreakService/UpdateAdBreak', $actualFuncCall); + $actualValue = $actualRequestObject->getAdBreak(); + $this->assertProtobufEquals($adBreak, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAdBreakExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $adBreak = new AdBreak(); + $adBreakDuration = new Duration(); + $adBreak->setDuration($adBreakDuration); + $updateMask = new FieldMask(); + $request = (new UpdateAdBreakRequest()) + ->setAdBreak($adBreak) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateAdBreak($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAdBreakAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $adBreakId = 'adBreakId-514252553'; + $assetKey = 'assetKey1315618960'; + $customAssetKey = 'customAssetKey-2017235646'; + $breakSequence = 1853489407; + $podTemplateName = 'podTemplateName-120206666'; + $customParams = 'customParams1065802260'; + $scte35CueOut = 'scte35CueOut1064400035'; + $expectedResponse = new AdBreak(); + $expectedResponse->setName($name); + $expectedResponse->setAdBreakId($adBreakId); + $expectedResponse->setAssetKey($assetKey); + $expectedResponse->setCustomAssetKey($customAssetKey); + $expectedResponse->setBreakSequence($breakSequence); + $expectedResponse->setPodTemplateName($podTemplateName); + $expectedResponse->setCustomParams($customParams); + $expectedResponse->setScte35CueOut($scte35CueOut); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->liveStreamEventName('[NETWORK_CODE]', '[LIVE_STREAM_EVENT]'); + $adBreak = new AdBreak(); + $adBreakDuration = new Duration(); + $adBreak->setDuration($adBreakDuration); + $request = (new CreateAdBreakRequest()) + ->setParent($formattedParent) + ->setAdBreak($adBreak); + $response = $gapicClient->createAdBreakAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdBreakService/CreateAdBreak', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getAdBreak(); + $this->assertProtobufEquals($adBreak, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php new file mode 100644 index 000000000000..810b67fcf6ed --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php @@ -0,0 +1,482 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AdReviewCenterAdServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AdReviewCenterAdServiceClient($options); + } + + /** @test */ + public function batchAllowAdReviewCenterAdsTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/batchAllowAdReviewCenterAdsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new BatchAllowAdReviewCenterAdsResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/batchAllowAdReviewCenterAdsTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); + $formattedNames = [ + $gapicClient->adReviewCenterAdName('[NETWORK_CODE]', '[WEB_PROPERTY_CODE]', '[AD_REVIEW_CENTER_AD]'), + ]; + $request = (new BatchAllowAdReviewCenterAdsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchAllowAdReviewCenterAds($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdReviewCenterAdService/BatchAllowAdReviewCenterAds', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/batchAllowAdReviewCenterAdsTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function batchAllowAdReviewCenterAdsExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/batchAllowAdReviewCenterAdsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); + $formattedNames = [ + $gapicClient->adReviewCenterAdName('[NETWORK_CODE]', '[WEB_PROPERTY_CODE]', '[AD_REVIEW_CENTER_AD]'), + ]; + $request = (new BatchAllowAdReviewCenterAdsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchAllowAdReviewCenterAds($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/batchAllowAdReviewCenterAdsTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function batchBlockAdReviewCenterAdsTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/batchBlockAdReviewCenterAdsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new BatchBlockAdReviewCenterAdsResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/batchBlockAdReviewCenterAdsTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); + $formattedNames = [ + $gapicClient->adReviewCenterAdName('[NETWORK_CODE]', '[WEB_PROPERTY_CODE]', '[AD_REVIEW_CENTER_AD]'), + ]; + $request = (new BatchBlockAdReviewCenterAdsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchBlockAdReviewCenterAds($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdReviewCenterAdService/BatchBlockAdReviewCenterAds', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/batchBlockAdReviewCenterAdsTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function batchBlockAdReviewCenterAdsExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/batchBlockAdReviewCenterAdsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); + $formattedNames = [ + $gapicClient->adReviewCenterAdName('[NETWORK_CODE]', '[WEB_PROPERTY_CODE]', '[AD_REVIEW_CENTER_AD]'), + ]; + $request = (new BatchBlockAdReviewCenterAdsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchBlockAdReviewCenterAds($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/batchBlockAdReviewCenterAdsTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function searchAdReviewCenterAdsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $adReviewCenterAdsElement = new AdReviewCenterAd(); + $adReviewCenterAds = [ + $adReviewCenterAdsElement, + ]; + $expectedResponse = new SearchAdReviewCenterAdsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAdReviewCenterAds($adReviewCenterAds); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); + $status = AdReviewCenterAdStatus::AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED; + $request = (new SearchAdReviewCenterAdsRequest()) + ->setParent($formattedParent) + ->setStatus($status); + $response = $gapicClient->searchAdReviewCenterAds($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAdReviewCenterAds()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdReviewCenterAdService/SearchAdReviewCenterAds', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getStatus(); + $this->assertProtobufEquals($status, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchAdReviewCenterAdsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); + $requestStatus = AdReviewCenterAdStatus::AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED; + $request = (new SearchAdReviewCenterAdsRequest()) + ->setParent($formattedParent) + ->setStatus($requestStatus); + try { + $gapicClient->searchAdReviewCenterAds($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchAllowAdReviewCenterAdsAsyncTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/batchAllowAdReviewCenterAdsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new BatchAllowAdReviewCenterAdsResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/batchAllowAdReviewCenterAdsTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); + $formattedNames = [ + $gapicClient->adReviewCenterAdName('[NETWORK_CODE]', '[WEB_PROPERTY_CODE]', '[AD_REVIEW_CENTER_AD]'), + ]; + $request = (new BatchAllowAdReviewCenterAdsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchAllowAdReviewCenterAdsAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdReviewCenterAdService/BatchAllowAdReviewCenterAds', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/batchAllowAdReviewCenterAdsTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php new file mode 100644 index 000000000000..e33c98ce4fa2 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php @@ -0,0 +1,348 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AdUnitServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AdUnitServiceClient($options); + } + + /** @test */ + public function getAdUnitTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $adUnitId = 167061094; + $parentAdUnit = 'parentAdUnit-898168437'; + $displayName = 'displayName1615086568'; + $adUnitCode = 'adUnitCode-1632086356'; + $description = 'description-1724546052'; + $explicitlyTargeted = true; + $hasChildren = true; + $externalSetTopBoxChannelId = 'externalSetTopBoxChannelId-1727346970'; + $appliedAdsenseEnabled = false; + $effectiveAdsenseEnabled = false; + $expectedResponse = new AdUnit(); + $expectedResponse->setName($name2); + $expectedResponse->setAdUnitId($adUnitId); + $expectedResponse->setParentAdUnit($parentAdUnit); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAdUnitCode($adUnitCode); + $expectedResponse->setDescription($description); + $expectedResponse->setExplicitlyTargeted($explicitlyTargeted); + $expectedResponse->setHasChildren($hasChildren); + $expectedResponse->setExternalSetTopBoxChannelId($externalSetTopBoxChannelId); + $expectedResponse->setAppliedAdsenseEnabled($appliedAdsenseEnabled); + $expectedResponse->setEffectiveAdsenseEnabled($effectiveAdsenseEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); + $request = (new GetAdUnitRequest()) + ->setName($formattedName); + $response = $gapicClient->getAdUnit($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdUnitService/GetAdUnit', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAdUnitExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); + $request = (new GetAdUnitRequest()) + ->setName($formattedName); + try { + $gapicClient->getAdUnit($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAdUnitSizesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $adUnitSizesElement = new AdUnitSize(); + $adUnitSizes = [ + $adUnitSizesElement, + ]; + $expectedResponse = new ListAdUnitSizesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setAdUnitSizes($adUnitSizes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListAdUnitSizesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAdUnitSizes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAdUnitSizes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdUnitService/ListAdUnitSizes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAdUnitSizesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListAdUnitSizesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAdUnitSizes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAdUnitsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $adUnitsElement = new AdUnit(); + $adUnits = [ + $adUnitsElement, + ]; + $expectedResponse = new ListAdUnitsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setAdUnits($adUnits); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListAdUnitsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAdUnits($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAdUnits()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdUnitService/ListAdUnits', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAdUnitsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListAdUnitsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAdUnits($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAdUnitAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $adUnitId = 167061094; + $parentAdUnit = 'parentAdUnit-898168437'; + $displayName = 'displayName1615086568'; + $adUnitCode = 'adUnitCode-1632086356'; + $description = 'description-1724546052'; + $explicitlyTargeted = true; + $hasChildren = true; + $externalSetTopBoxChannelId = 'externalSetTopBoxChannelId-1727346970'; + $appliedAdsenseEnabled = false; + $effectiveAdsenseEnabled = false; + $expectedResponse = new AdUnit(); + $expectedResponse->setName($name2); + $expectedResponse->setAdUnitId($adUnitId); + $expectedResponse->setParentAdUnit($parentAdUnit); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAdUnitCode($adUnitCode); + $expectedResponse->setDescription($description); + $expectedResponse->setExplicitlyTargeted($explicitlyTargeted); + $expectedResponse->setHasChildren($hasChildren); + $expectedResponse->setExternalSetTopBoxChannelId($externalSetTopBoxChannelId); + $expectedResponse->setAppliedAdsenseEnabled($appliedAdsenseEnabled); + $expectedResponse->setEffectiveAdsenseEnabled($effectiveAdsenseEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); + $request = (new GetAdUnitRequest()) + ->setName($formattedName); + $response = $gapicClient->getAdUnitAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AdUnitService/GetAdUnit', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ApplicationServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ApplicationServiceClientTest.php new file mode 100644 index 000000000000..5440b2209619 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ApplicationServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ApplicationServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ApplicationServiceClient($options); + } + + /** @test */ + public function getApplicationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Application(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->applicationName('[NETWORK_CODE]', '[APPLICATION]'); + $request = (new GetApplicationRequest()) + ->setName($formattedName); + $response = $gapicClient->getApplication($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ApplicationService/GetApplication', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getApplicationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->applicationName('[NETWORK_CODE]', '[APPLICATION]'); + $request = (new GetApplicationRequest()) + ->setName($formattedName); + try { + $gapicClient->getApplication($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listApplicationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $applicationsElement = new Application(); + $applications = [ + $applicationsElement, + ]; + $expectedResponse = new ListApplicationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setApplications($applications); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListApplicationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listApplications($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getApplications()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ApplicationService/ListApplications', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listApplicationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListApplicationsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listApplications($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getApplicationAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Application(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->applicationName('[NETWORK_CODE]', '[APPLICATION]'); + $request = (new GetApplicationRequest()) + ->setName($formattedName); + $response = $gapicClient->getApplicationAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ApplicationService/GetApplication', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php new file mode 100644 index 000000000000..1dfd21b214a3 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AudienceSegmentServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AudienceSegmentServiceClient($options); + } + + /** @test */ + public function getAudienceSegmentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new AudienceSegment(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->audienceSegmentName('[NETWORK_CODE]', '[AUDIENCE_SEGMENT]'); + $request = (new GetAudienceSegmentRequest()) + ->setName($formattedName); + $response = $gapicClient->getAudienceSegment($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AudienceSegmentService/GetAudienceSegment', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAudienceSegmentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->audienceSegmentName('[NETWORK_CODE]', '[AUDIENCE_SEGMENT]'); + $request = (new GetAudienceSegmentRequest()) + ->setName($formattedName); + try { + $gapicClient->getAudienceSegment($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAudienceSegmentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $audienceSegmentsElement = new AudienceSegment(); + $audienceSegments = [ + $audienceSegmentsElement, + ]; + $expectedResponse = new ListAudienceSegmentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setAudienceSegments($audienceSegments); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListAudienceSegmentsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAudienceSegments($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAudienceSegments()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AudienceSegmentService/ListAudienceSegments', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAudienceSegmentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListAudienceSegmentsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAudienceSegments($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAudienceSegmentAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new AudienceSegment(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->audienceSegmentName('[NETWORK_CODE]', '[AUDIENCE_SEGMENT]'); + $request = (new GetAudienceSegmentRequest()) + ->setName($formattedName); + $response = $gapicClient->getAudienceSegmentAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.AudienceSegmentService/GetAudienceSegment', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BandwidthGroupServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BandwidthGroupServiceClientTest.php new file mode 100644 index 000000000000..4c2bc8bb2486 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BandwidthGroupServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return BandwidthGroupServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new BandwidthGroupServiceClient($options); + } + + /** @test */ + public function getBandwidthGroupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new BandwidthGroup(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->bandwidthGroupName('[NETWORK_CODE]', '[BANDWIDTH_GROUP]'); + $request = (new GetBandwidthGroupRequest()) + ->setName($formattedName); + $response = $gapicClient->getBandwidthGroup($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.BandwidthGroupService/GetBandwidthGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBandwidthGroupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->bandwidthGroupName('[NETWORK_CODE]', '[BANDWIDTH_GROUP]'); + $request = (new GetBandwidthGroupRequest()) + ->setName($formattedName); + try { + $gapicClient->getBandwidthGroup($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listBandwidthGroupsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $bandwidthGroupsElement = new BandwidthGroup(); + $bandwidthGroups = [ + $bandwidthGroupsElement, + ]; + $expectedResponse = new ListBandwidthGroupsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setBandwidthGroups($bandwidthGroups); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListBandwidthGroupsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listBandwidthGroups($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getBandwidthGroups()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.BandwidthGroupService/ListBandwidthGroups', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listBandwidthGroupsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListBandwidthGroupsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listBandwidthGroups($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBandwidthGroupAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new BandwidthGroup(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->bandwidthGroupName('[NETWORK_CODE]', '[BANDWIDTH_GROUP]'); + $request = (new GetBandwidthGroupRequest()) + ->setName($formattedName); + $response = $gapicClient->getBandwidthGroupAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.BandwidthGroupService/GetBandwidthGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php new file mode 100644 index 000000000000..0b86b005bd58 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return BrowserLanguageServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new BrowserLanguageServiceClient($options); + } + + /** @test */ + public function getBrowserLanguageTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new BrowserLanguage(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->browserLanguageName('[NETWORK_CODE]', '[BROWSER_LANGUAGE]'); + $request = (new GetBrowserLanguageRequest()) + ->setName($formattedName); + $response = $gapicClient->getBrowserLanguage($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.BrowserLanguageService/GetBrowserLanguage', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBrowserLanguageExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->browserLanguageName('[NETWORK_CODE]', '[BROWSER_LANGUAGE]'); + $request = (new GetBrowserLanguageRequest()) + ->setName($formattedName); + try { + $gapicClient->getBrowserLanguage($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listBrowserLanguagesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $browserLanguagesElement = new BrowserLanguage(); + $browserLanguages = [ + $browserLanguagesElement, + ]; + $expectedResponse = new ListBrowserLanguagesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setBrowserLanguages($browserLanguages); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListBrowserLanguagesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listBrowserLanguages($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getBrowserLanguages()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.BrowserLanguageService/ListBrowserLanguages', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listBrowserLanguagesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListBrowserLanguagesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listBrowserLanguages($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBrowserLanguageAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new BrowserLanguage(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->browserLanguageName('[NETWORK_CODE]', '[BROWSER_LANGUAGE]'); + $request = (new GetBrowserLanguageRequest()) + ->setName($formattedName); + $response = $gapicClient->getBrowserLanguageAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.BrowserLanguageService/GetBrowserLanguage', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserServiceClientTest.php new file mode 100644 index 000000000000..023166756a55 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserServiceClientTest.php @@ -0,0 +1,243 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return BrowserServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new BrowserServiceClient($options); + } + + /** @test */ + public function getBrowserTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $majorVersion = 'majorVersion-1298026414'; + $minorVersion = 'minorVersion1136764494'; + $expectedResponse = new Browser(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setMajorVersion($majorVersion); + $expectedResponse->setMinorVersion($minorVersion); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->browserName('[NETWORK_CODE]', '[BROWSER]'); + $request = (new GetBrowserRequest()) + ->setName($formattedName); + $response = $gapicClient->getBrowser($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.BrowserService/GetBrowser', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBrowserExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->browserName('[NETWORK_CODE]', '[BROWSER]'); + $request = (new GetBrowserRequest()) + ->setName($formattedName); + try { + $gapicClient->getBrowser($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listBrowsersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $browsersElement = new Browser(); + $browsers = [ + $browsersElement, + ]; + $expectedResponse = new ListBrowsersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setBrowsers($browsers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListBrowsersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listBrowsers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getBrowsers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.BrowserService/ListBrowsers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listBrowsersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListBrowsersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listBrowsers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBrowserAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $majorVersion = 'majorVersion-1298026414'; + $minorVersion = 'minorVersion1136764494'; + $expectedResponse = new Browser(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setMajorVersion($majorVersion); + $expectedResponse->setMinorVersion($minorVersion); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->browserName('[NETWORK_CODE]', '[BROWSER]'); + $request = (new GetBrowserRequest()) + ->setName($formattedName); + $response = $gapicClient->getBrowserAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.BrowserService/GetBrowser', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php new file mode 100644 index 000000000000..fd7ffaa892ee --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CmsMetadataKeyServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CmsMetadataKeyServiceClient($options); + } + + /** @test */ + public function getCmsMetadataKeyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new CmsMetadataKey(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cmsMetadataKeyName('[NETWORK_CODE]', '[CMS_METADATA_KEY]'); + $request = (new GetCmsMetadataKeyRequest()) + ->setName($formattedName); + $response = $gapicClient->getCmsMetadataKey($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CmsMetadataKeyService/GetCmsMetadataKey', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCmsMetadataKeyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->cmsMetadataKeyName('[NETWORK_CODE]', '[CMS_METADATA_KEY]'); + $request = (new GetCmsMetadataKeyRequest()) + ->setName($formattedName); + try { + $gapicClient->getCmsMetadataKey($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCmsMetadataKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $cmsMetadataKeysElement = new CmsMetadataKey(); + $cmsMetadataKeys = [ + $cmsMetadataKeysElement, + ]; + $expectedResponse = new ListCmsMetadataKeysResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setCmsMetadataKeys($cmsMetadataKeys); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCmsMetadataKeysRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCmsMetadataKeys($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCmsMetadataKeys()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CmsMetadataKeyService/ListCmsMetadataKeys', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCmsMetadataKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCmsMetadataKeysRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCmsMetadataKeys($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCmsMetadataKeyAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new CmsMetadataKey(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cmsMetadataKeyName('[NETWORK_CODE]', '[CMS_METADATA_KEY]'); + $request = (new GetCmsMetadataKeyRequest()) + ->setName($formattedName); + $response = $gapicClient->getCmsMetadataKeyAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CmsMetadataKeyService/GetCmsMetadataKey', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php new file mode 100644 index 000000000000..6149af2c908b --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php @@ -0,0 +1,239 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CmsMetadataValueServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CmsMetadataValueServiceClient($options); + } + + /** @test */ + public function getCmsMetadataValueTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $key = 'key106079'; + $expectedResponse = new CmsMetadataValue(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setKey($key); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cmsMetadataValueName('[NETWORK_CODE]', '[CMS_METADATA_VALUE]'); + $request = (new GetCmsMetadataValueRequest()) + ->setName($formattedName); + $response = $gapicClient->getCmsMetadataValue($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CmsMetadataValueService/GetCmsMetadataValue', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCmsMetadataValueExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->cmsMetadataValueName('[NETWORK_CODE]', '[CMS_METADATA_VALUE]'); + $request = (new GetCmsMetadataValueRequest()) + ->setName($formattedName); + try { + $gapicClient->getCmsMetadataValue($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCmsMetadataValuesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $cmsMetadataValuesElement = new CmsMetadataValue(); + $cmsMetadataValues = [ + $cmsMetadataValuesElement, + ]; + $expectedResponse = new ListCmsMetadataValuesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setCmsMetadataValues($cmsMetadataValues); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCmsMetadataValuesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCmsMetadataValues($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCmsMetadataValues()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CmsMetadataValueService/ListCmsMetadataValues', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCmsMetadataValuesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCmsMetadataValuesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCmsMetadataValues($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCmsMetadataValueAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $key = 'key106079'; + $expectedResponse = new CmsMetadataValue(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setKey($key); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cmsMetadataValueName('[NETWORK_CODE]', '[CMS_METADATA_VALUE]'); + $request = (new GetCmsMetadataValueRequest()) + ->setName($formattedName); + $response = $gapicClient->getCmsMetadataValueAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CmsMetadataValueService/GetCmsMetadataValue', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php new file mode 100644 index 000000000000..f0aad61c261f --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php @@ -0,0 +1,271 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CompanyServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CompanyServiceClient($options); + } + + /** @test */ + public function getCompanyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $companyId = 847673315; + $displayName = 'displayName1615086568'; + $address = 'address-1147692044'; + $email = 'email96619420'; + $fax = 'fax101149'; + $phone = 'phone106642798'; + $externalId = 'externalId-1153075697'; + $comment = 'comment950398559'; + $primaryContact = 'primaryContact203339491'; + $thirdPartyCompanyId = 2003341038; + $expectedResponse = new Company(); + $expectedResponse->setName($name2); + $expectedResponse->setCompanyId($companyId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAddress($address); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setPhone($phone); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setComment($comment); + $expectedResponse->setPrimaryContact($primaryContact); + $expectedResponse->setThirdPartyCompanyId($thirdPartyCompanyId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); + $request = (new GetCompanyRequest()) + ->setName($formattedName); + $response = $gapicClient->getCompany($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CompanyService/GetCompany', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCompanyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); + $request = (new GetCompanyRequest()) + ->setName($formattedName); + try { + $gapicClient->getCompany($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCompaniesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $companiesElement = new Company(); + $companies = [ + $companiesElement, + ]; + $expectedResponse = new ListCompaniesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setCompanies($companies); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCompaniesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCompanies($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCompanies()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CompanyService/ListCompanies', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCompaniesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCompaniesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCompanies($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCompanyAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $companyId = 847673315; + $displayName = 'displayName1615086568'; + $address = 'address-1147692044'; + $email = 'email96619420'; + $fax = 'fax101149'; + $phone = 'phone106642798'; + $externalId = 'externalId-1153075697'; + $comment = 'comment950398559'; + $primaryContact = 'primaryContact203339491'; + $thirdPartyCompanyId = 2003341038; + $expectedResponse = new Company(); + $expectedResponse->setName($name2); + $expectedResponse->setCompanyId($companyId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAddress($address); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setPhone($phone); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setComment($comment); + $expectedResponse->setPrimaryContact($primaryContact); + $expectedResponse->setThirdPartyCompanyId($thirdPartyCompanyId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); + $request = (new GetCompanyRequest()) + ->setName($formattedName); + $response = $gapicClient->getCompanyAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CompanyService/GetCompany', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContactServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContactServiceClientTest.php new file mode 100644 index 000000000000..0f2fc27c80e9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContactServiceClientTest.php @@ -0,0 +1,586 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ContactServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ContactServiceClient($options); + } + + /** @test */ + public function batchCreateContactsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateContactsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateContactsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchCreateContacts($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContactService/BatchCreateContacts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateContactsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateContactsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchCreateContacts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateContactsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateContactsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateContactsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchUpdateContacts($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContactService/BatchUpdateContacts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateContactsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateContactsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchUpdateContacts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createContactTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $company = 'company950484093'; + $address = 'address-1147692044'; + $cellPhone = 'cellPhone-1006757807'; + $comment = 'comment950398559'; + $email = 'email96619420'; + $fax = 'fax101149'; + $title = 'title110371416'; + $workPhone = 'workPhone-557312320'; + $expectedResponse = new Contact(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setCompany($company); + $expectedResponse->setAddress($address); + $expectedResponse->setCellPhone($cellPhone); + $expectedResponse->setComment($comment); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setTitle($title); + $expectedResponse->setWorkPhone($workPhone); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $contact = new Contact(); + $contactDisplayName = 'contactDisplayName-1175157203'; + $contact->setDisplayName($contactDisplayName); + $contactCompany = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); + $contact->setCompany($contactCompany); + $request = (new CreateContactRequest()) + ->setParent($formattedParent) + ->setContact($contact); + $response = $gapicClient->createContact($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContactService/CreateContact', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getContact(); + $this->assertProtobufEquals($contact, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createContactExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $contact = new Contact(); + $contactDisplayName = 'contactDisplayName-1175157203'; + $contact->setDisplayName($contactDisplayName); + $contactCompany = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); + $contact->setCompany($contactCompany); + $request = (new CreateContactRequest()) + ->setParent($formattedParent) + ->setContact($contact); + try { + $gapicClient->createContact($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getContactTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $company = 'company950484093'; + $address = 'address-1147692044'; + $cellPhone = 'cellPhone-1006757807'; + $comment = 'comment950398559'; + $email = 'email96619420'; + $fax = 'fax101149'; + $title = 'title110371416'; + $workPhone = 'workPhone-557312320'; + $expectedResponse = new Contact(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setCompany($company); + $expectedResponse->setAddress($address); + $expectedResponse->setCellPhone($cellPhone); + $expectedResponse->setComment($comment); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setTitle($title); + $expectedResponse->setWorkPhone($workPhone); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->contactName('[NETWORK_CODE]', '[CONTACT]'); + $request = (new GetContactRequest()) + ->setName($formattedName); + $response = $gapicClient->getContact($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContactService/GetContact', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getContactExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->contactName('[NETWORK_CODE]', '[CONTACT]'); + $request = (new GetContactRequest()) + ->setName($formattedName); + try { + $gapicClient->getContact($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listContactsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $contactsElement = new Contact(); + $contacts = [ + $contactsElement, + ]; + $expectedResponse = new ListContactsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setContacts($contacts); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListContactsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listContacts($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getContacts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContactService/ListContacts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listContactsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListContactsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listContacts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateContactTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $company = 'company950484093'; + $address = 'address-1147692044'; + $cellPhone = 'cellPhone-1006757807'; + $comment = 'comment950398559'; + $email = 'email96619420'; + $fax = 'fax101149'; + $title = 'title110371416'; + $workPhone = 'workPhone-557312320'; + $expectedResponse = new Contact(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setCompany($company); + $expectedResponse->setAddress($address); + $expectedResponse->setCellPhone($cellPhone); + $expectedResponse->setComment($comment); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setTitle($title); + $expectedResponse->setWorkPhone($workPhone); + $transport->addResponse($expectedResponse); + // Mock request + $contact = new Contact(); + $contactDisplayName = 'contactDisplayName-1175157203'; + $contact->setDisplayName($contactDisplayName); + $contactCompany = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); + $contact->setCompany($contactCompany); + $updateMask = new FieldMask(); + $request = (new UpdateContactRequest()) + ->setContact($contact) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateContact($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContactService/UpdateContact', $actualFuncCall); + $actualValue = $actualRequestObject->getContact(); + $this->assertProtobufEquals($contact, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateContactExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $contact = new Contact(); + $contactDisplayName = 'contactDisplayName-1175157203'; + $contact->setDisplayName($contactDisplayName); + $contactCompany = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); + $contact->setCompany($contactCompany); + $updateMask = new FieldMask(); + $request = (new UpdateContactRequest()) + ->setContact($contact) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateContact($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateContactsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateContactsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateContactsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchCreateContactsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContactService/BatchCreateContacts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentBundleServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentBundleServiceClientTest.php new file mode 100644 index 000000000000..0ee36e5be4a4 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentBundleServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ContentBundleServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ContentBundleServiceClient($options); + } + + /** @test */ + public function getContentBundleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new ContentBundle(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->contentBundleName('[NETWORK_CODE]', '[CONTENT_BUNDLE]'); + $request = (new GetContentBundleRequest()) + ->setName($formattedName); + $response = $gapicClient->getContentBundle($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContentBundleService/GetContentBundle', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getContentBundleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->contentBundleName('[NETWORK_CODE]', '[CONTENT_BUNDLE]'); + $request = (new GetContentBundleRequest()) + ->setName($formattedName); + try { + $gapicClient->getContentBundle($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listContentBundlesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $contentBundlesElement = new ContentBundle(); + $contentBundles = [ + $contentBundlesElement, + ]; + $expectedResponse = new ListContentBundlesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setContentBundles($contentBundles); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListContentBundlesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listContentBundles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getContentBundles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContentBundleService/ListContentBundles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listContentBundlesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListContentBundlesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listContentBundles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getContentBundleAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new ContentBundle(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->contentBundleName('[NETWORK_CODE]', '[CONTENT_BUNDLE]'); + $request = (new GetContentBundleRequest()) + ->setName($formattedName); + $response = $gapicClient->getContentBundleAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContentBundleService/GetContentBundle', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentLabelServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentLabelServiceClientTest.php new file mode 100644 index 000000000000..4b4d8675c5a0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentLabelServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ContentLabelServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ContentLabelServiceClient($options); + } + + /** @test */ + public function getContentLabelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new ContentLabel(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->contentLabelName('[NETWORK_CODE]', '[CONTENT_LABEL]'); + $request = (new GetContentLabelRequest()) + ->setName($formattedName); + $response = $gapicClient->getContentLabel($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContentLabelService/GetContentLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getContentLabelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->contentLabelName('[NETWORK_CODE]', '[CONTENT_LABEL]'); + $request = (new GetContentLabelRequest()) + ->setName($formattedName); + try { + $gapicClient->getContentLabel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listContentLabelsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $contentLabelsElement = new ContentLabel(); + $contentLabels = [ + $contentLabelsElement, + ]; + $expectedResponse = new ListContentLabelsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setContentLabels($contentLabels); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListContentLabelsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listContentLabels($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getContentLabels()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContentLabelService/ListContentLabels', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listContentLabelsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListContentLabelsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listContentLabels($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getContentLabelAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new ContentLabel(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->contentLabelName('[NETWORK_CODE]', '[CONTENT_LABEL]'); + $request = (new GetContentLabelRequest()) + ->setName($formattedName); + $response = $gapicClient->getContentLabelAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContentLabelService/GetContentLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentServiceClientTest.php new file mode 100644 index 000000000000..74bd8af59da0 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ContentServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ContentServiceClient($options); + } + + /** @test */ + public function getContentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Content(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->contentName('[NETWORK_CODE]', '[CONTENT]'); + $request = (new GetContentRequest()) + ->setName($formattedName); + $response = $gapicClient->getContent($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContentService/GetContent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getContentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->contentName('[NETWORK_CODE]', '[CONTENT]'); + $request = (new GetContentRequest()) + ->setName($formattedName); + try { + $gapicClient->getContent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listContentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $contentElement = new Content(); + $content = [ + $contentElement, + ]; + $expectedResponse = new ListContentResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setContent($content); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListContentRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listContent($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getContent()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContentService/ListContent', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listContentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListContentRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listContent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getContentAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Content(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->contentName('[NETWORK_CODE]', '[CONTENT]'); + $request = (new GetContentRequest()) + ->setName($formattedName); + $response = $gapicClient->getContentAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ContentService/GetContent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php new file mode 100644 index 000000000000..54ad8e832664 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php @@ -0,0 +1,259 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CreativeTemplateServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CreativeTemplateServiceClient($options); + } + + /** @test */ + public function getCreativeTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $snippet = 'snippet-2061635299'; + $interstitial = true; + $nativeEligible = false; + $nativeVideoEligible = false; + $safeFrameCompatible = true; + $expectedResponse = new CreativeTemplate(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setSnippet($snippet); + $expectedResponse->setInterstitial($interstitial); + $expectedResponse->setNativeEligible($nativeEligible); + $expectedResponse->setNativeVideoEligible($nativeVideoEligible); + $expectedResponse->setSafeFrameCompatible($safeFrameCompatible); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->creativeTemplateName('[NETWORK_CODE]', '[CREATIVE_TEMPLATE]'); + $request = (new GetCreativeTemplateRequest()) + ->setName($formattedName); + $response = $gapicClient->getCreativeTemplate($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CreativeTemplateService/GetCreativeTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCreativeTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->creativeTemplateName('[NETWORK_CODE]', '[CREATIVE_TEMPLATE]'); + $request = (new GetCreativeTemplateRequest()) + ->setName($formattedName); + try { + $gapicClient->getCreativeTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCreativeTemplatesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $creativeTemplatesElement = new CreativeTemplate(); + $creativeTemplates = [ + $creativeTemplatesElement, + ]; + $expectedResponse = new ListCreativeTemplatesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setCreativeTemplates($creativeTemplates); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCreativeTemplatesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCreativeTemplates($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCreativeTemplates()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CreativeTemplateService/ListCreativeTemplates', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCreativeTemplatesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCreativeTemplatesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCreativeTemplates($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCreativeTemplateAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $snippet = 'snippet-2061635299'; + $interstitial = true; + $nativeEligible = false; + $nativeVideoEligible = false; + $safeFrameCompatible = true; + $expectedResponse = new CreativeTemplate(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setSnippet($snippet); + $expectedResponse->setInterstitial($interstitial); + $expectedResponse->setNativeEligible($nativeEligible); + $expectedResponse->setNativeVideoEligible($nativeVideoEligible); + $expectedResponse->setSafeFrameCompatible($safeFrameCompatible); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->creativeTemplateName('[NETWORK_CODE]', '[CREATIVE_TEMPLATE]'); + $request = (new GetCreativeTemplateRequest()) + ->setName($formattedName); + $response = $gapicClient->getCreativeTemplateAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CreativeTemplateService/GetCreativeTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php new file mode 100644 index 000000000000..befe9af7b0cc --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php @@ -0,0 +1,719 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CustomFieldServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CustomFieldServiceClient($options); + } + + /** @test */ + public function batchActivateCustomFieldsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateCustomFieldsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'), + ]; + $request = (new BatchActivateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchActivateCustomFields($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchActivateCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateCustomFieldsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'), + ]; + $request = (new BatchActivateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchActivateCustomFields($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateCustomFieldsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateCustomFieldsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchCreateCustomFields($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchCreateCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateCustomFieldsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchCreateCustomFields($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateCustomFieldsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchDeactivateCustomFieldsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'), + ]; + $request = (new BatchDeactivateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchDeactivateCustomFields($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchDeactivateCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateCustomFieldsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'), + ]; + $request = (new BatchDeactivateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchDeactivateCustomFields($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateCustomFieldsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateCustomFieldsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchUpdateCustomFields($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchUpdateCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateCustomFieldsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchUpdateCustomFields($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomFieldTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $customFieldId = 66688114; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomField(); + $expectedResponse->setName($name); + $expectedResponse->setCustomFieldId($customFieldId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $customField = new CustomField(); + $customFieldDisplayName = 'customFieldDisplayName-1447155036'; + $customField->setDisplayName($customFieldDisplayName); + $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $customField->setEntityType($customFieldEntityType); + $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $customField->setDataType($customFieldDataType); + $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + $customField->setVisibility($customFieldVisibility); + $request = (new CreateCustomFieldRequest()) + ->setParent($formattedParent) + ->setCustomField($customField); + $response = $gapicClient->createCustomField($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/CreateCustomField', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCustomField(); + $this->assertProtobufEquals($customField, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomFieldExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $customField = new CustomField(); + $customFieldDisplayName = 'customFieldDisplayName-1447155036'; + $customField->setDisplayName($customFieldDisplayName); + $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $customField->setEntityType($customFieldEntityType); + $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $customField->setDataType($customFieldDataType); + $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + $customField->setVisibility($customFieldVisibility); + $request = (new CreateCustomFieldRequest()) + ->setParent($formattedParent) + ->setCustomField($customField); + try { + $gapicClient->createCustomField($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomFieldTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $customFieldId = 66688114; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomField(); + $expectedResponse->setName($name2); + $expectedResponse->setCustomFieldId($customFieldId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); + $request = (new GetCustomFieldRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomField($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/GetCustomField', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomFieldExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); + $request = (new GetCustomFieldRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomField($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomFieldsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $customFieldsElement = new CustomField(); + $customFields = [ + $customFieldsElement, + ]; + $expectedResponse = new ListCustomFieldsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setCustomFields($customFields); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCustomFieldsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCustomFields($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomFields()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/ListCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomFieldsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCustomFieldsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCustomFields($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomFieldTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $customFieldId = 66688114; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomField(); + $expectedResponse->setName($name); + $expectedResponse->setCustomFieldId($customFieldId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $customField = new CustomField(); + $customFieldDisplayName = 'customFieldDisplayName-1447155036'; + $customField->setDisplayName($customFieldDisplayName); + $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $customField->setEntityType($customFieldEntityType); + $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $customField->setDataType($customFieldDataType); + $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + $customField->setVisibility($customFieldVisibility); + $updateMask = new FieldMask(); + $request = (new UpdateCustomFieldRequest()) + ->setCustomField($customField) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateCustomField($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/UpdateCustomField', $actualFuncCall); + $actualValue = $actualRequestObject->getCustomField(); + $this->assertProtobufEquals($customField, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomFieldExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $customField = new CustomField(); + $customFieldDisplayName = 'customFieldDisplayName-1447155036'; + $customField->setDisplayName($customFieldDisplayName); + $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $customField->setEntityType($customFieldEntityType); + $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $customField->setDataType($customFieldDataType); + $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + $customField->setVisibility($customFieldVisibility); + $updateMask = new FieldMask(); + $request = (new UpdateCustomFieldRequest()) + ->setCustomField($customField) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateCustomField($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateCustomFieldsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateCustomFieldsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'), + ]; + $request = (new BatchActivateCustomFieldsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchActivateCustomFieldsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchActivateCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php new file mode 100644 index 000000000000..04fdd9c3caad --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php @@ -0,0 +1,243 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CustomTargetingKeyServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CustomTargetingKeyServiceClient($options); + } + + /** @test */ + public function getCustomTargetingKeyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $customTargetingKeyId = 138683049; + $adTagName = 'adTagName-1355595604'; + $displayName = 'displayName1615086568'; + $expectedResponse = new CustomTargetingKey(); + $expectedResponse->setName($name2); + $expectedResponse->setCustomTargetingKeyId($customTargetingKeyId); + $expectedResponse->setAdTagName($adTagName); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); + $request = (new GetCustomTargetingKeyRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomTargetingKey($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomTargetingKeyService/GetCustomTargetingKey', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomTargetingKeyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); + $request = (new GetCustomTargetingKeyRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomTargetingKey($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomTargetingKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $customTargetingKeysElement = new CustomTargetingKey(); + $customTargetingKeys = [ + $customTargetingKeysElement, + ]; + $expectedResponse = new ListCustomTargetingKeysResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setCustomTargetingKeys($customTargetingKeys); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCustomTargetingKeysRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCustomTargetingKeys($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomTargetingKeys()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomTargetingKeyService/ListCustomTargetingKeys', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomTargetingKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCustomTargetingKeysRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCustomTargetingKeys($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomTargetingKeyAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $customTargetingKeyId = 138683049; + $adTagName = 'adTagName-1355595604'; + $displayName = 'displayName1615086568'; + $expectedResponse = new CustomTargetingKey(); + $expectedResponse->setName($name2); + $expectedResponse->setCustomTargetingKeyId($customTargetingKeyId); + $expectedResponse->setAdTagName($adTagName); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); + $request = (new GetCustomTargetingKeyRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomTargetingKeyAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomTargetingKeyService/GetCustomTargetingKey', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php new file mode 100644 index 000000000000..05682e0ffe31 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php @@ -0,0 +1,243 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CustomTargetingValueServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CustomTargetingValueServiceClient($options); + } + + /** @test */ + public function getCustomTargetingValueTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $customTargetingKey = 'customTargetingKey-385515133'; + $adTagName = 'adTagName-1355595604'; + $displayName = 'displayName1615086568'; + $expectedResponse = new CustomTargetingValue(); + $expectedResponse->setName($name2); + $expectedResponse->setCustomTargetingKey($customTargetingKey); + $expectedResponse->setAdTagName($adTagName); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customTargetingValueName('[NETWORK_CODE]', '[CUSTOM_TARGETING_VALUE]'); + $request = (new GetCustomTargetingValueRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomTargetingValue($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomTargetingValueService/GetCustomTargetingValue', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomTargetingValueExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customTargetingValueName('[NETWORK_CODE]', '[CUSTOM_TARGETING_VALUE]'); + $request = (new GetCustomTargetingValueRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomTargetingValue($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomTargetingValuesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $customTargetingValuesElement = new CustomTargetingValue(); + $customTargetingValues = [ + $customTargetingValuesElement, + ]; + $expectedResponse = new ListCustomTargetingValuesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setCustomTargetingValues($customTargetingValues); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCustomTargetingValuesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCustomTargetingValues($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomTargetingValues()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomTargetingValueService/ListCustomTargetingValues', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomTargetingValuesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCustomTargetingValuesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCustomTargetingValues($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomTargetingValueAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $customTargetingKey = 'customTargetingKey-385515133'; + $adTagName = 'adTagName-1355595604'; + $displayName = 'displayName1615086568'; + $expectedResponse = new CustomTargetingValue(); + $expectedResponse->setName($name2); + $expectedResponse->setCustomTargetingKey($customTargetingKey); + $expectedResponse->setAdTagName($adTagName); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customTargetingValueName('[NETWORK_CODE]', '[CUSTOM_TARGETING_VALUE]'); + $request = (new GetCustomTargetingValueRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomTargetingValueAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomTargetingValueService/GetCustomTargetingValue', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php new file mode 100644 index 000000000000..2c3d318d6284 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DeviceCapabilityServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DeviceCapabilityServiceClient($options); + } + + /** @test */ + public function getDeviceCapabilityTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DeviceCapability(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deviceCapabilityName('[NETWORK_CODE]', '[DEVICE_CAPABILITY]'); + $request = (new GetDeviceCapabilityRequest()) + ->setName($formattedName); + $response = $gapicClient->getDeviceCapability($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.DeviceCapabilityService/GetDeviceCapability', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeviceCapabilityExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deviceCapabilityName('[NETWORK_CODE]', '[DEVICE_CAPABILITY]'); + $request = (new GetDeviceCapabilityRequest()) + ->setName($formattedName); + try { + $gapicClient->getDeviceCapability($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeviceCapabilitiesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $deviceCapabilitiesElement = new DeviceCapability(); + $deviceCapabilities = [ + $deviceCapabilitiesElement, + ]; + $expectedResponse = new ListDeviceCapabilitiesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setDeviceCapabilities($deviceCapabilities); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListDeviceCapabilitiesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDeviceCapabilities($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDeviceCapabilities()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.DeviceCapabilityService/ListDeviceCapabilities', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeviceCapabilitiesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListDeviceCapabilitiesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDeviceCapabilities($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeviceCapabilityAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DeviceCapability(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deviceCapabilityName('[NETWORK_CODE]', '[DEVICE_CAPABILITY]'); + $request = (new GetDeviceCapabilityRequest()) + ->setName($formattedName); + $response = $gapicClient->getDeviceCapabilityAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.DeviceCapabilityService/GetDeviceCapability', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCategoryServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCategoryServiceClientTest.php new file mode 100644 index 000000000000..1718a56855e9 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCategoryServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DeviceCategoryServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DeviceCategoryServiceClient($options); + } + + /** @test */ + public function getDeviceCategoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DeviceCategory(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deviceCategoryName('[NETWORK_CODE]', '[DEVICE_CATEGORY]'); + $request = (new GetDeviceCategoryRequest()) + ->setName($formattedName); + $response = $gapicClient->getDeviceCategory($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.DeviceCategoryService/GetDeviceCategory', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeviceCategoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deviceCategoryName('[NETWORK_CODE]', '[DEVICE_CATEGORY]'); + $request = (new GetDeviceCategoryRequest()) + ->setName($formattedName); + try { + $gapicClient->getDeviceCategory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeviceCategoriesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $deviceCategoriesElement = new DeviceCategory(); + $deviceCategories = [ + $deviceCategoriesElement, + ]; + $expectedResponse = new ListDeviceCategoriesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setDeviceCategories($deviceCategories); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListDeviceCategoriesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDeviceCategories($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDeviceCategories()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.DeviceCategoryService/ListDeviceCategories', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeviceCategoriesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListDeviceCategoriesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDeviceCategories($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeviceCategoryAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DeviceCategory(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deviceCategoryName('[NETWORK_CODE]', '[DEVICE_CATEGORY]'); + $request = (new GetDeviceCategoryRequest()) + ->setName($formattedName); + $response = $gapicClient->getDeviceCategoryAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.DeviceCategoryService/GetDeviceCategory', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php new file mode 100644 index 000000000000..903f3cd8e22e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DeviceManufacturerServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DeviceManufacturerServiceClient($options); + } + + /** @test */ + public function getDeviceManufacturerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DeviceManufacturer(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deviceManufacturerName('[NETWORK_CODE]', '[DEVICE_MANUFACTURER]'); + $request = (new GetDeviceManufacturerRequest()) + ->setName($formattedName); + $response = $gapicClient->getDeviceManufacturer($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.DeviceManufacturerService/GetDeviceManufacturer', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeviceManufacturerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deviceManufacturerName('[NETWORK_CODE]', '[DEVICE_MANUFACTURER]'); + $request = (new GetDeviceManufacturerRequest()) + ->setName($formattedName); + try { + $gapicClient->getDeviceManufacturer($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeviceManufacturersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $deviceManufacturersElement = new DeviceManufacturer(); + $deviceManufacturers = [ + $deviceManufacturersElement, + ]; + $expectedResponse = new ListDeviceManufacturersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setDeviceManufacturers($deviceManufacturers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListDeviceManufacturersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDeviceManufacturers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDeviceManufacturers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.DeviceManufacturerService/ListDeviceManufacturers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeviceManufacturersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListDeviceManufacturersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDeviceManufacturers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeviceManufacturerAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DeviceManufacturer(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deviceManufacturerName('[NETWORK_CODE]', '[DEVICE_MANUFACTURER]'); + $request = (new GetDeviceManufacturerRequest()) + ->setName($formattedName); + $response = $gapicClient->getDeviceManufacturerAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.DeviceManufacturerService/GetDeviceManufacturer', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php new file mode 100644 index 000000000000..d9533cd81884 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php @@ -0,0 +1,528 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return EntitySignalsMappingServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new EntitySignalsMappingServiceClient($options); + } + + /** @test */ + public function batchCreateEntitySignalsMappingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateEntitySignalsMappingsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateEntitySignalsMappingsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchCreateEntitySignalsMappings($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/BatchCreateEntitySignalsMappings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateEntitySignalsMappingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateEntitySignalsMappingsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchCreateEntitySignalsMappings($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateEntitySignalsMappingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateEntitySignalsMappingsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateEntitySignalsMappingsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchUpdateEntitySignalsMappings($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/BatchUpdateEntitySignalsMappings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateEntitySignalsMappingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateEntitySignalsMappingsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchUpdateEntitySignalsMappings($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEntitySignalsMappingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $audienceSegmentId = 321086146; + $name = 'name3373707'; + $entitySignalsMappingId = 350688772; + $expectedResponse = new EntitySignalsMapping(); + $expectedResponse->setAudienceSegmentId($audienceSegmentId); + $expectedResponse->setName($name); + $expectedResponse->setEntitySignalsMappingId($entitySignalsMappingId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $entitySignalsMapping = new EntitySignalsMapping(); + $request = (new CreateEntitySignalsMappingRequest()) + ->setParent($formattedParent) + ->setEntitySignalsMapping($entitySignalsMapping); + $response = $gapicClient->createEntitySignalsMapping($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/CreateEntitySignalsMapping', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getEntitySignalsMapping(); + $this->assertProtobufEquals($entitySignalsMapping, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEntitySignalsMappingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $entitySignalsMapping = new EntitySignalsMapping(); + $request = (new CreateEntitySignalsMappingRequest()) + ->setParent($formattedParent) + ->setEntitySignalsMapping($entitySignalsMapping); + try { + $gapicClient->createEntitySignalsMapping($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntitySignalsMappingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $audienceSegmentId = 321086146; + $name2 = 'name2-1052831874'; + $entitySignalsMappingId = 350688772; + $expectedResponse = new EntitySignalsMapping(); + $expectedResponse->setAudienceSegmentId($audienceSegmentId); + $expectedResponse->setName($name2); + $expectedResponse->setEntitySignalsMappingId($entitySignalsMappingId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entitySignalsMappingName('[NETWORK_CODE]', '[ENTITY_SIGNALS_MAPPING]'); + $request = (new GetEntitySignalsMappingRequest()) + ->setName($formattedName); + $response = $gapicClient->getEntitySignalsMapping($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/GetEntitySignalsMapping', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntitySignalsMappingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entitySignalsMappingName('[NETWORK_CODE]', '[ENTITY_SIGNALS_MAPPING]'); + $request = (new GetEntitySignalsMappingRequest()) + ->setName($formattedName); + try { + $gapicClient->getEntitySignalsMapping($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntitySignalsMappingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $entitySignalsMappingsElement = new EntitySignalsMapping(); + $entitySignalsMappings = [ + $entitySignalsMappingsElement, + ]; + $expectedResponse = new ListEntitySignalsMappingsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setEntitySignalsMappings($entitySignalsMappings); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListEntitySignalsMappingsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listEntitySignalsMappings($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntitySignalsMappings()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/ListEntitySignalsMappings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntitySignalsMappingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListEntitySignalsMappingsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listEntitySignalsMappings($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEntitySignalsMappingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $audienceSegmentId = 321086146; + $name = 'name3373707'; + $entitySignalsMappingId = 350688772; + $expectedResponse = new EntitySignalsMapping(); + $expectedResponse->setAudienceSegmentId($audienceSegmentId); + $expectedResponse->setName($name); + $expectedResponse->setEntitySignalsMappingId($entitySignalsMappingId); + $transport->addResponse($expectedResponse); + // Mock request + $entitySignalsMapping = new EntitySignalsMapping(); + $updateMask = new FieldMask(); + $request = (new UpdateEntitySignalsMappingRequest()) + ->setEntitySignalsMapping($entitySignalsMapping) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateEntitySignalsMapping($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/UpdateEntitySignalsMapping', $actualFuncCall); + $actualValue = $actualRequestObject->getEntitySignalsMapping(); + $this->assertProtobufEquals($entitySignalsMapping, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEntitySignalsMappingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $entitySignalsMapping = new EntitySignalsMapping(); + $updateMask = new FieldMask(); + $request = (new UpdateEntitySignalsMappingRequest()) + ->setEntitySignalsMapping($entitySignalsMapping) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateEntitySignalsMapping($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateEntitySignalsMappingsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateEntitySignalsMappingsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateEntitySignalsMappingsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchCreateEntitySignalsMappingsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/BatchCreateEntitySignalsMappings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/GeoTargetServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/GeoTargetServiceClientTest.php new file mode 100644 index 000000000000..d20e826a3fb6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/GeoTargetServiceClientTest.php @@ -0,0 +1,251 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return GeoTargetServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new GeoTargetServiceClient($options); + } + + /** @test */ + public function getGeoTargetTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $canonicalParent = 'canonicalParent-12999083'; + $regionCode = 'regionCode-1566082984'; + $type = 'type3575610'; + $targetable = false; + $expectedResponse = new GeoTarget(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setCanonicalParent($canonicalParent); + $expectedResponse->setRegionCode($regionCode); + $expectedResponse->setType($type); + $expectedResponse->setTargetable($targetable); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->geoTargetName('[NETWORK_CODE]', '[GEO_TARGET]'); + $request = (new GetGeoTargetRequest()) + ->setName($formattedName); + $response = $gapicClient->getGeoTarget($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.GeoTargetService/GetGeoTarget', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getGeoTargetExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->geoTargetName('[NETWORK_CODE]', '[GEO_TARGET]'); + $request = (new GetGeoTargetRequest()) + ->setName($formattedName); + try { + $gapicClient->getGeoTarget($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGeoTargetsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $geoTargetsElement = new GeoTarget(); + $geoTargets = [ + $geoTargetsElement, + ]; + $expectedResponse = new ListGeoTargetsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setGeoTargets($geoTargets); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListGeoTargetsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listGeoTargets($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getGeoTargets()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.GeoTargetService/ListGeoTargets', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGeoTargetsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListGeoTargetsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listGeoTargets($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getGeoTargetAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $canonicalParent = 'canonicalParent-12999083'; + $regionCode = 'regionCode-1566082984'; + $type = 'type3575610'; + $targetable = false; + $expectedResponse = new GeoTarget(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setCanonicalParent($canonicalParent); + $expectedResponse->setRegionCode($regionCode); + $expectedResponse->setType($type); + $expectedResponse->setTargetable($targetable); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->geoTargetName('[NETWORK_CODE]', '[GEO_TARGET]'); + $request = (new GetGeoTargetRequest()) + ->setName($formattedName); + $response = $gapicClient->getGeoTargetAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.GeoTargetService/GetGeoTarget', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php new file mode 100644 index 000000000000..7ba5d6486fdf --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php @@ -0,0 +1,239 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return MobileCarrierServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new MobileCarrierServiceClient($options); + } + + /** @test */ + public function getMobileCarrierTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $regionCode = 'regionCode-1566082984'; + $expectedResponse = new MobileCarrier(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRegionCode($regionCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->mobileCarrierName('[NETWORK_CODE]', '[MOBILE_CARRIER]'); + $request = (new GetMobileCarrierRequest()) + ->setName($formattedName); + $response = $gapicClient->getMobileCarrier($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.MobileCarrierService/GetMobileCarrier', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMobileCarrierExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->mobileCarrierName('[NETWORK_CODE]', '[MOBILE_CARRIER]'); + $request = (new GetMobileCarrierRequest()) + ->setName($formattedName); + try { + $gapicClient->getMobileCarrier($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMobileCarriersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $mobileCarriersElement = new MobileCarrier(); + $mobileCarriers = [ + $mobileCarriersElement, + ]; + $expectedResponse = new ListMobileCarriersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setMobileCarriers($mobileCarriers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListMobileCarriersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMobileCarriers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMobileCarriers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.MobileCarrierService/ListMobileCarriers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMobileCarriersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListMobileCarriersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMobileCarriers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMobileCarrierAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $regionCode = 'regionCode-1566082984'; + $expectedResponse = new MobileCarrier(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRegionCode($regionCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->mobileCarrierName('[NETWORK_CODE]', '[MOBILE_CARRIER]'); + $request = (new GetMobileCarrierRequest()) + ->setName($formattedName); + $response = $gapicClient->getMobileCarrierAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.MobileCarrierService/GetMobileCarrier', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php new file mode 100644 index 000000000000..f6f887c1ad5e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php @@ -0,0 +1,239 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return MobileDeviceServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new MobileDeviceServiceClient($options); + } + + /** @test */ + public function getMobileDeviceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $manufacturer = 'manufacturer-1969347631'; + $expectedResponse = new MobileDevice(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setManufacturer($manufacturer); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->mobileDeviceName('[NETWORK_CODE]', '[MOBILE_DEVICE]'); + $request = (new GetMobileDeviceRequest()) + ->setName($formattedName); + $response = $gapicClient->getMobileDevice($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.MobileDeviceService/GetMobileDevice', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMobileDeviceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->mobileDeviceName('[NETWORK_CODE]', '[MOBILE_DEVICE]'); + $request = (new GetMobileDeviceRequest()) + ->setName($formattedName); + try { + $gapicClient->getMobileDevice($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMobileDevicesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $mobileDevicesElement = new MobileDevice(); + $mobileDevices = [ + $mobileDevicesElement, + ]; + $expectedResponse = new ListMobileDevicesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setMobileDevices($mobileDevices); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListMobileDevicesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMobileDevices($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMobileDevices()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.MobileDeviceService/ListMobileDevices', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMobileDevicesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListMobileDevicesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMobileDevices($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMobileDeviceAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $manufacturer = 'manufacturer-1969347631'; + $expectedResponse = new MobileDevice(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setManufacturer($manufacturer); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->mobileDeviceName('[NETWORK_CODE]', '[MOBILE_DEVICE]'); + $request = (new GetMobileDeviceRequest()) + ->setName($formattedName); + $response = $gapicClient->getMobileDeviceAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.MobileDeviceService/GetMobileDevice', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php new file mode 100644 index 000000000000..4fd765f64783 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php @@ -0,0 +1,239 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return MobileDeviceSubmodelServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new MobileDeviceSubmodelServiceClient($options); + } + + /** @test */ + public function getMobileDeviceSubmodelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $mobileDevice = 'mobileDevice-267587437'; + $expectedResponse = new MobileDeviceSubmodel(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setMobileDevice($mobileDevice); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->mobileDeviceSubmodelName('[NETWORK_CODE]', '[MOBILE_DEVICE_SUBMODEL]'); + $request = (new GetMobileDeviceSubmodelRequest()) + ->setName($formattedName); + $response = $gapicClient->getMobileDeviceSubmodel($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.MobileDeviceSubmodelService/GetMobileDeviceSubmodel', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMobileDeviceSubmodelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->mobileDeviceSubmodelName('[NETWORK_CODE]', '[MOBILE_DEVICE_SUBMODEL]'); + $request = (new GetMobileDeviceSubmodelRequest()) + ->setName($formattedName); + try { + $gapicClient->getMobileDeviceSubmodel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMobileDeviceSubmodelsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $mobileDeviceSubmodelsElement = new MobileDeviceSubmodel(); + $mobileDeviceSubmodels = [ + $mobileDeviceSubmodelsElement, + ]; + $expectedResponse = new ListMobileDeviceSubmodelsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setMobileDeviceSubmodels($mobileDeviceSubmodels); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListMobileDeviceSubmodelsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMobileDeviceSubmodels($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMobileDeviceSubmodels()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.MobileDeviceSubmodelService/ListMobileDeviceSubmodels', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMobileDeviceSubmodelsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListMobileDeviceSubmodelsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMobileDeviceSubmodels($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMobileDeviceSubmodelAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $mobileDevice = 'mobileDevice-267587437'; + $expectedResponse = new MobileDeviceSubmodel(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setMobileDevice($mobileDevice); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->mobileDeviceSubmodelName('[NETWORK_CODE]', '[MOBILE_DEVICE_SUBMODEL]'); + $request = (new GetMobileDeviceSubmodelRequest()) + ->setName($formattedName); + $response = $gapicClient->getMobileDeviceSubmodelAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.MobileDeviceSubmodelService/GetMobileDeviceSubmodel', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php new file mode 100644 index 000000000000..bb4b433e702e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php @@ -0,0 +1,243 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return NetworkServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new NetworkServiceClient($options); + } + + /** @test */ + public function getNetworkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $networkCode = 'networkCode-19973794'; + $propertyCode = 'propertyCode-1019877865'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $effectiveRootAdUnit = 'effectiveRootAdUnit98840923'; + $testNetwork = false; + $networkId = 478232372; + $expectedResponse = new Network(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setNetworkCode($networkCode); + $expectedResponse->setPropertyCode($propertyCode); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setEffectiveRootAdUnit($effectiveRootAdUnit); + $expectedResponse->setTestNetwork($testNetwork); + $expectedResponse->setNetworkId($networkId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new GetNetworkRequest()) + ->setName($formattedName); + $response = $gapicClient->getNetwork($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.NetworkService/GetNetwork', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNetworkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new GetNetworkRequest()) + ->setName($formattedName); + try { + $gapicClient->getNetwork($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNetworksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListNetworksResponse(); + $transport->addResponse($expectedResponse); + $request = new ListNetworksRequest(); + $response = $gapicClient->listNetworks($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.NetworkService/ListNetworks', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNetworksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListNetworksRequest(); + try { + $gapicClient->listNetworks($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNetworkAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $networkCode = 'networkCode-19973794'; + $propertyCode = 'propertyCode-1019877865'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $effectiveRootAdUnit = 'effectiveRootAdUnit98840923'; + $testNetwork = false; + $networkId = 478232372; + $expectedResponse = new Network(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setNetworkCode($networkCode); + $expectedResponse->setPropertyCode($propertyCode); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setEffectiveRootAdUnit($effectiveRootAdUnit); + $expectedResponse->setTestNetwork($testNetwork); + $expectedResponse->setNetworkId($networkId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new GetNetworkRequest()) + ->setName($formattedName); + $response = $gapicClient->getNetworkAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.NetworkService/GetNetwork', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemServiceClientTest.php new file mode 100644 index 000000000000..301574b0fa5e --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemServiceClientTest.php @@ -0,0 +1,235 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return OperatingSystemServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new OperatingSystemServiceClient($options); + } + + /** @test */ + public function getOperatingSystemTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new OperatingSystem(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->operatingSystemName('[NETWORK_CODE]', '[OPERATING_SYSTEM]'); + $request = (new GetOperatingSystemRequest()) + ->setName($formattedName); + $response = $gapicClient->getOperatingSystem($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.OperatingSystemService/GetOperatingSystem', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperatingSystemExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->operatingSystemName('[NETWORK_CODE]', '[OPERATING_SYSTEM]'); + $request = (new GetOperatingSystemRequest()) + ->setName($formattedName); + try { + $gapicClient->getOperatingSystem($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperatingSystemsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $operatingSystemsElement = new OperatingSystem(); + $operatingSystems = [ + $operatingSystemsElement, + ]; + $expectedResponse = new ListOperatingSystemsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setOperatingSystems($operatingSystems); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListOperatingSystemsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listOperatingSystems($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getOperatingSystems()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.OperatingSystemService/ListOperatingSystems', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperatingSystemsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListOperatingSystemsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listOperatingSystems($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperatingSystemAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new OperatingSystem(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->operatingSystemName('[NETWORK_CODE]', '[OPERATING_SYSTEM]'); + $request = (new GetOperatingSystemRequest()) + ->setName($formattedName); + $response = $gapicClient->getOperatingSystemAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.OperatingSystemService/GetOperatingSystem', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemVersionServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemVersionServiceClientTest.php new file mode 100644 index 000000000000..c8585ab9563d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemVersionServiceClientTest.php @@ -0,0 +1,243 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return OperatingSystemVersionServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new OperatingSystemVersionServiceClient($options); + } + + /** @test */ + public function getOperatingSystemVersionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $majorVersion = 1298026414; + $minorVersion = 1136764494; + $microVersion = 33751459; + $expectedResponse = new OperatingSystemVersion(); + $expectedResponse->setName($name2); + $expectedResponse->setMajorVersion($majorVersion); + $expectedResponse->setMinorVersion($minorVersion); + $expectedResponse->setMicroVersion($microVersion); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->operatingSystemVersionName('[NETWORK_CODE]', '[OPERATING_SYSTEM_VERSION]'); + $request = (new GetOperatingSystemVersionRequest()) + ->setName($formattedName); + $response = $gapicClient->getOperatingSystemVersion($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.OperatingSystemVersionService/GetOperatingSystemVersion', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperatingSystemVersionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->operatingSystemVersionName('[NETWORK_CODE]', '[OPERATING_SYSTEM_VERSION]'); + $request = (new GetOperatingSystemVersionRequest()) + ->setName($formattedName); + try { + $gapicClient->getOperatingSystemVersion($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperatingSystemVersionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $operatingSystemVersionsElement = new OperatingSystemVersion(); + $operatingSystemVersions = [ + $operatingSystemVersionsElement, + ]; + $expectedResponse = new ListOperatingSystemVersionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setOperatingSystemVersions($operatingSystemVersions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListOperatingSystemVersionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listOperatingSystemVersions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getOperatingSystemVersions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.OperatingSystemVersionService/ListOperatingSystemVersions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperatingSystemVersionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListOperatingSystemVersionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listOperatingSystemVersions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperatingSystemVersionAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $majorVersion = 1298026414; + $minorVersion = 1136764494; + $microVersion = 33751459; + $expectedResponse = new OperatingSystemVersion(); + $expectedResponse->setName($name2); + $expectedResponse->setMajorVersion($majorVersion); + $expectedResponse->setMinorVersion($minorVersion); + $expectedResponse->setMicroVersion($microVersion); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->operatingSystemVersionName('[NETWORK_CODE]', '[OPERATING_SYSTEM_VERSION]'); + $request = (new GetOperatingSystemVersionRequest()) + ->setName($formattedName); + $response = $gapicClient->getOperatingSystemVersionAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.OperatingSystemVersionService/GetOperatingSystemVersion', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php new file mode 100644 index 000000000000..20d613b3ae1c --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php @@ -0,0 +1,291 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return OrderServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new OrderServiceClient($options); + } + + /** @test */ + public function getOrderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $orderId = 1234304940; + $displayName = 'displayName1615086568'; + $programmatic = true; + $trafficker = 'trafficker-606937285'; + $advertiser = 'advertiser72080683'; + $agency = 'agency-1419699195'; + $creator = 'creator1028554796'; + $currencyCode = 'currencyCode1108728155'; + $unlimitedEndTime = false; + $externalOrderId = 1332092512; + $archived = true; + $lastModifiedByApp = 'lastModifiedByApp-1580292922'; + $notes = 'notes105008833'; + $poNumber = 'poNumber1281088905'; + $salesperson = 'salesperson-2087326879'; + $expectedResponse = new Order(); + $expectedResponse->setName($name2); + $expectedResponse->setOrderId($orderId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setProgrammatic($programmatic); + $expectedResponse->setTrafficker($trafficker); + $expectedResponse->setAdvertiser($advertiser); + $expectedResponse->setAgency($agency); + $expectedResponse->setCreator($creator); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setUnlimitedEndTime($unlimitedEndTime); + $expectedResponse->setExternalOrderId($externalOrderId); + $expectedResponse->setArchived($archived); + $expectedResponse->setLastModifiedByApp($lastModifiedByApp); + $expectedResponse->setNotes($notes); + $expectedResponse->setPoNumber($poNumber); + $expectedResponse->setSalesperson($salesperson); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->orderName('[NETWORK_CODE]', '[ORDER]'); + $request = (new GetOrderRequest()) + ->setName($formattedName); + $response = $gapicClient->getOrder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.OrderService/GetOrder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOrderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->orderName('[NETWORK_CODE]', '[ORDER]'); + $request = (new GetOrderRequest()) + ->setName($formattedName); + try { + $gapicClient->getOrder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOrdersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $ordersElement = new Order(); + $orders = [ + $ordersElement, + ]; + $expectedResponse = new ListOrdersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setOrders($orders); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListOrdersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listOrders($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getOrders()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.OrderService/ListOrders', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOrdersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListOrdersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listOrders($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOrderAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $orderId = 1234304940; + $displayName = 'displayName1615086568'; + $programmatic = true; + $trafficker = 'trafficker-606937285'; + $advertiser = 'advertiser72080683'; + $agency = 'agency-1419699195'; + $creator = 'creator1028554796'; + $currencyCode = 'currencyCode1108728155'; + $unlimitedEndTime = false; + $externalOrderId = 1332092512; + $archived = true; + $lastModifiedByApp = 'lastModifiedByApp-1580292922'; + $notes = 'notes105008833'; + $poNumber = 'poNumber1281088905'; + $salesperson = 'salesperson-2087326879'; + $expectedResponse = new Order(); + $expectedResponse->setName($name2); + $expectedResponse->setOrderId($orderId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setProgrammatic($programmatic); + $expectedResponse->setTrafficker($trafficker); + $expectedResponse->setAdvertiser($advertiser); + $expectedResponse->setAgency($agency); + $expectedResponse->setCreator($creator); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setUnlimitedEndTime($unlimitedEndTime); + $expectedResponse->setExternalOrderId($externalOrderId); + $expectedResponse->setArchived($archived); + $expectedResponse->setLastModifiedByApp($lastModifiedByApp); + $expectedResponse->setNotes($notes); + $expectedResponse->setPoNumber($poNumber); + $expectedResponse->setSalesperson($salesperson); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->orderName('[NETWORK_CODE]', '[ORDER]'); + $request = (new GetOrderRequest()) + ->setName($formattedName); + $response = $gapicClient->getOrderAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.OrderService/GetOrder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php new file mode 100644 index 000000000000..4b7433e5bc70 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php @@ -0,0 +1,772 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return PlacementServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new PlacementServiceClient($options); + } + + /** @test */ + public function batchActivatePlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivatePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), + ]; + $request = (new BatchActivatePlacementsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchActivatePlacements($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchActivatePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivatePlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), + ]; + $request = (new BatchActivatePlacementsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchActivatePlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchArchivePlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchArchivePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), + ]; + $request = (new BatchArchivePlacementsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchArchivePlacements($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchArchivePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchArchivePlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), + ]; + $request = (new BatchArchivePlacementsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchArchivePlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreatePlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreatePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreatePlacementsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchCreatePlacements($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchCreatePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreatePlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreatePlacementsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchCreatePlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivatePlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchDeactivatePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), + ]; + $request = (new BatchDeactivatePlacementsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchDeactivatePlacements($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchDeactivatePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivatePlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), + ]; + $request = (new BatchDeactivatePlacementsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchDeactivatePlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdatePlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdatePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdatePlacementsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchUpdatePlacements($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchUpdatePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdatePlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdatePlacementsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchUpdatePlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPlacementTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $placementId = 1224358069; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $placementCode = 'placementCode-213099769'; + $expectedResponse = new Placement(); + $expectedResponse->setName($name); + $expectedResponse->setPlacementId($placementId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setPlacementCode($placementCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $placement = new Placement(); + $placementDisplayName = 'placementDisplayName-410969528'; + $placement->setDisplayName($placementDisplayName); + $request = (new CreatePlacementRequest()) + ->setParent($formattedParent) + ->setPlacement($placement); + $response = $gapicClient->createPlacement($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/CreatePlacement', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getPlacement(); + $this->assertProtobufEquals($placement, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPlacementExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $placement = new Placement(); + $placementDisplayName = 'placementDisplayName-410969528'; + $placement->setDisplayName($placementDisplayName); + $request = (new CreatePlacementRequest()) + ->setParent($formattedParent) + ->setPlacement($placement); + try { + $gapicClient->createPlacement($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPlacementTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $placementId = 1224358069; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $placementCode = 'placementCode-213099769'; + $expectedResponse = new Placement(); + $expectedResponse->setName($name2); + $expectedResponse->setPlacementId($placementId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setPlacementCode($placementCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'); + $request = (new GetPlacementRequest()) + ->setName($formattedName); + $response = $gapicClient->getPlacement($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/GetPlacement', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPlacementExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'); + $request = (new GetPlacementRequest()) + ->setName($formattedName); + try { + $gapicClient->getPlacement($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $placementsElement = new Placement(); + $placements = [ + $placementsElement, + ]; + $expectedResponse = new ListPlacementsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setPlacements($placements); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListPlacementsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listPlacements($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getPlacements()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/ListPlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListPlacementsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listPlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePlacementTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $placementId = 1224358069; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $placementCode = 'placementCode-213099769'; + $expectedResponse = new Placement(); + $expectedResponse->setName($name); + $expectedResponse->setPlacementId($placementId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setPlacementCode($placementCode); + $transport->addResponse($expectedResponse); + // Mock request + $placement = new Placement(); + $placementDisplayName = 'placementDisplayName-410969528'; + $placement->setDisplayName($placementDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdatePlacementRequest()) + ->setPlacement($placement) + ->setUpdateMask($updateMask); + $response = $gapicClient->updatePlacement($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/UpdatePlacement', $actualFuncCall); + $actualValue = $actualRequestObject->getPlacement(); + $this->assertProtobufEquals($placement, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePlacementExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $placement = new Placement(); + $placementDisplayName = 'placementDisplayName-410969528'; + $placement->setDisplayName($placementDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdatePlacementRequest()) + ->setPlacement($placement) + ->setUpdateMask($updateMask); + try { + $gapicClient->updatePlacement($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivatePlacementsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivatePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), + ]; + $request = (new BatchActivatePlacementsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchActivatePlacementsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchActivatePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionDealServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionDealServiceClientTest.php new file mode 100644 index 000000000000..c500af3f8332 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionDealServiceClientTest.php @@ -0,0 +1,445 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return PrivateAuctionDealServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new PrivateAuctionDealServiceClient($options); + } + + /** @test */ + public function createPrivateAuctionDealTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $privateAuctionDealId = 1870574870; + $privateAuctionId = 20317997; + $privateAuctionDisplayName = 'privateAuctionDisplayName742713760'; + $buyerAccountId = 994282887; + $externalDealId = 66314918; + $auctionPriorityEnabled = true; + $blockOverrideEnabled = true; + $expectedResponse = new PrivateAuctionDeal(); + $expectedResponse->setName($name); + $expectedResponse->setPrivateAuctionDealId($privateAuctionDealId); + $expectedResponse->setPrivateAuctionId($privateAuctionId); + $expectedResponse->setPrivateAuctionDisplayName($privateAuctionDisplayName); + $expectedResponse->setBuyerAccountId($buyerAccountId); + $expectedResponse->setExternalDealId($externalDealId); + $expectedResponse->setAuctionPriorityEnabled($auctionPriorityEnabled); + $expectedResponse->setBlockOverrideEnabled($blockOverrideEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $privateAuctionDeal = new PrivateAuctionDeal(); + $privateAuctionDealFloorPrice = new Money(); + $privateAuctionDeal->setFloorPrice($privateAuctionDealFloorPrice); + $request = (new CreatePrivateAuctionDealRequest()) + ->setParent($formattedParent) + ->setPrivateAuctionDeal($privateAuctionDeal); + $response = $gapicClient->createPrivateAuctionDeal($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PrivateAuctionDealService/CreatePrivateAuctionDeal', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getPrivateAuctionDeal(); + $this->assertProtobufEquals($privateAuctionDeal, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPrivateAuctionDealExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $privateAuctionDeal = new PrivateAuctionDeal(); + $privateAuctionDealFloorPrice = new Money(); + $privateAuctionDeal->setFloorPrice($privateAuctionDealFloorPrice); + $request = (new CreatePrivateAuctionDealRequest()) + ->setParent($formattedParent) + ->setPrivateAuctionDeal($privateAuctionDeal); + try { + $gapicClient->createPrivateAuctionDeal($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPrivateAuctionDealTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $privateAuctionDealId = 1870574870; + $privateAuctionId = 20317997; + $privateAuctionDisplayName = 'privateAuctionDisplayName742713760'; + $buyerAccountId = 994282887; + $externalDealId = 66314918; + $auctionPriorityEnabled = true; + $blockOverrideEnabled = true; + $expectedResponse = new PrivateAuctionDeal(); + $expectedResponse->setName($name2); + $expectedResponse->setPrivateAuctionDealId($privateAuctionDealId); + $expectedResponse->setPrivateAuctionId($privateAuctionId); + $expectedResponse->setPrivateAuctionDisplayName($privateAuctionDisplayName); + $expectedResponse->setBuyerAccountId($buyerAccountId); + $expectedResponse->setExternalDealId($externalDealId); + $expectedResponse->setAuctionPriorityEnabled($auctionPriorityEnabled); + $expectedResponse->setBlockOverrideEnabled($blockOverrideEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->privateAuctionDealName('[NETWORK_CODE]', '[PRIVATE_AUCTION_DEAL]'); + $request = (new GetPrivateAuctionDealRequest()) + ->setName($formattedName); + $response = $gapicClient->getPrivateAuctionDeal($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PrivateAuctionDealService/GetPrivateAuctionDeal', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPrivateAuctionDealExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->privateAuctionDealName('[NETWORK_CODE]', '[PRIVATE_AUCTION_DEAL]'); + $request = (new GetPrivateAuctionDealRequest()) + ->setName($formattedName); + try { + $gapicClient->getPrivateAuctionDeal($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPrivateAuctionDealsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $privateAuctionDealsElement = new PrivateAuctionDeal(); + $privateAuctionDeals = [ + $privateAuctionDealsElement, + ]; + $expectedResponse = new ListPrivateAuctionDealsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setPrivateAuctionDeals($privateAuctionDeals); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListPrivateAuctionDealsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listPrivateAuctionDeals($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getPrivateAuctionDeals()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PrivateAuctionDealService/ListPrivateAuctionDeals', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPrivateAuctionDealsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListPrivateAuctionDealsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listPrivateAuctionDeals($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePrivateAuctionDealTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $privateAuctionDealId = 1870574870; + $privateAuctionId = 20317997; + $privateAuctionDisplayName = 'privateAuctionDisplayName742713760'; + $buyerAccountId = 994282887; + $externalDealId = 66314918; + $auctionPriorityEnabled = true; + $blockOverrideEnabled = true; + $expectedResponse = new PrivateAuctionDeal(); + $expectedResponse->setName($name); + $expectedResponse->setPrivateAuctionDealId($privateAuctionDealId); + $expectedResponse->setPrivateAuctionId($privateAuctionId); + $expectedResponse->setPrivateAuctionDisplayName($privateAuctionDisplayName); + $expectedResponse->setBuyerAccountId($buyerAccountId); + $expectedResponse->setExternalDealId($externalDealId); + $expectedResponse->setAuctionPriorityEnabled($auctionPriorityEnabled); + $expectedResponse->setBlockOverrideEnabled($blockOverrideEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $privateAuctionDeal = new PrivateAuctionDeal(); + $privateAuctionDealFloorPrice = new Money(); + $privateAuctionDeal->setFloorPrice($privateAuctionDealFloorPrice); + $updateMask = new FieldMask(); + $request = (new UpdatePrivateAuctionDealRequest()) + ->setPrivateAuctionDeal($privateAuctionDeal) + ->setUpdateMask($updateMask); + $response = $gapicClient->updatePrivateAuctionDeal($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PrivateAuctionDealService/UpdatePrivateAuctionDeal', $actualFuncCall); + $actualValue = $actualRequestObject->getPrivateAuctionDeal(); + $this->assertProtobufEquals($privateAuctionDeal, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePrivateAuctionDealExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $privateAuctionDeal = new PrivateAuctionDeal(); + $privateAuctionDealFloorPrice = new Money(); + $privateAuctionDeal->setFloorPrice($privateAuctionDealFloorPrice); + $updateMask = new FieldMask(); + $request = (new UpdatePrivateAuctionDealRequest()) + ->setPrivateAuctionDeal($privateAuctionDeal) + ->setUpdateMask($updateMask); + try { + $gapicClient->updatePrivateAuctionDeal($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPrivateAuctionDealAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $privateAuctionDealId = 1870574870; + $privateAuctionId = 20317997; + $privateAuctionDisplayName = 'privateAuctionDisplayName742713760'; + $buyerAccountId = 994282887; + $externalDealId = 66314918; + $auctionPriorityEnabled = true; + $blockOverrideEnabled = true; + $expectedResponse = new PrivateAuctionDeal(); + $expectedResponse->setName($name); + $expectedResponse->setPrivateAuctionDealId($privateAuctionDealId); + $expectedResponse->setPrivateAuctionId($privateAuctionId); + $expectedResponse->setPrivateAuctionDisplayName($privateAuctionDisplayName); + $expectedResponse->setBuyerAccountId($buyerAccountId); + $expectedResponse->setExternalDealId($externalDealId); + $expectedResponse->setAuctionPriorityEnabled($auctionPriorityEnabled); + $expectedResponse->setBlockOverrideEnabled($blockOverrideEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $privateAuctionDeal = new PrivateAuctionDeal(); + $privateAuctionDealFloorPrice = new Money(); + $privateAuctionDeal->setFloorPrice($privateAuctionDealFloorPrice); + $request = (new CreatePrivateAuctionDealRequest()) + ->setParent($formattedParent) + ->setPrivateAuctionDeal($privateAuctionDeal); + $response = $gapicClient->createPrivateAuctionDealAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PrivateAuctionDealService/CreatePrivateAuctionDeal', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getPrivateAuctionDeal(); + $this->assertProtobufEquals($privateAuctionDeal, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionServiceClientTest.php new file mode 100644 index 000000000000..89ac668d8a21 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionServiceClientTest.php @@ -0,0 +1,420 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return PrivateAuctionServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new PrivateAuctionServiceClient($options); + } + + /** @test */ + public function createPrivateAuctionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $privateAuctionId = 20317997; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $archived = true; + $expectedResponse = new PrivateAuction(); + $expectedResponse->setName($name); + $expectedResponse->setPrivateAuctionId($privateAuctionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setArchived($archived); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $privateAuction = new PrivateAuction(); + $privateAuctionDisplayName = 'privateAuctionDisplayName1032179469'; + $privateAuction->setDisplayName($privateAuctionDisplayName); + $request = (new CreatePrivateAuctionRequest()) + ->setParent($formattedParent) + ->setPrivateAuction($privateAuction); + $response = $gapicClient->createPrivateAuction($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PrivateAuctionService/CreatePrivateAuction', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getPrivateAuction(); + $this->assertProtobufEquals($privateAuction, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPrivateAuctionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $privateAuction = new PrivateAuction(); + $privateAuctionDisplayName = 'privateAuctionDisplayName1032179469'; + $privateAuction->setDisplayName($privateAuctionDisplayName); + $request = (new CreatePrivateAuctionRequest()) + ->setParent($formattedParent) + ->setPrivateAuction($privateAuction); + try { + $gapicClient->createPrivateAuction($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPrivateAuctionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $privateAuctionId = 20317997; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $archived = true; + $expectedResponse = new PrivateAuction(); + $expectedResponse->setName($name2); + $expectedResponse->setPrivateAuctionId($privateAuctionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setArchived($archived); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->privateAuctionName('[NETWORK_CODE]', '[PRIVATE_AUCTION]'); + $request = (new GetPrivateAuctionRequest()) + ->setName($formattedName); + $response = $gapicClient->getPrivateAuction($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PrivateAuctionService/GetPrivateAuction', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPrivateAuctionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->privateAuctionName('[NETWORK_CODE]', '[PRIVATE_AUCTION]'); + $request = (new GetPrivateAuctionRequest()) + ->setName($formattedName); + try { + $gapicClient->getPrivateAuction($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPrivateAuctionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $privateAuctionsElement = new PrivateAuction(); + $privateAuctions = [ + $privateAuctionsElement, + ]; + $expectedResponse = new ListPrivateAuctionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setPrivateAuctions($privateAuctions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListPrivateAuctionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listPrivateAuctions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getPrivateAuctions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PrivateAuctionService/ListPrivateAuctions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPrivateAuctionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListPrivateAuctionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listPrivateAuctions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePrivateAuctionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $privateAuctionId = 20317997; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $archived = true; + $expectedResponse = new PrivateAuction(); + $expectedResponse->setName($name); + $expectedResponse->setPrivateAuctionId($privateAuctionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setArchived($archived); + $transport->addResponse($expectedResponse); + // Mock request + $privateAuction = new PrivateAuction(); + $privateAuctionDisplayName = 'privateAuctionDisplayName1032179469'; + $privateAuction->setDisplayName($privateAuctionDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdatePrivateAuctionRequest()) + ->setPrivateAuction($privateAuction) + ->setUpdateMask($updateMask); + $response = $gapicClient->updatePrivateAuction($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PrivateAuctionService/UpdatePrivateAuction', $actualFuncCall); + $actualValue = $actualRequestObject->getPrivateAuction(); + $this->assertProtobufEquals($privateAuction, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePrivateAuctionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $privateAuction = new PrivateAuction(); + $privateAuctionDisplayName = 'privateAuctionDisplayName1032179469'; + $privateAuction->setDisplayName($privateAuctionDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdatePrivateAuctionRequest()) + ->setPrivateAuction($privateAuction) + ->setUpdateMask($updateMask); + try { + $gapicClient->updatePrivateAuction($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPrivateAuctionAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $privateAuctionId = 20317997; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $archived = true; + $expectedResponse = new PrivateAuction(); + $expectedResponse->setName($name); + $expectedResponse->setPrivateAuctionId($privateAuctionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setArchived($archived); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $privateAuction = new PrivateAuction(); + $privateAuctionDisplayName = 'privateAuctionDisplayName1032179469'; + $privateAuction->setDisplayName($privateAuctionDisplayName); + $request = (new CreatePrivateAuctionRequest()) + ->setParent($formattedParent) + ->setPrivateAuction($privateAuction); + $response = $gapicClient->createPrivateAuctionAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PrivateAuctionService/CreatePrivateAuction', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getPrivateAuction(); + $this->assertProtobufEquals($privateAuction, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ProgrammaticBuyerServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ProgrammaticBuyerServiceClientTest.php new file mode 100644 index 000000000000..c1c744810084 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ProgrammaticBuyerServiceClientTest.php @@ -0,0 +1,259 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ProgrammaticBuyerServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ProgrammaticBuyerServiceClient($options); + } + + /** @test */ + public function getProgrammaticBuyerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $buyerAccountId = 994282887; + $displayName = 'displayName1615086568'; + $parentAccountId = 325829854; + $partnerClientId = 'partnerClientId667444056'; + $agency = false; + $preferredDealsEnabled = false; + $programmaticGuaranteedEnabled = false; + $expectedResponse = new ProgrammaticBuyer(); + $expectedResponse->setName($name2); + $expectedResponse->setBuyerAccountId($buyerAccountId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setParentAccountId($parentAccountId); + $expectedResponse->setPartnerClientId($partnerClientId); + $expectedResponse->setAgency($agency); + $expectedResponse->setPreferredDealsEnabled($preferredDealsEnabled); + $expectedResponse->setProgrammaticGuaranteedEnabled($programmaticGuaranteedEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->programmaticBuyerName('[NETWORK_CODE]', '[PROGRAMMATIC_BUYER]'); + $request = (new GetProgrammaticBuyerRequest()) + ->setName($formattedName); + $response = $gapicClient->getProgrammaticBuyer($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ProgrammaticBuyerService/GetProgrammaticBuyer', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getProgrammaticBuyerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->programmaticBuyerName('[NETWORK_CODE]', '[PROGRAMMATIC_BUYER]'); + $request = (new GetProgrammaticBuyerRequest()) + ->setName($formattedName); + try { + $gapicClient->getProgrammaticBuyer($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listProgrammaticBuyersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $programmaticBuyersElement = new ProgrammaticBuyer(); + $programmaticBuyers = [ + $programmaticBuyersElement, + ]; + $expectedResponse = new ListProgrammaticBuyersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setProgrammaticBuyers($programmaticBuyers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListProgrammaticBuyersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listProgrammaticBuyers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getProgrammaticBuyers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ProgrammaticBuyerService/ListProgrammaticBuyers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listProgrammaticBuyersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListProgrammaticBuyersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listProgrammaticBuyers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getProgrammaticBuyerAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $buyerAccountId = 994282887; + $displayName = 'displayName1615086568'; + $parentAccountId = 325829854; + $partnerClientId = 'partnerClientId667444056'; + $agency = false; + $preferredDealsEnabled = false; + $programmaticGuaranteedEnabled = false; + $expectedResponse = new ProgrammaticBuyer(); + $expectedResponse->setName($name2); + $expectedResponse->setBuyerAccountId($buyerAccountId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setParentAccountId($parentAccountId); + $expectedResponse->setPartnerClientId($partnerClientId); + $expectedResponse->setAgency($agency); + $expectedResponse->setPreferredDealsEnabled($preferredDealsEnabled); + $expectedResponse->setProgrammaticGuaranteedEnabled($programmaticGuaranteedEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->programmaticBuyerName('[NETWORK_CODE]', '[PROGRAMMATIC_BUYER]'); + $request = (new GetProgrammaticBuyerRequest()) + ->setName($formattedName); + $response = $gapicClient->getProgrammaticBuyerAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ProgrammaticBuyerService/GetProgrammaticBuyer', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php new file mode 100644 index 000000000000..2efa66f5e6b6 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php @@ -0,0 +1,644 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ReportServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ReportServiceClient($options); + } + + /** @test */ + public function createReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $reportId = 353329146; + $displayName = 'displayName1615086568'; + $locale = 'locale-1097462182'; + $expectedResponse = new Report(); + $expectedResponse->setName($name); + $expectedResponse->setReportId($reportId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setLocale($locale); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $report = new Report(); + $reportReportDefinition = new ReportDefinition(); + $reportDefinitionDimensions = []; + $reportReportDefinition->setDimensions($reportDefinitionDimensions); + $reportDefinitionMetrics = []; + $reportReportDefinition->setMetrics($reportDefinitionMetrics); + $reportDefinitionDateRange = new DateRange(); + $reportReportDefinition->setDateRange($reportDefinitionDateRange); + $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; + $reportReportDefinition->setReportType($reportDefinitionReportType); + $report->setReportDefinition($reportReportDefinition); + $request = (new CreateReportRequest()) + ->setParent($formattedParent) + ->setReport($report); + $response = $gapicClient->createReport($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ReportService/CreateReport', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getReport(); + $this->assertProtobufEquals($report, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $report = new Report(); + $reportReportDefinition = new ReportDefinition(); + $reportDefinitionDimensions = []; + $reportReportDefinition->setDimensions($reportDefinitionDimensions); + $reportDefinitionMetrics = []; + $reportReportDefinition->setMetrics($reportDefinitionMetrics); + $reportDefinitionDateRange = new DateRange(); + $reportReportDefinition->setDateRange($reportDefinitionDateRange); + $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; + $reportReportDefinition->setReportType($reportDefinitionReportType); + $report->setReportDefinition($reportReportDefinition); + $request = (new CreateReportRequest()) + ->setParent($formattedParent) + ->setReport($report); + try { + $gapicClient->createReport($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchReportResultRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $totalRowCount = 1810281263; + $nextPageToken = 'nextPageToken-1530815211'; + $expectedResponse = new FetchReportResultRowsResponse(); + $expectedResponse->setTotalRowCount($totalRowCount); + $expectedResponse->setNextPageToken($nextPageToken); + $transport->addResponse($expectedResponse); + $request = new FetchReportResultRowsRequest(); + $response = $gapicClient->fetchReportResultRows($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ReportService/FetchReportResultRows', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchReportResultRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new FetchReportResultRowsRequest(); + try { + $gapicClient->fetchReportResultRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $reportId = 353329146; + $displayName = 'displayName1615086568'; + $locale = 'locale-1097462182'; + $expectedResponse = new Report(); + $expectedResponse->setName($name2); + $expectedResponse->setReportId($reportId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setLocale($locale); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); + $request = (new GetReportRequest()) + ->setName($formattedName); + $response = $gapicClient->getReport($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ReportService/GetReport', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); + $request = (new GetReportRequest()) + ->setName($formattedName); + try { + $gapicClient->getReport($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReportsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $reportsElement = new Report(); + $reports = [ + $reportsElement, + ]; + $expectedResponse = new ListReportsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setReports($reports); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListReportsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listReports($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getReports()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ReportService/ListReports', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReportsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListReportsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listReports($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runReportTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/runReportTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $reportResult = 'reportResult-778769016'; + $expectedResponse = new RunReportResponse(); + $expectedResponse->setReportResult($reportResult); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/runReportTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); + $request = (new RunReportRequest()) + ->setName($formattedName); + $response = $gapicClient->runReport($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ReportService/RunReport', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/runReportTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function runReportExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/runReportTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); + $request = (new RunReportRequest()) + ->setName($formattedName); + $response = $gapicClient->runReport($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/runReportTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $reportId = 353329146; + $displayName = 'displayName1615086568'; + $locale = 'locale-1097462182'; + $expectedResponse = new Report(); + $expectedResponse->setName($name); + $expectedResponse->setReportId($reportId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setLocale($locale); + $transport->addResponse($expectedResponse); + // Mock request + $report = new Report(); + $reportReportDefinition = new ReportDefinition(); + $reportDefinitionDimensions = []; + $reportReportDefinition->setDimensions($reportDefinitionDimensions); + $reportDefinitionMetrics = []; + $reportReportDefinition->setMetrics($reportDefinitionMetrics); + $reportDefinitionDateRange = new DateRange(); + $reportReportDefinition->setDateRange($reportDefinitionDateRange); + $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; + $reportReportDefinition->setReportType($reportDefinitionReportType); + $report->setReportDefinition($reportReportDefinition); + $updateMask = new FieldMask(); + $request = (new UpdateReportRequest()) + ->setReport($report) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateReport($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ReportService/UpdateReport', $actualFuncCall); + $actualValue = $actualRequestObject->getReport(); + $this->assertProtobufEquals($report, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $report = new Report(); + $reportReportDefinition = new ReportDefinition(); + $reportDefinitionDimensions = []; + $reportReportDefinition->setDimensions($reportDefinitionDimensions); + $reportDefinitionMetrics = []; + $reportReportDefinition->setMetrics($reportDefinitionMetrics); + $reportDefinitionDateRange = new DateRange(); + $reportReportDefinition->setDateRange($reportDefinitionDateRange); + $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; + $reportReportDefinition->setReportType($reportDefinitionReportType); + $report->setReportDefinition($reportReportDefinition); + $updateMask = new FieldMask(); + $request = (new UpdateReportRequest()) + ->setReport($report) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateReport($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReportAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $reportId = 353329146; + $displayName = 'displayName1615086568'; + $locale = 'locale-1097462182'; + $expectedResponse = new Report(); + $expectedResponse->setName($name); + $expectedResponse->setReportId($reportId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setLocale($locale); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $report = new Report(); + $reportReportDefinition = new ReportDefinition(); + $reportDefinitionDimensions = []; + $reportReportDefinition->setDimensions($reportDefinitionDimensions); + $reportDefinitionMetrics = []; + $reportReportDefinition->setMetrics($reportDefinitionMetrics); + $reportDefinitionDateRange = new DateRange(); + $reportReportDefinition->setDateRange($reportDefinitionDateRange); + $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; + $reportReportDefinition->setReportType($reportDefinitionReportType); + $report->setReportDefinition($reportReportDefinition); + $request = (new CreateReportRequest()) + ->setParent($formattedParent) + ->setReport($report); + $response = $gapicClient->createReportAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ReportService/CreateReport', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getReport(); + $this->assertProtobufEquals($report, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php new file mode 100644 index 000000000000..30da5e27662d --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php @@ -0,0 +1,247 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return RoleServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new RoleServiceClient($options); + } + + /** @test */ + public function getRoleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $roleId = 1376884100; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $builtIn = true; + $expectedResponse = new Role(); + $expectedResponse->setName($name2); + $expectedResponse->setRoleId($roleId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setBuiltIn($builtIn); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->roleName('[NETWORK_CODE]', '[ROLE]'); + $request = (new GetRoleRequest()) + ->setName($formattedName); + $response = $gapicClient->getRole($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.RoleService/GetRole', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRoleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->roleName('[NETWORK_CODE]', '[ROLE]'); + $request = (new GetRoleRequest()) + ->setName($formattedName); + try { + $gapicClient->getRole($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRolesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $rolesElement = new Role(); + $roles = [ + $rolesElement, + ]; + $expectedResponse = new ListRolesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setRoles($roles); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListRolesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRoles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRoles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.RoleService/ListRoles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRolesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListRolesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRoles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRoleAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $roleId = 1376884100; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $builtIn = true; + $expectedResponse = new Role(); + $expectedResponse->setName($name2); + $expectedResponse->setRoleId($roleId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setBuiltIn($builtIn); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->roleName('[NETWORK_CODE]', '[ROLE]'); + $request = (new GetRoleRequest()) + ->setName($formattedName); + $response = $gapicClient->getRoleAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.RoleService/GetRole', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/SiteServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/SiteServiceClientTest.php new file mode 100644 index 000000000000..5d746602fb93 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/SiteServiceClientTest.php @@ -0,0 +1,676 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return SiteServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new SiteServiceClient($options); + } + + /** @test */ + public function batchCreateSitesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateSitesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateSitesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchCreateSites($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.SiteService/BatchCreateSites', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateSitesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateSitesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchCreateSites($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateSitesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchDeactivateSitesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $names = []; + $request = (new BatchDeactivateSitesRequest()) + ->setParent($formattedParent) + ->setNames($names); + $response = $gapicClient->batchDeactivateSites($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.SiteService/BatchDeactivateSites', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($names, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateSitesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $names = []; + $request = (new BatchDeactivateSitesRequest()) + ->setParent($formattedParent) + ->setNames($names); + try { + $gapicClient->batchDeactivateSites($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchSubmitSitesForApprovalTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchSubmitSitesForApprovalResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $names = []; + $request = (new BatchSubmitSitesForApprovalRequest()) + ->setParent($formattedParent) + ->setNames($names); + $response = $gapicClient->batchSubmitSitesForApproval($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.SiteService/BatchSubmitSitesForApproval', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($names, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchSubmitSitesForApprovalExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $names = []; + $request = (new BatchSubmitSitesForApprovalRequest()) + ->setParent($formattedParent) + ->setNames($names); + try { + $gapicClient->batchSubmitSitesForApproval($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateSitesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateSitesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateSitesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchUpdateSites($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.SiteService/BatchUpdateSites', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateSitesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateSitesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchUpdateSites($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSiteTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $url = 'url116079'; + $childNetworkCode = 'childNetworkCode-220013663'; + $expectedResponse = new Site(); + $expectedResponse->setName($name); + $expectedResponse->setUrl($url); + $expectedResponse->setChildNetworkCode($childNetworkCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $site = new Site(); + $siteUrl = 'siteUrl2099991720'; + $site->setUrl($siteUrl); + $request = (new CreateSiteRequest()) + ->setParent($formattedParent) + ->setSite($site); + $response = $gapicClient->createSite($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.SiteService/CreateSite', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getSite(); + $this->assertProtobufEquals($site, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSiteExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $site = new Site(); + $siteUrl = 'siteUrl2099991720'; + $site->setUrl($siteUrl); + $request = (new CreateSiteRequest()) + ->setParent($formattedParent) + ->setSite($site); + try { + $gapicClient->createSite($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSiteTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $url = 'url116079'; + $childNetworkCode = 'childNetworkCode-220013663'; + $expectedResponse = new Site(); + $expectedResponse->setName($name2); + $expectedResponse->setUrl($url); + $expectedResponse->setChildNetworkCode($childNetworkCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->siteName('[NETWORK_CODE]', '[SITE]'); + $request = (new GetSiteRequest()) + ->setName($formattedName); + $response = $gapicClient->getSite($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.SiteService/GetSite', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSiteExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->siteName('[NETWORK_CODE]', '[SITE]'); + $request = (new GetSiteRequest()) + ->setName($formattedName); + try { + $gapicClient->getSite($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSitesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $sitesElement = new Site(); + $sites = [ + $sitesElement, + ]; + $expectedResponse = new ListSitesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setSites($sites); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListSitesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listSites($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSites()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.SiteService/ListSites', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSitesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListSitesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listSites($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSiteTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $url = 'url116079'; + $childNetworkCode = 'childNetworkCode-220013663'; + $expectedResponse = new Site(); + $expectedResponse->setName($name); + $expectedResponse->setUrl($url); + $expectedResponse->setChildNetworkCode($childNetworkCode); + $transport->addResponse($expectedResponse); + // Mock request + $site = new Site(); + $siteUrl = 'siteUrl2099991720'; + $site->setUrl($siteUrl); + $updateMask = new FieldMask(); + $request = (new UpdateSiteRequest()) + ->setSite($site) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateSite($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.SiteService/UpdateSite', $actualFuncCall); + $actualValue = $actualRequestObject->getSite(); + $this->assertProtobufEquals($site, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSiteExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $site = new Site(); + $siteUrl = 'siteUrl2099991720'; + $site->setUrl($siteUrl); + $updateMask = new FieldMask(); + $request = (new UpdateSiteRequest()) + ->setSite($site) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateSite($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateSitesAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateSitesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateSitesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchCreateSitesAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.SiteService/BatchCreateSites', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php new file mode 100644 index 000000000000..73b1b6371cd8 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php @@ -0,0 +1,247 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return TaxonomyCategoryServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new TaxonomyCategoryServiceClient($options); + } + + /** @test */ + public function getTaxonomyCategoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $taxonomyCategoryId = 28298254; + $displayName = 'displayName1615086568'; + $groupingOnly = true; + $parentTaxonomyCategoryId = 1790260093; + $expectedResponse = new TaxonomyCategory(); + $expectedResponse->setName($name2); + $expectedResponse->setTaxonomyCategoryId($taxonomyCategoryId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setGroupingOnly($groupingOnly); + $expectedResponse->setParentTaxonomyCategoryId($parentTaxonomyCategoryId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->taxonomyCategoryName('[NETWORK_CODE]', '[TAXONOMY_CATEGORY]'); + $request = (new GetTaxonomyCategoryRequest()) + ->setName($formattedName); + $response = $gapicClient->getTaxonomyCategory($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TaxonomyCategoryService/GetTaxonomyCategory', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTaxonomyCategoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->taxonomyCategoryName('[NETWORK_CODE]', '[TAXONOMY_CATEGORY]'); + $request = (new GetTaxonomyCategoryRequest()) + ->setName($formattedName); + try { + $gapicClient->getTaxonomyCategory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTaxonomyCategoriesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $taxonomyCategoriesElement = new TaxonomyCategory(); + $taxonomyCategories = [ + $taxonomyCategoriesElement, + ]; + $expectedResponse = new ListTaxonomyCategoriesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setTaxonomyCategories($taxonomyCategories); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListTaxonomyCategoriesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listTaxonomyCategories($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTaxonomyCategories()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TaxonomyCategoryService/ListTaxonomyCategories', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTaxonomyCategoriesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListTaxonomyCategoriesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listTaxonomyCategories($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTaxonomyCategoryAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $taxonomyCategoryId = 28298254; + $displayName = 'displayName1615086568'; + $groupingOnly = true; + $parentTaxonomyCategoryId = 1790260093; + $expectedResponse = new TaxonomyCategory(); + $expectedResponse->setName($name2); + $expectedResponse->setTaxonomyCategoryId($taxonomyCategoryId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setGroupingOnly($groupingOnly); + $expectedResponse->setParentTaxonomyCategoryId($parentTaxonomyCategoryId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->taxonomyCategoryName('[NETWORK_CODE]', '[TAXONOMY_CATEGORY]'); + $request = (new GetTaxonomyCategoryRequest()) + ->setName($formattedName); + $response = $gapicClient->getTaxonomyCategoryAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TaxonomyCategoryService/GetTaxonomyCategory', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TeamServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TeamServiceClientTest.php new file mode 100644 index 000000000000..86010c4a23ce --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TeamServiceClientTest.php @@ -0,0 +1,698 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return TeamServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new TeamServiceClient($options); + } + + /** @test */ + public function batchActivateTeamsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateTeamsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'), + ]; + $request = (new BatchActivateTeamsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchActivateTeams($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TeamService/BatchActivateTeams', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateTeamsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'), + ]; + $request = (new BatchActivateTeamsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchActivateTeams($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateTeamsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateTeamsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateTeamsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchCreateTeams($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TeamService/BatchCreateTeams', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateTeamsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateTeamsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchCreateTeams($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateTeamsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchDeactivateTeamsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'), + ]; + $request = (new BatchDeactivateTeamsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchDeactivateTeams($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TeamService/BatchDeactivateTeams', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateTeamsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'), + ]; + $request = (new BatchDeactivateTeamsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchDeactivateTeams($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateTeamsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateTeamsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateTeamsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->batchUpdateTeams($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TeamService/BatchUpdateTeams', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateTeamsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateTeamsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->batchUpdateTeams($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTeamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $allCompaniesAccess = true; + $allInventoryAccess = false; + $expectedResponse = new Team(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setAllCompaniesAccess($allCompaniesAccess); + $expectedResponse->setAllInventoryAccess($allInventoryAccess); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $team = new Team(); + $teamDisplayName = 'teamDisplayName1137381328'; + $team->setDisplayName($teamDisplayName); + $request = (new CreateTeamRequest()) + ->setParent($formattedParent) + ->setTeam($team); + $response = $gapicClient->createTeam($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TeamService/CreateTeam', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTeam(); + $this->assertProtobufEquals($team, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTeamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $team = new Team(); + $teamDisplayName = 'teamDisplayName1137381328'; + $team->setDisplayName($teamDisplayName); + $request = (new CreateTeamRequest()) + ->setParent($formattedParent) + ->setTeam($team); + try { + $gapicClient->createTeam($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTeamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $allCompaniesAccess = true; + $allInventoryAccess = false; + $expectedResponse = new Team(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setAllCompaniesAccess($allCompaniesAccess); + $expectedResponse->setAllInventoryAccess($allInventoryAccess); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'); + $request = (new GetTeamRequest()) + ->setName($formattedName); + $response = $gapicClient->getTeam($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TeamService/GetTeam', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTeamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'); + $request = (new GetTeamRequest()) + ->setName($formattedName); + try { + $gapicClient->getTeam($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTeamsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $teamsElement = new Team(); + $teams = [ + $teamsElement, + ]; + $expectedResponse = new ListTeamsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setTeams($teams); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListTeamsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listTeams($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTeams()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TeamService/ListTeams', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTeamsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListTeamsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listTeams($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTeamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $allCompaniesAccess = true; + $allInventoryAccess = false; + $expectedResponse = new Team(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setAllCompaniesAccess($allCompaniesAccess); + $expectedResponse->setAllInventoryAccess($allInventoryAccess); + $transport->addResponse($expectedResponse); + // Mock request + $team = new Team(); + $teamDisplayName = 'teamDisplayName1137381328'; + $team->setDisplayName($teamDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateTeamRequest()) + ->setTeam($team) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateTeam($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TeamService/UpdateTeam', $actualFuncCall); + $actualValue = $actualRequestObject->getTeam(); + $this->assertProtobufEquals($team, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTeamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $team = new Team(); + $teamDisplayName = 'teamDisplayName1137381328'; + $team->setDisplayName($teamDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateTeamRequest()) + ->setTeam($team) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateTeam($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateTeamsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateTeamsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [ + $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'), + ]; + $request = (new BatchActivateTeamsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchActivateTeamsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.TeamService/BatchActivateTeams', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php new file mode 100644 index 000000000000..5b0d54c26a20 --- /dev/null +++ b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php @@ -0,0 +1,187 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return UserServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new UserServiceClient($options); + } + + /** @test */ + public function getUserTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $userId = 147132913; + $displayName = 'displayName1615086568'; + $email = 'email96619420'; + $role = 'role3506294'; + $active = true; + $externalId = 'externalId-1153075697'; + $serviceAccount = false; + $ordersUiLocalTimeZone = 'ordersUiLocalTimeZone-1376832007'; + $expectedResponse = new User(); + $expectedResponse->setName($name2); + $expectedResponse->setUserId($userId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEmail($email); + $expectedResponse->setRole($role); + $expectedResponse->setActive($active); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setOrdersUiLocalTimeZone($ordersUiLocalTimeZone); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->userName('[NETWORK_CODE]', '[USER]'); + $request = (new GetUserRequest()) + ->setName($formattedName); + $response = $gapicClient->getUser($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.UserService/GetUser', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getUserExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->userName('[NETWORK_CODE]', '[USER]'); + $request = (new GetUserRequest()) + ->setName($formattedName); + try { + $gapicClient->getUser($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getUserAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $userId = 147132913; + $displayName = 'displayName1615086568'; + $email = 'email96619420'; + $role = 'role3506294'; + $active = true; + $externalId = 'externalId-1153075697'; + $serviceAccount = false; + $ordersUiLocalTimeZone = 'ordersUiLocalTimeZone-1376832007'; + $expectedResponse = new User(); + $expectedResponse->setName($name2); + $expectedResponse->setUserId($userId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEmail($email); + $expectedResponse->setRole($role); + $expectedResponse->setActive($active); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setOrdersUiLocalTimeZone($ordersUiLocalTimeZone); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->userName('[NETWORK_CODE]', '[USER]'); + $request = (new GetUserRequest()) + ->setName($formattedName); + $response = $gapicClient->getUserAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.UserService/GetUser', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From 57b28085e096db42bcd928427ff70d8ca3448c7a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 28 Oct 2025 18:36:11 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../metadata}/V1/AdReviewCenterAdEnums.php | Bin .../metadata}/V1/AdReviewCenterAdMessages.php | Bin .../metadata}/V1/AdReviewCenterAdService.php | 0 AdsAdManager/metadata/V1/AdUnitMessages.php | Bin 4141 -> 4287 bytes .../metadata}/V1/ApplicationMessages.php | Bin .../metadata}/V1/ApplicationService.php | 0 .../metadata}/V1/AudienceSegmentMessages.php | Bin .../metadata}/V1/AudienceSegmentService.php | 0 .../metadata}/V1/BrowserLanguageMessages.php | Bin .../metadata}/V1/BrowserLanguageService.php | 0 .../metadata}/V1/BrowserMessages.php | Bin .../metadata}/V1/BrowserService.php | 0 .../metadata}/V1/CmsMetadataKeyEnums.php | Bin .../metadata}/V1/CmsMetadataKeyMessages.php | 0 .../metadata}/V1/CmsMetadataKeyService.php | 0 .../metadata}/V1/CmsMetadataValueEnums.php | Bin .../metadata}/V1/CmsMetadataValueMessages.php | 0 .../metadata}/V1/CmsMetadataValueService.php | 0 AdsAdManager/metadata/V1/CompanyMessages.php | Bin 2098 -> 2328 bytes .../metadata}/V1/ContactEnums.php | Bin AdsAdManager/metadata/V1/ContactMessages.php | Bin 1184 -> 1715 bytes .../metadata}/V1/ContactService.php | 0 .../metadata}/V1/ContentBundleMessages.php | 0 .../metadata}/V1/ContentBundleService.php | 0 .../metadata}/V1/ContentLabelMessages.php | 0 .../metadata}/V1/ContentLabelService.php | 0 .../metadata}/V1/ContentMessages.php | Bin .../metadata}/V1/ContentService.php | 0 .../metadata}/V1/CreativeTemplateEnums.php | Bin .../metadata}/V1/CreativeTemplateMessages.php | Bin .../metadata}/V1/CreativeTemplateService.php | 0 .../CreativeTemplateVariableUrlTypeEnum.php | Bin .../metadata/V1/CustomFieldMessages.php | Bin 2028 -> 2031 bytes .../metadata/V1/CustomFieldService.php | 46 +- .../V1/CustomTargetingKeyMessages.php | Bin 1765 -> 1897 bytes .../V1/CustomTargetingValueMessages.php | Bin 1736 -> 1845 bytes .../metadata}/V1/DeviceCapabilityMessages.php | Bin .../metadata}/V1/DeviceCapabilityService.php | 0 .../V1/DeviceManufacturerMessages.php | Bin .../V1/DeviceManufacturerService.php | 0 .../V1/ExchangeSyndicationProductEnum.php | Bin .../metadata}/V1/MobileCarrierMessages.php | Bin .../metadata}/V1/MobileCarrierService.php | 0 .../metadata}/V1/MobileDeviceMessages.php | Bin .../metadata}/V1/MobileDeviceService.php | 0 .../V1/MobileDeviceSubmodelMessages.php | Bin .../V1/MobileDeviceSubmodelService.php | 0 AdsAdManager/metadata/V1/PlacementService.php | 55 +- .../metadata}/V1/ReportDefinition.php | Bin AdsAdManager/metadata/V1/ReportMessages.php | Bin 33160 -> 3786 bytes AdsAdManager/metadata/V1/ReportService.php | 17 +- .../metadata}/V1/ReportValue.php | Bin .../metadata}/V1/SiteEnums.php | Bin .../metadata}/V1/SiteMessages.php | Bin .../metadata}/V1/SiteService.php | 0 AdsAdManager/metadata/V1/Targeting.php | Bin 4908 -> 7967 bytes AdsAdManager/metadata/V1/TaxonomyTypeEnum.php | Bin 1084 -> 1114 bytes .../metadata}/V1/TeamEnums.php | Bin AdsAdManager/metadata/V1/TeamMessages.php | Bin 1088 -> 1612 bytes .../metadata}/V1/TeamService.php | 0 .../metadata}/V1/WebProperty.php | 0 .../batch_allow_ad_review_center_ads.php | 0 .../batch_block_ad_review_center_ads.php | 0 .../search_ad_review_center_ads.php | 0 .../get_application.php | 0 .../list_applications.php | 0 .../get_audience_segment.php | 0 .../list_audience_segments.php | 0 .../get_browser_language.php | 0 .../list_browser_languages.php | 0 .../V1/BrowserServiceClient/get_browser.php | 0 .../V1/BrowserServiceClient/list_browsers.php | 0 .../get_cms_metadata_key.php | 0 .../list_cms_metadata_keys.php | 0 .../get_cms_metadata_value.php | 0 .../list_cms_metadata_values.php | 0 .../batch_create_contacts.php | 0 .../batch_update_contacts.php | 0 .../ContactServiceClient/create_contact.php | 0 .../V1/ContactServiceClient/get_contact.php | 0 .../V1/ContactServiceClient/list_contacts.php | 0 .../ContactServiceClient/update_contact.php | 0 .../get_content_bundle.php | 0 .../list_content_bundles.php | 0 .../get_content_label.php | 0 .../list_content_labels.php | 0 .../V1/ContentServiceClient/get_content.php | 0 .../V1/ContentServiceClient/list_content.php | 0 .../get_creative_template.php | 0 .../list_creative_templates.php | 0 .../batch_activate_custom_fields.php | 0 .../batch_create_custom_fields.php | 0 .../batch_deactivate_custom_fields.php | 0 .../batch_update_custom_fields.php | 0 .../create_custom_field.php | 0 .../update_custom_field.php | 0 .../get_device_capability.php | 0 .../list_device_capabilities.php | 0 .../get_device_manufacturer.php | 0 .../list_device_manufacturers.php | 0 .../get_mobile_carrier.php | 0 .../list_mobile_carriers.php | 0 .../get_mobile_device.php | 0 .../list_mobile_devices.php | 0 .../get_mobile_device_submodel.php | 0 .../list_mobile_device_submodels.php | 0 .../batch_activate_placements.php | 0 .../batch_archive_placements.php | 0 .../batch_create_placements.php | 0 .../batch_deactivate_placements.php | 0 .../batch_update_placements.php | 0 .../create_placement.php | 0 .../update_placement.php | 0 .../V1/ReportServiceClient/create_report.php | 8 +- .../V1/ReportServiceClient/run_report.php | 2 +- .../V1/ReportServiceClient/update_report.php | 8 +- .../SiteServiceClient/batch_create_sites.php | 0 .../batch_deactivate_sites.php | 0 .../batch_submit_sites_for_approval.php | 0 .../SiteServiceClient/batch_update_sites.php | 0 .../V1/SiteServiceClient/create_site.php | 0 .../samples/V1/SiteServiceClient/get_site.php | 0 .../V1/SiteServiceClient/list_sites.php | 0 .../V1/SiteServiceClient/update_site.php | 0 .../batch_activate_teams.php | 0 .../TeamServiceClient/batch_create_teams.php | 0 .../batch_deactivate_teams.php | 0 .../TeamServiceClient/batch_update_teams.php | 0 .../V1/TeamServiceClient/create_team.php | 0 .../samples/V1/TeamServiceClient/get_team.php | 0 .../V1/TeamServiceClient/list_teams.php | 0 .../V1/TeamServiceClient/update_team.php | 0 .../src}/V1/AdReviewCenterAd.php | 0 .../src}/V1/AdReviewCenterAdStatusEnum.php | 0 .../AdReviewCenterAdStatus.php | 2 - AdsAdManager/src/V1/AdUnitParent.php | 60 +- AdsAdManager/src/V1/AdUnitSize.php | 26 +- .../src}/V1/Application.php | 0 .../src}/V1/AudienceSegment.php | 0 .../src}/V1/AudienceSegmentTargeting.php | 0 .../V1/BatchActivateCustomFieldsRequest.php | 0 .../V1/BatchActivateCustomFieldsResponse.php | 0 .../V1/BatchActivatePlacementsRequest.php | 0 .../V1/BatchActivatePlacementsResponse.php | 0 .../src}/V1/BatchActivateTeamsRequest.php | 0 .../src}/V1/BatchActivateTeamsResponse.php | 0 ...atchAdReviewCenterAdsOperationMetadata.php | 0 .../V1/BatchAllowAdReviewCenterAdsRequest.php | 0 .../BatchAllowAdReviewCenterAdsResponse.php | 0 .../src}/V1/BatchArchivePlacementsRequest.php | 0 .../V1/BatchArchivePlacementsResponse.php | 0 .../V1/BatchBlockAdReviewCenterAdsRequest.php | 0 .../BatchBlockAdReviewCenterAdsResponse.php | 0 .../src}/V1/BatchCreateContactsRequest.php | 0 .../src}/V1/BatchCreateContactsResponse.php | 0 .../V1/BatchCreateCustomFieldsRequest.php | 0 .../V1/BatchCreateCustomFieldsResponse.php | 0 .../src}/V1/BatchCreatePlacementsRequest.php | 0 .../src}/V1/BatchCreatePlacementsResponse.php | 0 .../src}/V1/BatchCreateSitesRequest.php | 0 .../src}/V1/BatchCreateSitesResponse.php | 0 .../src}/V1/BatchCreateTeamsRequest.php | 0 .../src}/V1/BatchCreateTeamsResponse.php | 0 .../V1/BatchDeactivateCustomFieldsRequest.php | 0 .../BatchDeactivateCustomFieldsResponse.php | 0 .../V1/BatchDeactivatePlacementsRequest.php | 0 .../V1/BatchDeactivatePlacementsResponse.php | 0 .../src}/V1/BatchDeactivateSitesRequest.php | 0 .../src}/V1/BatchDeactivateSitesResponse.php | 0 .../src}/V1/BatchDeactivateTeamsRequest.php | 0 .../src}/V1/BatchDeactivateTeamsResponse.php | 0 .../V1/BatchSubmitSitesForApprovalRequest.php | 0 .../BatchSubmitSitesForApprovalResponse.php | 0 .../src}/V1/BatchUpdateContactsRequest.php | 0 .../src}/V1/BatchUpdateContactsResponse.php | 0 .../V1/BatchUpdateCustomFieldsRequest.php | 0 .../V1/BatchUpdateCustomFieldsResponse.php | 0 .../src}/V1/BatchUpdatePlacementsRequest.php | 0 .../src}/V1/BatchUpdatePlacementsResponse.php | 0 .../src}/V1/BatchUpdateSitesRequest.php | 0 .../src}/V1/BatchUpdateSitesResponse.php | 0 .../src}/V1/BatchUpdateTeamsRequest.php | 0 .../src}/V1/BatchUpdateTeamsResponse.php | 0 .../src}/V1/Browser.php | 0 .../src}/V1/BrowserLanguage.php | 0 .../src}/V1/BrowserLanguageTargeting.php | 0 .../src}/V1/BrowserTargeting.php | 0 .../src/V1/Client/AdBreakServiceClient.php | 8 +- .../Client/AdReviewCenterAdServiceClient.php | 36 +- .../src/V1/Client/AdUnitServiceClient.php | 8 +- .../V1/Client/ApplicationServiceClient.php | 8 +- .../Client/AudienceSegmentServiceClient.php | 14 +- .../V1/Client/BandwidthGroupServiceClient.php | 8 +- .../Client/BrowserLanguageServiceClient.php | 14 +- .../src/V1/Client/BrowserServiceClient.php | 8 +- .../V1/Client/CmsMetadataKeyServiceClient.php | 8 +- .../Client/CmsMetadataValueServiceClient.php | 17 +- .../src/V1/Client/CompanyServiceClient.php | 8 +- .../src/V1/Client/ContactServiceClient.php | 20 +- .../V1/Client/ContentBundleServiceClient.php | 8 +- .../V1/Client/ContentLabelServiceClient.php | 8 +- .../src/V1/Client/ContentServiceClient.php | 8 +- .../Client/CreativeTemplateServiceClient.php | 17 +- .../V1/Client/CustomFieldServiceClient.php | 192 ++- .../CustomTargetingKeyServiceClient.php | 23 +- .../CustomTargetingValueServiceClient.php | 23 +- .../Client/DeviceCapabilityServiceClient.php | 17 +- .../V1/Client/DeviceCategoryServiceClient.php | 14 +- .../DeviceManufacturerServiceClient.php | 23 +- .../EntitySignalsMappingServiceClient.php | 47 +- .../src/V1/Client/GeoTargetServiceClient.php | 8 +- .../V1/Client/MobileCarrierServiceClient.php | 8 +- .../V1/Client/MobileDeviceServiceClient.php | 8 +- .../MobileDeviceSubmodelServiceClient.php | 23 +- .../src/V1/Client/NetworkServiceClient.php | 8 +- .../Client/OperatingSystemServiceClient.php | 14 +- .../OperatingSystemVersionServiceClient.php | 23 +- .../src/V1/Client/OrderServiceClient.php | 8 +- .../src/V1/Client/PlacementServiceClient.php | 242 ++- .../PrivateAuctionDealServiceClient.php | 251 +++- .../V1/Client/PrivateAuctionServiceClient.php | 8 +- .../Client/ProgrammaticBuyerServiceClient.php | 23 +- .../src/V1/Client/ReportServiceClient.php | 16 +- .../src/V1/Client/RoleServiceClient.php | 8 +- .../src/V1/Client/SiteServiceClient.php | 32 +- .../Client/TaxonomyCategoryServiceClient.php | 17 +- .../src/V1/Client/TeamServiceClient.php | 32 +- .../src/V1/Client/UserServiceClient.php | 8 +- .../src}/V1/CmsMetadataKey.php | 0 .../src}/V1/CmsMetadataKeyStatusEnum.php | 0 .../CmsMetadataKeyStatus.php | 2 - .../src}/V1/CmsMetadataTargeting.php | 0 .../src}/V1/CmsMetadataValue.php | 0 .../src}/V1/CmsMetadataValueStatusEnum.php | 0 .../CmsMetadataValueStatus.php | 2 - AdsAdManager/src/V1/Company.php | 226 ++- AdsAdManager/src/V1/Contact.php | 466 +++++- .../src}/V1/ContactStatusEnum.php | 0 .../V1/ContactStatusEnum/ContactStatus.php | 2 - .../src}/V1/Content.php | 0 .../src}/V1/ContentBundle.php | 0 .../src}/V1/ContentLabel.php | 0 .../src}/V1/ContentTargeting.php | 0 .../src}/V1/CreateContactRequest.php | 0 .../src}/V1/CreateCustomFieldRequest.php | 0 .../src}/V1/CreatePlacementRequest.php | 0 .../src}/V1/CreateSiteRequest.php | 0 .../src}/V1/CreateTeamRequest.php | 0 .../src}/V1/CreativeTemplate.php | 0 .../src}/V1/CreativeTemplateStatusEnum.php | 0 .../CreativeTemplateStatus.php | 2 - .../src}/V1/CreativeTemplateTypeEnum.php | 0 .../CreativeTemplateType.php | 2 - .../src}/V1/CreativeTemplateVariable.php | 0 .../AssetCreativeTemplateVariable.php | 2 - .../MimeType.php | 2 - .../ListStringCreativeTemplateVariable.php | 2 - .../VariableChoice.php | 2 - .../LongCreativeTemplateVariable.php | 2 - .../StringCreativeTemplateVariable.php | 2 - .../UrlCreativeTemplateVariable.php | 2 - .../CreativeTemplateVariableUrlTypeEnum.php | 0 .../CreativeTemplateVariableUrlType.php | 2 - AdsAdManager/src/V1/CustomFieldOption.php | 14 +- AdsAdManager/src/V1/CustomTargetingClause.php | 68 + AdsAdManager/src/V1/CustomTargetingKey.php | 120 +- AdsAdManager/src/V1/CustomTargetingValue.php | 100 +- .../src}/V1/DeviceCapability.php | 0 .../src}/V1/DeviceCapabilityTargeting.php | 0 .../src}/V1/DeviceManufacturer.php | 0 .../src}/V1/DeviceManufacturerTargeting.php | 0 .../src}/V1/DisapprovalReason.php | 0 .../V1/ExchangeSyndicationProductEnum.php | 0 .../ExchangeSyndicationProduct.php | 2 - .../src/V1/FetchReportResultRowsRequest.php | 12 +- .../src/V1/FetchReportResultRowsResponse.php | 36 +- .../FirstPartyMobileApplicationTargeting.php | 0 .../src}/V1/GetApplicationRequest.php | 0 .../src}/V1/GetAudienceSegmentRequest.php | 0 .../src}/V1/GetBrowserLanguageRequest.php | 0 .../src}/V1/GetBrowserRequest.php | 0 .../src}/V1/GetCmsMetadataKeyRequest.php | 0 .../src}/V1/GetCmsMetadataValueRequest.php | 0 .../src}/V1/GetContactRequest.php | 0 .../src}/V1/GetContentBundleRequest.php | 0 .../src}/V1/GetContentLabelRequest.php | 0 .../src}/V1/GetContentRequest.php | 0 .../src}/V1/GetCreativeTemplateRequest.php | 0 .../src}/V1/GetDeviceCapabilityRequest.php | 0 .../src}/V1/GetDeviceManufacturerRequest.php | 0 .../src}/V1/GetMobileCarrierRequest.php | 0 .../src}/V1/GetMobileDeviceRequest.php | 0 .../V1/GetMobileDeviceSubmodelRequest.php | 0 .../src}/V1/GetSiteRequest.php | 0 .../src}/V1/GetTeamRequest.php | 0 AdsAdManager/src/V1/LabelFrequencyCap.php | 26 +- AdsAdManager/src/V1/ListAdBreaksResponse.php | 8 +- .../src/V1/ListAdUnitSizesRequest.php | 16 +- .../src/V1/ListAdUnitSizesResponse.php | 8 +- AdsAdManager/src/V1/ListAdUnitsRequest.php | 16 +- AdsAdManager/src/V1/ListAdUnitsResponse.php | 8 +- .../src}/V1/ListApplicationsRequest.php | 0 .../src}/V1/ListApplicationsResponse.php | 0 .../src}/V1/ListAudienceSegmentsRequest.php | 0 .../src}/V1/ListAudienceSegmentsResponse.php | 0 .../src/V1/ListBandwidthGroupsRequest.php | 16 +- .../src/V1/ListBandwidthGroupsResponse.php | 8 +- .../src}/V1/ListBrowserLanguagesRequest.php | 0 .../src}/V1/ListBrowserLanguagesResponse.php | 0 .../src}/V1/ListBrowsersRequest.php | 0 .../src}/V1/ListBrowsersResponse.php | 0 .../src}/V1/ListCmsMetadataKeysRequest.php | 0 .../src}/V1/ListCmsMetadataKeysResponse.php | 0 .../src}/V1/ListCmsMetadataValuesRequest.php | 0 .../src}/V1/ListCmsMetadataValuesResponse.php | 0 AdsAdManager/src/V1/ListCompaniesRequest.php | 16 +- AdsAdManager/src/V1/ListCompaniesResponse.php | 8 +- .../src}/V1/ListContactsRequest.php | 0 .../src}/V1/ListContactsResponse.php | 0 .../src}/V1/ListContentBundlesRequest.php | 0 .../src}/V1/ListContentBundlesResponse.php | 0 .../src}/V1/ListContentLabelsRequest.php | 0 .../src}/V1/ListContentLabelsResponse.php | 0 .../src}/V1/ListContentRequest.php | 0 .../src}/V1/ListContentResponse.php | 0 .../src}/V1/ListCreativeTemplatesRequest.php | 0 .../src}/V1/ListCreativeTemplatesResponse.php | 0 .../src/V1/ListCustomFieldsRequest.php | 16 +- .../src/V1/ListCustomFieldsResponse.php | 8 +- .../V1/ListCustomTargetingKeysResponse.php | 8 +- .../V1/ListCustomTargetingValuesResponse.php | 8 +- .../src}/V1/ListDeviceCapabilitiesRequest.php | 0 .../V1/ListDeviceCapabilitiesResponse.php | 0 .../src/V1/ListDeviceCategoriesRequest.php | 8 +- .../src/V1/ListDeviceCategoriesResponse.php | 8 +- .../V1/ListDeviceManufacturersRequest.php | 0 .../V1/ListDeviceManufacturersResponse.php | 0 .../V1/ListEntitySignalsMappingsResponse.php | 8 +- AdsAdManager/src/V1/ListGeoTargetsRequest.php | 16 +- .../src/V1/ListGeoTargetsResponse.php | 8 +- .../src}/V1/ListMobileCarriersRequest.php | 0 .../src}/V1/ListMobileCarriersResponse.php | 0 .../V1/ListMobileDeviceSubmodelsRequest.php | 0 .../V1/ListMobileDeviceSubmodelsResponse.php | 0 .../src}/V1/ListMobileDevicesRequest.php | 0 .../src}/V1/ListMobileDevicesResponse.php | 0 .../V1/ListOperatingSystemVersionsRequest.php | 8 +- .../ListOperatingSystemVersionsResponse.php | 8 +- .../src/V1/ListOperatingSystemsRequest.php | 8 +- .../src/V1/ListOperatingSystemsResponse.php | 8 +- AdsAdManager/src/V1/ListOrdersRequest.php | 16 +- AdsAdManager/src/V1/ListOrdersResponse.php | 8 +- AdsAdManager/src/V1/ListPlacementsRequest.php | 16 +- .../src/V1/ListPlacementsResponse.php | 8 +- .../src/V1/ListPrivateAuctionDealsRequest.php | 8 +- .../V1/ListPrivateAuctionDealsResponse.php | 8 +- .../src/V1/ListPrivateAuctionsRequest.php | 8 +- .../src/V1/ListPrivateAuctionsResponse.php | 8 +- .../src/V1/ListProgrammaticBuyersResponse.php | 8 +- AdsAdManager/src/V1/ListReportsRequest.php | 16 +- AdsAdManager/src/V1/ListReportsResponse.php | 8 +- AdsAdManager/src/V1/ListRolesRequest.php | 12 +- AdsAdManager/src/V1/ListRolesResponse.php | 8 +- .../src}/V1/ListSitesRequest.php | 0 .../src}/V1/ListSitesResponse.php | 0 .../src/V1/ListTaxonomyCategoriesResponse.php | 8 +- .../src}/V1/ListTeamsRequest.php | 0 .../src}/V1/ListTeamsResponse.php | 0 .../src}/V1/MobileApplicationTargeting.php | 0 .../src}/V1/MobileCarrier.php | 0 .../src}/V1/MobileCarrierTargeting.php | 0 .../src}/V1/MobileDevice.php | 0 .../src}/V1/MobileDeviceSubmodel.php | 0 AdsAdManager/src/V1/Order.php | 60 +- AdsAdManager/src/V1/Report.php | 8 +- AdsAdManager/src/V1/Report/Visibility.php | 2 +- .../src}/V1/ReportDataTable.php | 0 .../V1/ReportDataTable/MetricValueGroup.php | 2 - .../src}/V1/ReportDataTable/Row.php | 2 - AdsAdManager/src/V1/ReportDefinition.php | 136 +- .../src}/V1/ReportDefinition/DateRange.php | 2 - .../DateRange/FixedDateRange.php | 2 - .../DateRange/RelativeDateRange.php | 2 - .../src}/V1/ReportDefinition/Dimension.php | 2 - .../src}/V1/ReportDefinition/Field.php | 2 - .../src}/V1/ReportDefinition/Filter.php | 2 - .../ReportDefinition/Filter/FieldFilter.php | 2 - .../V1/ReportDefinition/Filter/FilterList.php | 2 - .../V1/ReportDefinition/Filter/Operation.php | 2 - .../src}/V1/ReportDefinition/Flag.php | 2 - .../src}/V1/ReportDefinition/Metric.php | 2 - .../V1/ReportDefinition/MetricValueType.php | 2 - .../src}/V1/ReportDefinition/ReportType.php | 2 - .../src}/V1/ReportDefinition/Slice.php | 2 - .../src}/V1/ReportDefinition/Sort.php | 2 - .../V1/ReportDefinition/TimePeriodColumn.php | 2 - .../V1/ReportDefinition/TimeZoneSource.php | 2 - .../src}/V1/ReportValue.php | 0 .../src}/V1/ReportValue/DoubleList.php | 2 - .../src}/V1/ReportValue/IntList.php | 2 - .../src}/V1/ReportValue/StringList.php | 2 - AdsAdManager/src/V1/ScheduleOptions.php | 26 +- .../src}/V1/ScheduleOptions/Schedule.php | 2 - .../V1/ScheduleOptions/Schedule/Frequency.php | 2 - .../Schedule/MonthlySchedule.php | 2 - .../Schedule/WeeklySchedule.php | 2 - .../V1/SearchAdReviewCenterAdsRequest.php | 0 .../V1/SearchAdReviewCenterAdsResponse.php | 0 .../src}/V1/Site.php | 0 .../src}/V1/SiteApprovalStatusEnum.php | 0 .../SiteApprovalStatus.php | 2 - .../src}/V1/SiteDisapprovalReasonEnum.php | 0 .../SiteDisapprovalReason.php | 2 - AdsAdManager/src/V1/Targeting.php | 88 ++ .../src/V1/TaxonomyTypeEnum/TaxonomyType.php | 7 + AdsAdManager/src/V1/Team.php | 292 ++++ .../src}/V1/TeamAccessTypeEnum.php | 0 .../V1/TeamAccessTypeEnum/TeamAccessType.php | 2 - .../src}/V1/TeamStatusEnum.php | 0 .../src}/V1/TeamStatusEnum/TeamStatus.php | 2 - AdsAdManager/src/V1/TechnologyTargeting.php | 220 +++ .../src}/V1/UpdateContactRequest.php | 0 .../src}/V1/UpdateCustomFieldRequest.php | 0 .../src}/V1/UpdatePlacementRequest.php | 0 .../src}/V1/UpdateSiteRequest.php | 0 .../src}/V1/UpdateTeamRequest.php | 0 .../src}/V1/WebProperty.php | 0 AdsAdManager/src/V1/gapic_metadata.json | 511 +++++++ ...eview_center_ad_service_client_config.json | 0 ...ew_center_ad_service_descriptor_config.php | 0 ...w_center_ad_service_rest_client_config.php | 0 .../application_service_client_config.json | 0 .../application_service_descriptor_config.php | 0 ...application_service_rest_client_config.php | 0 ...udience_segment_service_client_config.json | 0 ...ence_segment_service_descriptor_config.php | 0 ...nce_segment_service_rest_client_config.php | 0 ...rowser_language_service_client_config.json | 0 ...ser_language_service_descriptor_config.php | 0 ...er_language_service_rest_client_config.php | 0 .../browser_service_client_config.json | 0 .../browser_service_descriptor_config.php | 0 .../browser_service_rest_client_config.php | 0 ...ms_metadata_key_service_client_config.json | 0 ...metadata_key_service_descriptor_config.php | 0 ...etadata_key_service_rest_client_config.php | 0 ..._metadata_value_service_client_config.json | 0 ...tadata_value_service_descriptor_config.php | 0 ...adata_value_service_rest_client_config.php | 0 .../contact_service_client_config.json | 0 .../contact_service_descriptor_config.php | 0 .../contact_service_rest_client_config.php | 0 .../content_bundle_service_client_config.json | 0 ...ntent_bundle_service_descriptor_config.php | 0 ...tent_bundle_service_rest_client_config.php | 0 .../content_label_service_client_config.json | 0 ...ontent_label_service_descriptor_config.php | 0 ...ntent_label_service_rest_client_config.php | 0 .../content_service_client_config.json | 0 .../content_service_descriptor_config.php | 0 .../content_service_rest_client_config.php | 0 ...eative_template_service_client_config.json | 0 ...ive_template_service_descriptor_config.php | 0 ...ve_template_service_rest_client_config.php | 0 .../custom_field_service_client_config.json | 30 + ...custom_field_service_descriptor_config.php | 73 + ...ustom_field_service_rest_client_config.php | 76 + ...vice_capability_service_client_config.json | 0 ...e_capability_service_descriptor_config.php | 0 ..._capability_service_rest_client_config.php | 0 ...ce_manufacturer_service_client_config.json | 0 ...manufacturer_service_descriptor_config.php | 0 ...anufacturer_service_rest_client_config.php | 0 .../mobile_carrier_service_client_config.json | 0 ...bile_carrier_service_descriptor_config.php | 0 ...ile_carrier_service_rest_client_config.php | 0 .../mobile_device_service_client_config.json | 0 ...obile_device_service_descriptor_config.php | 0 ...bile_device_service_rest_client_config.php | 0 ...device_submodel_service_client_config.json | 0 ...ice_submodel_service_descriptor_config.php | 0 ...ce_submodel_service_rest_client_config.php | 0 .../placement_service_client_config.json | 35 + .../placement_service_descriptor_config.php | 86 ++ .../placement_service_rest_client_config.php | 88 ++ ...auction_deal_service_descriptor_config.php | 12 + .../resources/site_service_client_config.json | 0 .../site_service_descriptor_config.php | 0 .../site_service_rest_client_config.php | 0 .../resources/team_service_client_config.json | 0 .../team_service_descriptor_config.php | 0 .../team_service_rest_client_config.php | 0 .../AdReviewCenterAdServiceClientTest.php | 96 +- .../Client/ApplicationServiceClientTest.php | 53 +- .../AudienceSegmentServiceClientTest.php | 53 +- .../BrowserLanguageServiceClientTest.php | 53 +- .../V1/Client/BrowserServiceClientTest.php | 53 +- .../CmsMetadataKeyServiceClientTest.php | 53 +- .../CmsMetadataValueServiceClientTest.php | 53 +- .../V1/Client/ContactServiceClientTest.php | 146 +- .../Client/ContentBundleServiceClientTest.php | 53 +- .../Client/ContentLabelServiceClientTest.php | 53 +- .../V1/Client/ContentServiceClientTest.php | 53 +- .../CreativeTemplateServiceClientTest.php | 53 +- .../Client/CustomFieldServiceClientTest.php | 477 +++++- .../DeviceCapabilityServiceClientTest.php | 53 +- .../DeviceManufacturerServiceClientTest.php | 58 +- .../Client/MobileCarrierServiceClientTest.php | 53 +- .../Client/MobileDeviceServiceClientTest.php | 53 +- .../MobileDeviceSubmodelServiceClientTest.php | 68 +- .../V1/Client/PlacementServiceClientTest.php | 521 ++++++- .../V1/Client/ReportServiceClientTest.php | 4 +- .../Unit/V1/Client/SiteServiceClientTest.php | 192 ++- .../Unit/V1/Client/TeamServiceClientTest.php | 212 ++- .../Ads/Admanager/V1/AdBreakMessages.php | Bin 2104 -> 0 bytes .../Ads/Admanager/V1/AdBreakService.php | 68 - .../Google/Ads/Admanager/V1/AdUnitEnums.php | Bin 1144 -> 0 bytes .../Ads/Admanager/V1/AdUnitMessages.php | Bin 4287 -> 0 bytes .../Google/Ads/Admanager/V1/AdUnitService.php | 67 - .../Ads/Admanager/V1/AdmanagerError.php | 37 - .../Google/Ads/Admanager/V1/AppliedLabel.php | 33 - .../Admanager/V1/BandwidthGroupMessages.php | Bin 1258 -> 0 bytes .../Admanager/V1/BandwidthGroupService.php | 53 - .../Google/Ads/Admanager/V1/CompanyEnums.php | Bin 1135 -> 0 bytes .../Ads/Admanager/V1/CompanyMessages.php | Bin 2328 -> 0 bytes .../Ads/Admanager/V1/CompanyService.php | 53 - .../Ads/Admanager/V1/ContactMessages.php | Bin 1715 -> 0 bytes .../Ads/Admanager/V1/CustomFieldEnums.php | Bin 1417 -> 0 bytes .../Ads/Admanager/V1/CustomFieldMessages.php | Bin 2031 -> 0 bytes .../Ads/Admanager/V1/CustomFieldService.php | 90 -- .../Ads/Admanager/V1/CustomFieldValue.php | Bin 1281 -> 0 bytes .../Admanager/V1/CustomTargetingKeyEnums.php | Bin 1314 -> 0 bytes .../V1/CustomTargetingKeyMessages.php | Bin 1897 -> 0 bytes .../V1/CustomTargetingKeyService.php | 53 - .../V1/CustomTargetingValueEnums.php | Bin 1229 -> 0 bytes .../V1/CustomTargetingValueMessages.php | Bin 1845 -> 0 bytes .../V1/CustomTargetingValueService.php | 52 - .../V1/DealBuyerPermissionTypeEnum.php | Bin 1036 -> 0 bytes .../Admanager/V1/DeviceCategoryMessages.php | Bin 1246 -> 0 bytes .../Admanager/V1/DeviceCategoryService.php | 53 - .../V1/EarlyAdBreakNotificationEnums.php | Bin 1021 -> 0 bytes .../V1/EntitySignalsMappingMessages.php | Bin 1475 -> 0 bytes .../V1/EntitySignalsMappingService.php | 76 - .../Ads/Admanager/V1/EnvironmentTypeEnum.php | Bin 971 -> 0 bytes .../Google/Ads/Admanager/V1/FrequencyCap.php | Bin 1100 -> 0 bytes .../Ads/Admanager/V1/GeoTargetMessages.php | Bin 1439 -> 0 bytes .../Ads/Admanager/V1/GeoTargetService.php | 52 - .../Google/Ads/Admanager/V1/LabelMessages.php | 32 - .../Admanager/V1/LiveStreamEventMessages.php | 32 - .../Ads/Admanager/V1/NetworkMessages.php | 44 - .../Ads/Admanager/V1/NetworkService.php | 42 - .../Admanager/V1/OperatingSystemMessages.php | Bin 1253 -> 0 bytes .../Admanager/V1/OperatingSystemService.php | 53 - .../V1/OperatingSystemVersionMessages.php | Bin 1430 -> 0 bytes .../V1/OperatingSystemVersionService.php | 52 - .../Google/Ads/Admanager/V1/OrderEnums.php | Bin 995 -> 0 bytes .../Google/Ads/Admanager/V1/OrderMessages.php | Bin 3357 -> 0 bytes .../Google/Ads/Admanager/V1/OrderService.php | 53 - .../Ads/Admanager/V1/PlacementEnums.php | Bin 958 -> 0 bytes .../Ads/Admanager/V1/PlacementMessages.php | Bin 1757 -> 0 bytes .../Ads/Admanager/V1/PlacementService.php | 100 -- .../V1/PrivateAuctionDealMessages.php | Bin 3178 -> 0 bytes .../V1/PrivateAuctionDealService.php | 62 - .../Admanager/V1/PrivateAuctionMessages.php | Bin 1705 -> 0 bytes .../Admanager/V1/PrivateAuctionService.php | 62 - .../Admanager/V1/PrivateMarketplaceEnums.php | Bin 1075 -> 0 bytes .../V1/ProgrammaticBuyerMessages.php | Bin 1643 -> 0 bytes .../Admanager/V1/ProgrammaticBuyerService.php | 53 - .../Ads/Admanager/V1/ReportMessages.php | Bin 3786 -> 0 bytes .../Google/Ads/Admanager/V1/ReportService.php | 89 -- .../Ads/Admanager/V1/RequestPlatformEnum.php | Bin 987 -> 0 bytes .../Google/Ads/Admanager/V1/RoleEnums.php | Bin 909 -> 0 bytes .../Google/Ads/Admanager/V1/RoleMessages.php | Bin 1455 -> 0 bytes .../Google/Ads/Admanager/V1/RoleService.php | 52 - .../Google/Ads/Admanager/V1/Size.php | 33 - .../Google/Ads/Admanager/V1/SizeTypeEnum.php | Bin 987 -> 0 bytes .../V1/TargetedVideoBumperTypeEnum.php | Bin 1026 -> 0 bytes .../Google/Ads/Admanager/V1/Targeting.php | Bin 7967 -> 0 bytes .../Admanager/V1/TaxonomyCategoryMessages.php | Bin 1749 -> 0 bytes .../Admanager/V1/TaxonomyCategoryService.php | 53 - .../Ads/Admanager/V1/TaxonomyTypeEnum.php | Bin 1114 -> 0 bytes .../Google/Ads/Admanager/V1/TeamMessages.php | Bin 1612 -> 0 bytes .../Google/Ads/Admanager/V1/TimeUnitEnum.php | Bin 979 -> 0 bytes .../Google/Ads/Admanager/V1/UserMessages.php | Bin 1493 -> 0 bytes .../Google/Ads/Admanager/V1/UserService.php | 37 - .../Ads/Admanager/V1/VideoPositionEnum.php | Bin 975 -> 0 bytes .../src/Google/Ads/AdManager/V1/AdBreak.php | 679 --------- .../Ads/AdManager/V1/AdBreakStateEnum.php | 34 - .../V1/AdBreakStateEnum/AdBreakState.php | 74 - .../Ads/AdManager/V1/AdManagerError.php | 241 --- .../src/Google/Ads/AdManager/V1/AdUnit.php | 1180 --------------- .../Google/Ads/AdManager/V1/AdUnitParent.php | 173 --- .../Google/Ads/AdManager/V1/AdUnitSize.php | 163 -- .../Ads/AdManager/V1/AdUnitStatusEnum.php | 34 - .../V1/AdUnitStatusEnum/AdUnitStatus.php | 71 - .../Ads/AdManager/V1/AdUnitTargeting.php | 121 -- .../Google/Ads/AdManager/V1/AppliedLabel.php | 105 -- .../Ads/AdManager/V1/BandwidthGroup.php | 126 -- .../Ads/AdManager/V1/BandwidthTargeting.php | 112 -- ...atchCreateEntitySignalsMappingsRequest.php | 132 -- ...tchCreateEntitySignalsMappingsResponse.php | 67 - ...atchUpdateEntitySignalsMappingsRequest.php | 132 -- ...tchUpdateEntitySignalsMappingsResponse.php | 67 - .../src/Google/Ads/AdManager/V1/Company.php | 759 ---------- .../AdManager/V1/CompanyCreditStatusEnum.php | 34 - .../CompanyCreditStatus.php | 119 -- .../Ads/AdManager/V1/CompanyTypeEnum.php | 34 - .../V1/CompanyTypeEnum/CompanyType.php | 86 -- .../src/Google/Ads/AdManager/V1/Contact.php | 550 ------- .../Ads/AdManager/V1/CreateAdBreakRequest.php | 148 -- .../V1/CreateEntitySignalsMappingRequest.php | 132 -- .../V1/CreatePrivateAuctionDealRequest.php | 132 -- .../V1/CreatePrivateAuctionRequest.php | 132 -- .../Ads/AdManager/V1/CreateReportRequest.php | 132 -- .../Google/Ads/AdManager/V1/CustomField.php | 425 ------ .../AdManager/V1/CustomFieldDataTypeEnum.php | 34 - .../CustomFieldDataType.php | 79 - .../V1/CustomFieldEntityTypeEnum.php | 34 - .../CustomFieldEntityType.php | 85 -- .../Ads/AdManager/V1/CustomFieldOption.php | 105 -- .../AdManager/V1/CustomFieldStatusEnum.php | 34 - .../CustomFieldStatus.php | 64 - .../Ads/AdManager/V1/CustomFieldValue.php | 115 -- .../AdManager/V1/CustomFieldValue/Value.php | 177 --- .../V1/CustomFieldVisibilityEnum.php | 34 - .../CustomFieldVisibility.php | 72 - .../Ads/AdManager/V1/CustomTargeting.php | 68 - .../AdManager/V1/CustomTargetingClause.php | 135 -- .../Ads/AdManager/V1/CustomTargetingKey.php | 355 ----- .../CustomTargetingKeyReportableTypeEnum.php | 34 - .../CustomTargetingKeyReportableType.php | 71 - .../V1/CustomTargetingKeyStatusEnum.php | 34 - .../CustomTargetingKeyStatus.php | 64 - .../V1/CustomTargetingKeyTypeEnum.php | 34 - .../CustomTargetingKeyType.php | 64 - .../AdManager/V1/CustomTargetingLiteral.php | 159 -- .../Ads/AdManager/V1/CustomTargetingValue.php | 323 ---- .../V1/CustomTargetingValueMatchTypeEnum.php | 34 - .../CustomTargetingValueMatchType.php | 113 -- .../V1/CustomTargetingValueStatusEnum.php | 34 - .../CustomTargetingValueStatus.php | 64 - .../Ads/AdManager/V1/DataSegmentTargeting.php | 67 - .../V1/DealBuyerPermissionTypeEnum.php | 34 - .../DealBuyerPermissionType.php | 64 - .../Ads/AdManager/V1/DeleteAdBreakRequest.php | 92 -- .../Ads/AdManager/V1/DeviceCategory.php | 115 -- .../AdManager/V1/DeviceCategoryTargeting.php | 105 -- .../Ads/AdManager/V1/EntitySignalsMapping.php | 265 ---- .../Ads/AdManager/V1/EnvironmentTypeEnum.php | 34 - .../EnvironmentTypeEnum/EnvironmentType.php | 64 - .../V1/FetchReportResultRowsRequest.php | 174 --- .../V1/FetchReportResultRowsResponse.php | 283 ---- .../Google/Ads/AdManager/V1/FrequencyCap.php | 165 -- .../src/Google/Ads/AdManager/V1/GeoTarget.php | 345 ----- .../Google/Ads/AdManager/V1/GeoTargeting.php | 101 -- .../Ads/AdManager/V1/GetAdBreakRequest.php | 102 -- .../Ads/AdManager/V1/GetAdUnitRequest.php | 86 -- .../AdManager/V1/GetBandwidthGroupRequest.php | 86 -- .../Ads/AdManager/V1/GetCompanyRequest.php | 86 -- .../AdManager/V1/GetCustomFieldRequest.php | 86 -- .../V1/GetCustomTargetingKeyRequest.php | 91 -- .../V1/GetCustomTargetingValueRequest.php | 91 -- .../AdManager/V1/GetDeviceCategoryRequest.php | 86 -- .../V1/GetEntitySignalsMappingRequest.php | 91 -- .../Ads/AdManager/V1/GetGeoTargetRequest.php | 86 -- .../Ads/AdManager/V1/GetNetworkRequest.php | 86 -- .../V1/GetOperatingSystemRequest.php | 86 -- .../V1/GetOperatingSystemVersionRequest.php | 91 -- .../Ads/AdManager/V1/GetOrderRequest.php | 86 -- .../Ads/AdManager/V1/GetPlacementRequest.php | 86 -- .../V1/GetPrivateAuctionDealRequest.php | 91 -- .../AdManager/V1/GetPrivateAuctionRequest.php | 91 -- .../V1/GetProgrammaticBuyerRequest.php | 91 -- .../Ads/AdManager/V1/GetReportRequest.php | 86 -- .../Ads/AdManager/V1/GetRoleRequest.php | 86 -- .../V1/GetTaxonomyCategoryRequest.php | 86 -- .../Ads/AdManager/V1/GetUserRequest.php | 86 -- .../Ads/AdManager/V1/InventoryTargeting.php | 153 -- .../src/Google/Ads/AdManager/V1/Label.php | 71 - .../Ads/AdManager/V1/LabelFrequencyCap.php | 125 -- .../Ads/AdManager/V1/ListAdBreaksRequest.php | 307 ---- .../Ads/AdManager/V1/ListAdBreaksResponse.php | 176 --- .../AdManager/V1/ListAdUnitSizesRequest.php | 296 ---- .../AdManager/V1/ListAdUnitSizesResponse.php | 171 --- .../Ads/AdManager/V1/ListAdUnitsRequest.php | 296 ---- .../Ads/AdManager/V1/ListAdUnitsResponse.php | 171 --- .../V1/ListBandwidthGroupsRequest.php | 296 ---- .../V1/ListBandwidthGroupsResponse.php | 172 --- .../Ads/AdManager/V1/ListCompaniesRequest.php | 296 ---- .../AdManager/V1/ListCompaniesResponse.php | 172 --- .../AdManager/V1/ListCustomFieldsRequest.php | 296 ---- .../AdManager/V1/ListCustomFieldsResponse.php | 172 --- .../V1/ListCustomTargetingKeysRequest.php | 296 ---- .../V1/ListCustomTargetingKeysResponse.php | 172 --- .../V1/ListCustomTargetingValuesRequest.php | 309 ---- .../V1/ListCustomTargetingValuesResponse.php | 172 --- .../V1/ListDeviceCategoriesRequest.php | 296 ---- .../V1/ListDeviceCategoriesResponse.php | 172 --- .../V1/ListEntitySignalsMappingsRequest.php | 304 ---- .../V1/ListEntitySignalsMappingsResponse.php | 172 --- .../AdManager/V1/ListGeoTargetsRequest.php | 296 ---- .../AdManager/V1/ListGeoTargetsResponse.php | 172 --- .../Ads/AdManager/V1/ListNetworksRequest.php | 33 - .../Ads/AdManager/V1/ListNetworksResponse.php | 67 - .../V1/ListOperatingSystemVersionsRequest.php | 304 ---- .../ListOperatingSystemVersionsResponse.php | 172 --- .../V1/ListOperatingSystemsRequest.php | 296 ---- .../V1/ListOperatingSystemsResponse.php | 172 --- .../Ads/AdManager/V1/ListOrdersRequest.php | 296 ---- .../Ads/AdManager/V1/ListOrdersResponse.php | 172 --- .../AdManager/V1/ListPlacementsRequest.php | 296 ---- .../AdManager/V1/ListPlacementsResponse.php | 172 --- .../V1/ListPrivateAuctionDealsRequest.php | 305 ---- .../V1/ListPrivateAuctionDealsResponse.php | 172 --- .../V1/ListPrivateAuctionsRequest.php | 300 ---- .../V1/ListPrivateAuctionsResponse.php | 172 --- .../V1/ListProgrammaticBuyersRequest.php | 296 ---- .../V1/ListProgrammaticBuyersResponse.php | 172 --- .../Ads/AdManager/V1/ListReportsRequest.php | 296 ---- .../Ads/AdManager/V1/ListReportsResponse.php | 172 --- .../Ads/AdManager/V1/ListRolesRequest.php | 296 ---- .../Ads/AdManager/V1/ListRolesResponse.php | 171 --- .../V1/ListTaxonomyCategoriesRequest.php | 296 ---- .../V1/ListTaxonomyCategoriesResponse.php | 172 --- .../Ads/AdManager/V1/LiveStreamEvent.php | 76 - .../src/Google/Ads/AdManager/V1/Network.php | 393 ----- .../Ads/AdManager/V1/OperatingSystem.php | 115 -- .../AdManager/V1/OperatingSystemTargeting.php | 185 --- .../AdManager/V1/OperatingSystemVersion.php | 207 --- .../src/Google/Ads/AdManager/V1/Order.php | 1325 ----------------- .../Ads/AdManager/V1/OrderStatusEnum.php | 34 - .../V1/OrderStatusEnum/OrderStatus.php | 102 -- .../src/Google/Ads/AdManager/V1/Placement.php | 375 ----- .../Ads/AdManager/V1/PlacementStatusEnum.php | 34 - .../PlacementStatusEnum/PlacementStatus.php | 71 - .../Ads/AdManager/V1/PrivateAuction.php | 385 ----- .../Ads/AdManager/V1/PrivateAuctionDeal.php | 785 ---------- .../V1/PrivateAuctionDeal/BuyerData.php | 70 - .../V1/PrivateMarketplaceDealStatusEnum.php | 34 - .../PrivateMarketplaceDealStatus.php | 85 -- .../Ads/AdManager/V1/ProgrammaticBuyer.php | 395 ----- .../src/Google/Ads/AdManager/V1/Report.php | 391 ----- .../Ads/AdManager/V1/Report/Visibility.php | 67 - .../Ads/AdManager/V1/ReportDefinition.php | 701 --------- .../Ads/AdManager/V1/RequestPlatformEnum.php | 37 - .../RequestPlatformEnum/RequestPlatform.php | 72 - .../AdManager/V1/RequestPlatformTargeting.php | 67 - .../src/Google/Ads/AdManager/V1/Role.php | 291 ---- .../Ads/AdManager/V1/RoleStatusEnum.php | 34 - .../V1/RoleStatusEnum/RoleStatus.php | 64 - .../Ads/AdManager/V1/RunReportMetadata.php | 105 -- .../Ads/AdManager/V1/RunReportRequest.php | 86 -- .../Ads/AdManager/V1/RunReportResponse.php | 71 - .../Ads/AdManager/V1/ScheduleOptions.php | 149 -- .../V1/ScheduleOptions/DeliveryCondition.php | 64 - .../src/Google/Ads/AdManager/V1/Size.php | 147 -- .../Google/Ads/AdManager/V1/SizeTypeEnum.php | 34 - .../AdManager/V1/SizeTypeEnum/SizeType.php | 105 -- .../Ads/AdManager/V1/SmartSizeModeEnum.php | 34 - .../V1/SmartSizeModeEnum/SmartSizeMode.php | 72 - .../Ads/AdManager/V1/TargetWindowEnum.php | 34 - .../V1/TargetWindowEnum/TargetWindow.php | 65 - .../V1/TargetedVideoBumperTypeEnum.php | 34 - .../TargetedVideoBumperType.php | 67 - .../src/Google/Ads/AdManager/V1/Targeting.php | 477 ------ .../Ads/AdManager/V1/TaxonomyCategory.php | 367 ----- .../Ads/AdManager/V1/TaxonomyTypeEnum.php | 34 - .../V1/TaxonomyTypeEnum/TaxonomyType.php | 93 -- .../src/Google/Ads/AdManager/V1/Team.php | 363 ----- .../Ads/AdManager/V1/TechnologyTargeting.php | 386 ----- .../Google/Ads/AdManager/V1/TimeUnitEnum.php | 33 - .../AdManager/V1/TimeUnitEnum/TimeUnit.php | 107 -- .../Ads/AdManager/V1/UpdateAdBreakRequest.php | 142 -- .../V1/UpdateEntitySignalsMappingRequest.php | 157 -- .../V1/UpdatePrivateAuctionDealRequest.php | 147 -- .../V1/UpdatePrivateAuctionRequest.php | 147 -- .../Ads/AdManager/V1/UpdateReportRequest.php | 136 -- .../src/Google/Ads/AdManager/V1/User.php | 459 ------ .../Ads/AdManager/V1/UserDomainTargeting.php | 101 -- .../Google/Ads/AdManager/V1/VideoPosition.php | 293 ---- .../Ads/AdManager/V1/VideoPositionEnum.php | 34 - .../V1/VideoPositionEnum/VideoPosition.php | 78 - .../AdManager/V1/VideoPositionTargeting.php | 71 - .../AdBreakServiceClient/create_ad_break.php | 106 -- .../AdBreakServiceClient/delete_ad_break.php | 80 - .../V1/AdBreakServiceClient/get_ad_break.php | 79 - .../AdBreakServiceClient/list_ad_breaks.php | 85 -- .../AdBreakServiceClient/update_ad_break.php | 68 - .../V1/AdUnitServiceClient/get_ad_unit.php | 72 - .../list_ad_unit_sizes.php | 75 - .../V1/AdUnitServiceClient/list_ad_units.php | 75 - .../get_bandwidth_group.php | 75 - .../list_bandwidth_groups.php | 75 - .../V1/CompanyServiceClient/get_company.php | 72 - .../CompanyServiceClient/list_companies.php | 75 - .../get_custom_field.php | 72 - .../list_custom_fields.php | 75 - .../get_custom_targeting_key.php | 76 - .../list_custom_targeting_keys.php | 75 - .../get_custom_targeting_value.php | 76 - .../list_custom_targeting_values.php | 76 - .../get_device_category.php | 75 - .../list_device_categories.php | 75 - .../batch_create_entity_signals_mappings.php | 87 -- .../batch_update_entity_signals_mappings.php | 83 -- .../create_entity_signals_mapping.php | 74 - .../get_entity_signals_mapping.php | 76 - .../list_entity_signals_mappings.php | 75 - .../update_entity_signals_mapping.php | 62 - .../GeoTargetServiceClient/get_geo_target.php | 72 - .../list_geo_targets.php | 75 - .../V1/NetworkServiceClient/get_network.php | 72 - .../V1/NetworkServiceClient/list_networks.php | 57 - .../get_operating_system.php | 75 - .../list_operating_systems.php | 75 - .../get_operating_system_version.php | 76 - .../list_operating_system_versions.php | 75 - .../V1/OrderServiceClient/get_order.php | 72 - .../V1/OrderServiceClient/list_orders.php | 80 - .../PlacementServiceClient/get_placement.php | 72 - .../list_placements.php | 75 - .../create_private_auction_deal.php | 77 - .../get_private_auction_deal.php | 76 - .../list_private_auction_deals.php | 76 - .../update_private_auction_deal.php | 65 - .../create_private_auction.php | 80 - .../get_private_auction.php | 76 - .../list_private_auctions.php | 75 - .../update_private_auction.php | 76 - .../get_programmatic_buyer.php | 76 - .../list_programmatic_buyers.php | 75 - .../V1/ReportServiceClient/create_report.php | 105 -- .../fetch_report_result_rows.php | 60 - .../V1/ReportServiceClient/get_report.php | 72 - .../V1/ReportServiceClient/list_reports.php | 75 - .../V1/ReportServiceClient/run_report.php | 91 -- .../V1/ReportServiceClient/update_report.php | 101 -- .../samples/V1/RoleServiceClient/get_role.php | 72 - .../V1/RoleServiceClient/list_roles.php | 75 - .../get_taxonomy_category.php | 75 - .../list_taxonomy_categories.php | 75 - .../samples/V1/UserServiceClient/get_user.php | 75 - .../v1/src/V1/Client/AdBreakServiceClient.php | 435 ------ .../v1/src/V1/Client/AdUnitServiceClient.php | 337 ----- .../V1/Client/BandwidthGroupServiceClient.php | 311 ---- .../v1/src/V1/Client/CompanyServiceClient.php | 309 ---- .../V1/Client/CustomFieldServiceClient.php | 485 ------ .../CustomTargetingKeyServiceClient.php | 311 ---- .../CustomTargetingValueServiceClient.php | 311 ---- .../V1/Client/DeviceCategoryServiceClient.php | 311 ---- .../EntitySignalsMappingServiceClient.php | 431 ------ .../src/V1/Client/GeoTargetServiceClient.php | 309 ---- .../v1/src/V1/Client/NetworkServiceClient.php | 291 ---- .../Client/OperatingSystemServiceClient.php | 311 ---- .../OperatingSystemVersionServiceClient.php | 311 ---- .../v1/src/V1/Client/OrderServiceClient.php | 314 ---- .../src/V1/Client/PlacementServiceClient.php | 533 ------- .../PrivateAuctionDealServiceClient.php | 747 ---------- .../V1/Client/PrivateAuctionServiceClient.php | 387 ----- .../Client/ProgrammaticBuyerServiceClient.php | 311 ---- .../v1/src/V1/Client/ReportServiceClient.php | 487 ------ .../v1/src/V1/Client/RoleServiceClient.php | 309 ---- .../Client/TaxonomyCategoryServiceClient.php | 311 ---- .../v1/src/V1/Client/UserServiceClient.php | 267 ---- .../v1/src/V1/gapic_metadata.json | 1013 ------------- .../ad_break_service_client_config.json | 47 - .../ad_break_service_descriptor_config.php | 101 -- .../ad_break_service_rest_client_config.php | 135 -- .../ad_unit_service_client_config.json | 37 - .../ad_unit_service_descriptor_config.php | 84 -- .../ad_unit_service_rest_client_config.php | 75 - ...bandwidth_group_service_client_config.json | 32 - ...dwidth_group_service_descriptor_config.php | 64 - ...width_group_service_rest_client_config.php | 64 - .../company_service_client_config.json | 32 - .../company_service_descriptor_config.php | 64 - .../company_service_rest_client_config.php | 64 - .../custom_field_service_client_config.json | 62 - ...custom_field_service_descriptor_config.php | 137 -- ...ustom_field_service_rest_client_config.php | 140 -- ...m_targeting_key_service_client_config.json | 32 - ...argeting_key_service_descriptor_config.php | 64 - ...rgeting_key_service_rest_client_config.php | 64 - ...targeting_value_service_client_config.json | 32 - ...geting_value_service_descriptor_config.php | 64 - ...eting_value_service_rest_client_config.php | 76 - ...device_category_service_client_config.json | 32 - ...ice_category_service_descriptor_config.php | 64 - ...ce_category_service_rest_client_config.php | 64 - ...signals_mapping_service_client_config.json | 52 - ...nals_mapping_service_descriptor_config.php | 113 -- ...als_mapping_service_rest_client_config.php | 116 -- .../geo_target_service_client_config.json | 32 - .../geo_target_service_descriptor_config.php | 64 - .../geo_target_service_rest_client_config.php | 64 - .../network_service_client_config.json | 32 - .../network_service_descriptor_config.php | 47 - .../network_service_rest_client_config.php | 57 - ...perating_system_service_client_config.json | 32 - ...ating_system_service_descriptor_config.php | 64 - ...ting_system_service_rest_client_config.php | 64 - ..._system_version_service_client_config.json | 32 - ...stem_version_service_descriptor_config.php | 64 - ...tem_version_service_rest_client_config.php | 64 - .../order_service_client_config.json | 44 - .../order_service_descriptor_config.php | 64 - .../order_service_rest_client_config.php | 64 - .../placement_service_client_config.json | 67 - .../placement_service_descriptor_config.php | 150 -- .../placement_service_rest_client_config.php | 152 -- ...te_auction_deal_service_client_config.json | 42 - ...auction_deal_service_descriptor_config.php | 110 -- ...uction_deal_service_rest_client_config.php | 92 -- ...private_auction_service_client_config.json | 42 - ...vate_auction_service_descriptor_config.php | 90 -- ...ate_auction_service_rest_client_config.php | 92 -- ...grammatic_buyer_service_client_config.json | 32 - ...mmatic_buyer_service_descriptor_config.php | 64 - ...matic_buyer_service_rest_client_config.php | 64 - .../report_service_client_config.json | 52 - .../report_service_descriptor_config.php | 120 -- .../report_service_rest_client_config.php | 115 -- .../resources/role_service_client_config.json | 32 - .../role_service_descriptor_config.php | 64 - .../role_service_rest_client_config.php | 64 - ...xonomy_category_service_client_config.json | 32 - ...omy_category_service_descriptor_config.php | 64 - ...my_category_service_rest_client_config.php | 64 - .../resources/user_service_client_config.json | 27 - .../user_service_descriptor_config.php | 43 - .../user_service_rest_client_config.php | 53 - .../V1/Client/AdBreakServiceClientTest.php | 508 ------- .../V1/Client/AdUnitServiceClientTest.php | 348 ----- .../BandwidthGroupServiceClientTest.php | 235 --- .../V1/Client/CompanyServiceClientTest.php | 271 ---- .../Client/CustomFieldServiceClientTest.php | 719 --------- .../CustomTargetingKeyServiceClientTest.php | 243 --- .../CustomTargetingValueServiceClientTest.php | 243 --- .../DeviceCategoryServiceClientTest.php | 235 --- .../EntitySignalsMappingServiceClientTest.php | 528 ------- .../V1/Client/GeoTargetServiceClientTest.php | 251 ---- .../V1/Client/NetworkServiceClientTest.php | 243 --- .../OperatingSystemServiceClientTest.php | 235 --- ...peratingSystemVersionServiceClientTest.php | 243 --- .../Unit/V1/Client/OrderServiceClientTest.php | 291 ---- .../V1/Client/PlacementServiceClientTest.php | 772 ---------- .../PrivateAuctionDealServiceClientTest.php | 445 ------ .../PrivateAuctionServiceClientTest.php | 420 ------ .../ProgrammaticBuyerServiceClientTest.php | 259 ---- .../V1/Client/ReportServiceClientTest.php | 644 -------- .../Unit/V1/Client/RoleServiceClientTest.php | 247 --- .../TaxonomyCategoryServiceClientTest.php | 247 --- .../Unit/V1/Client/UserServiceClientTest.php | 187 --- 953 files changed, 5528 insertions(+), 63001 deletions(-) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/AdReviewCenterAdEnums.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/AdReviewCenterAdMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/AdReviewCenterAdService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ApplicationMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ApplicationService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/AudienceSegmentMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/AudienceSegmentService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/BrowserLanguageMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/BrowserLanguageService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/BrowserMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/BrowserService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/CmsMetadataKeyEnums.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/CmsMetadataKeyMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/CmsMetadataKeyService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/CmsMetadataValueEnums.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/CmsMetadataValueMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/CmsMetadataValueService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ContactEnums.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ContactService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ContentBundleMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ContentBundleService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ContentLabelMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ContentLabelService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ContentMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ContentService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/CreativeTemplateEnums.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/CreativeTemplateMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/CreativeTemplateService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/CreativeTemplateVariableUrlTypeEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/DeviceCapabilityMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/DeviceCapabilityService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/DeviceManufacturerMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/DeviceManufacturerService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ExchangeSyndicationProductEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/MobileCarrierMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/MobileCarrierService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/MobileDeviceMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/MobileDeviceService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/MobileDeviceSubmodelMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/MobileDeviceSubmodelService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ReportDefinition.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/ReportValue.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/SiteEnums.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/SiteMessages.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/SiteService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/TeamEnums.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/TeamService.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager => AdsAdManager/metadata}/V1/WebProperty.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/AdReviewCenterAdServiceClient/batch_allow_ad_review_center_ads.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/AdReviewCenterAdServiceClient/batch_block_ad_review_center_ads.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/AdReviewCenterAdServiceClient/search_ad_review_center_ads.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ApplicationServiceClient/get_application.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ApplicationServiceClient/list_applications.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/BrowserLanguageServiceClient/get_browser_language.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/BrowserLanguageServiceClient/list_browser_languages.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/BrowserServiceClient/get_browser.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/BrowserServiceClient/list_browsers.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CmsMetadataKeyServiceClient/get_cms_metadata_key.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CmsMetadataKeyServiceClient/list_cms_metadata_keys.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CmsMetadataValueServiceClient/get_cms_metadata_value.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CmsMetadataValueServiceClient/list_cms_metadata_values.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContactServiceClient/batch_create_contacts.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContactServiceClient/batch_update_contacts.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContactServiceClient/create_contact.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContactServiceClient/get_contact.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContactServiceClient/list_contacts.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContactServiceClient/update_contact.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContentBundleServiceClient/get_content_bundle.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContentBundleServiceClient/list_content_bundles.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContentLabelServiceClient/get_content_label.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContentLabelServiceClient/list_content_labels.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContentServiceClient/get_content.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/ContentServiceClient/list_content.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CreativeTemplateServiceClient/get_creative_template.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CreativeTemplateServiceClient/list_creative_templates.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CustomFieldServiceClient/create_custom_field.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/CustomFieldServiceClient/update_custom_field.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/DeviceCapabilityServiceClient/get_device_capability.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/DeviceCapabilityServiceClient/list_device_capabilities.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/DeviceManufacturerServiceClient/get_device_manufacturer.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/DeviceManufacturerServiceClient/list_device_manufacturers.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/MobileCarrierServiceClient/get_mobile_carrier.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/MobileCarrierServiceClient/list_mobile_carriers.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/MobileDeviceServiceClient/get_mobile_device.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/MobileDeviceServiceClient/list_mobile_devices.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/MobileDeviceSubmodelServiceClient/get_mobile_device_submodel.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/MobileDeviceSubmodelServiceClient/list_mobile_device_submodels.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/PlacementServiceClient/batch_activate_placements.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/PlacementServiceClient/batch_archive_placements.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/PlacementServiceClient/batch_create_placements.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/PlacementServiceClient/batch_deactivate_placements.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/PlacementServiceClient/batch_update_placements.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/PlacementServiceClient/create_placement.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/PlacementServiceClient/update_placement.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/SiteServiceClient/batch_create_sites.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/SiteServiceClient/batch_deactivate_sites.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/SiteServiceClient/batch_submit_sites_for_approval.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/SiteServiceClient/batch_update_sites.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/SiteServiceClient/create_site.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/SiteServiceClient/get_site.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/SiteServiceClient/list_sites.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/SiteServiceClient/update_site.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/TeamServiceClient/batch_activate_teams.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/TeamServiceClient/batch_create_teams.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/TeamServiceClient/batch_deactivate_teams.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/TeamServiceClient/batch_update_teams.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/TeamServiceClient/create_team.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/TeamServiceClient/get_team.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/TeamServiceClient/list_teams.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/samples/V1/TeamServiceClient/update_team.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/AdReviewCenterAd.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/AdReviewCenterAdStatusEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php (90%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/Application.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/AudienceSegment.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/AudienceSegmentTargeting.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchActivateCustomFieldsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchActivateCustomFieldsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchActivatePlacementsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchActivatePlacementsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchActivateTeamsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchActivateTeamsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchAdReviewCenterAdsOperationMetadata.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchAllowAdReviewCenterAdsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchAllowAdReviewCenterAdsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchArchivePlacementsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchArchivePlacementsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchBlockAdReviewCenterAdsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchBlockAdReviewCenterAdsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchCreateContactsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchCreateContactsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchCreateCustomFieldsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchCreateCustomFieldsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchCreatePlacementsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchCreatePlacementsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchCreateSitesRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchCreateSitesResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchCreateTeamsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchCreateTeamsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchDeactivateCustomFieldsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchDeactivateCustomFieldsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchDeactivatePlacementsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchDeactivatePlacementsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchDeactivateSitesRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchDeactivateSitesResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchDeactivateTeamsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchDeactivateTeamsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchSubmitSitesForApprovalRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchSubmitSitesForApprovalResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchUpdateContactsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchUpdateContactsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchUpdateCustomFieldsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchUpdateCustomFieldsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchUpdatePlacementsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchUpdatePlacementsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchUpdateSitesRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchUpdateSitesResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchUpdateTeamsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BatchUpdateTeamsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/Browser.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BrowserLanguage.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BrowserLanguageTargeting.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/BrowserTargeting.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/AdReviewCenterAdServiceClient.php (94%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/ApplicationServiceClient.php (98%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/AudienceSegmentServiceClient.php (97%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/BrowserLanguageServiceClient.php (97%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/BrowserServiceClient.php (98%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/CmsMetadataKeyServiceClient.php (98%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/CmsMetadataValueServiceClient.php (96%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/ContactServiceClient.php (97%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/ContentBundleServiceClient.php (98%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/ContentLabelServiceClient.php (98%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/ContentServiceClient.php (98%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/CreativeTemplateServiceClient.php (97%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/DeviceCapabilityServiceClient.php (96%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/DeviceManufacturerServiceClient.php (95%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/MobileCarrierServiceClient.php (98%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/MobileDeviceServiceClient.php (98%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/MobileDeviceSubmodelServiceClient.php (95%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/SiteServiceClient.php (96%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/Client/TeamServiceClient.php (96%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CmsMetadataKey.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CmsMetadataKeyStatusEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php (89%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CmsMetadataTargeting.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CmsMetadataValue.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CmsMetadataValueStatusEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php (90%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ContactStatusEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ContactStatusEnum/ContactStatus.php (93%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/Content.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ContentBundle.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ContentLabel.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ContentTargeting.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreateContactRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreateCustomFieldRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreatePlacementRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreateSiteRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreateTeamRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplate.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateStatusEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php (91%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateTypeEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php (89%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateVariable.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php (92%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php (89%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php (97%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php (95%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php (94%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php (94%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php (96%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateVariableUrlTypeEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php (90%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/DeviceCapability.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/DeviceCapabilityTargeting.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/DeviceManufacturer.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/DeviceManufacturerTargeting.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/DisapprovalReason.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ExchangeSyndicationProductEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php (90%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/FirstPartyMobileApplicationTargeting.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetApplicationRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetAudienceSegmentRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetBrowserLanguageRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetBrowserRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetCmsMetadataKeyRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetCmsMetadataValueRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetContactRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetContentBundleRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetContentLabelRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetContentRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetCreativeTemplateRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetDeviceCapabilityRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetDeviceManufacturerRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetMobileCarrierRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetMobileDeviceRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetMobileDeviceSubmodelRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetSiteRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/GetTeamRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListApplicationsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListApplicationsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListAudienceSegmentsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListAudienceSegmentsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListBrowserLanguagesRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListBrowserLanguagesResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListBrowsersRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListBrowsersResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListCmsMetadataKeysRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListCmsMetadataKeysResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListCmsMetadataValuesRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListCmsMetadataValuesResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListContactsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListContactsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListContentBundlesRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListContentBundlesResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListContentLabelsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListContentLabelsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListContentRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListContentResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListCreativeTemplatesRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListCreativeTemplatesResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListDeviceCapabilitiesRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListDeviceCapabilitiesResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListDeviceManufacturersRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListDeviceManufacturersResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListMobileCarriersRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListMobileCarriersResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListMobileDeviceSubmodelsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListMobileDeviceSubmodelsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListMobileDevicesRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListMobileDevicesResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListSitesRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListSitesResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListTeamsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ListTeamsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/MobileApplicationTargeting.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/MobileCarrier.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/MobileCarrierTargeting.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/MobileDevice.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/MobileDeviceSubmodel.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDataTable.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDataTable/MetricValueGroup.php (98%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDataTable/Row.php (97%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/DateRange.php (94%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/DateRange/FixedDateRange.php (94%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/DateRange/RelativeDateRange.php (98%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/Dimension.php (99%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/Field.php (94%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/Filter.php (96%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/Filter/FieldFilter.php (98%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/Filter/FilterList.php (92%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/Filter/Operation.php (95%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/Flag.php (96%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/Metric.php (99%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/MetricValueType.php (93%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/ReportType.php (91%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/Slice.php (95%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/Sort.php (98%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/TimePeriodColumn.php (92%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportDefinition/TimeZoneSource.php (92%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportValue.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportValue/DoubleList.php (90%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportValue/IntList.php (91%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ReportValue/StringList.php (90%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ScheduleOptions/Schedule.php (98%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ScheduleOptions/Schedule/Frequency.php (93%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ScheduleOptions/Schedule/MonthlySchedule.php (92%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/ScheduleOptions/Schedule/WeeklySchedule.php (91%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/SearchAdReviewCenterAdsRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/SearchAdReviewCenterAdsResponse.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/Site.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/SiteApprovalStatusEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php (92%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/SiteDisapprovalReasonEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php (90%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/TeamAccessTypeEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/TeamAccessTypeEnum/TeamAccessType.php (91%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/TeamStatusEnum.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/TeamStatusEnum/TeamStatus.php (90%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/UpdateContactRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/UpdateCustomFieldRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/UpdatePlacementRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/UpdateSiteRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/UpdateTeamRequest.php (100%) rename {owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager => AdsAdManager/src}/V1/WebProperty.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/ad_review_center_ad_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/ad_review_center_ad_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/ad_review_center_ad_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/application_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/application_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/application_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/audience_segment_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/audience_segment_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/audience_segment_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/browser_language_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/browser_language_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/browser_language_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/browser_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/browser_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/browser_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/cms_metadata_key_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/cms_metadata_key_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/cms_metadata_key_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/cms_metadata_value_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/cms_metadata_value_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/cms_metadata_value_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/contact_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/contact_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/contact_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/content_bundle_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/content_bundle_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/content_bundle_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/content_label_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/content_label_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/content_label_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/content_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/content_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/content_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/creative_template_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/creative_template_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/creative_template_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/device_capability_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/device_capability_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/device_capability_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/device_manufacturer_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/device_manufacturer_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/device_manufacturer_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/mobile_carrier_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/mobile_carrier_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/mobile_carrier_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/mobile_device_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/mobile_device_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/mobile_device_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/mobile_device_submodel_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/mobile_device_submodel_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/mobile_device_submodel_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/site_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/site_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/site_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/team_service_client_config.json (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/team_service_descriptor_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/src/V1/resources/team_service_rest_client_config.php (100%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php (89%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/ApplicationServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/BrowserServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/ContactServiceClientTest.php (87%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/ContentBundleServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/ContentLabelServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/ContentServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php (89%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php (86%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php (88%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php (83%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/SiteServiceClientTest.php (85%) rename {owl-bot-staging/AdsAdManager/v1 => AdsAdManager}/tests/Unit/V1/Client/TeamServiceClientTest.php (84%) delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitEnums.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyEnums.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldEnums.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldValue.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyEnums.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueEnums.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DealBuyerPermissionTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EarlyAdBreakNotificationEnums.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EnvironmentTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/FrequencyCap.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/GeoTargetMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/GeoTargetService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LiveStreamEventMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemVersionMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemVersionService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderEnums.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementEnums.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionDealMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionDealService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateMarketplaceEnums.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ProgrammaticBuyerMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ProgrammaticBuyerService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RequestPlatformEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleEnums.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SizeTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TargetedVideoBumperTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Targeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TimeUnitEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserMessages.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/VideoPositionEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreak.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum/AdBreakState.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthGroup.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateAdBreakRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionDealRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingClause.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingLiteral.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DataSegmentTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum/DealBuyerPermissionType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeleteAdBreakRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategory.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategoryTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTarget.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdBreakRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBandwidthGroupRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCategoryRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetGeoTargetRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemVersionRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionDealRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetProgrammaticBuyerRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/InventoryTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LiveStreamEvent.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystem.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemVersion.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuction.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal/BuyerData.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum/PrivateMarketplaceDealStatus.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ProgrammaticBuyer.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum/RequestPlatform.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum/TargetedVideoBumperType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Targeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TechnologyTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateAdBreakRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionDealRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UserDomainTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPosition.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum/VideoPosition.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionTargeting.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/create_ad_break.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/delete_ad_break.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/get_ad_break.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/list_ad_breaks.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/update_ad_break.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/get_bandwidth_group.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/list_bandwidth_groups.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/get_device_category.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/list_device_categories.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/get_geo_target.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/list_geo_targets.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/get_operating_system.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/list_operating_systems.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/get_operating_system_version.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/list_operating_system_versions.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/create_private_auction_deal.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/get_private_auction_deal.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/list_private_auction_deals.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/update_private_auction_deal.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/create_private_auction.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/get_private_auction.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/list_private_auctions.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/update_private_auction.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/get_programmatic_buyer.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/list_programmatic_buyers.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdBreakServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/BandwidthGroupServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCategoryServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/GeoTargetServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemVersionServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionDealServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/ProgrammaticBuyerServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdBreakServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BandwidthGroupServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCategoryServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/GeoTargetServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemVersionServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionDealServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ProgrammaticBuyerServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php delete mode 100644 owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdEnums.php b/AdsAdManager/metadata/V1/AdReviewCenterAdEnums.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdEnums.php rename to AdsAdManager/metadata/V1/AdReviewCenterAdEnums.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdMessages.php b/AdsAdManager/metadata/V1/AdReviewCenterAdMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdMessages.php rename to AdsAdManager/metadata/V1/AdReviewCenterAdMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdService.php b/AdsAdManager/metadata/V1/AdReviewCenterAdService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdReviewCenterAdService.php rename to AdsAdManager/metadata/V1/AdReviewCenterAdService.php diff --git a/AdsAdManager/metadata/V1/AdUnitMessages.php b/AdsAdManager/metadata/V1/AdUnitMessages.php index 95e89c3bd8dfacb4f73088341a0fa5478fecc996..489ff1c51ff9b18a703e0580befe47a184831a3d 100644 GIT binary patch delta 250 zcmZ3huwQY50Sn6!2`;_K_gN%1`>;Ib5ctN(#pRe1nwMD;oLQABWIEZN*MQxFp@Wf8 zC}DCTZ#1h1Bal7$46m`F6FV1cd@)d!lQ5THd}>}J1#Zfaghd`V?Ns?teDE*^+U z0f|LGQ6ZPfLVOPD5VPdCcv3Qp3vv=G)PYgUuI`o1D)l$?Cxb zvg;Ib5ID!k#pRe1nwMD;oLQABWH8yD*MLbVdU6?W z^yF*2#==Uij9fer1p$dgsd*(r_LHsn9GHY8CpYp*f~bXjk`hWCj9h{~iAkwBZbhku rrKx$zmClI;LZ*{>_)VFFY$ki~+i*A?XXKJj&d;5EkWFIpQT|^5ELkfF diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ApplicationMessages.php b/AdsAdManager/metadata/V1/ApplicationMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ApplicationMessages.php rename to AdsAdManager/metadata/V1/ApplicationMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ApplicationService.php b/AdsAdManager/metadata/V1/ApplicationService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ApplicationService.php rename to AdsAdManager/metadata/V1/ApplicationService.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AudienceSegmentMessages.php b/AdsAdManager/metadata/V1/AudienceSegmentMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AudienceSegmentMessages.php rename to AdsAdManager/metadata/V1/AudienceSegmentMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AudienceSegmentService.php b/AdsAdManager/metadata/V1/AudienceSegmentService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AudienceSegmentService.php rename to AdsAdManager/metadata/V1/AudienceSegmentService.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserLanguageMessages.php b/AdsAdManager/metadata/V1/BrowserLanguageMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserLanguageMessages.php rename to AdsAdManager/metadata/V1/BrowserLanguageMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserLanguageService.php b/AdsAdManager/metadata/V1/BrowserLanguageService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserLanguageService.php rename to AdsAdManager/metadata/V1/BrowserLanguageService.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserMessages.php b/AdsAdManager/metadata/V1/BrowserMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserMessages.php rename to AdsAdManager/metadata/V1/BrowserMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserService.php b/AdsAdManager/metadata/V1/BrowserService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BrowserService.php rename to AdsAdManager/metadata/V1/BrowserService.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyEnums.php b/AdsAdManager/metadata/V1/CmsMetadataKeyEnums.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyEnums.php rename to AdsAdManager/metadata/V1/CmsMetadataKeyEnums.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyMessages.php b/AdsAdManager/metadata/V1/CmsMetadataKeyMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyMessages.php rename to AdsAdManager/metadata/V1/CmsMetadataKeyMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyService.php b/AdsAdManager/metadata/V1/CmsMetadataKeyService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataKeyService.php rename to AdsAdManager/metadata/V1/CmsMetadataKeyService.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueEnums.php b/AdsAdManager/metadata/V1/CmsMetadataValueEnums.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueEnums.php rename to AdsAdManager/metadata/V1/CmsMetadataValueEnums.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueMessages.php b/AdsAdManager/metadata/V1/CmsMetadataValueMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueMessages.php rename to AdsAdManager/metadata/V1/CmsMetadataValueMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueService.php b/AdsAdManager/metadata/V1/CmsMetadataValueService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CmsMetadataValueService.php rename to AdsAdManager/metadata/V1/CmsMetadataValueService.php diff --git a/AdsAdManager/metadata/V1/CompanyMessages.php b/AdsAdManager/metadata/V1/CompanyMessages.php index a313ff5f5d2ea88e5f5dde2d34451f20bd0a18a6..db4a05dd1b682b60bc1e33d796c5411291b20f2d 100644 GIT binary patch delta 503 zcmYk3F;4<97=|sq-W}fo5~6ZMF(fQZPA105*g-q!=v*7F%0=$D+?50-5+~f$E+(#S zF2-Ns&+vaR==B1D?alYRZQu9ncm1vL)y3AQ2S+-=otKB2zQG@*M^`U!`|JRqKZ+6& zPk9*lr4H(0ihs{B+nOWPID|?NX30=Yc`PF7lSe}tl*rgqn1o-v&2d;6HMO0M<09nPxY@%1X`HdOg$ zcj^G)YMMw2;PPct>VnOSYSadc=Us|P5uVnd!Z*?u=kf<487o?c8tk+#&2z*`^c8JEldD0P20Rg|GV|3}6}OL*Kq$#o7)knrU_ZzDnfUs|S^NX_ CZ-_Vm delta 286 zcmbOsv`JutGBe9jPAOTYu>>nj zl2J&Ai#0VjF*8Sk4Iw7L#hjK{A;FFi0jes<$j?ia;6R8;aB-(rl%y8rCFX$K!ikUp z+5~iDZfahM1Q$${nNcWVvNLPKVsOF)Cf3!v0n>;q7(XX41vp6}i}=bX8>X7t^N?3eFnu_hr9c}J3 z-<<8Dg}-hnG(d9p81yV>`8XqbIr({Szqr9<(yw0srI5_`QIS6IK$8d7z+k>#2FQr9 z^nnIgq749#hapWyBId-bX`@>7L=^EjCsvJ`5>0y0k4um!wt8hLp?s zJjg>%+BGmGC@oxw^iO5MuBlbh1OKnXV2k+?i`kH;{l$;4q}aqiCo5pn_cgl!CM_My xT3rhay68>GRRgXKEm}ujZpe(T2|87oTpb#;451X|TCLSK-A4rL-s~E8(SNMou~`5B delta 104 zcmdnYyMS}UImXGNOx-MhnYr{Pdh1QT#3VJDmsy(WFymw`W?2RJ%+C{2o7~SP&(8M1k@0~e K`{qq-R*V2aa1&kt delta 51 zcmaFQ|Av3VS|-M?o7XX&W)=(P5_B#tF3Hbz%S_El@h>RJ%+C{2p4`tS&%*q`k$Ll0 HHY-K|1)35p diff --git a/AdsAdManager/metadata/V1/CustomFieldService.php b/AdsAdManager/metadata/V1/CustomFieldService.php index 8c9b8c9d9860..4e5eb9dbc0d4 100644 --- a/AdsAdManager/metadata/V1/CustomFieldService.php +++ b/AdsAdManager/metadata/V1/CustomFieldService.php @@ -19,10 +19,11 @@ public static function initOnce() { \GPBMetadata\Google\Api\Client::initOnce(); \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); + \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); $pool->internalAddGeneratedFile( ' -ç -2google/ads/admanager/v1/custom_field_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"S +ç +2google/ads/admanager/v1/custom_field_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"S GetCustomFieldRequest: name ( B,àAúA& $admanager.googleapis.com/CustomField"à @@ -39,10 +40,47 @@ public static function initOnce() { custom_fields ( 2$.google.ads.admanager.v1.CustomField next_page_token (  -total_size (2¬ +total_size ("• +CreateCustomFieldRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network? + custom_field ( 2$.google.ads.admanager.v1.CustomFieldBàA"¤ +BatchCreateCustomFieldsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkH +requests ( 21.google.ads.admanager.v1.CreateCustomFieldRequestBàA"^ +BatchCreateCustomFieldsResponse; + custom_fields ( 2$.google.ads.admanager.v1.CustomField"‘ +UpdateCustomFieldRequest? + custom_field ( 2$.google.ads.admanager.v1.CustomFieldBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"¤ +BatchUpdateCustomFieldsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkH +requests ( 21.google.ads.admanager.v1.UpdateCustomFieldRequestBàA"^ +BatchUpdateCustomFieldsResponse; + custom_fields ( 2$.google.ads.admanager.v1.CustomField"™ + BatchActivateCustomFieldsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network; +names ( B,àAúA& +$admanager.googleapis.com/CustomField"# +!BatchActivateCustomFieldsResponse"› +"BatchDeactivateCustomFieldsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network; +names ( B,àAúA& +$admanager.googleapis.com/CustomField"% +#BatchDeactivateCustomFieldsResponse2Ê CustomFieldService› GetCustomField..google.ads.admanager.v1.GetCustomFieldRequest$.google.ads.admanager.v1.CustomField"3ÚAname‚Óä“&$/v1/{name=networks/*/customFields/*}® -ListCustomFields0.google.ads.admanager.v1.ListCustomFieldsRequest1.google.ads.admanager.v1.ListCustomFieldsResponse"5ÚAparent‚Óä“&$/v1/{parent=networks/*}/customFieldsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBË +ListCustomFields0.google.ads.admanager.v1.ListCustomFieldsRequest1.google.ads.admanager.v1.ListCustomFieldsResponse"5ÚAparent‚Óä“&$/v1/{parent=networks/*}/customFields¾ +CreateCustomField1.google.ads.admanager.v1.CreateCustomFieldRequest$.google.ads.admanager.v1.CustomField"PÚAparent,custom_field‚Óä“4"$/v1/{parent=networks/*}/customFields: custom_fieldÛ +BatchCreateCustomFields7.google.ads.admanager.v1.BatchCreateCustomFieldsRequest8.google.ads.admanager.v1.BatchCreateCustomFieldsResponse"MÚAparent,requests‚Óä“5"0/v1/{parent=networks/*}/customFields:batchCreate:*Ð +UpdateCustomField1.google.ads.admanager.v1.UpdateCustomFieldRequest$.google.ads.admanager.v1.CustomField"bÚAcustom_field,update_mask‚Óä“A21/v1/{custom_field.name=networks/*/customFields/*}: custom_fieldÛ +BatchUpdateCustomFields7.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest8.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse"MÚAparent,requests‚Óä“5"0/v1/{parent=networks/*}/customFields:batchUpdate:*à +BatchActivateCustomFields9.google.ads.admanager.v1.BatchActivateCustomFieldsRequest:.google.ads.admanager.v1.BatchActivateCustomFieldsResponse"LÚA parent,names‚Óä“7"2/v1/{parent=networks/*}/customFields:batchActivate:*è +BatchDeactivateCustomFields;.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest<.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse"NÚA parent,names‚Óä“9"4/v1/{parent=networks/*}/customFields:batchDeactivate:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBË com.google.ads.admanager.v1BCustomFieldServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' , true); diff --git a/AdsAdManager/metadata/V1/CustomTargetingKeyMessages.php b/AdsAdManager/metadata/V1/CustomTargetingKeyMessages.php index ea6106a350c7284836416d08662b19c3b5c14e47..e4cb0eb2a758dee02cd0e257e0aee666c4bfd1f0 100644 GIT binary patch delta 239 zcmaFL`;u?NVJ4P499-5Dy{#uRF^4g|WStzvtii0wB|f>4Rb=u^Wx+%5?zz+16=|VW0O$?V*(O;M1& diff --git a/AdsAdManager/metadata/V1/CustomTargetingValueMessages.php b/AdsAdManager/metadata/V1/CustomTargetingValueMessages.php index 4a0f5da1286ca6c477ea47b689de3f921ac2f14f..d73b7c1436798fe45b14f6559862bbabd4eae121 100644 GIT binary patch delta 198 zcmX@XyOnRlNhYR69FtEoO=Vfl$|W-KfXL(uW)a57$-T@WY90(7jEq9ET-=E%@g<4r z@p*~4sS+#-j2fIy%nuw{Js3gKa+CiuOR{?~f!LLkC0I(>J(xl4oXLGG>8u_sK=$OX zENgS>VLa#T%cJSzM5lSP8b#iIIU~NLvLMxolZ!pRxFoTpw0QFZRt-h~N~k-B delta 109 zcmdnWcY=4rNhYSP?2}J3O=a1~!X+}#o*_`Jm2 zR0$RZMh#9U<_C_fLXuoODVfCuIf<1JDOQ*iqfp6Yb(Rt)q4dd%Skfo+v98(7$EMB* E0MSSuMgRZ+ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityMessages.php b/AdsAdManager/metadata/V1/DeviceCapabilityMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityMessages.php rename to AdsAdManager/metadata/V1/DeviceCapabilityMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityService.php b/AdsAdManager/metadata/V1/DeviceCapabilityService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCapabilityService.php rename to AdsAdManager/metadata/V1/DeviceCapabilityService.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceManufacturerMessages.php b/AdsAdManager/metadata/V1/DeviceManufacturerMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceManufacturerMessages.php rename to AdsAdManager/metadata/V1/DeviceManufacturerMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceManufacturerService.php b/AdsAdManager/metadata/V1/DeviceManufacturerService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceManufacturerService.php rename to AdsAdManager/metadata/V1/DeviceManufacturerService.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ExchangeSyndicationProductEnum.php b/AdsAdManager/metadata/V1/ExchangeSyndicationProductEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ExchangeSyndicationProductEnum.php rename to AdsAdManager/metadata/V1/ExchangeSyndicationProductEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileCarrierMessages.php b/AdsAdManager/metadata/V1/MobileCarrierMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileCarrierMessages.php rename to AdsAdManager/metadata/V1/MobileCarrierMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileCarrierService.php b/AdsAdManager/metadata/V1/MobileCarrierService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileCarrierService.php rename to AdsAdManager/metadata/V1/MobileCarrierService.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceMessages.php b/AdsAdManager/metadata/V1/MobileDeviceMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceMessages.php rename to AdsAdManager/metadata/V1/MobileDeviceMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceService.php b/AdsAdManager/metadata/V1/MobileDeviceService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceService.php rename to AdsAdManager/metadata/V1/MobileDeviceService.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelMessages.php b/AdsAdManager/metadata/V1/MobileDeviceSubmodelMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelMessages.php rename to AdsAdManager/metadata/V1/MobileDeviceSubmodelMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelService.php b/AdsAdManager/metadata/V1/MobileDeviceSubmodelService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/MobileDeviceSubmodelService.php rename to AdsAdManager/metadata/V1/MobileDeviceSubmodelService.php diff --git a/AdsAdManager/metadata/V1/PlacementService.php b/AdsAdManager/metadata/V1/PlacementService.php index ec2a53079648..8fb2beed3f4f 100644 --- a/AdsAdManager/metadata/V1/PlacementService.php +++ b/AdsAdManager/metadata/V1/PlacementService.php @@ -19,10 +19,11 @@ public static function initOnce() { \GPBMetadata\Google\Api\Client::initOnce(); \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); + \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); $pool->internalAddGeneratedFile( ' - -/google/ads/admanager/v1/placement_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"O +ã +/google/ads/admanager/v1/placement_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"O GetPlacementRequest8 name ( B*àAúA$ "admanager.googleapis.com/Placement"Á @@ -40,10 +41,56 @@ public static function initOnce() { placements ( 2".google.ads.admanager.v1.Placement next_page_token (  -total_size (2š +total_size ("Ž +CreatePlacementRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network: + placement ( 2".google.ads.admanager.v1.PlacementBàA"  +BatchCreatePlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkF +requests ( 2/.google.ads.admanager.v1.CreatePlacementRequestBàA"W +BatchCreatePlacementsResponse6 + +placements ( 2".google.ads.admanager.v1.Placement"Š +UpdatePlacementRequest: + placement ( 2".google.ads.admanager.v1.PlacementBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"  +BatchUpdatePlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/NetworkF +requests ( 2/.google.ads.admanager.v1.UpdatePlacementRequestBàA"W +BatchUpdatePlacementsResponse6 + +placements ( 2".google.ads.admanager.v1.Placement"• +BatchActivatePlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network9 +names ( B*àAúA$ +"admanager.googleapis.com/Placement"! +BatchActivatePlacementsResponse"— + BatchDeactivatePlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network9 +names ( B*àAúA$ +"admanager.googleapis.com/Placement"# +!BatchDeactivatePlacementsResponse"” +BatchArchivePlacementsRequest8 +parent ( B(àAúA" + admanager.googleapis.com/Network9 +names ( B*àAúA$ +"admanager.googleapis.com/Placement" +BatchArchivePlacementsResponse2Ð PlacementService“ GetPlacement,.google.ads.admanager.v1.GetPlacementRequest".google.ads.admanager.v1.Placement"1ÚAname‚Óä“$"/v1/{name=networks/*/placements/*}¦ -ListPlacements..google.ads.admanager.v1.ListPlacementsRequest/.google.ads.admanager.v1.ListPlacementsResponse"3ÚAparent‚Óä“$"/v1/{parent=networks/*}/placementsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÉ +ListPlacements..google.ads.admanager.v1.ListPlacementsRequest/.google.ads.admanager.v1.ListPlacementsResponse"3ÚAparent‚Óä“$"/v1/{parent=networks/*}/placements° +CreatePlacement/.google.ads.admanager.v1.CreatePlacementRequest".google.ads.admanager.v1.Placement"HÚAparent,placement‚Óä“/""/v1/{parent=networks/*}/placements: placement¿ +UpdatePlacement/.google.ads.admanager.v1.UpdatePlacementRequest".google.ads.admanager.v1.Placement"WÚAplacement,update_mask‚Óä“92,/v1/{placement.name=networks/*/placements/*}: placementÓ +BatchCreatePlacements5.google.ads.admanager.v1.BatchCreatePlacementsRequest6.google.ads.admanager.v1.BatchCreatePlacementsResponse"KÚAparent,requests‚Óä“3"./v1/{parent=networks/*}/placements:batchCreate:*Ó +BatchUpdatePlacements5.google.ads.admanager.v1.BatchUpdatePlacementsRequest6.google.ads.admanager.v1.BatchUpdatePlacementsResponse"KÚAparent,requests‚Óä“3"./v1/{parent=networks/*}/placements:batchUpdate:*Ø +BatchActivatePlacements7.google.ads.admanager.v1.BatchActivatePlacementsRequest8.google.ads.admanager.v1.BatchActivatePlacementsResponse"JÚA parent,names‚Óä“5"0/v1/{parent=networks/*}/placements:batchActivate:*à +BatchDeactivatePlacements9.google.ads.admanager.v1.BatchDeactivatePlacementsRequest:.google.ads.admanager.v1.BatchDeactivatePlacementsResponse"LÚA parent,names‚Óä“7"2/v1/{parent=networks/*}/placements:batchDeactivate:*Ô +BatchArchivePlacements6.google.ads.admanager.v1.BatchArchivePlacementsRequest7.google.ads.admanager.v1.BatchArchivePlacementsResponse"IÚA parent,names‚Óä“4"//v1/{parent=networks/*}/placements:batchArchive:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÉ com.google.ads.admanager.v1BPlacementServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' , true); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportDefinition.php b/AdsAdManager/metadata/V1/ReportDefinition.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportDefinition.php rename to AdsAdManager/metadata/V1/ReportDefinition.php diff --git a/AdsAdManager/metadata/V1/ReportMessages.php b/AdsAdManager/metadata/V1/ReportMessages.php index 0e71fb588474d9acf062c37161f9b4b9c27587f9..1e655f1379b053a4001e273cdc2bc815a28c2f9a 100644 GIT binary patch delta 587 zcmeBZW;!Li;SA%%8T^7VL8%4#MI|n&X_7!{3#2Yj7UUF>wBh0_D9X%DEULt9pzq{VP7Ow|6-p2*?70M!^K%Oli!zH5E@8%S zNxTCdG{4N{B%8q2)? literal 33160 zcmc(IcX%7enYRH-lr(B1sF908LWxwT<0K%kBoUz*3sR;Z`fwBp%KSnRJc3lB zUO*Gtd+-kF`<3uF2Z*`I*`3 zLQhv$y3my`l)J2SrhGPv)@w@(lhyvNW3}3`+3K!|sXG20pO~9CR$bV2qIcIqb-uQ+ zSUFy;*O6535tJF5n?TC^#ALN=s5p?TE>28MEKZCM2_oaksXG2SM8-#ZFJ)|UcA{SI zDhXmahZcJ=>%#x$myXWPOm@{5Cl>L4=g!nCGjlVGGZV8jFG7PZ>zbaJtye*!89Ti+ zH@P@do9m(ig}KSPcTRTo`OQp%2<&S#0-%yicdS;zkVrb=GcwYacU)xX}=wNPDLT9~_3)SC!gWLFGwT1qEuT>rqQ_)h@5oF|2E<4II5ar^;@%iXqET5dOj;En; zr(EP@ZTbb(>hn*r996M4JvDJMxSWvmCC{F5Y0Zt>57?p2Tng`^;}+?2=Q` z_r&QE-UIW%KS#5BPV{zeRdnWOU@B4u(ndPBJ6XbFpm)0#6{8)%76-5hZtjBpRGsu~ z{&a_BL77BR@I_{JzxU}FYnMir*ua*Nk#@woVmnq1w0$SJGO>lNa?E*Vs-q3*ZIs@Y zNHKO|rap6YW_D)rWJeqs>-sM2k+o=Qa*w3nGwPNgBC$k)Cd3kZ+3KZv;#Gy(-q9}TcPjdd)jgyzLZ@W| zQEGCb>Xup&t<*-=K3kidn5}lKR267T3^87xyt+EIG+V9I=E?iiJ5~vLJ5((im88dZ z3KS$>@T>F5I9onCF}qYvY-FpTx|I|3Lx`(w_%z6B%~TDZvFfCgRAMr{zPK`YzJmmIsqSXU)os!R_&Wfnz2D91K9pVeqdKJJc2 z%NDhE$Zck;kDgqt)}87Sf7cA3*146fa6Xw>$Jzx$>flJ*j<(J-81pDJWnT-xBafmISCU+_ry1MVYR+W^#SE%3Vj7_0usLoA+&B7d3N)>-LTV6+3RTZ`q zfu>DhQFQpUTVk=qIcx)IZDqc?FjJdCH#b#%p)ir<5)>m)nQb^;1+OM0Zz|*+I>-Xn z_3dia2z10KD71=Pw4@pb)q$0)y&~#9u!$vv?f7aTQky>8dFyhv3T}R)JOM@Qd_#=2 zm1-|YJcscqG-Iv~<(HL|LW;lYVp}GT)@!p%aIBM8Ps|;2+)f>uM?#5MGmu%R&LWOG z(MYEKRLE>(tEXot91mCTSb?%DJ8z4z<-$l4&t|J!{S)TBu4NC?lU51~Uv`kSOZ9WQ zy7OCUoK&gd)5y&Tr_y;7DkH2rk^ECCLk1crS0$X6s7_Q~i=v&sT*2BA;vk+)Jddpr zb*oH^-;UqwYt=Scx<_zU{tXU23juy@QBk64&PW{*^)W3wA_^b=KXgRTV@z_9Gz03nVp=G<>USdQreI$86EU{Rl|`bR z#WQ(+T7t2542vuHJC<0(R;CL1ax#;*c|5_{8p?4~+7fHos;p((mGW>h&zB+e;_lCi zb@@m#YxCt)Y^Y=<%T`I^+7qXL2H_(AG*-A{1X5%%Mu>HOt6g;Y)e?0A2+3}&n}lxh`Q zUM{4QW6&w+%$Q|E8|Y`8ewK$bb_GH|%-a&1*#`G#rCbmc`I!iFnMlq-8;7B3TUf&T z?czE~*F-vWuY^xP`#RVrJ;lXtbH6-hB}=^B{WAS@QD+DhPugW!zZF!GEd7)fSxFxh zztsmA8xsk(PLl6aX`2X^%w{Xe(PSo@9LQRHGX`kuizRC`Qy8%; zMXQu4r1_S_nQW__%vnxC#RUikbPQ}@>q!eM3nG{z!F44`- zDrY=0sX}%nmv2y`ZS3>_3~3z{D>zf=RXlM9>j)?*rP!7@i**L%Dw!_p{`oy{m2TvO zVfp4Xs+zYmh2|P=Nv21wQaNM8-=zyV_|8fm?BPG98tR$W70}RpGF!={`M<{?g0)&n zq}>pMns3n3AO#B^^*>{%z^2A@P_g-c#NdP1YgyvUH^vg%S*Mm-EM;=Z(wOw*sWSh! z7&LBmGF{0QQZVE~p5IKC$h8#NhL^OFY9e_gpP`N*ZSm)lh3P4ktTk$7E4@5Pdg9(`S$#Zf%G$$ormVd@Z_3)o3#P37yl7}vA0IH}?BOXx&R(82T;>4$g^)YUaL2&h~rIs&?j4A`|xVf3AePVzR=QYl4~=b5^s zMV_+R?Yc$iIlFnUDXW+7F=h4feWt8E{D3KIFF$0;+Q%<7W$ove8Jg9{&o<=j;pZ4~ z_VV)#Is5qd1%|Bse5WDj0KdqPbC6$R$T`G!$sR+Kp(pZ}QZL}T*OGN4S%S&t3M2V4 ze~xYePF8uWXz^#G2VbX@!Y(JvBR2n14BvOHSSCtu|7F=N6pIyfXw=v7TiO!mvh4%O z)ZxJlg$74|MP^Qzp{c{|lz?nvX=;!_^j;Ny}2qSd=@8gLb z?3|$N#-8sV;)q|*a*-(-r%)g}faYcLLlwcb-}uP|f+WX&Ye1&5nbcv7eoBRrq2bC% zDa(IFllz;RKMW52)XzTmbE0WKizjxnbDPT{#)bTghnRg$IDFnE;auZ$;p*~Kmm50NV5ipe|$M`W3kdy$XX7P zejiWtu$@696|_`<#gkM-6&{Kw_OPDFcv+u^jqFk%ff!0*)>usS@{$NpokzJ zh-18ZUO+`$<;mpJ83d-#>3dpYOEd%(4SXb?*u^dkqw8X2;~q6JJDsspx_ie7$t4Vfy(Rs4pXawLc)XHZEDV739~{{^2s9qt2knm%>k7JiMJTd zSd3G1g|wJjs0@r%lEor_(C8nsnL$g8?Sv1u`D@LD6*7~<7}ll^&*ra*C-$-30d;ig zj%LvJVt8E9i@nYy@?7$;HB`X3`4u!KJw1T1aPx098FL=yn<}O&1BJq2xF!t7t^A0^ z?>C8s{BACDr5L~8YtnDkD-IPPWMMluo4(%!l?wEdNO&=76!dR2IUgT=7cW0@lZmM) zR49>yzRlzwAWy3_D!rf6QM}va9-6W8^N;%j6HoOumv@Iz4?U2y<-1Js7yNmfsSBZ8 zS)I3=jBF&Ig~+Mng7@GrHF>JhWOl@Y2iAM8mzy-?h&6zTodTR1;tS!m-{5C;4wGW& z|Gb{x4O?K$KX0%(Ggv79FZ_O?P)dU`94UGX{y~4_r{~c;$`f(SpfzmWa8QcFJOkCq*X=4wA4$6#?o zLxaJHuLbeYiLk#E#6yuMg6l5_@xXO=jvM`C5D#3C?g~E@r}0HY4TYSa45~-5P|1(v z1~7N~X}`J4wnGVrO35770WvB6i6HLSNvuIYQEiM@{@Sn4l7wwx1tU%KUkynLxQUkoDReTe@}km`B) zRFA(6g7|&QNBvdNWm6d#8H3e=&R6_?DgY#u;j3|)0Uf~NLE0U7{V|S#Y{Hi&?dsY# zT5B386^_s>D?&r`siiUg0vZxGrpgj8#6&z(S*X?bVwezHqY^|7z8@n@Dp@LJWX*pP zCyYuEm>&z3O(6!cW&EKHfkE{qG1D5HEy~|42HP4yG>+KxvlsH^lv+uq4-K>v@v=kNkk<0qr}) zWPwWo6}U~zX}c++3b)Jlt2&ge)NsC#EewtESHx&Y@1ngN`TcuiG+ygsgPJfyt z#Aw~f$*@NT6n+cMzBMJwBBx_zvptPfl$6E)HAZVH@`tC#>uE-)AyJm)G*R#52!{Sk zjAmr4E9k>mbS1}se zngD{vuVcj8;lfCXPthVm21-f;X?NiH&qC81lV$t9Lkk!vf~Xe5y|Kz*p#)dYH;`dB zrpgitl9rbxqNj}{Eq|H>Zz3Oq#l~d%ib^_Dvat5?2caTJ(;7vC9e#Hkfe%}lPoYT3 zrsjV`tgmQkqQ&2gk(=`3L3e`W!!eqN@-n>W$PFo+d66%~XuK8yDckYI7=<~0xIPK; z8`@%bmN8!v`7O!vOdZrb<1s!?%W67C4;M$MXK%<90{FTx=71de<)?%(YuU;lxS`QI zV>Htefbh>@d?ZFw2d!Z8qaTgYykY>>>pS^h#b{8bVSE!6@1bg+;pMtQ^yVjyka+|k z+?fXcF=2{f5Lw-iH}J@vSa9bcKGo157okl(e45q}HPv((e7Rq)DqThoHciobRcxFy z;GY#v#|)4y_#7#zPDX{TYA#`dtXiX@@?mJBemVH(4XzbiQM`h{H|Trd9Km}@DK(>U zqg5xQtNgV{gBY~lC?0ieKHfIs&$-yQppkh8bqfrhG6Ok;8qeX|SurT&v-u600fW9c_N2ZlWyb z9=_6G)WI-W*{?R}H?VRhpu=y7&0~80PB8`R)x8-aKk+Uazijewn!70Z70SzzW>lut z7O$WX!Y4!k_-%Guaf}P?eW(L-SsC* zBYv&mv6G|qP_GlaBV{@ou!4q)@|QEq@)oV3-sH+#wW_;4jMD+#uT|a6(|eyc2wjq2 z5&T_A+kND3Z{Fkq5so^k`gFD(`(+1NcCG}F$l%XAp zPc6ev(`7a$zxfSqWRX~m9K!MsFc9Q-h2?umf|*Y@B#K`8x;7fwct}c=^|-!`yoaMr z6&s^mjN)&Ua5?AaBue;AZPYg)5~6*uO{3{sY3JeAz+6$c+i1Jp>QS_|P$_0pxiWv7 zP$Vrye&+3B%q_M$E+;{ZWvpzvGKB30MMw04-Umcm^-OT(eS)N(D6sF3i4}J*Qb~=V z6U||mOr&=^3;M*?m*vBdy&CfFP-LHmyeAa7M?=0m6uDPJz9JO4Pea}tirlXuUm1!# zpdnusiae+x?+Zm9(vYvtH_R{SBI?y;^qNqlE~D3mB6S(PE)=QD==GsUT}Jok8zwIF z7VVZZG5l8}A)sCd^y@HCp9A_$7-)|J`fV6!uLJsB7-*jZ`h6H^zXSS180dfl`ePXA zpaZ&gG=xuw9ME;6G=XR^bLfy5Xz=SpQHtj`grXGFZwy5#uHO`jQf$9jG*Jd7MhEqs ztB4N)AYJeO#RSq-{$EWXUEBZ71kx4#-%TLh5B-M;q`RR1G=X&Q^Is;A?s&dy0_i^I z>8nUzf|#lMn`ewDo#)>(qI9Nz--yz={sSXQXZsJYqN%Nb+ABr>Ow|BTI{sM`K&kiV zOaP_XpEm)NQh&h&P=4f#CV=uGUorud|M;>ApnS(yOaSFKzFHLnM6ovSvpm;le9eeZ zynND#P|We`YwqJAI9+$& z6N1yd#(P6>y5o3X2u}AM?+?N0?&AX?INgJM@VJNN5FIC{mZoheMIN zTs{(t)Ft!L+eOxD+~XAM7(mXKZuA|ZuW-}@yg}?C?a0D-ycWB zD_8sz;CljhnET=@*DL=tB3{Y&XA$vAzCVwMSMvQuM7)ykFM;>zXW$q@?&hFLv9Dku ztrcFkqh*w2zcFspNxRl&G+jO@VeK2Dgs{j+24qO*FE+(Bj9y^{jCUi-CKVf zcwL_Z#Org_e-{C-%lGdi;C1=_Lj=4o-+zpN*X8?9!0*(~$OW`lx#kaGYhDYevf2-} zhAM-7qBT_6>W5lGm6?9HHB@=vkF6!AK=^`+F!- z3Ecu8j#NUo!AByM(7o)VkxJ-(_OVDMbWi)nNF{V%`=&@GbZ`4+l<3t4M8PumIo!8I zE22yNtPnDD3=l`{2=b@_;^-Pd9y3531tZ8C4G>4G2=XQa#8D-Jycv+Qa16r0U4F~G!TCyC zZZ+g9?YPa5ue9NIL%x#!9fo|@iVgX$-5T;;OEu)XwrR+Bt?}OW?)&>#yS%89w%_Kg zGR`nyw}^fn*?H`2I+1{j9%$b#uDHTZIh>wwH}Q(o)|b(aTpgyinfOln_G8hYTSw)r zq&-q>O?l#Pw;|z4ENaZ@X2~_k$gzow_>7Ae1C{DV)^KWZK51RoJrGvh5l4 zPdkF(fjk(*(CNY;w1F2EZXVbb9WPrjY^qXFqjBR>FS{h@6G3SC0q0sJheeJ`SgB%; zchXibMaRDv!gaTZ8rINPBs4wW;o+PJMTPcOWU_UShQ)T!?? zX(8ntLvH0rri@cKxTdR^=4W9WQilR!r*jc!+i|2t?59fO)*9@^^>XEr@~x7C75CIo zYpp3DEWa4Ly8?>@YECxM$9ha94BB%zae(bPwK7t``LOB*=>_g7+sArMp9(4=Ka`W) z*7%@nQ-a)*PSnwb^->C6sT8z|OZj_=x^k?ejmbKt2JPB}<&y0|`8tt}QU$#)C?ZPB zHcQW?iM0XY)3oha7CuA&W|OvEC=JE?p!(1TX;Qe<0GCAAWg8c2?P3>!mb2}zwF0K3 zBMK@IsD96NG$P;w2IYH>qY;ryNR1dUS1d@4a8Z-+kUCmCZE?w!mMK|TK zQp@v+kI{iDkH&yCg!>C|52xJP>FfD$M+7$6dss(}SI`j^EftqlC;@lTF#s(K`n}SR z))lkeu_A}nO6i=>tU-u*rbkQV>I7EPmepp6s?9l~_jFmJC^*?ZuB>$o&8bS0O7Eak zpx&3%7tZ$AF^KXiI+Ea(#Kuw_8mBF?Hpd-7xO&9P8_DC+Eu5u9c9>Y?Eg6Bu9M<77 zB^<5`MCk0p9UUf^UQJy6L3ht-3WclFsJGEle9T-p)+p=j!K&0tx=5=&emfbmISy9HE{d&J5D!UN{aTZ!N$++-#P%6c@<69Dn%| zxw*RuC*8v>qTPNf>X*1zS;B4=8|_twI46J`uyENcHf-N0HwF7MgAJ!ToegdQwE&ZL7?7{8zA=o+eAdK$%|=Mk8k6;+ZDhBT;9E_d1JiB zly{56EJ6q%JxVqg$tAhN3vRp z_l4D%23(@X@29Qwn*vqp66z{O@=Awv;a!AY>--Varjo;VF_g1$nt#wL9icl+-6VS$ z=gIg<3OP+!t>#vK2!!Ymh|OO_-M8Fzub*32a?#Vo@D0bN5!W{tz@^67WD$`!zl!>% zW`K1CF3yAR7iUqMv%%49#l{R1hH?DQDKu=x z@D^A(+$4#U&Nhzq2WCSw;?q^?^_o8|Q|!Z;qRpqtImiSY{l=YBbn&x0aVE6N=C~^& z0A&e9?A^WF=_+s!W(ca+LE*Gc2&&IP;h2sQ)#rW@M^r*k>WlKgN@E*k?fZ7CFJkQ@ zgw`IXUby_ih}z@U3n%MBP^w-yX%~W0^}@ls5R|GH&fytRd)<2BY+VRS)eGnBLQtw+ zm^cqXse0j{TL@~O!&Mx&3qkF7P&jiJf;!-!aON%qb?$RK0M}G6bdS zg@czNsJ#wX-xh*8bF<2-nSKE$a224}Nx;^63H^(L2x5@#iL# z?C;ZJ64>U)11ZTnV#K=uIQnk$xxo75GU;LgF@eo%BIIxS6m^0)msc)h7Oo>q(uW>ZUsBIKibq^SW`ZMzUNM%)$-wi-BJhvR8K< z3sOrIjOZr}olzWK{lFz{MGBks+yQ#Z;Br#H##FpYqeg(dM1i6XaHC$E;uAdwlSz2+ zfR3KhZ0;4*u;6SJr5_<_=n&m%M@Uok%p9JOl~+rOTd_rx$7pgP7}RLrbcD%3uZVlb zXxFgKPf&y#Oi#b_NlaH?N$R3wwW!t$_siX{is1$Z|3i5+RB`Uxz^g4ZHgleeP_rYr zBui)tcdi@5MbD)SUA0H|gKZNR9Esm_8#3L0OSfvt0(5Y8y}CI>T&#twahFk|`+SVN z#ELKPKE#-OevuyUBUzNJVgc6*i*vaCr5s#(hUa5&y#sCt&hl7y4`begoHWxgoJptg zo{)HhCXFMyWmFx{(bx#y(>&figVVftisZ`LT-6pY0Mq=Xh)1t1;Kplt!na}h2yfOD zM+UMPdl=Ug(%o$Ic7~et1}89iF;Y%p@&fNCVa!N2ljh6%E6*gy$Juu8*;M(k=*0X? zy$A2u?UGGS?3k-AzM!`7{Q9mJJAYLsYg5&0@T@AmK#XMh$2AwOa8ml(JH<*QtB;>}6<-V^5G)=n-hEL7(v zPYQmErzV{|Vxjwnjq}!OtG8Um6HDUpD9MBp+pIlSsF9P8rk)x(Jb+41WS+-5CYS1q zwc{06!jXf>?#(P#k5`-$@{K$~uEw*14)PqfrM56tU1$ca z@j&OZt>O_`@wlPtur+>!X#V7g$Bffey9> zb$6e;^yJ_DP@JuAco-M6|0~twy3X@mXB#W2$|goxVyZd|so;Un$r>JQ)!ybaKPIY* zJ8$y#q#Y6|MFG!5I_#3h8=YO^*-1P0s*-BN@#9_9c-p-yqS#g;pU-LEVgDTr|L=;p%@f;i6%kkRW z;?+7e`JQiYOP2TKWJ!(Od6Ax8LzmzB)irwGb9$lr7fa-m#8bQL`Yvi+r$JQ&A%pV_ z92t=F1oak0Ks*CS_EDHlPn_(;1Id2YVDVvd1DENQxRa_2@e=}x!ZZ=+>_t%F=L&-4 zEsZSJNGzUxHq zrS6Zn#7`fp)sD?pdy;s6Jvo(|m;?QVp3&aVshsg~WYK?|yz%kT-e=;SvRHpVGU-1~ zW`F-^@6mQqfjt+vkHcTwwYacU-FYc=`!|G6`DJk|`qGBG>zqUu!FWdeDr Lz+JinternalAddGeneratedFile( ' -ù -,google/ads/admanager/v1/report_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"I +» +,google/ads/admanager/v1/report_service.protogoogle.ads.admanager.v1-google/ads/admanager/v1/report_messages.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"I RunReportRequest5 name ( B\'àAúA! admanager.googleapis.com/Report"c @@ -63,12 +64,12 @@ public static function initOnce() { name (  page_size (BàA -page_token ( BàA"å -FetchReportResultRowsResponse; -rows ( 2-.google.ads.admanager.v1.Report.DataTable.Row, -run_time ( 2.google.protobuf.TimestampM - date_ranges ( 28.google.ads.admanager.v1.Report.DateRange.FixedDateRangeX -comparison_date_ranges ( 28.google.ads.admanager.v1.Report.DateRange.FixedDateRange +page_token ( BàA"ø +FetchReportResultRowsResponse: +rows ( 2,.google.ads.admanager.v1.ReportDataTable.Row, +run_time ( 2.google.protobuf.TimestampW + date_ranges ( 2B.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeb +comparison_date_ranges ( 2B.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange total_row_count ( next_page_token ( 2Ò ReportService‡ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportValue.php b/AdsAdManager/metadata/V1/ReportValue.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportValue.php rename to AdsAdManager/metadata/V1/ReportValue.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteEnums.php b/AdsAdManager/metadata/V1/SiteEnums.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteEnums.php rename to AdsAdManager/metadata/V1/SiteEnums.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteMessages.php b/AdsAdManager/metadata/V1/SiteMessages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteMessages.php rename to AdsAdManager/metadata/V1/SiteMessages.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteService.php b/AdsAdManager/metadata/V1/SiteService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SiteService.php rename to AdsAdManager/metadata/V1/SiteService.php diff --git a/AdsAdManager/metadata/V1/Targeting.php b/AdsAdManager/metadata/V1/Targeting.php index 234bef9bf2220afd2aa381513284f4a0955c8a15..cb8966f9dfa06f7a0e3c05d3e20d8bd2f19346ec 100644 GIT binary patch literal 7967 zcmbuE&2!vH6~K|55BvEu^4Hj5iB@>y@g|;GJ5Wna)-0C2aZ>rPD{%~jVTDF&k5xM( z2}$FPp>m{(f`Z~eapFL6sZ%{g&3~oScwQv;B79wn$jfw7moE*};+a z(cYt@w^20mJE2W#TGRKNEmF0d2tRGhvzjEVo^4iRD{PY3^_msN1n{gji2}bRN%m~NqJr4O#1F>;G@;sTB^_?bp$%0{>Y0-=vl4$ z9*OMG4Prk$#8+!Iv@UZW{ieL03`=qDiB{%1)@nUUZfkMaA^FiYEhKR#^zJjgDd0`^ zUwsI7)t{3ecSsZ;wygNX58EGkop!C(HMGkeipHHzoMYD^zR_t1Bs@9~$d{xt+Myre zbot%|S%F)B;F6YOkW=f-^}`Dohoa9(vReDPgiZa%x7}o-cN{01*9W-v%h^oOd0B&B zy$|)ZAy>V+#9ypnc;F{l-<7k?mF@peAdY!Poo_an_stmHZxWnU9!)EoGI1^yBwo&o z+)70Pw|YW-X*LpPCd}pB3t{3h{z(7g8jNR=sP4d26IIJ1yfmUI<%z9#Djd*bY-OML znY1zbuN_4_fcco%r=H*Po98*wC?nmKl8!PV0r(W=T0{1yA(rj-=q}j$f%BecVs2fu19*Vu-QUdc4 z+^~I&*#d5c;nt+BN@dhZmM`}%45k$Ws26TI8lwz|CFv&ZZsAJr7Hs_%HR?L3d1r* zwJfjM!D1uF-gs{yn+po$AHiD*8TXgYiDhFYQSdcSF5ehHf0`2(M!>X?#D{H#p<95D zG1cX1fyc%!mlL=+oj%qU7;awEjLxH&JhAnYMN=lrux3e^nDk~gY-?~l~P5$b5w4?g{k^y z3M{3uE5w)j1m-e3a95yV>yp%fA*Qs*rMS$19B$|pQpD+hQD8a!Dot2N>3*$Zb&%6N zdEV82lezy6tV`W5qA4+_evZfuxHwV&{0iLU!}QHQ>MM9Fv%%rHIiKUA(sj1!-D9?F zz?}iM9|zr+AE!7ujTTyUY5MB|c;D~;U> zGpY=?2N;#?Ta+kTlM(sqzaUZn%_x*)J6IuqiaTUfy2{)(IMWIELjLTfUb`gK20e4O zNHxz$7-21)2I~9F?VHeT6(vPUR^SRcA9HyX2g&>|AB0EjWe3s!gC#@nflz&z+jA|) z>|pySDk~>_fllE@+aK;nw#FqS|zuS(|u5dAI z^q-BuVtk7VZO(CpOABQ>Kr!)mkYvZkI6Y(x9TyPC$w(NGpmKI z*CZ(q-Yf<5F_ktZVBAdYFqUA!>=^~M*MEs6x6J)APdtVj;%ujT;NT5J7_6YC{tE@> z`^}k5lV>njSQ?4nc;{nq?U);?*Jt_=JFEOm97rf_dEcy?3Zcp7Fu1&`o6)ri-31O0a15^^q|HQ|OScQP8qzM8=jG`nG*(@?>Q~ZZTyrqxWY~JF_>7PW)_LOQoA5g|Fr@uyyWlKYsDgQ z;lvH2*bJ<&(7NO8wQcFTdqAZQsgRtWgdWX-e7>+}rToKRP_%5rS zZo{g)dg?ZpDJ+}r0*s$TE(A0Froc_?EX#ajO!L4)YuT0Pq4MfG$u&>Yr!Ad|A2zE^ z;;~!aYPVh8b0d5|v+YkKOZ)8Fw}RKc_`zd2y)~{JZ~h~FQfD{9_$zr<$2;MFkF0R9 qS`FpsujFB^cD&iR#uT`>mfhCf<+rT4OIhiKEPIpRk-mX90RIC`v#%xq delta 72 zcmV-O0Js02KCC9NJOcuqACo=<@&b_svoZvc0+VhBm;#ytlL!c9lXD4Lvxf>D0h0_3 ey0e231_S|clZzE_v#k~h0khE;BYevTQ$!{2a#hx;934|n8GBLJDu B5s&}? diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamEnums.php b/AdsAdManager/metadata/V1/TeamEnums.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamEnums.php rename to AdsAdManager/metadata/V1/TeamEnums.php diff --git a/AdsAdManager/metadata/V1/TeamMessages.php b/AdsAdManager/metadata/V1/TeamMessages.php index bd4c750c40cce5fdc1e4780ea9fa912896341ba2..d998ab85165c4653bd417913f619838fa4d52c1b 100644 GIT binary patch delta 522 zcmX@WafWBZ3C4-j__<<2QWJAs^Gb7zC-X6hO@7BHG5IuO2g_?VF71il+LN1@q!i@S z^YhblQuPxHGWF9kQ*%<{lTtGh%QEwe^a_gdOY$erW|GO7#=^w{GD=90izP2HH&udB zfl-6giTQyehmaf>PfBKSK~7?2JXneuCdK5z(80(kB+JE}l3JWxlvz-cnV%=Y0+VL+ zU<66~aIqDaB$kvGORxfE_>7Du8!$`M>w#6+R-i$XFET~c^KZ#iMgZu>3bp_M diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamService.php b/AdsAdManager/metadata/V1/TeamService.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamService.php rename to AdsAdManager/metadata/V1/TeamService.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/WebProperty.php b/AdsAdManager/metadata/V1/WebProperty.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/WebProperty.php rename to AdsAdManager/metadata/V1/WebProperty.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_allow_ad_review_center_ads.php b/AdsAdManager/samples/V1/AdReviewCenterAdServiceClient/batch_allow_ad_review_center_ads.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_allow_ad_review_center_ads.php rename to AdsAdManager/samples/V1/AdReviewCenterAdServiceClient/batch_allow_ad_review_center_ads.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_block_ad_review_center_ads.php b/AdsAdManager/samples/V1/AdReviewCenterAdServiceClient/batch_block_ad_review_center_ads.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/batch_block_ad_review_center_ads.php rename to AdsAdManager/samples/V1/AdReviewCenterAdServiceClient/batch_block_ad_review_center_ads.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/search_ad_review_center_ads.php b/AdsAdManager/samples/V1/AdReviewCenterAdServiceClient/search_ad_review_center_ads.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/AdReviewCenterAdServiceClient/search_ad_review_center_ads.php rename to AdsAdManager/samples/V1/AdReviewCenterAdServiceClient/search_ad_review_center_ads.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/get_application.php b/AdsAdManager/samples/V1/ApplicationServiceClient/get_application.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/get_application.php rename to AdsAdManager/samples/V1/ApplicationServiceClient/get_application.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/list_applications.php b/AdsAdManager/samples/V1/ApplicationServiceClient/list_applications.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ApplicationServiceClient/list_applications.php rename to AdsAdManager/samples/V1/ApplicationServiceClient/list_applications.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php b/AdsAdManager/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php rename to AdsAdManager/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php b/AdsAdManager/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php rename to AdsAdManager/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/get_browser_language.php b/AdsAdManager/samples/V1/BrowserLanguageServiceClient/get_browser_language.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/get_browser_language.php rename to AdsAdManager/samples/V1/BrowserLanguageServiceClient/get_browser_language.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/list_browser_languages.php b/AdsAdManager/samples/V1/BrowserLanguageServiceClient/list_browser_languages.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserLanguageServiceClient/list_browser_languages.php rename to AdsAdManager/samples/V1/BrowserLanguageServiceClient/list_browser_languages.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/get_browser.php b/AdsAdManager/samples/V1/BrowserServiceClient/get_browser.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/get_browser.php rename to AdsAdManager/samples/V1/BrowserServiceClient/get_browser.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/list_browsers.php b/AdsAdManager/samples/V1/BrowserServiceClient/list_browsers.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/BrowserServiceClient/list_browsers.php rename to AdsAdManager/samples/V1/BrowserServiceClient/list_browsers.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/get_cms_metadata_key.php b/AdsAdManager/samples/V1/CmsMetadataKeyServiceClient/get_cms_metadata_key.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/get_cms_metadata_key.php rename to AdsAdManager/samples/V1/CmsMetadataKeyServiceClient/get_cms_metadata_key.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/list_cms_metadata_keys.php b/AdsAdManager/samples/V1/CmsMetadataKeyServiceClient/list_cms_metadata_keys.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataKeyServiceClient/list_cms_metadata_keys.php rename to AdsAdManager/samples/V1/CmsMetadataKeyServiceClient/list_cms_metadata_keys.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/get_cms_metadata_value.php b/AdsAdManager/samples/V1/CmsMetadataValueServiceClient/get_cms_metadata_value.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/get_cms_metadata_value.php rename to AdsAdManager/samples/V1/CmsMetadataValueServiceClient/get_cms_metadata_value.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/list_cms_metadata_values.php b/AdsAdManager/samples/V1/CmsMetadataValueServiceClient/list_cms_metadata_values.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CmsMetadataValueServiceClient/list_cms_metadata_values.php rename to AdsAdManager/samples/V1/CmsMetadataValueServiceClient/list_cms_metadata_values.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_create_contacts.php b/AdsAdManager/samples/V1/ContactServiceClient/batch_create_contacts.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_create_contacts.php rename to AdsAdManager/samples/V1/ContactServiceClient/batch_create_contacts.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_update_contacts.php b/AdsAdManager/samples/V1/ContactServiceClient/batch_update_contacts.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/batch_update_contacts.php rename to AdsAdManager/samples/V1/ContactServiceClient/batch_update_contacts.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/create_contact.php b/AdsAdManager/samples/V1/ContactServiceClient/create_contact.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/create_contact.php rename to AdsAdManager/samples/V1/ContactServiceClient/create_contact.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/get_contact.php b/AdsAdManager/samples/V1/ContactServiceClient/get_contact.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/get_contact.php rename to AdsAdManager/samples/V1/ContactServiceClient/get_contact.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/list_contacts.php b/AdsAdManager/samples/V1/ContactServiceClient/list_contacts.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/list_contacts.php rename to AdsAdManager/samples/V1/ContactServiceClient/list_contacts.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/update_contact.php b/AdsAdManager/samples/V1/ContactServiceClient/update_contact.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContactServiceClient/update_contact.php rename to AdsAdManager/samples/V1/ContactServiceClient/update_contact.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/get_content_bundle.php b/AdsAdManager/samples/V1/ContentBundleServiceClient/get_content_bundle.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/get_content_bundle.php rename to AdsAdManager/samples/V1/ContentBundleServiceClient/get_content_bundle.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/list_content_bundles.php b/AdsAdManager/samples/V1/ContentBundleServiceClient/list_content_bundles.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContentBundleServiceClient/list_content_bundles.php rename to AdsAdManager/samples/V1/ContentBundleServiceClient/list_content_bundles.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/get_content_label.php b/AdsAdManager/samples/V1/ContentLabelServiceClient/get_content_label.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/get_content_label.php rename to AdsAdManager/samples/V1/ContentLabelServiceClient/get_content_label.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/list_content_labels.php b/AdsAdManager/samples/V1/ContentLabelServiceClient/list_content_labels.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContentLabelServiceClient/list_content_labels.php rename to AdsAdManager/samples/V1/ContentLabelServiceClient/list_content_labels.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/get_content.php b/AdsAdManager/samples/V1/ContentServiceClient/get_content.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/get_content.php rename to AdsAdManager/samples/V1/ContentServiceClient/get_content.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/list_content.php b/AdsAdManager/samples/V1/ContentServiceClient/list_content.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/ContentServiceClient/list_content.php rename to AdsAdManager/samples/V1/ContentServiceClient/list_content.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/get_creative_template.php b/AdsAdManager/samples/V1/CreativeTemplateServiceClient/get_creative_template.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/get_creative_template.php rename to AdsAdManager/samples/V1/CreativeTemplateServiceClient/get_creative_template.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/list_creative_templates.php b/AdsAdManager/samples/V1/CreativeTemplateServiceClient/list_creative_templates.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CreativeTemplateServiceClient/list_creative_templates.php rename to AdsAdManager/samples/V1/CreativeTemplateServiceClient/list_creative_templates.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php b/AdsAdManager/samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php rename to AdsAdManager/samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php b/AdsAdManager/samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php rename to AdsAdManager/samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php b/AdsAdManager/samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php rename to AdsAdManager/samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php b/AdsAdManager/samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php rename to AdsAdManager/samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/create_custom_field.php b/AdsAdManager/samples/V1/CustomFieldServiceClient/create_custom_field.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/create_custom_field.php rename to AdsAdManager/samples/V1/CustomFieldServiceClient/create_custom_field.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/update_custom_field.php b/AdsAdManager/samples/V1/CustomFieldServiceClient/update_custom_field.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/update_custom_field.php rename to AdsAdManager/samples/V1/CustomFieldServiceClient/update_custom_field.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/get_device_capability.php b/AdsAdManager/samples/V1/DeviceCapabilityServiceClient/get_device_capability.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/get_device_capability.php rename to AdsAdManager/samples/V1/DeviceCapabilityServiceClient/get_device_capability.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/list_device_capabilities.php b/AdsAdManager/samples/V1/DeviceCapabilityServiceClient/list_device_capabilities.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCapabilityServiceClient/list_device_capabilities.php rename to AdsAdManager/samples/V1/DeviceCapabilityServiceClient/list_device_capabilities.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/get_device_manufacturer.php b/AdsAdManager/samples/V1/DeviceManufacturerServiceClient/get_device_manufacturer.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/get_device_manufacturer.php rename to AdsAdManager/samples/V1/DeviceManufacturerServiceClient/get_device_manufacturer.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/list_device_manufacturers.php b/AdsAdManager/samples/V1/DeviceManufacturerServiceClient/list_device_manufacturers.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceManufacturerServiceClient/list_device_manufacturers.php rename to AdsAdManager/samples/V1/DeviceManufacturerServiceClient/list_device_manufacturers.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/get_mobile_carrier.php b/AdsAdManager/samples/V1/MobileCarrierServiceClient/get_mobile_carrier.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/get_mobile_carrier.php rename to AdsAdManager/samples/V1/MobileCarrierServiceClient/get_mobile_carrier.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/list_mobile_carriers.php b/AdsAdManager/samples/V1/MobileCarrierServiceClient/list_mobile_carriers.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/MobileCarrierServiceClient/list_mobile_carriers.php rename to AdsAdManager/samples/V1/MobileCarrierServiceClient/list_mobile_carriers.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/get_mobile_device.php b/AdsAdManager/samples/V1/MobileDeviceServiceClient/get_mobile_device.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/get_mobile_device.php rename to AdsAdManager/samples/V1/MobileDeviceServiceClient/get_mobile_device.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/list_mobile_devices.php b/AdsAdManager/samples/V1/MobileDeviceServiceClient/list_mobile_devices.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceServiceClient/list_mobile_devices.php rename to AdsAdManager/samples/V1/MobileDeviceServiceClient/list_mobile_devices.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/get_mobile_device_submodel.php b/AdsAdManager/samples/V1/MobileDeviceSubmodelServiceClient/get_mobile_device_submodel.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/get_mobile_device_submodel.php rename to AdsAdManager/samples/V1/MobileDeviceSubmodelServiceClient/get_mobile_device_submodel.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/list_mobile_device_submodels.php b/AdsAdManager/samples/V1/MobileDeviceSubmodelServiceClient/list_mobile_device_submodels.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/MobileDeviceSubmodelServiceClient/list_mobile_device_submodels.php rename to AdsAdManager/samples/V1/MobileDeviceSubmodelServiceClient/list_mobile_device_submodels.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_activate_placements.php b/AdsAdManager/samples/V1/PlacementServiceClient/batch_activate_placements.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_activate_placements.php rename to AdsAdManager/samples/V1/PlacementServiceClient/batch_activate_placements.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_archive_placements.php b/AdsAdManager/samples/V1/PlacementServiceClient/batch_archive_placements.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_archive_placements.php rename to AdsAdManager/samples/V1/PlacementServiceClient/batch_archive_placements.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_create_placements.php b/AdsAdManager/samples/V1/PlacementServiceClient/batch_create_placements.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_create_placements.php rename to AdsAdManager/samples/V1/PlacementServiceClient/batch_create_placements.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_deactivate_placements.php b/AdsAdManager/samples/V1/PlacementServiceClient/batch_deactivate_placements.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_deactivate_placements.php rename to AdsAdManager/samples/V1/PlacementServiceClient/batch_deactivate_placements.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_update_placements.php b/AdsAdManager/samples/V1/PlacementServiceClient/batch_update_placements.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/batch_update_placements.php rename to AdsAdManager/samples/V1/PlacementServiceClient/batch_update_placements.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/create_placement.php b/AdsAdManager/samples/V1/PlacementServiceClient/create_placement.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/create_placement.php rename to AdsAdManager/samples/V1/PlacementServiceClient/create_placement.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/update_placement.php b/AdsAdManager/samples/V1/PlacementServiceClient/update_placement.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/update_placement.php rename to AdsAdManager/samples/V1/PlacementServiceClient/update_placement.php diff --git a/AdsAdManager/samples/V1/ReportServiceClient/create_report.php b/AdsAdManager/samples/V1/ReportServiceClient/create_report.php index ca38b7b8f5fe..b6b6558621db 100644 --- a/AdsAdManager/samples/V1/ReportServiceClient/create_report.php +++ b/AdsAdManager/samples/V1/ReportServiceClient/create_report.php @@ -27,10 +27,10 @@ use Google\Ads\AdManager\V1\CreateReportRequest; use Google\Ads\AdManager\V1\Report; use Google\Ads\AdManager\V1\ReportDefinition; -use Google\Ads\AdManager\V1\Report\DateRange; -use Google\Ads\AdManager\V1\Report\Dimension; -use Google\Ads\AdManager\V1\Report\Metric; -use Google\Ads\AdManager\V1\Report\ReportType; +use Google\Ads\AdManager\V1\ReportDefinition\DateRange; +use Google\Ads\AdManager\V1\ReportDefinition\Dimension; +use Google\Ads\AdManager\V1\ReportDefinition\Metric; +use Google\Ads\AdManager\V1\ReportDefinition\ReportType; use Google\ApiCore\ApiException; /** diff --git a/AdsAdManager/samples/V1/ReportServiceClient/run_report.php b/AdsAdManager/samples/V1/ReportServiceClient/run_report.php index d3e4d98a6ef8..8e203d2ead0f 100644 --- a/AdsAdManager/samples/V1/ReportServiceClient/run_report.php +++ b/AdsAdManager/samples/V1/ReportServiceClient/run_report.php @@ -32,7 +32,7 @@ /** * Initiates the execution of an existing report asynchronously. Users can - * get the report by polling this operation via + * get the report by polling this operation using * `OperationsService.GetOperation`. * Poll every 5 seconds initially, with an exponential * backoff. Once a report is complete, the operation will contain a diff --git a/AdsAdManager/samples/V1/ReportServiceClient/update_report.php b/AdsAdManager/samples/V1/ReportServiceClient/update_report.php index 84e9e65464c1..76d4eb28b7f9 100644 --- a/AdsAdManager/samples/V1/ReportServiceClient/update_report.php +++ b/AdsAdManager/samples/V1/ReportServiceClient/update_report.php @@ -26,10 +26,10 @@ use Google\Ads\AdManager\V1\Client\ReportServiceClient; use Google\Ads\AdManager\V1\Report; use Google\Ads\AdManager\V1\ReportDefinition; -use Google\Ads\AdManager\V1\Report\DateRange; -use Google\Ads\AdManager\V1\Report\Dimension; -use Google\Ads\AdManager\V1\Report\Metric; -use Google\Ads\AdManager\V1\Report\ReportType; +use Google\Ads\AdManager\V1\ReportDefinition\DateRange; +use Google\Ads\AdManager\V1\ReportDefinition\Dimension; +use Google\Ads\AdManager\V1\ReportDefinition\Metric; +use Google\Ads\AdManager\V1\ReportDefinition\ReportType; use Google\Ads\AdManager\V1\UpdateReportRequest; use Google\ApiCore\ApiException; use Google\Protobuf\FieldMask; diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_create_sites.php b/AdsAdManager/samples/V1/SiteServiceClient/batch_create_sites.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_create_sites.php rename to AdsAdManager/samples/V1/SiteServiceClient/batch_create_sites.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_deactivate_sites.php b/AdsAdManager/samples/V1/SiteServiceClient/batch_deactivate_sites.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_deactivate_sites.php rename to AdsAdManager/samples/V1/SiteServiceClient/batch_deactivate_sites.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_submit_sites_for_approval.php b/AdsAdManager/samples/V1/SiteServiceClient/batch_submit_sites_for_approval.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_submit_sites_for_approval.php rename to AdsAdManager/samples/V1/SiteServiceClient/batch_submit_sites_for_approval.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_update_sites.php b/AdsAdManager/samples/V1/SiteServiceClient/batch_update_sites.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/batch_update_sites.php rename to AdsAdManager/samples/V1/SiteServiceClient/batch_update_sites.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/create_site.php b/AdsAdManager/samples/V1/SiteServiceClient/create_site.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/create_site.php rename to AdsAdManager/samples/V1/SiteServiceClient/create_site.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/get_site.php b/AdsAdManager/samples/V1/SiteServiceClient/get_site.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/get_site.php rename to AdsAdManager/samples/V1/SiteServiceClient/get_site.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/list_sites.php b/AdsAdManager/samples/V1/SiteServiceClient/list_sites.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/list_sites.php rename to AdsAdManager/samples/V1/SiteServiceClient/list_sites.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/update_site.php b/AdsAdManager/samples/V1/SiteServiceClient/update_site.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/SiteServiceClient/update_site.php rename to AdsAdManager/samples/V1/SiteServiceClient/update_site.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_activate_teams.php b/AdsAdManager/samples/V1/TeamServiceClient/batch_activate_teams.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_activate_teams.php rename to AdsAdManager/samples/V1/TeamServiceClient/batch_activate_teams.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_create_teams.php b/AdsAdManager/samples/V1/TeamServiceClient/batch_create_teams.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_create_teams.php rename to AdsAdManager/samples/V1/TeamServiceClient/batch_create_teams.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_deactivate_teams.php b/AdsAdManager/samples/V1/TeamServiceClient/batch_deactivate_teams.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_deactivate_teams.php rename to AdsAdManager/samples/V1/TeamServiceClient/batch_deactivate_teams.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_update_teams.php b/AdsAdManager/samples/V1/TeamServiceClient/batch_update_teams.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/batch_update_teams.php rename to AdsAdManager/samples/V1/TeamServiceClient/batch_update_teams.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/create_team.php b/AdsAdManager/samples/V1/TeamServiceClient/create_team.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/create_team.php rename to AdsAdManager/samples/V1/TeamServiceClient/create_team.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/get_team.php b/AdsAdManager/samples/V1/TeamServiceClient/get_team.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/get_team.php rename to AdsAdManager/samples/V1/TeamServiceClient/get_team.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/list_teams.php b/AdsAdManager/samples/V1/TeamServiceClient/list_teams.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/list_teams.php rename to AdsAdManager/samples/V1/TeamServiceClient/list_teams.php diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/update_team.php b/AdsAdManager/samples/V1/TeamServiceClient/update_team.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/samples/V1/TeamServiceClient/update_team.php rename to AdsAdManager/samples/V1/TeamServiceClient/update_team.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAd.php b/AdsAdManager/src/V1/AdReviewCenterAd.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAd.php rename to AdsAdManager/src/V1/AdReviewCenterAd.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum.php b/AdsAdManager/src/V1/AdReviewCenterAdStatusEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum.php rename to AdsAdManager/src/V1/AdReviewCenterAdStatusEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php b/AdsAdManager/src/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php similarity index 90% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php rename to AdsAdManager/src/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php index 9caf266030dd..22ce595daba1 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php +++ b/AdsAdManager/src/V1/AdReviewCenterAdStatusEnum/AdReviewCenterAdStatus.php @@ -66,6 +66,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AdReviewCenterAdStatus::class, \Google\Ads\AdManager\V1\AdReviewCenterAdStatusEnum_AdReviewCenterAdStatus::class); diff --git a/AdsAdManager/src/V1/AdUnitParent.php b/AdsAdManager/src/V1/AdUnitParent.php index 558682858ed9..769f73062c74 100644 --- a/AdsAdManager/src/V1/AdUnitParent.php +++ b/AdsAdManager/src/V1/AdUnitParent.php @@ -19,22 +19,22 @@ class AdUnitParent extends \Google\Protobuf\Internal\Message * Output only. The parent of the current AdUnit * Format: `networks/{network_code}/adUnits/{ad_unit_id}` * - * Generated from protobuf field string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * Generated from protobuf field optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { */ - protected $parent_ad_unit = ''; + protected $parent_ad_unit = null; /** * Output only. The display name of the parent AdUnit. * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $display_name = ''; + protected $display_name = null; /** * Output only. A string used to uniquely identify the ad unit for the * purposes of serving the ad. * - * Generated from protobuf field string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $ad_unit_code = ''; + protected $ad_unit_code = null; /** * Constructor. @@ -61,19 +61,29 @@ public function __construct($data = NULL) { * Output only. The parent of the current AdUnit * Format: `networks/{network_code}/adUnits/{ad_unit_id}` * - * Generated from protobuf field string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * Generated from protobuf field optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { * @return string */ public function getParentAdUnit() { - return $this->parent_ad_unit; + return isset($this->parent_ad_unit) ? $this->parent_ad_unit : ''; + } + + public function hasParentAdUnit() + { + return isset($this->parent_ad_unit); + } + + public function clearParentAdUnit() + { + unset($this->parent_ad_unit); } /** * Output only. The parent of the current AdUnit * Format: `networks/{network_code}/adUnits/{ad_unit_id}` * - * Generated from protobuf field string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * Generated from protobuf field optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -88,18 +98,28 @@ public function setParentAdUnit($var) /** * Output only. The display name of the parent AdUnit. * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return string */ public function getDisplayName() { - return $this->display_name; + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); } /** * Output only. The display name of the parent AdUnit. * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param string $var * @return $this */ @@ -115,19 +135,29 @@ public function setDisplayName($var) * Output only. A string used to uniquely identify the ad unit for the * purposes of serving the ad. * - * Generated from protobuf field string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return string */ public function getAdUnitCode() { - return $this->ad_unit_code; + return isset($this->ad_unit_code) ? $this->ad_unit_code : ''; + } + + public function hasAdUnitCode() + { + return isset($this->ad_unit_code); + } + + public function clearAdUnitCode() + { + unset($this->ad_unit_code); } /** * Output only. A string used to uniquely identify the ad unit for the * purposes of serving the ad. * - * Generated from protobuf field string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param string $var * @return $this */ diff --git a/AdsAdManager/src/V1/AdUnitSize.php b/AdsAdManager/src/V1/AdUnitSize.php index 43ee5cd761d8..5e828df22a2c 100644 --- a/AdsAdManager/src/V1/AdUnitSize.php +++ b/AdsAdManager/src/V1/AdUnitSize.php @@ -18,15 +18,15 @@ class AdUnitSize extends \Google\Protobuf\Internal\Message /** * Required. The Size of the AdUnit. * - * Generated from protobuf field .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; */ protected $size = null; /** * Required. The EnvironmentType of the AdUnit * - * Generated from protobuf field .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $environment_type = 0; + protected $environment_type = null; /** * The companions for this ad unit size. Companions are only valid if the * environment is @@ -60,7 +60,7 @@ public function __construct($data = NULL) { /** * Required. The Size of the AdUnit. * - * Generated from protobuf field .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Ads\AdManager\V1\Size|null */ public function getSize() @@ -81,7 +81,7 @@ public function clearSize() /** * Required. The Size of the AdUnit. * - * Generated from protobuf field .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Ads\AdManager\V1\Size $var * @return $this */ @@ -96,18 +96,28 @@ public function setSize($var) /** * Required. The EnvironmentType of the AdUnit * - * Generated from protobuf field .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return int */ public function getEnvironmentType() { - return $this->environment_type; + return isset($this->environment_type) ? $this->environment_type : 0; + } + + public function hasEnvironmentType() + { + return isset($this->environment_type); + } + + public function clearEnvironmentType() + { + unset($this->environment_type); } /** * Required. The EnvironmentType of the AdUnit * - * Generated from protobuf field .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this */ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Application.php b/AdsAdManager/src/V1/Application.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Application.php rename to AdsAdManager/src/V1/Application.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegment.php b/AdsAdManager/src/V1/AudienceSegment.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegment.php rename to AdsAdManager/src/V1/AudienceSegment.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegmentTargeting.php b/AdsAdManager/src/V1/AudienceSegmentTargeting.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AudienceSegmentTargeting.php rename to AdsAdManager/src/V1/AudienceSegmentTargeting.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsRequest.php b/AdsAdManager/src/V1/BatchActivateCustomFieldsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsRequest.php rename to AdsAdManager/src/V1/BatchActivateCustomFieldsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsResponse.php b/AdsAdManager/src/V1/BatchActivateCustomFieldsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateCustomFieldsResponse.php rename to AdsAdManager/src/V1/BatchActivateCustomFieldsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsRequest.php b/AdsAdManager/src/V1/BatchActivatePlacementsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsRequest.php rename to AdsAdManager/src/V1/BatchActivatePlacementsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsResponse.php b/AdsAdManager/src/V1/BatchActivatePlacementsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivatePlacementsResponse.php rename to AdsAdManager/src/V1/BatchActivatePlacementsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsRequest.php b/AdsAdManager/src/V1/BatchActivateTeamsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsRequest.php rename to AdsAdManager/src/V1/BatchActivateTeamsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsResponse.php b/AdsAdManager/src/V1/BatchActivateTeamsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchActivateTeamsResponse.php rename to AdsAdManager/src/V1/BatchActivateTeamsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAdReviewCenterAdsOperationMetadata.php b/AdsAdManager/src/V1/BatchAdReviewCenterAdsOperationMetadata.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAdReviewCenterAdsOperationMetadata.php rename to AdsAdManager/src/V1/BatchAdReviewCenterAdsOperationMetadata.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsRequest.php b/AdsAdManager/src/V1/BatchAllowAdReviewCenterAdsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsRequest.php rename to AdsAdManager/src/V1/BatchAllowAdReviewCenterAdsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsResponse.php b/AdsAdManager/src/V1/BatchAllowAdReviewCenterAdsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchAllowAdReviewCenterAdsResponse.php rename to AdsAdManager/src/V1/BatchAllowAdReviewCenterAdsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsRequest.php b/AdsAdManager/src/V1/BatchArchivePlacementsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsRequest.php rename to AdsAdManager/src/V1/BatchArchivePlacementsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsResponse.php b/AdsAdManager/src/V1/BatchArchivePlacementsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchArchivePlacementsResponse.php rename to AdsAdManager/src/V1/BatchArchivePlacementsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsRequest.php b/AdsAdManager/src/V1/BatchBlockAdReviewCenterAdsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsRequest.php rename to AdsAdManager/src/V1/BatchBlockAdReviewCenterAdsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsResponse.php b/AdsAdManager/src/V1/BatchBlockAdReviewCenterAdsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchBlockAdReviewCenterAdsResponse.php rename to AdsAdManager/src/V1/BatchBlockAdReviewCenterAdsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsRequest.php b/AdsAdManager/src/V1/BatchCreateContactsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsRequest.php rename to AdsAdManager/src/V1/BatchCreateContactsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsResponse.php b/AdsAdManager/src/V1/BatchCreateContactsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateContactsResponse.php rename to AdsAdManager/src/V1/BatchCreateContactsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsRequest.php b/AdsAdManager/src/V1/BatchCreateCustomFieldsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsRequest.php rename to AdsAdManager/src/V1/BatchCreateCustomFieldsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsResponse.php b/AdsAdManager/src/V1/BatchCreateCustomFieldsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateCustomFieldsResponse.php rename to AdsAdManager/src/V1/BatchCreateCustomFieldsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsRequest.php b/AdsAdManager/src/V1/BatchCreatePlacementsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsRequest.php rename to AdsAdManager/src/V1/BatchCreatePlacementsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsResponse.php b/AdsAdManager/src/V1/BatchCreatePlacementsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreatePlacementsResponse.php rename to AdsAdManager/src/V1/BatchCreatePlacementsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesRequest.php b/AdsAdManager/src/V1/BatchCreateSitesRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesRequest.php rename to AdsAdManager/src/V1/BatchCreateSitesRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesResponse.php b/AdsAdManager/src/V1/BatchCreateSitesResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateSitesResponse.php rename to AdsAdManager/src/V1/BatchCreateSitesResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsRequest.php b/AdsAdManager/src/V1/BatchCreateTeamsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsRequest.php rename to AdsAdManager/src/V1/BatchCreateTeamsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsResponse.php b/AdsAdManager/src/V1/BatchCreateTeamsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateTeamsResponse.php rename to AdsAdManager/src/V1/BatchCreateTeamsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsRequest.php b/AdsAdManager/src/V1/BatchDeactivateCustomFieldsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsRequest.php rename to AdsAdManager/src/V1/BatchDeactivateCustomFieldsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsResponse.php b/AdsAdManager/src/V1/BatchDeactivateCustomFieldsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateCustomFieldsResponse.php rename to AdsAdManager/src/V1/BatchDeactivateCustomFieldsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsRequest.php b/AdsAdManager/src/V1/BatchDeactivatePlacementsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsRequest.php rename to AdsAdManager/src/V1/BatchDeactivatePlacementsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsResponse.php b/AdsAdManager/src/V1/BatchDeactivatePlacementsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivatePlacementsResponse.php rename to AdsAdManager/src/V1/BatchDeactivatePlacementsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesRequest.php b/AdsAdManager/src/V1/BatchDeactivateSitesRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesRequest.php rename to AdsAdManager/src/V1/BatchDeactivateSitesRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesResponse.php b/AdsAdManager/src/V1/BatchDeactivateSitesResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateSitesResponse.php rename to AdsAdManager/src/V1/BatchDeactivateSitesResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsRequest.php b/AdsAdManager/src/V1/BatchDeactivateTeamsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsRequest.php rename to AdsAdManager/src/V1/BatchDeactivateTeamsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsResponse.php b/AdsAdManager/src/V1/BatchDeactivateTeamsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchDeactivateTeamsResponse.php rename to AdsAdManager/src/V1/BatchDeactivateTeamsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalRequest.php b/AdsAdManager/src/V1/BatchSubmitSitesForApprovalRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalRequest.php rename to AdsAdManager/src/V1/BatchSubmitSitesForApprovalRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalResponse.php b/AdsAdManager/src/V1/BatchSubmitSitesForApprovalResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchSubmitSitesForApprovalResponse.php rename to AdsAdManager/src/V1/BatchSubmitSitesForApprovalResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsRequest.php b/AdsAdManager/src/V1/BatchUpdateContactsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsRequest.php rename to AdsAdManager/src/V1/BatchUpdateContactsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsResponse.php b/AdsAdManager/src/V1/BatchUpdateContactsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateContactsResponse.php rename to AdsAdManager/src/V1/BatchUpdateContactsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsRequest.php b/AdsAdManager/src/V1/BatchUpdateCustomFieldsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsRequest.php rename to AdsAdManager/src/V1/BatchUpdateCustomFieldsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsResponse.php b/AdsAdManager/src/V1/BatchUpdateCustomFieldsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateCustomFieldsResponse.php rename to AdsAdManager/src/V1/BatchUpdateCustomFieldsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsRequest.php b/AdsAdManager/src/V1/BatchUpdatePlacementsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsRequest.php rename to AdsAdManager/src/V1/BatchUpdatePlacementsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsResponse.php b/AdsAdManager/src/V1/BatchUpdatePlacementsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdatePlacementsResponse.php rename to AdsAdManager/src/V1/BatchUpdatePlacementsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesRequest.php b/AdsAdManager/src/V1/BatchUpdateSitesRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesRequest.php rename to AdsAdManager/src/V1/BatchUpdateSitesRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesResponse.php b/AdsAdManager/src/V1/BatchUpdateSitesResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateSitesResponse.php rename to AdsAdManager/src/V1/BatchUpdateSitesResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsRequest.php b/AdsAdManager/src/V1/BatchUpdateTeamsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsRequest.php rename to AdsAdManager/src/V1/BatchUpdateTeamsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsResponse.php b/AdsAdManager/src/V1/BatchUpdateTeamsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateTeamsResponse.php rename to AdsAdManager/src/V1/BatchUpdateTeamsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Browser.php b/AdsAdManager/src/V1/Browser.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Browser.php rename to AdsAdManager/src/V1/Browser.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguage.php b/AdsAdManager/src/V1/BrowserLanguage.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguage.php rename to AdsAdManager/src/V1/BrowserLanguage.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguageTargeting.php b/AdsAdManager/src/V1/BrowserLanguageTargeting.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserLanguageTargeting.php rename to AdsAdManager/src/V1/BrowserLanguageTargeting.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserTargeting.php b/AdsAdManager/src/V1/BrowserTargeting.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BrowserTargeting.php rename to AdsAdManager/src/V1/BrowserTargeting.php diff --git a/AdsAdManager/src/V1/Client/AdBreakServiceClient.php b/AdsAdManager/src/V1/Client/AdBreakServiceClient.php index 00c55b5e896a..2d246dc314db 100644 --- a/AdsAdManager/src/V1/Client/AdBreakServiceClient.php +++ b/AdsAdManager/src/V1/Client/AdBreakServiceClient.php @@ -85,9 +85,7 @@ final class AdBreakServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -117,9 +115,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdReviewCenterAdServiceClient.php b/AdsAdManager/src/V1/Client/AdReviewCenterAdServiceClient.php similarity index 94% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdReviewCenterAdServiceClient.php rename to AdsAdManager/src/V1/Client/AdReviewCenterAdServiceClient.php index 23b83d4aff14..16142444f145 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdReviewCenterAdServiceClient.php +++ b/AdsAdManager/src/V1/Client/AdReviewCenterAdServiceClient.php @@ -85,9 +85,7 @@ final class AdReviewCenterAdServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private $operationsClient; @@ -104,7 +102,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/ad_review_center_ad_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/ad_review_center_ad_service_rest_client_config.php', ], ], ]; @@ -119,9 +118,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -182,8 +179,11 @@ private function createOperationsClient(array $options) * * @return string The formatted ad_review_center_ad resource. */ - public static function adReviewCenterAdName(string $networkCode, string $webPropertyCode, string $adReviewCenterAd): string - { + public static function adReviewCenterAdName( + string $networkCode, + string $webPropertyCode, + string $adReviewCenterAd + ): string { return self::getPathTemplate('adReviewCenterAd')->render([ 'network_code' => $networkCode, 'web_property_code' => $webPropertyCode, @@ -341,8 +341,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function batchAllowAdReviewCenterAds(BatchAllowAdReviewCenterAdsRequest $request, array $callOptions = []): OperationResponse - { + public function batchAllowAdReviewCenterAds( + BatchAllowAdReviewCenterAdsRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('BatchAllowAdReviewCenterAds', $request, $callOptions)->wait(); } @@ -371,8 +373,10 @@ public function batchAllowAdReviewCenterAds(BatchAllowAdReviewCenterAdsRequest $ * * @throws ApiException Thrown if the API call fails. */ - public function batchBlockAdReviewCenterAds(BatchBlockAdReviewCenterAdsRequest $request, array $callOptions = []): OperationResponse - { + public function batchBlockAdReviewCenterAds( + BatchBlockAdReviewCenterAdsRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('BatchBlockAdReviewCenterAds', $request, $callOptions)->wait(); } @@ -398,8 +402,10 @@ public function batchBlockAdReviewCenterAds(BatchBlockAdReviewCenterAdsRequest $ * * @throws ApiException Thrown if the API call fails. */ - public function searchAdReviewCenterAds(SearchAdReviewCenterAdsRequest $request, array $callOptions = []): PagedListResponse - { + public function searchAdReviewCenterAds( + SearchAdReviewCenterAdsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('SearchAdReviewCenterAds', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/AdUnitServiceClient.php b/AdsAdManager/src/V1/Client/AdUnitServiceClient.php index a1759aec2b85..9373836e3318 100644 --- a/AdsAdManager/src/V1/Client/AdUnitServiceClient.php +++ b/AdsAdManager/src/V1/Client/AdUnitServiceClient.php @@ -81,9 +81,7 @@ final class AdUnitServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -113,9 +111,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ApplicationServiceClient.php b/AdsAdManager/src/V1/Client/ApplicationServiceClient.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/ApplicationServiceClient.php rename to AdsAdManager/src/V1/Client/ApplicationServiceClient.php index 3a544ea79870..785cb9f3f727 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ApplicationServiceClient.php +++ b/AdsAdManager/src/V1/Client/ApplicationServiceClient.php @@ -79,9 +79,7 @@ final class ApplicationServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AudienceSegmentServiceClient.php b/AdsAdManager/src/V1/Client/AudienceSegmentServiceClient.php similarity index 97% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/AudienceSegmentServiceClient.php rename to AdsAdManager/src/V1/Client/AudienceSegmentServiceClient.php index 6e253faf9a4e..3221d4de1b70 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AudienceSegmentServiceClient.php +++ b/AdsAdManager/src/V1/Client/AudienceSegmentServiceClient.php @@ -79,9 +79,7 @@ final class AudienceSegmentServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -304,8 +300,10 @@ public function getAudienceSegment(GetAudienceSegmentRequest $request, array $ca * * @throws ApiException Thrown if the API call fails. */ - public function listAudienceSegments(ListAudienceSegmentsRequest $request, array $callOptions = []): PagedListResponse - { + public function listAudienceSegments( + ListAudienceSegmentsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListAudienceSegments', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/BandwidthGroupServiceClient.php b/AdsAdManager/src/V1/Client/BandwidthGroupServiceClient.php index 57bbd0ebc78d..7a6dcf7577d4 100644 --- a/AdsAdManager/src/V1/Client/BandwidthGroupServiceClient.php +++ b/AdsAdManager/src/V1/Client/BandwidthGroupServiceClient.php @@ -79,9 +79,7 @@ final class BandwidthGroupServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserLanguageServiceClient.php b/AdsAdManager/src/V1/Client/BrowserLanguageServiceClient.php similarity index 97% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserLanguageServiceClient.php rename to AdsAdManager/src/V1/Client/BrowserLanguageServiceClient.php index 0dbfa99dd522..337c158ddc6c 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserLanguageServiceClient.php +++ b/AdsAdManager/src/V1/Client/BrowserLanguageServiceClient.php @@ -79,9 +79,7 @@ final class BrowserLanguageServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -304,8 +300,10 @@ public function getBrowserLanguage(GetBrowserLanguageRequest $request, array $ca * * @throws ApiException Thrown if the API call fails. */ - public function listBrowserLanguages(ListBrowserLanguagesRequest $request, array $callOptions = []): PagedListResponse - { + public function listBrowserLanguages( + ListBrowserLanguagesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListBrowserLanguages', $request, $callOptions); } } diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserServiceClient.php b/AdsAdManager/src/V1/Client/BrowserServiceClient.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserServiceClient.php rename to AdsAdManager/src/V1/Client/BrowserServiceClient.php index 861eaeb6a832..7fbf6c179408 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BrowserServiceClient.php +++ b/AdsAdManager/src/V1/Client/BrowserServiceClient.php @@ -79,9 +79,7 @@ final class BrowserServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataKeyServiceClient.php b/AdsAdManager/src/V1/Client/CmsMetadataKeyServiceClient.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataKeyServiceClient.php rename to AdsAdManager/src/V1/Client/CmsMetadataKeyServiceClient.php index a40ab6189077..61b3210686d5 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataKeyServiceClient.php +++ b/AdsAdManager/src/V1/Client/CmsMetadataKeyServiceClient.php @@ -79,9 +79,7 @@ final class CmsMetadataKeyServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataValueServiceClient.php b/AdsAdManager/src/V1/Client/CmsMetadataValueServiceClient.php similarity index 96% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataValueServiceClient.php rename to AdsAdManager/src/V1/Client/CmsMetadataValueServiceClient.php index a6aaad6da1c3..141c29e5ba9f 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CmsMetadataValueServiceClient.php +++ b/AdsAdManager/src/V1/Client/CmsMetadataValueServiceClient.php @@ -79,9 +79,7 @@ final class CmsMetadataValueServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -96,7 +94,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/cms_metadata_value_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/cms_metadata_value_service_rest_client_config.php', ], ], ]; @@ -111,9 +110,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -304,8 +301,10 @@ public function getCmsMetadataValue(GetCmsMetadataValueRequest $request, array $ * * @throws ApiException Thrown if the API call fails. */ - public function listCmsMetadataValues(ListCmsMetadataValuesRequest $request, array $callOptions = []): PagedListResponse - { + public function listCmsMetadataValues( + ListCmsMetadataValuesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListCmsMetadataValues', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/CompanyServiceClient.php b/AdsAdManager/src/V1/Client/CompanyServiceClient.php index 7b1a48b3aa30..bb32745dfe0e 100644 --- a/AdsAdManager/src/V1/Client/CompanyServiceClient.php +++ b/AdsAdManager/src/V1/Client/CompanyServiceClient.php @@ -79,9 +79,7 @@ final class CompanyServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContactServiceClient.php b/AdsAdManager/src/V1/Client/ContactServiceClient.php similarity index 97% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContactServiceClient.php rename to AdsAdManager/src/V1/Client/ContactServiceClient.php index 617bd8c55ec0..3e0008bb22e4 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContactServiceClient.php +++ b/AdsAdManager/src/V1/Client/ContactServiceClient.php @@ -89,9 +89,7 @@ final class ContactServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -121,9 +119,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -304,8 +300,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function batchCreateContacts(BatchCreateContactsRequest $request, array $callOptions = []): BatchCreateContactsResponse - { + public function batchCreateContacts( + BatchCreateContactsRequest $request, + array $callOptions = [] + ): BatchCreateContactsResponse { return $this->startApiCall('BatchCreateContacts', $request, $callOptions)->wait(); } @@ -330,8 +328,10 @@ public function batchCreateContacts(BatchCreateContactsRequest $request, array $ * * @throws ApiException Thrown if the API call fails. */ - public function batchUpdateContacts(BatchUpdateContactsRequest $request, array $callOptions = []): BatchUpdateContactsResponse - { + public function batchUpdateContacts( + BatchUpdateContactsRequest $request, + array $callOptions = [] + ): BatchUpdateContactsResponse { return $this->startApiCall('BatchUpdateContacts', $request, $callOptions)->wait(); } diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentBundleServiceClient.php b/AdsAdManager/src/V1/Client/ContentBundleServiceClient.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentBundleServiceClient.php rename to AdsAdManager/src/V1/Client/ContentBundleServiceClient.php index d11d005f96c1..02fcfe192065 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentBundleServiceClient.php +++ b/AdsAdManager/src/V1/Client/ContentBundleServiceClient.php @@ -79,9 +79,7 @@ final class ContentBundleServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentLabelServiceClient.php b/AdsAdManager/src/V1/Client/ContentLabelServiceClient.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentLabelServiceClient.php rename to AdsAdManager/src/V1/Client/ContentLabelServiceClient.php index d2e1df931597..1269ac0d6591 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentLabelServiceClient.php +++ b/AdsAdManager/src/V1/Client/ContentLabelServiceClient.php @@ -79,9 +79,7 @@ final class ContentLabelServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentServiceClient.php b/AdsAdManager/src/V1/Client/ContentServiceClient.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentServiceClient.php rename to AdsAdManager/src/V1/Client/ContentServiceClient.php index 59097dc699d9..a3550bb222ee 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ContentServiceClient.php +++ b/AdsAdManager/src/V1/Client/ContentServiceClient.php @@ -79,9 +79,7 @@ final class ContentServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CreativeTemplateServiceClient.php b/AdsAdManager/src/V1/Client/CreativeTemplateServiceClient.php similarity index 97% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/CreativeTemplateServiceClient.php rename to AdsAdManager/src/V1/Client/CreativeTemplateServiceClient.php index 10c390da8ba0..9b2737ffaee7 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CreativeTemplateServiceClient.php +++ b/AdsAdManager/src/V1/Client/CreativeTemplateServiceClient.php @@ -79,9 +79,7 @@ final class CreativeTemplateServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -96,7 +94,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/creative_template_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/creative_template_service_rest_client_config.php', ], ], ]; @@ -111,9 +110,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -304,8 +301,10 @@ public function getCreativeTemplate(GetCreativeTemplateRequest $request, array $ * * @throws ApiException Thrown if the API call fails. */ - public function listCreativeTemplates(ListCreativeTemplatesRequest $request, array $callOptions = []): PagedListResponse - { + public function listCreativeTemplates( + ListCreativeTemplatesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListCreativeTemplates', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/CustomFieldServiceClient.php b/AdsAdManager/src/V1/Client/CustomFieldServiceClient.php index e3cb67a298b2..4605d93150ab 100644 --- a/AdsAdManager/src/V1/Client/CustomFieldServiceClient.php +++ b/AdsAdManager/src/V1/Client/CustomFieldServiceClient.php @@ -24,9 +24,19 @@ namespace Google\Ads\AdManager\V1\Client; +use Google\Ads\AdManager\V1\BatchActivateCustomFieldsRequest; +use Google\Ads\AdManager\V1\BatchActivateCustomFieldsResponse; +use Google\Ads\AdManager\V1\BatchCreateCustomFieldsRequest; +use Google\Ads\AdManager\V1\BatchCreateCustomFieldsResponse; +use Google\Ads\AdManager\V1\BatchDeactivateCustomFieldsRequest; +use Google\Ads\AdManager\V1\BatchDeactivateCustomFieldsResponse; +use Google\Ads\AdManager\V1\BatchUpdateCustomFieldsRequest; +use Google\Ads\AdManager\V1\BatchUpdateCustomFieldsResponse; +use Google\Ads\AdManager\V1\CreateCustomFieldRequest; use Google\Ads\AdManager\V1\CustomField; use Google\Ads\AdManager\V1\GetCustomFieldRequest; use Google\Ads\AdManager\V1\ListCustomFieldsRequest; +use Google\Ads\AdManager\V1\UpdateCustomFieldRequest; use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; @@ -51,8 +61,14 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * + * @method PromiseInterface batchActivateCustomFieldsAsync(BatchActivateCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateCustomFieldsAsync(BatchCreateCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchDeactivateCustomFieldsAsync(BatchDeactivateCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateCustomFieldsAsync(BatchUpdateCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCustomFieldAsync(CreateCustomFieldRequest $request, array $optionalArgs = []) * @method PromiseInterface getCustomFieldAsync(GetCustomFieldRequest $request, array $optionalArgs = []) * @method PromiseInterface listCustomFieldsAsync(ListCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCustomFieldAsync(UpdateCustomFieldRequest $request, array $optionalArgs = []) */ final class CustomFieldServiceClient { @@ -79,9 +95,7 @@ final class CustomFieldServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +125,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -255,6 +267,148 @@ public function __call($method, $args) return call_user_func_array([$this, 'startAsyncCall'], $args); } + /** + * Activates a list of `CustomField` objects. + * + * The async variant is + * {@see CustomFieldServiceClient::batchActivateCustomFieldsAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php + * + * @param BatchActivateCustomFieldsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchActivateCustomFieldsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchActivateCustomFields( + BatchActivateCustomFieldsRequest $request, + array $callOptions = [] + ): BatchActivateCustomFieldsResponse { + return $this->startApiCall('BatchActivateCustomFields', $request, $callOptions)->wait(); + } + + /** + * API to batch create `CustomField` objects. + * + * The async variant is + * {@see CustomFieldServiceClient::batchCreateCustomFieldsAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php + * + * @param BatchCreateCustomFieldsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateCustomFieldsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateCustomFields( + BatchCreateCustomFieldsRequest $request, + array $callOptions = [] + ): BatchCreateCustomFieldsResponse { + return $this->startApiCall('BatchCreateCustomFields', $request, $callOptions)->wait(); + } + + /** + * Deactivates a list of `CustomField` objects. + * + * The async variant is + * {@see CustomFieldServiceClient::batchDeactivateCustomFieldsAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php + * + * @param BatchDeactivateCustomFieldsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchDeactivateCustomFieldsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchDeactivateCustomFields( + BatchDeactivateCustomFieldsRequest $request, + array $callOptions = [] + ): BatchDeactivateCustomFieldsResponse { + return $this->startApiCall('BatchDeactivateCustomFields', $request, $callOptions)->wait(); + } + + /** + * API to batch update `CustomField` objects. + * + * The async variant is + * {@see CustomFieldServiceClient::batchUpdateCustomFieldsAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php + * + * @param BatchUpdateCustomFieldsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateCustomFieldsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateCustomFields( + BatchUpdateCustomFieldsRequest $request, + array $callOptions = [] + ): BatchUpdateCustomFieldsResponse { + return $this->startApiCall('BatchUpdateCustomFields', $request, $callOptions)->wait(); + } + + /** + * API to create a `CustomField` object. + * + * The async variant is {@see CustomFieldServiceClient::createCustomFieldAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/create_custom_field.php + * + * @param CreateCustomFieldRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomField + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCustomField(CreateCustomFieldRequest $request, array $callOptions = []): CustomField + { + return $this->startApiCall('CreateCustomField', $request, $callOptions)->wait(); + } + /** * API to retrieve a `CustomField` object. * @@ -306,4 +460,30 @@ public function listCustomFields(ListCustomFieldsRequest $request, array $callOp { return $this->startApiCall('ListCustomFields', $request, $callOptions); } + + /** + * API to update a `CustomField` object. + * + * The async variant is {@see CustomFieldServiceClient::updateCustomFieldAsync()} . + * + * @example samples/V1/CustomFieldServiceClient/update_custom_field.php + * + * @param UpdateCustomFieldRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomField + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCustomField(UpdateCustomFieldRequest $request, array $callOptions = []): CustomField + { + return $this->startApiCall('UpdateCustomField', $request, $callOptions)->wait(); + } } diff --git a/AdsAdManager/src/V1/Client/CustomTargetingKeyServiceClient.php b/AdsAdManager/src/V1/Client/CustomTargetingKeyServiceClient.php index 179b425a79fc..86bedb57e8fb 100644 --- a/AdsAdManager/src/V1/Client/CustomTargetingKeyServiceClient.php +++ b/AdsAdManager/src/V1/Client/CustomTargetingKeyServiceClient.php @@ -79,9 +79,7 @@ final class CustomTargetingKeyServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -96,7 +94,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/custom_targeting_key_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/custom_targeting_key_service_rest_client_config.php', ], ], ]; @@ -111,9 +110,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -277,8 +274,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function getCustomTargetingKey(GetCustomTargetingKeyRequest $request, array $callOptions = []): CustomTargetingKey - { + public function getCustomTargetingKey( + GetCustomTargetingKeyRequest $request, + array $callOptions = [] + ): CustomTargetingKey { return $this->startApiCall('GetCustomTargetingKey', $request, $callOptions)->wait(); } @@ -304,8 +303,10 @@ public function getCustomTargetingKey(GetCustomTargetingKeyRequest $request, arr * * @throws ApiException Thrown if the API call fails. */ - public function listCustomTargetingKeys(ListCustomTargetingKeysRequest $request, array $callOptions = []): PagedListResponse - { + public function listCustomTargetingKeys( + ListCustomTargetingKeysRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListCustomTargetingKeys', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/CustomTargetingValueServiceClient.php b/AdsAdManager/src/V1/Client/CustomTargetingValueServiceClient.php index c75f368b48d2..ce077087a5fd 100644 --- a/AdsAdManager/src/V1/Client/CustomTargetingValueServiceClient.php +++ b/AdsAdManager/src/V1/Client/CustomTargetingValueServiceClient.php @@ -79,9 +79,7 @@ final class CustomTargetingValueServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -96,7 +94,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/custom_targeting_value_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/custom_targeting_value_service_rest_client_config.php', ], ], ]; @@ -111,9 +110,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -277,8 +274,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function getCustomTargetingValue(GetCustomTargetingValueRequest $request, array $callOptions = []): CustomTargetingValue - { + public function getCustomTargetingValue( + GetCustomTargetingValueRequest $request, + array $callOptions = [] + ): CustomTargetingValue { return $this->startApiCall('GetCustomTargetingValue', $request, $callOptions)->wait(); } @@ -304,8 +303,10 @@ public function getCustomTargetingValue(GetCustomTargetingValueRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function listCustomTargetingValues(ListCustomTargetingValuesRequest $request, array $callOptions = []): PagedListResponse - { + public function listCustomTargetingValues( + ListCustomTargetingValuesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListCustomTargetingValues', $request, $callOptions); } } diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCapabilityServiceClient.php b/AdsAdManager/src/V1/Client/DeviceCapabilityServiceClient.php similarity index 96% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCapabilityServiceClient.php rename to AdsAdManager/src/V1/Client/DeviceCapabilityServiceClient.php index 9f97cb3b8b88..001e18a0927b 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCapabilityServiceClient.php +++ b/AdsAdManager/src/V1/Client/DeviceCapabilityServiceClient.php @@ -79,9 +79,7 @@ final class DeviceCapabilityServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -96,7 +94,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/device_capability_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/device_capability_service_rest_client_config.php', ], ], ]; @@ -111,9 +110,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -304,8 +301,10 @@ public function getDeviceCapability(GetDeviceCapabilityRequest $request, array $ * * @throws ApiException Thrown if the API call fails. */ - public function listDeviceCapabilities(ListDeviceCapabilitiesRequest $request, array $callOptions = []): PagedListResponse - { + public function listDeviceCapabilities( + ListDeviceCapabilitiesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListDeviceCapabilities', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/DeviceCategoryServiceClient.php b/AdsAdManager/src/V1/Client/DeviceCategoryServiceClient.php index 5ca8845393d8..497b2116e6dc 100644 --- a/AdsAdManager/src/V1/Client/DeviceCategoryServiceClient.php +++ b/AdsAdManager/src/V1/Client/DeviceCategoryServiceClient.php @@ -79,9 +79,7 @@ final class DeviceCategoryServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -304,8 +300,10 @@ public function getDeviceCategory(GetDeviceCategoryRequest $request, array $call * * @throws ApiException Thrown if the API call fails. */ - public function listDeviceCategories(ListDeviceCategoriesRequest $request, array $callOptions = []): PagedListResponse - { + public function listDeviceCategories( + ListDeviceCategoriesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListDeviceCategories', $request, $callOptions); } } diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceManufacturerServiceClient.php b/AdsAdManager/src/V1/Client/DeviceManufacturerServiceClient.php similarity index 95% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceManufacturerServiceClient.php rename to AdsAdManager/src/V1/Client/DeviceManufacturerServiceClient.php index acad02f683e1..c5f60597906f 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceManufacturerServiceClient.php +++ b/AdsAdManager/src/V1/Client/DeviceManufacturerServiceClient.php @@ -79,9 +79,7 @@ final class DeviceManufacturerServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -96,7 +94,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/device_manufacturer_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/device_manufacturer_service_rest_client_config.php', ], ], ]; @@ -111,9 +110,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -277,8 +274,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function getDeviceManufacturer(GetDeviceManufacturerRequest $request, array $callOptions = []): DeviceManufacturer - { + public function getDeviceManufacturer( + GetDeviceManufacturerRequest $request, + array $callOptions = [] + ): DeviceManufacturer { return $this->startApiCall('GetDeviceManufacturer', $request, $callOptions)->wait(); } @@ -304,8 +303,10 @@ public function getDeviceManufacturer(GetDeviceManufacturerRequest $request, arr * * @throws ApiException Thrown if the API call fails. */ - public function listDeviceManufacturers(ListDeviceManufacturersRequest $request, array $callOptions = []): PagedListResponse - { + public function listDeviceManufacturers( + ListDeviceManufacturersRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListDeviceManufacturers', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php b/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php index 637ee5b5c9cf..26ffdce05e19 100644 --- a/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php +++ b/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php @@ -89,9 +89,7 @@ final class EntitySignalsMappingServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -106,7 +104,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/entity_signals_mapping_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/entity_signals_mapping_service_rest_client_config.php', ], ], ]; @@ -121,9 +120,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -288,8 +285,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function batchCreateEntitySignalsMappings(BatchCreateEntitySignalsMappingsRequest $request, array $callOptions = []): BatchCreateEntitySignalsMappingsResponse - { + public function batchCreateEntitySignalsMappings( + BatchCreateEntitySignalsMappingsRequest $request, + array $callOptions = [] + ): BatchCreateEntitySignalsMappingsResponse { return $this->startApiCall('BatchCreateEntitySignalsMappings', $request, $callOptions)->wait(); } @@ -316,8 +315,10 @@ public function batchCreateEntitySignalsMappings(BatchCreateEntitySignalsMapping * * @throws ApiException Thrown if the API call fails. */ - public function batchUpdateEntitySignalsMappings(BatchUpdateEntitySignalsMappingsRequest $request, array $callOptions = []): BatchUpdateEntitySignalsMappingsResponse - { + public function batchUpdateEntitySignalsMappings( + BatchUpdateEntitySignalsMappingsRequest $request, + array $callOptions = [] + ): BatchUpdateEntitySignalsMappingsResponse { return $this->startApiCall('BatchUpdateEntitySignalsMappings', $request, $callOptions)->wait(); } @@ -343,8 +344,10 @@ public function batchUpdateEntitySignalsMappings(BatchUpdateEntitySignalsMapping * * @throws ApiException Thrown if the API call fails. */ - public function createEntitySignalsMapping(CreateEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping - { + public function createEntitySignalsMapping( + CreateEntitySignalsMappingRequest $request, + array $callOptions = [] + ): EntitySignalsMapping { return $this->startApiCall('CreateEntitySignalsMapping', $request, $callOptions)->wait(); } @@ -370,8 +373,10 @@ public function createEntitySignalsMapping(CreateEntitySignalsMappingRequest $re * * @throws ApiException Thrown if the API call fails. */ - public function getEntitySignalsMapping(GetEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping - { + public function getEntitySignalsMapping( + GetEntitySignalsMappingRequest $request, + array $callOptions = [] + ): EntitySignalsMapping { return $this->startApiCall('GetEntitySignalsMapping', $request, $callOptions)->wait(); } @@ -397,8 +402,10 @@ public function getEntitySignalsMapping(GetEntitySignalsMappingRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function listEntitySignalsMappings(ListEntitySignalsMappingsRequest $request, array $callOptions = []): PagedListResponse - { + public function listEntitySignalsMappings( + ListEntitySignalsMappingsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListEntitySignalsMappings', $request, $callOptions); } @@ -424,8 +431,10 @@ public function listEntitySignalsMappings(ListEntitySignalsMappingsRequest $requ * * @throws ApiException Thrown if the API call fails. */ - public function updateEntitySignalsMapping(UpdateEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping - { + public function updateEntitySignalsMapping( + UpdateEntitySignalsMappingRequest $request, + array $callOptions = [] + ): EntitySignalsMapping { return $this->startApiCall('UpdateEntitySignalsMapping', $request, $callOptions)->wait(); } } diff --git a/AdsAdManager/src/V1/Client/GeoTargetServiceClient.php b/AdsAdManager/src/V1/Client/GeoTargetServiceClient.php index 850c8a4033d6..3af77a67239b 100644 --- a/AdsAdManager/src/V1/Client/GeoTargetServiceClient.php +++ b/AdsAdManager/src/V1/Client/GeoTargetServiceClient.php @@ -79,9 +79,7 @@ final class GeoTargetServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileCarrierServiceClient.php b/AdsAdManager/src/V1/Client/MobileCarrierServiceClient.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileCarrierServiceClient.php rename to AdsAdManager/src/V1/Client/MobileCarrierServiceClient.php index f033e5dbe798..4218e5d841da 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileCarrierServiceClient.php +++ b/AdsAdManager/src/V1/Client/MobileCarrierServiceClient.php @@ -79,9 +79,7 @@ final class MobileCarrierServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceServiceClient.php b/AdsAdManager/src/V1/Client/MobileDeviceServiceClient.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceServiceClient.php rename to AdsAdManager/src/V1/Client/MobileDeviceServiceClient.php index 55637ac863f2..e4ccf5c5f8e4 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceServiceClient.php +++ b/AdsAdManager/src/V1/Client/MobileDeviceServiceClient.php @@ -79,9 +79,7 @@ final class MobileDeviceServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceSubmodelServiceClient.php b/AdsAdManager/src/V1/Client/MobileDeviceSubmodelServiceClient.php similarity index 95% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceSubmodelServiceClient.php rename to AdsAdManager/src/V1/Client/MobileDeviceSubmodelServiceClient.php index b368e57f520c..73f02b793202 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/MobileDeviceSubmodelServiceClient.php +++ b/AdsAdManager/src/V1/Client/MobileDeviceSubmodelServiceClient.php @@ -79,9 +79,7 @@ final class MobileDeviceSubmodelServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -96,7 +94,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/mobile_device_submodel_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/mobile_device_submodel_service_rest_client_config.php', ], ], ]; @@ -111,9 +110,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -277,8 +274,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function getMobileDeviceSubmodel(GetMobileDeviceSubmodelRequest $request, array $callOptions = []): MobileDeviceSubmodel - { + public function getMobileDeviceSubmodel( + GetMobileDeviceSubmodelRequest $request, + array $callOptions = [] + ): MobileDeviceSubmodel { return $this->startApiCall('GetMobileDeviceSubmodel', $request, $callOptions)->wait(); } @@ -304,8 +303,10 @@ public function getMobileDeviceSubmodel(GetMobileDeviceSubmodelRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function listMobileDeviceSubmodels(ListMobileDeviceSubmodelsRequest $request, array $callOptions = []): PagedListResponse - { + public function listMobileDeviceSubmodels( + ListMobileDeviceSubmodelsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListMobileDeviceSubmodels', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/NetworkServiceClient.php b/AdsAdManager/src/V1/Client/NetworkServiceClient.php index 747b1ec85cb0..721719c1975d 100644 --- a/AdsAdManager/src/V1/Client/NetworkServiceClient.php +++ b/AdsAdManager/src/V1/Client/NetworkServiceClient.php @@ -79,9 +79,7 @@ final class NetworkServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/AdsAdManager/src/V1/Client/OperatingSystemServiceClient.php b/AdsAdManager/src/V1/Client/OperatingSystemServiceClient.php index c0b0788b994c..add7fc16abb7 100644 --- a/AdsAdManager/src/V1/Client/OperatingSystemServiceClient.php +++ b/AdsAdManager/src/V1/Client/OperatingSystemServiceClient.php @@ -79,9 +79,7 @@ final class OperatingSystemServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -304,8 +300,10 @@ public function getOperatingSystem(GetOperatingSystemRequest $request, array $ca * * @throws ApiException Thrown if the API call fails. */ - public function listOperatingSystems(ListOperatingSystemsRequest $request, array $callOptions = []): PagedListResponse - { + public function listOperatingSystems( + ListOperatingSystemsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListOperatingSystems', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/OperatingSystemVersionServiceClient.php b/AdsAdManager/src/V1/Client/OperatingSystemVersionServiceClient.php index a66fc723e37c..6e30bbb3af20 100644 --- a/AdsAdManager/src/V1/Client/OperatingSystemVersionServiceClient.php +++ b/AdsAdManager/src/V1/Client/OperatingSystemVersionServiceClient.php @@ -79,9 +79,7 @@ final class OperatingSystemVersionServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -96,7 +94,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/operating_system_version_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/operating_system_version_service_rest_client_config.php', ], ], ]; @@ -111,9 +110,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -277,8 +274,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function getOperatingSystemVersion(GetOperatingSystemVersionRequest $request, array $callOptions = []): OperatingSystemVersion - { + public function getOperatingSystemVersion( + GetOperatingSystemVersionRequest $request, + array $callOptions = [] + ): OperatingSystemVersion { return $this->startApiCall('GetOperatingSystemVersion', $request, $callOptions)->wait(); } @@ -304,8 +303,10 @@ public function getOperatingSystemVersion(GetOperatingSystemVersionRequest $requ * * @throws ApiException Thrown if the API call fails. */ - public function listOperatingSystemVersions(ListOperatingSystemVersionsRequest $request, array $callOptions = []): PagedListResponse - { + public function listOperatingSystemVersions( + ListOperatingSystemVersionsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListOperatingSystemVersions', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/OrderServiceClient.php b/AdsAdManager/src/V1/Client/OrderServiceClient.php index 333dbb395613..c28df9609093 100644 --- a/AdsAdManager/src/V1/Client/OrderServiceClient.php +++ b/AdsAdManager/src/V1/Client/OrderServiceClient.php @@ -79,9 +79,7 @@ final class OrderServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/AdsAdManager/src/V1/Client/PlacementServiceClient.php b/AdsAdManager/src/V1/Client/PlacementServiceClient.php index b685c450aa58..4d65adb53b16 100644 --- a/AdsAdManager/src/V1/Client/PlacementServiceClient.php +++ b/AdsAdManager/src/V1/Client/PlacementServiceClient.php @@ -24,9 +24,21 @@ namespace Google\Ads\AdManager\V1\Client; +use Google\Ads\AdManager\V1\BatchActivatePlacementsRequest; +use Google\Ads\AdManager\V1\BatchActivatePlacementsResponse; +use Google\Ads\AdManager\V1\BatchArchivePlacementsRequest; +use Google\Ads\AdManager\V1\BatchArchivePlacementsResponse; +use Google\Ads\AdManager\V1\BatchCreatePlacementsRequest; +use Google\Ads\AdManager\V1\BatchCreatePlacementsResponse; +use Google\Ads\AdManager\V1\BatchDeactivatePlacementsRequest; +use Google\Ads\AdManager\V1\BatchDeactivatePlacementsResponse; +use Google\Ads\AdManager\V1\BatchUpdatePlacementsRequest; +use Google\Ads\AdManager\V1\BatchUpdatePlacementsResponse; +use Google\Ads\AdManager\V1\CreatePlacementRequest; use Google\Ads\AdManager\V1\GetPlacementRequest; use Google\Ads\AdManager\V1\ListPlacementsRequest; use Google\Ads\AdManager\V1\Placement; +use Google\Ads\AdManager\V1\UpdatePlacementRequest; use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; @@ -51,8 +63,15 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * + * @method PromiseInterface batchActivatePlacementsAsync(BatchActivatePlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchArchivePlacementsAsync(BatchArchivePlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreatePlacementsAsync(BatchCreatePlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchDeactivatePlacementsAsync(BatchDeactivatePlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdatePlacementsAsync(BatchUpdatePlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createPlacementAsync(CreatePlacementRequest $request, array $optionalArgs = []) * @method PromiseInterface getPlacementAsync(GetPlacementRequest $request, array $optionalArgs = []) * @method PromiseInterface listPlacementsAsync(ListPlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePlacementAsync(UpdatePlacementRequest $request, array $optionalArgs = []) */ final class PlacementServiceClient { @@ -79,9 +98,7 @@ final class PlacementServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +128,24 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; + } + + /** + * Formats a string containing the fully-qualified path to represent a ad_unit + * resource. + * + * @param string $networkCode + * @param string $adUnit + * + * @return string The formatted ad_unit resource. + */ + public static function adUnitName(string $networkCode, string $adUnit): string + { + return self::getPathTemplate('adUnit')->render([ + 'network_code' => $networkCode, + 'ad_unit' => $adUnit, + ]); } /** @@ -152,6 +184,7 @@ public static function placementName(string $networkCode, string $placement): st * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern + * - adUnit: networks/{network_code}/adUnits/{ad_unit} * - network: networks/{network_code} * - placement: networks/{network_code}/placements/{placement} * @@ -255,6 +288,177 @@ public function __call($method, $args) return call_user_func_array([$this, 'startAsyncCall'], $args); } + /** + * Activates a list of `Placement` objects. + * + * The async variant is + * {@see PlacementServiceClient::batchActivatePlacementsAsync()} . + * + * @example samples/V1/PlacementServiceClient/batch_activate_placements.php + * + * @param BatchActivatePlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchActivatePlacementsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchActivatePlacements( + BatchActivatePlacementsRequest $request, + array $callOptions = [] + ): BatchActivatePlacementsResponse { + return $this->startApiCall('BatchActivatePlacements', $request, $callOptions)->wait(); + } + + /** + * Archives a list of `Placement` objects. + * + * The async variant is + * {@see PlacementServiceClient::batchArchivePlacementsAsync()} . + * + * @example samples/V1/PlacementServiceClient/batch_archive_placements.php + * + * @param BatchArchivePlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchArchivePlacementsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchArchivePlacements( + BatchArchivePlacementsRequest $request, + array $callOptions = [] + ): BatchArchivePlacementsResponse { + return $this->startApiCall('BatchArchivePlacements', $request, $callOptions)->wait(); + } + + /** + * API to batch create `Placement` objects. + * + * The async variant is {@see PlacementServiceClient::batchCreatePlacementsAsync()} + * . + * + * @example samples/V1/PlacementServiceClient/batch_create_placements.php + * + * @param BatchCreatePlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreatePlacementsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreatePlacements( + BatchCreatePlacementsRequest $request, + array $callOptions = [] + ): BatchCreatePlacementsResponse { + return $this->startApiCall('BatchCreatePlacements', $request, $callOptions)->wait(); + } + + /** + * Deactivates a list of `Placement` objects. + * + * The async variant is + * {@see PlacementServiceClient::batchDeactivatePlacementsAsync()} . + * + * @example samples/V1/PlacementServiceClient/batch_deactivate_placements.php + * + * @param BatchDeactivatePlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchDeactivatePlacementsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchDeactivatePlacements( + BatchDeactivatePlacementsRequest $request, + array $callOptions = [] + ): BatchDeactivatePlacementsResponse { + return $this->startApiCall('BatchDeactivatePlacements', $request, $callOptions)->wait(); + } + + /** + * API to batch update `Placement` objects. + * + * The async variant is {@see PlacementServiceClient::batchUpdatePlacementsAsync()} + * . + * + * @example samples/V1/PlacementServiceClient/batch_update_placements.php + * + * @param BatchUpdatePlacementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdatePlacementsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdatePlacements( + BatchUpdatePlacementsRequest $request, + array $callOptions = [] + ): BatchUpdatePlacementsResponse { + return $this->startApiCall('BatchUpdatePlacements', $request, $callOptions)->wait(); + } + + /** + * API to create an `Placement` object. + * + * The async variant is {@see PlacementServiceClient::createPlacementAsync()} . + * + * @example samples/V1/PlacementServiceClient/create_placement.php + * + * @param CreatePlacementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Placement + * + * @throws ApiException Thrown if the API call fails. + */ + public function createPlacement(CreatePlacementRequest $request, array $callOptions = []): Placement + { + return $this->startApiCall('CreatePlacement', $request, $callOptions)->wait(); + } + /** * API to retrieve a `Placement` object. * @@ -306,4 +510,30 @@ public function listPlacements(ListPlacementsRequest $request, array $callOption { return $this->startApiCall('ListPlacements', $request, $callOptions); } + + /** + * API to update an `Placement` object. + * + * The async variant is {@see PlacementServiceClient::updatePlacementAsync()} . + * + * @example samples/V1/PlacementServiceClient/update_placement.php + * + * @param UpdatePlacementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Placement + * + * @throws ApiException Thrown if the API call fails. + */ + public function updatePlacement(UpdatePlacementRequest $request, array $callOptions = []): Placement + { + return $this->startApiCall('UpdatePlacement', $request, $callOptions)->wait(); + } } diff --git a/AdsAdManager/src/V1/Client/PrivateAuctionDealServiceClient.php b/AdsAdManager/src/V1/Client/PrivateAuctionDealServiceClient.php index ee6c3d856817..e73a1b626b73 100644 --- a/AdsAdManager/src/V1/Client/PrivateAuctionDealServiceClient.php +++ b/AdsAdManager/src/V1/Client/PrivateAuctionDealServiceClient.php @@ -83,9 +83,7 @@ final class PrivateAuctionDealServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -100,7 +98,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/private_auction_deal_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/private_auction_deal_service_rest_client_config.php', ], ], ]; @@ -115,9 +114,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -137,6 +134,40 @@ public static function adUnitName(string $networkCode, string $adUnit): string ]); } + /** + * Formats a string containing the fully-qualified path to represent a application + * resource. + * + * @param string $networkCode + * @param string $application + * + * @return string The formatted application resource. + */ + public static function applicationName(string $networkCode, string $application): string + { + return self::getPathTemplate('application')->render([ + 'network_code' => $networkCode, + 'application' => $application, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * audience_segment resource. + * + * @param string $networkCode + * @param string $audienceSegment + * + * @return string The formatted audience_segment resource. + */ + public static function audienceSegmentName(string $networkCode, string $audienceSegment): string + { + return self::getPathTemplate('audienceSegment')->render([ + 'network_code' => $networkCode, + 'audience_segment' => $audienceSegment, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * bandwidth_group resource. @@ -154,6 +185,91 @@ public static function bandwidthGroupName(string $networkCode, string $bandwidth ]); } + /** + * Formats a string containing the fully-qualified path to represent a browser + * resource. + * + * @param string $networkCode + * @param string $browser + * + * @return string The formatted browser resource. + */ + public static function browserName(string $networkCode, string $browser): string + { + return self::getPathTemplate('browser')->render([ + 'network_code' => $networkCode, + 'browser' => $browser, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * browser_language resource. + * + * @param string $networkCode + * @param string $browserLanguage + * + * @return string The formatted browser_language resource. + */ + public static function browserLanguageName(string $networkCode, string $browserLanguage): string + { + return self::getPathTemplate('browserLanguage')->render([ + 'network_code' => $networkCode, + 'browser_language' => $browserLanguage, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * cms_metadata_value resource. + * + * @param string $networkCode + * @param string $cmsMetadataValue + * + * @return string The formatted cms_metadata_value resource. + */ + public static function cmsMetadataValueName(string $networkCode, string $cmsMetadataValue): string + { + return self::getPathTemplate('cmsMetadataValue')->render([ + 'network_code' => $networkCode, + 'cms_metadata_value' => $cmsMetadataValue, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a content + * resource. + * + * @param string $networkCode + * @param string $content + * + * @return string The formatted content resource. + */ + public static function contentName(string $networkCode, string $content): string + { + return self::getPathTemplate('content')->render([ + 'network_code' => $networkCode, + 'content' => $content, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * content_bundle resource. + * + * @param string $networkCode + * @param string $contentBundle + * + * @return string The formatted content_bundle resource. + */ + public static function contentBundleName(string $networkCode, string $contentBundle): string + { + return self::getPathTemplate('contentBundle')->render([ + 'network_code' => $networkCode, + 'content_bundle' => $contentBundle, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * custom_targeting_key resource. @@ -188,6 +304,23 @@ public static function customTargetingValueName(string $networkCode, string $cus ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * device_capability resource. + * + * @param string $networkCode + * @param string $deviceCapability + * + * @return string The formatted device_capability resource. + */ + public static function deviceCapabilityName(string $networkCode, string $deviceCapability): string + { + return self::getPathTemplate('deviceCapability')->render([ + 'network_code' => $networkCode, + 'device_capability' => $deviceCapability, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * device_category resource. @@ -205,6 +338,23 @@ public static function deviceCategoryName(string $networkCode, string $deviceCat ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * device_manufacturer resource. + * + * @param string $networkCode + * @param string $deviceManufacturer + * + * @return string The formatted device_manufacturer resource. + */ + public static function deviceManufacturerName(string $networkCode, string $deviceManufacturer): string + { + return self::getPathTemplate('deviceManufacturer')->render([ + 'network_code' => $networkCode, + 'device_manufacturer' => $deviceManufacturer, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a geo_target * resource. @@ -222,6 +372,57 @@ public static function geoTargetName(string $networkCode, string $geoTarget): st ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * mobile_carrier resource. + * + * @param string $networkCode + * @param string $mobileCarrier + * + * @return string The formatted mobile_carrier resource. + */ + public static function mobileCarrierName(string $networkCode, string $mobileCarrier): string + { + return self::getPathTemplate('mobileCarrier')->render([ + 'network_code' => $networkCode, + 'mobile_carrier' => $mobileCarrier, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * mobile_device resource. + * + * @param string $networkCode + * @param string $mobileDevice + * + * @return string The formatted mobile_device resource. + */ + public static function mobileDeviceName(string $networkCode, string $mobileDevice): string + { + return self::getPathTemplate('mobileDevice')->render([ + 'network_code' => $networkCode, + 'mobile_device' => $mobileDevice, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * mobile_device_submodel resource. + * + * @param string $networkCode + * @param string $mobileDeviceSubmodel + * + * @return string The formatted mobile_device_submodel resource. + */ + public static function mobileDeviceSubmodelName(string $networkCode, string $mobileDeviceSubmodel): string + { + return self::getPathTemplate('mobileDeviceSubmodel')->render([ + 'network_code' => $networkCode, + 'mobile_device_submodel' => $mobileDeviceSubmodel, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a network * resource. @@ -310,11 +511,23 @@ public static function privateAuctionDealName(string $networkCode, string $priva * The following name formats are supported: * Template: Pattern * - adUnit: networks/{network_code}/adUnits/{ad_unit} + * - application: networks/{network_code}/applications/{application} + * - audienceSegment: networks/{network_code}/audienceSegments/{audience_segment} * - bandwidthGroup: networks/{network_code}/bandwidthGroups/{bandwidth_group} + * - browser: networks/{network_code}/browsers/{browser} + * - browserLanguage: networks/{network_code}/browserLanguages/{browser_language} + * - cmsMetadataValue: networks/{network_code}/cmsMetadataValues/{cms_metadata_value} + * - content: networks/{network_code}/content/{content} + * - contentBundle: networks/{network_code}/contentBundles/{content_bundle} * - customTargetingKey: networks/{network_code}/customTargetingKeys/{custom_targeting_key} * - customTargetingValue: networks/{network_code}/customTargetingValues/{custom_targeting_value} + * - deviceCapability: networks/{network_code}/deviceCapabilities/{device_capability} * - deviceCategory: networks/{network_code}/deviceCategories/{device_category} + * - deviceManufacturer: networks/{network_code}/deviceManufacturers/{device_manufacturer} * - geoTarget: networks/{network_code}/geoTargets/{geo_target} + * - mobileCarrier: networks/{network_code}/mobileCarriers/{mobile_carrier} + * - mobileDevice: networks/{network_code}/mobileDevices/{mobile_device} + * - mobileDeviceSubmodel: networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel} * - network: networks/{network_code} * - operatingSystem: networks/{network_code}/operatingSystems/{operating_system} * - operatingSystemVersion: networks/{network_code}/operatingSystemVersions/{operating_system_version} @@ -443,8 +656,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function createPrivateAuctionDeal(CreatePrivateAuctionDealRequest $request, array $callOptions = []): PrivateAuctionDeal - { + public function createPrivateAuctionDeal( + CreatePrivateAuctionDealRequest $request, + array $callOptions = [] + ): PrivateAuctionDeal { return $this->startApiCall('CreatePrivateAuctionDeal', $request, $callOptions)->wait(); } @@ -470,8 +685,10 @@ public function createPrivateAuctionDeal(CreatePrivateAuctionDealRequest $reques * * @throws ApiException Thrown if the API call fails. */ - public function getPrivateAuctionDeal(GetPrivateAuctionDealRequest $request, array $callOptions = []): PrivateAuctionDeal - { + public function getPrivateAuctionDeal( + GetPrivateAuctionDealRequest $request, + array $callOptions = [] + ): PrivateAuctionDeal { return $this->startApiCall('GetPrivateAuctionDeal', $request, $callOptions)->wait(); } @@ -497,8 +714,10 @@ public function getPrivateAuctionDeal(GetPrivateAuctionDealRequest $request, arr * * @throws ApiException Thrown if the API call fails. */ - public function listPrivateAuctionDeals(ListPrivateAuctionDealsRequest $request, array $callOptions = []): PagedListResponse - { + public function listPrivateAuctionDeals( + ListPrivateAuctionDealsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListPrivateAuctionDeals', $request, $callOptions); } @@ -524,8 +743,10 @@ public function listPrivateAuctionDeals(ListPrivateAuctionDealsRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function updatePrivateAuctionDeal(UpdatePrivateAuctionDealRequest $request, array $callOptions = []): PrivateAuctionDeal - { + public function updatePrivateAuctionDeal( + UpdatePrivateAuctionDealRequest $request, + array $callOptions = [] + ): PrivateAuctionDeal { return $this->startApiCall('UpdatePrivateAuctionDeal', $request, $callOptions)->wait(); } } diff --git a/AdsAdManager/src/V1/Client/PrivateAuctionServiceClient.php b/AdsAdManager/src/V1/Client/PrivateAuctionServiceClient.php index 6fab10876050..43a6e7effa26 100644 --- a/AdsAdManager/src/V1/Client/PrivateAuctionServiceClient.php +++ b/AdsAdManager/src/V1/Client/PrivateAuctionServiceClient.php @@ -83,9 +83,7 @@ final class PrivateAuctionServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -115,9 +113,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/AdsAdManager/src/V1/Client/ProgrammaticBuyerServiceClient.php b/AdsAdManager/src/V1/Client/ProgrammaticBuyerServiceClient.php index 900f29aa16b8..8459fa63024d 100644 --- a/AdsAdManager/src/V1/Client/ProgrammaticBuyerServiceClient.php +++ b/AdsAdManager/src/V1/Client/ProgrammaticBuyerServiceClient.php @@ -79,9 +79,7 @@ final class ProgrammaticBuyerServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -96,7 +94,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/programmatic_buyer_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/programmatic_buyer_service_rest_client_config.php', ], ], ]; @@ -111,9 +110,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -277,8 +274,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function getProgrammaticBuyer(GetProgrammaticBuyerRequest $request, array $callOptions = []): ProgrammaticBuyer - { + public function getProgrammaticBuyer( + GetProgrammaticBuyerRequest $request, + array $callOptions = [] + ): ProgrammaticBuyer { return $this->startApiCall('GetProgrammaticBuyer', $request, $callOptions)->wait(); } @@ -304,8 +303,10 @@ public function getProgrammaticBuyer(GetProgrammaticBuyerRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function listProgrammaticBuyers(ListProgrammaticBuyersRequest $request, array $callOptions = []): PagedListResponse - { + public function listProgrammaticBuyers( + ListProgrammaticBuyersRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListProgrammaticBuyers', $request, $callOptions); } } diff --git a/AdsAdManager/src/V1/Client/ReportServiceClient.php b/AdsAdManager/src/V1/Client/ReportServiceClient.php index 266cd1be15cd..c34ccdbe0134 100644 --- a/AdsAdManager/src/V1/Client/ReportServiceClient.php +++ b/AdsAdManager/src/V1/Client/ReportServiceClient.php @@ -92,9 +92,7 @@ final class ReportServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private $operationsClient; @@ -126,9 +124,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -369,8 +365,10 @@ public function createReport(CreateReportRequest $request, array $callOptions = * * @throws ApiException Thrown if the API call fails. */ - public function fetchReportResultRows(FetchReportResultRowsRequest $request, array $callOptions = []): FetchReportResultRowsResponse - { + public function fetchReportResultRows( + FetchReportResultRowsRequest $request, + array $callOptions = [] + ): FetchReportResultRowsResponse { return $this->startApiCall('FetchReportResultRows', $request, $callOptions)->wait(); } @@ -428,7 +426,7 @@ public function listReports(ListReportsRequest $request, array $callOptions = [] /** * Initiates the execution of an existing report asynchronously. Users can - * get the report by polling this operation via + * get the report by polling this operation using * `OperationsService.GetOperation`. * Poll every 5 seconds initially, with an exponential * backoff. Once a report is complete, the operation will contain a diff --git a/AdsAdManager/src/V1/Client/RoleServiceClient.php b/AdsAdManager/src/V1/Client/RoleServiceClient.php index 82f50ff42375..ad597e2c4c3a 100644 --- a/AdsAdManager/src/V1/Client/RoleServiceClient.php +++ b/AdsAdManager/src/V1/Client/RoleServiceClient.php @@ -79,9 +79,7 @@ final class RoleServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -111,9 +109,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/SiteServiceClient.php b/AdsAdManager/src/V1/Client/SiteServiceClient.php similarity index 96% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/SiteServiceClient.php rename to AdsAdManager/src/V1/Client/SiteServiceClient.php index 8d4c0848c717..142c3f9cceca 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/SiteServiceClient.php +++ b/AdsAdManager/src/V1/Client/SiteServiceClient.php @@ -95,9 +95,7 @@ final class SiteServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -127,9 +125,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -292,8 +288,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function batchCreateSites(BatchCreateSitesRequest $request, array $callOptions = []): BatchCreateSitesResponse - { + public function batchCreateSites( + BatchCreateSitesRequest $request, + array $callOptions = [] + ): BatchCreateSitesResponse { return $this->startApiCall('BatchCreateSites', $request, $callOptions)->wait(); } @@ -318,8 +316,10 @@ public function batchCreateSites(BatchCreateSitesRequest $request, array $callOp * * @throws ApiException Thrown if the API call fails. */ - public function batchDeactivateSites(BatchDeactivateSitesRequest $request, array $callOptions = []): BatchDeactivateSitesResponse - { + public function batchDeactivateSites( + BatchDeactivateSitesRequest $request, + array $callOptions = [] + ): BatchDeactivateSitesResponse { return $this->startApiCall('BatchDeactivateSites', $request, $callOptions)->wait(); } @@ -345,8 +345,10 @@ public function batchDeactivateSites(BatchDeactivateSitesRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function batchSubmitSitesForApproval(BatchSubmitSitesForApprovalRequest $request, array $callOptions = []): BatchSubmitSitesForApprovalResponse - { + public function batchSubmitSitesForApproval( + BatchSubmitSitesForApprovalRequest $request, + array $callOptions = [] + ): BatchSubmitSitesForApprovalResponse { return $this->startApiCall('BatchSubmitSitesForApproval', $request, $callOptions)->wait(); } @@ -371,8 +373,10 @@ public function batchSubmitSitesForApproval(BatchSubmitSitesForApprovalRequest $ * * @throws ApiException Thrown if the API call fails. */ - public function batchUpdateSites(BatchUpdateSitesRequest $request, array $callOptions = []): BatchUpdateSitesResponse - { + public function batchUpdateSites( + BatchUpdateSitesRequest $request, + array $callOptions = [] + ): BatchUpdateSitesResponse { return $this->startApiCall('BatchUpdateSites', $request, $callOptions)->wait(); } diff --git a/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php b/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php index ea1b7c156296..118c7a44e193 100644 --- a/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php +++ b/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php @@ -79,9 +79,7 @@ final class TaxonomyCategoryServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -96,7 +94,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/taxonomy_category_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/taxonomy_category_service_rest_client_config.php', ], ], ]; @@ -111,9 +110,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -304,8 +301,10 @@ public function getTaxonomyCategory(GetTaxonomyCategoryRequest $request, array $ * * @throws ApiException Thrown if the API call fails. */ - public function listTaxonomyCategories(ListTaxonomyCategoriesRequest $request, array $callOptions = []): PagedListResponse - { + public function listTaxonomyCategories( + ListTaxonomyCategoriesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListTaxonomyCategories', $request, $callOptions); } } diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TeamServiceClient.php b/AdsAdManager/src/V1/Client/TeamServiceClient.php similarity index 96% rename from owl-bot-staging/AdsAdManager/v1/src/V1/Client/TeamServiceClient.php rename to AdsAdManager/src/V1/Client/TeamServiceClient.php index 1278783dd7aa..75ad633fb4b6 100644 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TeamServiceClient.php +++ b/AdsAdManager/src/V1/Client/TeamServiceClient.php @@ -95,9 +95,7 @@ final class TeamServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -127,9 +125,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** @@ -292,8 +288,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function batchActivateTeams(BatchActivateTeamsRequest $request, array $callOptions = []): BatchActivateTeamsResponse - { + public function batchActivateTeams( + BatchActivateTeamsRequest $request, + array $callOptions = [] + ): BatchActivateTeamsResponse { return $this->startApiCall('BatchActivateTeams', $request, $callOptions)->wait(); } @@ -318,8 +316,10 @@ public function batchActivateTeams(BatchActivateTeamsRequest $request, array $ca * * @throws ApiException Thrown if the API call fails. */ - public function batchCreateTeams(BatchCreateTeamsRequest $request, array $callOptions = []): BatchCreateTeamsResponse - { + public function batchCreateTeams( + BatchCreateTeamsRequest $request, + array $callOptions = [] + ): BatchCreateTeamsResponse { return $this->startApiCall('BatchCreateTeams', $request, $callOptions)->wait(); } @@ -344,8 +344,10 @@ public function batchCreateTeams(BatchCreateTeamsRequest $request, array $callOp * * @throws ApiException Thrown if the API call fails. */ - public function batchDeactivateTeams(BatchDeactivateTeamsRequest $request, array $callOptions = []): BatchDeactivateTeamsResponse - { + public function batchDeactivateTeams( + BatchDeactivateTeamsRequest $request, + array $callOptions = [] + ): BatchDeactivateTeamsResponse { return $this->startApiCall('BatchDeactivateTeams', $request, $callOptions)->wait(); } @@ -370,8 +372,10 @@ public function batchDeactivateTeams(BatchDeactivateTeamsRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function batchUpdateTeams(BatchUpdateTeamsRequest $request, array $callOptions = []): BatchUpdateTeamsResponse - { + public function batchUpdateTeams( + BatchUpdateTeamsRequest $request, + array $callOptions = [] + ): BatchUpdateTeamsResponse { return $this->startApiCall('BatchUpdateTeams', $request, $callOptions)->wait(); } diff --git a/AdsAdManager/src/V1/Client/UserServiceClient.php b/AdsAdManager/src/V1/Client/UserServiceClient.php index d80ca3eda480..ff7629800182 100644 --- a/AdsAdManager/src/V1/Client/UserServiceClient.php +++ b/AdsAdManager/src/V1/Client/UserServiceClient.php @@ -76,9 +76,7 @@ final class UserServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/admanager']; private static function getClientDefaults() { @@ -108,9 +106,7 @@ private static function defaultTransport() /** Implements ClientOptionsTrait::supportedTransports. */ private static function supportedTransports() { - return [ - 'rest', - ]; + return ['rest']; } /** diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKey.php b/AdsAdManager/src/V1/CmsMetadataKey.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKey.php rename to AdsAdManager/src/V1/CmsMetadataKey.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum.php b/AdsAdManager/src/V1/CmsMetadataKeyStatusEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum.php rename to AdsAdManager/src/V1/CmsMetadataKeyStatusEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php b/AdsAdManager/src/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php similarity index 89% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php rename to AdsAdManager/src/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php index 3c772fe94b1e..6159e6c1c110 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php +++ b/AdsAdManager/src/V1/CmsMetadataKeyStatusEnum/CmsMetadataKeyStatus.php @@ -59,6 +59,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CmsMetadataKeyStatus::class, \Google\Ads\AdManager\V1\CmsMetadataKeyStatusEnum_CmsMetadataKeyStatus::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataTargeting.php b/AdsAdManager/src/V1/CmsMetadataTargeting.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataTargeting.php rename to AdsAdManager/src/V1/CmsMetadataTargeting.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValue.php b/AdsAdManager/src/V1/CmsMetadataValue.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValue.php rename to AdsAdManager/src/V1/CmsMetadataValue.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum.php b/AdsAdManager/src/V1/CmsMetadataValueStatusEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum.php rename to AdsAdManager/src/V1/CmsMetadataValueStatusEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php b/AdsAdManager/src/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php similarity index 90% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php rename to AdsAdManager/src/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php index c9702e744e8b..cdc57ea3b422 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php +++ b/AdsAdManager/src/V1/CmsMetadataValueStatusEnum/CmsMetadataValueStatus.php @@ -66,6 +66,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CmsMetadataValueStatus::class, \Google\Ads\AdManager\V1\CmsMetadataValueStatusEnum_CmsMetadataValueStatus::class); diff --git a/AdsAdManager/src/V1/Company.php b/AdsAdManager/src/V1/Company.php index bc4dc1bf445e..af97bfc26467 100644 --- a/AdsAdManager/src/V1/Company.php +++ b/AdsAdManager/src/V1/Company.php @@ -25,72 +25,72 @@ class Company extends \Google\Protobuf\Internal\Message /** * Output only. `Company` ID. * - * Generated from protobuf field int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $company_id = 0; + protected $company_id = null; /** * Required. The display name of the `Company`. * This value has a maximum length of 127 characters. * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; */ - protected $display_name = ''; + protected $display_name = null; /** * Required. The type of the `Company`. * - * Generated from protobuf field .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; */ - protected $type = 0; + protected $type = null; /** * Optional. The address for the `Company`. * This value has a maximum length of 1024 characters. * - * Generated from protobuf field string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $address = ''; + protected $address = null; /** * Optional. The email for the `Company`. * This value has a maximum length of 128 characters. * - * Generated from protobuf field string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $email = ''; + protected $email = null; /** * Optional. The fax number for the `Company`. * This value has a maximum length of 63 characters. * - * Generated from protobuf field string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $fax = ''; + protected $fax = null; /** * Optional. The phone number for the `Company`. * This value has a maximum length of 63 characters. * - * Generated from protobuf field string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $phone = ''; + protected $phone = null; /** * Optional. The external ID for the `Company`. * This value has a maximum length of 255 characters. * - * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $external_id = ''; + protected $external_id = null; /** * Optional. Comments about the `Company`. * This value has a maximum length of 1024 characters. * - * Generated from protobuf field string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $comment = ''; + protected $comment = null; /** * Optional. The credit status of the `Company`. * This attribute defaults to `ACTIVE` if basic settings are enabled and * `ON_HOLD` if advance settings are enabled. * - * Generated from protobuf field .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $credit_status = 0; + protected $credit_status = null; /** * Optional. The labels that are directly applied to the `Company`. * @@ -115,13 +115,13 @@ class Company extends \Google\Protobuf\Internal\Message * Optional. The ID of the Google-recognized canonicalized form of the * `Company`. * - * Generated from protobuf field int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $third_party_company_id = 0; + protected $third_party_company_id = null; /** * Output only. The time the `Company` was last modified. * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $update_time = null; @@ -214,18 +214,28 @@ public function setName($var) /** * Output only. `Company` ID. * - * Generated from protobuf field int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int|string */ public function getCompanyId() { - return $this->company_id; + return isset($this->company_id) ? $this->company_id : 0; + } + + public function hasCompanyId() + { + return isset($this->company_id); + } + + public function clearCompanyId() + { + unset($this->company_id); } /** * Output only. `Company` ID. * - * Generated from protobuf field int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int|string $var * @return $this */ @@ -241,19 +251,29 @@ public function setCompanyId($var) * Required. The display name of the `Company`. * This value has a maximum length of 127 characters. * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getDisplayName() { - return $this->display_name; + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); } /** * Required. The display name of the `Company`. * This value has a maximum length of 127 characters. * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -268,18 +288,28 @@ public function setDisplayName($var) /** * Required. The type of the `Company`. * - * Generated from protobuf field .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * @return int */ public function getType() { - return $this->type; + return isset($this->type) ? $this->type : 0; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); } /** * Required. The type of the `Company`. * - * Generated from protobuf field .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this */ @@ -295,19 +325,29 @@ public function setType($var) * Optional. The address for the `Company`. * This value has a maximum length of 1024 characters. * - * Generated from protobuf field string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getAddress() { - return $this->address; + return isset($this->address) ? $this->address : ''; + } + + public function hasAddress() + { + return isset($this->address); + } + + public function clearAddress() + { + unset($this->address); } /** * Optional. The address for the `Company`. * This value has a maximum length of 1024 characters. * - * Generated from protobuf field string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -323,19 +363,29 @@ public function setAddress($var) * Optional. The email for the `Company`. * This value has a maximum length of 128 characters. * - * Generated from protobuf field string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getEmail() { - return $this->email; + return isset($this->email) ? $this->email : ''; + } + + public function hasEmail() + { + return isset($this->email); + } + + public function clearEmail() + { + unset($this->email); } /** * Optional. The email for the `Company`. * This value has a maximum length of 128 characters. * - * Generated from protobuf field string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -351,19 +401,29 @@ public function setEmail($var) * Optional. The fax number for the `Company`. * This value has a maximum length of 63 characters. * - * Generated from protobuf field string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getFax() { - return $this->fax; + return isset($this->fax) ? $this->fax : ''; + } + + public function hasFax() + { + return isset($this->fax); + } + + public function clearFax() + { + unset($this->fax); } /** * Optional. The fax number for the `Company`. * This value has a maximum length of 63 characters. * - * Generated from protobuf field string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -379,19 +439,29 @@ public function setFax($var) * Optional. The phone number for the `Company`. * This value has a maximum length of 63 characters. * - * Generated from protobuf field string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getPhone() { - return $this->phone; + return isset($this->phone) ? $this->phone : ''; + } + + public function hasPhone() + { + return isset($this->phone); + } + + public function clearPhone() + { + unset($this->phone); } /** * Optional. The phone number for the `Company`. * This value has a maximum length of 63 characters. * - * Generated from protobuf field string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -407,19 +477,29 @@ public function setPhone($var) * Optional. The external ID for the `Company`. * This value has a maximum length of 255 characters. * - * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getExternalId() { - return $this->external_id; + return isset($this->external_id) ? $this->external_id : ''; + } + + public function hasExternalId() + { + return isset($this->external_id); + } + + public function clearExternalId() + { + unset($this->external_id); } /** * Optional. The external ID for the `Company`. * This value has a maximum length of 255 characters. * - * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -435,19 +515,29 @@ public function setExternalId($var) * Optional. Comments about the `Company`. * This value has a maximum length of 1024 characters. * - * Generated from protobuf field string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getComment() { - return $this->comment; + return isset($this->comment) ? $this->comment : ''; + } + + public function hasComment() + { + return isset($this->comment); + } + + public function clearComment() + { + unset($this->comment); } /** * Optional. Comments about the `Company`. * This value has a maximum length of 1024 characters. * - * Generated from protobuf field string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -464,12 +554,22 @@ public function setComment($var) * This attribute defaults to `ACTIVE` if basic settings are enabled and * `ON_HOLD` if advance settings are enabled. * - * Generated from protobuf field .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getCreditStatus() { - return $this->credit_status; + return isset($this->credit_status) ? $this->credit_status : 0; + } + + public function hasCreditStatus() + { + return isset($this->credit_status); + } + + public function clearCreditStatus() + { + unset($this->credit_status); } /** @@ -477,7 +577,7 @@ public function getCreditStatus() * This attribute defaults to `ACTIVE` if basic settings are enabled and * `ON_HOLD` if advance settings are enabled. * - * Generated from protobuf field .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -585,19 +685,29 @@ public function setAppliedTeams($var) * Optional. The ID of the Google-recognized canonicalized form of the * `Company`. * - * Generated from protobuf field int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; * @return int|string */ public function getThirdPartyCompanyId() { - return $this->third_party_company_id; + return isset($this->third_party_company_id) ? $this->third_party_company_id : 0; + } + + public function hasThirdPartyCompanyId() + { + return isset($this->third_party_company_id); + } + + public function clearThirdPartyCompanyId() + { + unset($this->third_party_company_id); } /** * Optional. The ID of the Google-recognized canonicalized form of the * `Company`. * - * Generated from protobuf field int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; * @param int|string $var * @return $this */ @@ -612,7 +722,7 @@ public function setThirdPartyCompanyId($var) /** * Output only. The time the `Company` was last modified. * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null */ public function getUpdateTime() @@ -633,7 +743,7 @@ public function clearUpdateTime() /** * Output only. The time the `Company` was last modified. * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var * @return $this */ diff --git a/AdsAdManager/src/V1/Contact.php b/AdsAdManager/src/V1/Contact.php index 9be38891728d..354f867b6fbf 100644 --- a/AdsAdManager/src/V1/Contact.php +++ b/AdsAdManager/src/V1/Contact.php @@ -26,11 +26,74 @@ class Contact extends \Google\Protobuf\Internal\Message */ protected $name = ''; /** - * Output only. The display name of the Company. + * Required. The name of the contact. This attribute has a maximum length of + * 127 characters. * - * Generated from protobuf field optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; */ - protected $company_display_name = null; + protected $display_name = null; + /** + * Required. Immutable. The resource name of the Company. + * Format: "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $company = null; + /** + * Output only. The status of the contact. This attribute is assigned by + * Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Optional. The address of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $address = null; + /** + * Optional. The cell phone number where the contact can be reached. + * + * Generated from protobuf field optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cell_phone = null; + /** + * Optional. A free-form text comment for the contact. This attribute has a + * maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $comment = null; + /** + * Optional. The e-mail address where the contact can be reached. This + * attribute has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $email = null; + /** + * Optional. The fax number where the contact can be reached. This attribute + * has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fax = null; + /** + * Optional. The job title of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $title = null; + /** + * Optional. The work phone number where the contact can be reached. This + * attribute has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $work_phone = null; /** * Constructor. @@ -41,8 +104,35 @@ class Contact extends \Google\Protobuf\Internal\Message * @type string $name * Identifier. The resource name of the `Contact`. * Format: `networks/{network_code}/contacts/{contact_id}` - * @type string $company_display_name - * Output only. The display name of the Company. + * @type string $display_name + * Required. The name of the contact. This attribute has a maximum length of + * 127 characters. + * @type string $company + * Required. Immutable. The resource name of the Company. + * Format: "networks/{network_code}/companies/{company_id}" + * @type int $status + * Output only. The status of the contact. This attribute is assigned by + * Google. + * @type string $address + * Optional. The address of the contact. This attribute has a maximum length + * of 1024 characters. + * @type string $cell_phone + * Optional. The cell phone number where the contact can be reached. + * @type string $comment + * Optional. A free-form text comment for the contact. This attribute has a + * maximum length of 1024 characters. + * @type string $email + * Optional. The e-mail address where the contact can be reached. This + * attribute has a maximum length of 128 characters. + * @type string $fax + * Optional. The fax number where the contact can be reached. This attribute + * has a maximum length of 1024 characters. + * @type string $title + * Optional. The job title of the contact. This attribute has a maximum length + * of 1024 characters. + * @type string $work_phone + * Optional. The work phone number where the contact can be reached. This + * attribute has a maximum length of 1024 characters. * } */ public function __construct($data = NULL) { @@ -79,37 +169,379 @@ public function setName($var) } /** - * Output only. The display name of the Company. + * Required. The name of the contact. This attribute has a maximum length of + * 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The name of the contact. This attribute has a maximum length of + * 127 characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. Immutable. The resource name of the Company. + * Format: "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getCompany() + { + return isset($this->company) ? $this->company : ''; + } + + public function hasCompany() + { + return isset($this->company); + } + + public function clearCompany() + { + unset($this->company); + } + + /** + * Required. Immutable. The resource name of the Company. + * Format: "networks/{network_code}/companies/{company_id}" + * + * Generated from protobuf field optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCompany($var) + { + GPBUtil::checkString($var, True); + $this->company = $var; + + return $this; + } + + /** + * Output only. The status of the contact. This attribute is assigned by + * Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the contact. This attribute is assigned by + * Google. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ContactStatusEnum\ContactStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. The address of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAddress() + { + return isset($this->address) ? $this->address : ''; + } + + public function hasAddress() + { + return isset($this->address); + } + + public function clearAddress() + { + unset($this->address); + } + + /** + * Optional. The address of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAddress($var) + { + GPBUtil::checkString($var, True); + $this->address = $var; + + return $this; + } + + /** + * Optional. The cell phone number where the contact can be reached. + * + * Generated from protobuf field optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCellPhone() + { + return isset($this->cell_phone) ? $this->cell_phone : ''; + } + + public function hasCellPhone() + { + return isset($this->cell_phone); + } + + public function clearCellPhone() + { + unset($this->cell_phone); + } + + /** + * Optional. The cell phone number where the contact can be reached. + * + * Generated from protobuf field optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCellPhone($var) + { + GPBUtil::checkString($var, True); + $this->cell_phone = $var; + + return $this; + } + + /** + * Optional. A free-form text comment for the contact. This attribute has a + * maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getComment() + { + return isset($this->comment) ? $this->comment : ''; + } + + public function hasComment() + { + return isset($this->comment); + } + + public function clearComment() + { + unset($this->comment); + } + + /** + * Optional. A free-form text comment for the contact. This attribute has a + * maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setComment($var) + { + GPBUtil::checkString($var, True); + $this->comment = $var; + + return $this; + } + + /** + * Optional. The e-mail address where the contact can be reached. This + * attribute has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEmail() + { + return isset($this->email) ? $this->email : ''; + } + + public function hasEmail() + { + return isset($this->email); + } + + public function clearEmail() + { + unset($this->email); + } + + /** + * Optional. The e-mail address where the contact can be reached. This + * attribute has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + + /** + * Optional. The fax number where the contact can be reached. This attribute + * has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFax() + { + return isset($this->fax) ? $this->fax : ''; + } + + public function hasFax() + { + return isset($this->fax); + } + + public function clearFax() + { + unset($this->fax); + } + + /** + * Optional. The fax number where the contact can be reached. This attribute + * has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFax($var) + { + GPBUtil::checkString($var, True); + $this->fax = $var; + + return $this; + } + + /** + * Optional. The job title of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTitle() + { + return isset($this->title) ? $this->title : ''; + } + + public function hasTitle() + { + return isset($this->title); + } + + public function clearTitle() + { + unset($this->title); + } + + /** + * Optional. The job title of the contact. This attribute has a maximum length + * of 1024 characters. + * + * Generated from protobuf field optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * Optional. The work phone number where the contact can be reached. This + * attribute has a maximum length of 1024 characters. * - * Generated from protobuf field optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ - public function getCompanyDisplayName() + public function getWorkPhone() { - return isset($this->company_display_name) ? $this->company_display_name : ''; + return isset($this->work_phone) ? $this->work_phone : ''; } - public function hasCompanyDisplayName() + public function hasWorkPhone() { - return isset($this->company_display_name); + return isset($this->work_phone); } - public function clearCompanyDisplayName() + public function clearWorkPhone() { - unset($this->company_display_name); + unset($this->work_phone); } /** - * Output only. The display name of the Company. + * Optional. The work phone number where the contact can be reached. This + * attribute has a maximum length of 1024 characters. * - * Generated from protobuf field optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ - public function setCompanyDisplayName($var) + public function setWorkPhone($var) { GPBUtil::checkString($var, True); - $this->company_display_name = $var; + $this->work_phone = $var; return $this; } diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum.php b/AdsAdManager/src/V1/ContactStatusEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum.php rename to AdsAdManager/src/V1/ContactStatusEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum/ContactStatus.php b/AdsAdManager/src/V1/ContactStatusEnum/ContactStatus.php similarity index 93% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum/ContactStatus.php rename to AdsAdManager/src/V1/ContactStatusEnum/ContactStatus.php index cb0fd857e73f..ad25e1e0f2c0 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContactStatusEnum/ContactStatus.php +++ b/AdsAdManager/src/V1/ContactStatusEnum/ContactStatus.php @@ -91,6 +91,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ContactStatus::class, \Google\Ads\AdManager\V1\ContactStatusEnum_ContactStatus::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Content.php b/AdsAdManager/src/V1/Content.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Content.php rename to AdsAdManager/src/V1/Content.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentBundle.php b/AdsAdManager/src/V1/ContentBundle.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentBundle.php rename to AdsAdManager/src/V1/ContentBundle.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentLabel.php b/AdsAdManager/src/V1/ContentLabel.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentLabel.php rename to AdsAdManager/src/V1/ContentLabel.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentTargeting.php b/AdsAdManager/src/V1/ContentTargeting.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ContentTargeting.php rename to AdsAdManager/src/V1/ContentTargeting.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateContactRequest.php b/AdsAdManager/src/V1/CreateContactRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateContactRequest.php rename to AdsAdManager/src/V1/CreateContactRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateCustomFieldRequest.php b/AdsAdManager/src/V1/CreateCustomFieldRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateCustomFieldRequest.php rename to AdsAdManager/src/V1/CreateCustomFieldRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePlacementRequest.php b/AdsAdManager/src/V1/CreatePlacementRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePlacementRequest.php rename to AdsAdManager/src/V1/CreatePlacementRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateSiteRequest.php b/AdsAdManager/src/V1/CreateSiteRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateSiteRequest.php rename to AdsAdManager/src/V1/CreateSiteRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateTeamRequest.php b/AdsAdManager/src/V1/CreateTeamRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateTeamRequest.php rename to AdsAdManager/src/V1/CreateTeamRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplate.php b/AdsAdManager/src/V1/CreativeTemplate.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplate.php rename to AdsAdManager/src/V1/CreativeTemplate.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum.php b/AdsAdManager/src/V1/CreativeTemplateStatusEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum.php rename to AdsAdManager/src/V1/CreativeTemplateStatusEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php b/AdsAdManager/src/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php similarity index 91% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php rename to AdsAdManager/src/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php index 7cdcd5e60b04..2cd8caffde3b 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php +++ b/AdsAdManager/src/V1/CreativeTemplateStatusEnum/CreativeTemplateStatus.php @@ -68,6 +68,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CreativeTemplateStatus::class, \Google\Ads\AdManager\V1\CreativeTemplateStatusEnum_CreativeTemplateStatus::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum.php b/AdsAdManager/src/V1/CreativeTemplateTypeEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum.php rename to AdsAdManager/src/V1/CreativeTemplateTypeEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php b/AdsAdManager/src/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php similarity index 89% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php rename to AdsAdManager/src/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php index 78579d87b556..3c0293b6a60b 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php +++ b/AdsAdManager/src/V1/CreativeTemplateTypeEnum/CreativeTemplateType.php @@ -60,6 +60,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CreativeTemplateType::class, \Google\Ads\AdManager\V1\CreativeTemplateTypeEnum_CreativeTemplateType::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable.php b/AdsAdManager/src/V1/CreativeTemplateVariable.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable.php rename to AdsAdManager/src/V1/CreativeTemplateVariable.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php b/AdsAdManager/src/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php similarity index 92% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php rename to AdsAdManager/src/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php index c2edc2100cdb..d801c6d72642 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php +++ b/AdsAdManager/src/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable.php @@ -72,6 +72,4 @@ public function setMimeTypes($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AssetCreativeTemplateVariable::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_AssetCreativeTemplateVariable::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php b/AdsAdManager/src/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php similarity index 89% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php rename to AdsAdManager/src/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php index 0a3903dbecde..484311abbd32 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php +++ b/AdsAdManager/src/V1/CreativeTemplateVariable/AssetCreativeTemplateVariable/MimeType.php @@ -66,6 +66,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MimeType::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_AssetCreativeTemplateVariable_MimeType::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php b/AdsAdManager/src/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php similarity index 97% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php rename to AdsAdManager/src/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php index 183a4112d8c5..d7b9af87e924 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php +++ b/AdsAdManager/src/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable.php @@ -223,6 +223,4 @@ public function setAllowOtherChoice($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ListStringCreativeTemplateVariable::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_ListStringCreativeTemplateVariable::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php b/AdsAdManager/src/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php similarity index 95% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php rename to AdsAdManager/src/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php index 783163aac991..cefc8f3674bd 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php +++ b/AdsAdManager/src/V1/CreativeTemplateVariable/ListStringCreativeTemplateVariable/VariableChoice.php @@ -139,6 +139,4 @@ public function setValue($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VariableChoice::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php b/AdsAdManager/src/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php similarity index 94% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php rename to AdsAdManager/src/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php index 4935e30c5f9a..4f8bcbcb116b 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php +++ b/AdsAdManager/src/V1/CreativeTemplateVariable/LongCreativeTemplateVariable.php @@ -130,6 +130,4 @@ public function setSampleValue($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LongCreativeTemplateVariable::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_LongCreativeTemplateVariable::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php b/AdsAdManager/src/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php similarity index 94% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php rename to AdsAdManager/src/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php index d86245b29743..b60e797e4d2a 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php +++ b/AdsAdManager/src/V1/CreativeTemplateVariable/StringCreativeTemplateVariable.php @@ -130,6 +130,4 @@ public function setSampleValue($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringCreativeTemplateVariable::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_StringCreativeTemplateVariable::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php b/AdsAdManager/src/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php similarity index 96% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php rename to AdsAdManager/src/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php index 502b2b00c5c5..cb0b42c0d749 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php +++ b/AdsAdManager/src/V1/CreativeTemplateVariable/UrlCreativeTemplateVariable.php @@ -178,6 +178,4 @@ public function setUrlType($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UrlCreativeTemplateVariable::class, \Google\Ads\AdManager\V1\CreativeTemplateVariable_UrlCreativeTemplateVariable::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum.php b/AdsAdManager/src/V1/CreativeTemplateVariableUrlTypeEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum.php rename to AdsAdManager/src/V1/CreativeTemplateVariableUrlTypeEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php b/AdsAdManager/src/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php similarity index 90% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php rename to AdsAdManager/src/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php index 81f975cb193d..d5c870b9d0f8 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php +++ b/AdsAdManager/src/V1/CreativeTemplateVariableUrlTypeEnum/CreativeTemplateVariableUrlType.php @@ -73,6 +73,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CreativeTemplateVariableUrlType::class, \Google\Ads\AdManager\V1\CreativeTemplateVariableUrlTypeEnum_CreativeTemplateVariableUrlType::class); diff --git a/AdsAdManager/src/V1/CustomFieldOption.php b/AdsAdManager/src/V1/CustomFieldOption.php index bc0f77c34190..9b4ffb8ccc50 100644 --- a/AdsAdManager/src/V1/CustomFieldOption.php +++ b/AdsAdManager/src/V1/CustomFieldOption.php @@ -16,9 +16,9 @@ class CustomFieldOption extends \Google\Protobuf\Internal\Message { /** - * Output only. `CustomFieldOption` ID. + * Optional. Non-empty default. `CustomFieldOption` ID. * - * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; */ protected $custom_field_option_id = 0; /** @@ -36,7 +36,7 @@ class CustomFieldOption extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type int|string $custom_field_option_id - * Output only. `CustomFieldOption` ID. + * Optional. Non-empty default. `CustomFieldOption` ID. * @type string $display_name * Required. The display name of the `CustomFieldOption`. * This value has a maximum length of 127 characters. @@ -48,9 +48,9 @@ public function __construct($data = NULL) { } /** - * Output only. `CustomFieldOption` ID. + * Optional. Non-empty default. `CustomFieldOption` ID. * - * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * @return int|string */ public function getCustomFieldOptionId() @@ -59,9 +59,9 @@ public function getCustomFieldOptionId() } /** - * Output only. `CustomFieldOption` ID. + * Optional. Non-empty default. `CustomFieldOption` ID. * - * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * @param int|string $var * @return $this */ diff --git a/AdsAdManager/src/V1/CustomTargetingClause.php b/AdsAdManager/src/V1/CustomTargetingClause.php index 1512f8b9a3db..ac5b782d3038 100644 --- a/AdsAdManager/src/V1/CustomTargetingClause.php +++ b/AdsAdManager/src/V1/CustomTargetingClause.php @@ -21,6 +21,18 @@ class CustomTargetingClause extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $custom_targeting_literals; + /** + * Optional. Leaf targeting expressions for audience segments. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $audience_segment_targetings; + /** + * Optional. Leaf targeting expressions for cms metadata. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $cms_metadata_targetings; /** * Constructor. @@ -30,6 +42,10 @@ class CustomTargetingClause extends \Google\Protobuf\Internal\Message * * @type array<\Google\Ads\AdManager\V1\CustomTargetingLiteral>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_literals * Optional. Leaf targeting expressions for custom key/values. + * @type array<\Google\Ads\AdManager\V1\AudienceSegmentTargeting>|\Google\Protobuf\Internal\RepeatedField $audience_segment_targetings + * Optional. Leaf targeting expressions for audience segments. + * @type array<\Google\Ads\AdManager\V1\CmsMetadataTargeting>|\Google\Protobuf\Internal\RepeatedField $cms_metadata_targetings + * Optional. Leaf targeting expressions for cms metadata. * } */ public function __construct($data = NULL) { @@ -63,5 +79,57 @@ public function setCustomTargetingLiterals($var) return $this; } + /** + * Optional. Leaf targeting expressions for audience segments. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAudienceSegmentTargetings() + { + return $this->audience_segment_targetings; + } + + /** + * Optional. Leaf targeting expressions for audience segments. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\AudienceSegmentTargeting>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAudienceSegmentTargetings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AudienceSegmentTargeting::class); + $this->audience_segment_targetings = $arr; + + return $this; + } + + /** + * Optional. Leaf targeting expressions for cms metadata. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCmsMetadataTargetings() + { + return $this->cms_metadata_targetings; + } + + /** + * Optional. Leaf targeting expressions for cms metadata. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\CmsMetadataTargeting>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCmsMetadataTargetings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CmsMetadataTargeting::class); + $this->cms_metadata_targetings = $arr; + + return $this; + } + } diff --git a/AdsAdManager/src/V1/CustomTargetingKey.php b/AdsAdManager/src/V1/CustomTargetingKey.php index c08ea0a5c5f6..abaefc021afb 100644 --- a/AdsAdManager/src/V1/CustomTargetingKey.php +++ b/AdsAdManager/src/V1/CustomTargetingKey.php @@ -26,43 +26,43 @@ class CustomTargetingKey extends \Google\Protobuf\Internal\Message /** * Output only. `CustomTargetingKey` ID. * - * Generated from protobuf field int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $custom_targeting_key_id = 0; + protected $custom_targeting_key_id = null; /** * Immutable. Name of the key. Keys can contain up to 10 characters each. You * can use alphanumeric characters and symbols other than the following: * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * - * Generated from protobuf field string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * Generated from protobuf field optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ - protected $ad_tag_name = ''; + protected $ad_tag_name = null; /** * Optional. Descriptive name for the `CustomTargetingKey`. * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $display_name = ''; + protected $display_name = null; /** * Required. Indicates whether users will select from predefined values or * create new targeting values, while specifying targeting criteria for a line * item. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; */ - protected $type = 0; + protected $type = null; /** * Output only. Status of the `CustomTargetingKey`. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $status = 0; + protected $status = null; /** * Required. Reportable state of the `CustomTargetingKey`. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; */ - protected $reportable_type = 0; + protected $reportable_type = null; /** * Constructor. @@ -130,18 +130,28 @@ public function setName($var) /** * Output only. `CustomTargetingKey` ID. * - * Generated from protobuf field int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int|string */ public function getCustomTargetingKeyId() { - return $this->custom_targeting_key_id; + return isset($this->custom_targeting_key_id) ? $this->custom_targeting_key_id : 0; + } + + public function hasCustomTargetingKeyId() + { + return isset($this->custom_targeting_key_id); + } + + public function clearCustomTargetingKeyId() + { + unset($this->custom_targeting_key_id); } /** * Output only. `CustomTargetingKey` ID. * - * Generated from protobuf field int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int|string $var * @return $this */ @@ -158,12 +168,22 @@ public function setCustomTargetingKeyId($var) * can use alphanumeric characters and symbols other than the following: * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * - * Generated from protobuf field string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * Generated from protobuf field optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return string */ public function getAdTagName() { - return $this->ad_tag_name; + return isset($this->ad_tag_name) ? $this->ad_tag_name : ''; + } + + public function hasAdTagName() + { + return isset($this->ad_tag_name); + } + + public function clearAdTagName() + { + unset($this->ad_tag_name); } /** @@ -171,7 +191,7 @@ public function getAdTagName() * can use alphanumeric characters and symbols other than the following: * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * - * Generated from protobuf field string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * Generated from protobuf field optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @param string $var * @return $this */ @@ -186,18 +206,28 @@ public function setAdTagName($var) /** * Optional. Descriptive name for the `CustomTargetingKey`. * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getDisplayName() { - return $this->display_name; + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); } /** * Optional. Descriptive name for the `CustomTargetingKey`. * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -214,12 +244,22 @@ public function setDisplayName($var) * create new targeting values, while specifying targeting criteria for a line * item. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * @return int */ public function getType() { - return $this->type; + return isset($this->type) ? $this->type : 0; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); } /** @@ -227,7 +267,7 @@ public function getType() * create new targeting values, while specifying targeting criteria for a line * item. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this */ @@ -242,18 +282,28 @@ public function setType($var) /** * Output only. Status of the `CustomTargetingKey`. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int */ public function getStatus() { - return $this->status; + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); } /** * Output only. Status of the `CustomTargetingKey`. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var * @return $this */ @@ -268,18 +318,28 @@ public function setStatus($var) /** * Required. Reportable state of the `CustomTargetingKey`. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * @return int */ public function getReportableType() { - return $this->reportable_type; + return isset($this->reportable_type) ? $this->reportable_type : 0; + } + + public function hasReportableType() + { + return isset($this->reportable_type); + } + + public function clearReportableType() + { + unset($this->reportable_type); } /** * Required. Reportable state of the `CustomTargetingKey`. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this */ diff --git a/AdsAdManager/src/V1/CustomTargetingValue.php b/AdsAdManager/src/V1/CustomTargetingValue.php index 2f74b25d0231..844841b82ffe 100644 --- a/AdsAdManager/src/V1/CustomTargetingValue.php +++ b/AdsAdManager/src/V1/CustomTargetingValue.php @@ -28,9 +28,9 @@ class CustomTargetingValue extends \Google\Protobuf\Internal\Message * Format: * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` * - * Generated from protobuf field string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * Generated from protobuf field optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { */ - protected $custom_targeting_key = ''; + protected $custom_targeting_key = null; /** * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 * characters each. You can use alphanumeric characters and symbols other than @@ -38,28 +38,28 @@ class CustomTargetingValue extends \Google\Protobuf\Internal\Message * not data-specific; all values are treated as strings. For example, instead * of using "age>=18 AND <=34", try "18-34" * - * Generated from protobuf field string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * Generated from protobuf field optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ - protected $ad_tag_name = ''; + protected $ad_tag_name = null; /** * Optional. Descriptive name for the `CustomTargetingValue`. * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $display_name = ''; + protected $display_name = null; /** * Required. Immutable. The way in which the CustomTargetingValue.name strings * will be matched. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; */ - protected $match_type = 0; + protected $match_type = null; /** * Output only. Status of the `CustomTargetingValue`. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $status = 0; + protected $status = null; /** * Constructor. @@ -130,12 +130,22 @@ public function setName($var) * Format: * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` * - * Generated from protobuf field string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * Generated from protobuf field optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { * @return string */ public function getCustomTargetingKey() { - return $this->custom_targeting_key; + return isset($this->custom_targeting_key) ? $this->custom_targeting_key : ''; + } + + public function hasCustomTargetingKey() + { + return isset($this->custom_targeting_key); + } + + public function clearCustomTargetingKey() + { + unset($this->custom_targeting_key); } /** @@ -143,7 +153,7 @@ public function getCustomTargetingKey() * Format: * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` * - * Generated from protobuf field string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * Generated from protobuf field optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -162,12 +172,22 @@ public function setCustomTargetingKey($var) * not data-specific; all values are treated as strings. For example, instead * of using "age>=18 AND <=34", try "18-34" * - * Generated from protobuf field string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * Generated from protobuf field optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return string */ public function getAdTagName() { - return $this->ad_tag_name; + return isset($this->ad_tag_name) ? $this->ad_tag_name : ''; + } + + public function hasAdTagName() + { + return isset($this->ad_tag_name); + } + + public function clearAdTagName() + { + unset($this->ad_tag_name); } /** @@ -177,7 +197,7 @@ public function getAdTagName() * not data-specific; all values are treated as strings. For example, instead * of using "age>=18 AND <=34", try "18-34" * - * Generated from protobuf field string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * Generated from protobuf field optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @param string $var * @return $this */ @@ -192,18 +212,28 @@ public function setAdTagName($var) /** * Optional. Descriptive name for the `CustomTargetingValue`. * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getDisplayName() { - return $this->display_name; + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); } /** * Optional. Descriptive name for the `CustomTargetingValue`. * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -219,19 +249,29 @@ public function setDisplayName($var) * Required. Immutable. The way in which the CustomTargetingValue.name strings * will be matched. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return int */ public function getMatchType() { - return $this->match_type; + return isset($this->match_type) ? $this->match_type : 0; + } + + public function hasMatchType() + { + return isset($this->match_type); + } + + public function clearMatchType() + { + unset($this->match_type); } /** * Required. Immutable. The way in which the CustomTargetingValue.name strings * will be matched. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this */ @@ -246,18 +286,28 @@ public function setMatchType($var) /** * Output only. Status of the `CustomTargetingValue`. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int */ public function getStatus() { - return $this->status; + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); } /** * Output only. Status of the `CustomTargetingValue`. * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var * @return $this */ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapability.php b/AdsAdManager/src/V1/DeviceCapability.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapability.php rename to AdsAdManager/src/V1/DeviceCapability.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapabilityTargeting.php b/AdsAdManager/src/V1/DeviceCapabilityTargeting.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCapabilityTargeting.php rename to AdsAdManager/src/V1/DeviceCapabilityTargeting.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturer.php b/AdsAdManager/src/V1/DeviceManufacturer.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturer.php rename to AdsAdManager/src/V1/DeviceManufacturer.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturerTargeting.php b/AdsAdManager/src/V1/DeviceManufacturerTargeting.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceManufacturerTargeting.php rename to AdsAdManager/src/V1/DeviceManufacturerTargeting.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DisapprovalReason.php b/AdsAdManager/src/V1/DisapprovalReason.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DisapprovalReason.php rename to AdsAdManager/src/V1/DisapprovalReason.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum.php b/AdsAdManager/src/V1/ExchangeSyndicationProductEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum.php rename to AdsAdManager/src/V1/ExchangeSyndicationProductEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php b/AdsAdManager/src/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php similarity index 90% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php rename to AdsAdManager/src/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php index c5b4aa65a01b..a5b8ae0d2b6b 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php +++ b/AdsAdManager/src/V1/ExchangeSyndicationProductEnum/ExchangeSyndicationProduct.php @@ -73,6 +73,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ExchangeSyndicationProduct::class, \Google\Ads\AdManager\V1\ExchangeSyndicationProductEnum_ExchangeSyndicationProduct::class); diff --git a/AdsAdManager/src/V1/FetchReportResultRowsRequest.php b/AdsAdManager/src/V1/FetchReportResultRowsRequest.php index c12d3c16d43d..b23277077000 100644 --- a/AdsAdManager/src/V1/FetchReportResultRowsRequest.php +++ b/AdsAdManager/src/V1/FetchReportResultRowsRequest.php @@ -26,7 +26,8 @@ class FetchReportResultRowsRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of rows to return. The service may return * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values above 10,000 will be reduced to 10,000. + * The maximum value is 10,000; values greater than 10,000 will be reduced to + * 10,000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -67,7 +68,8 @@ public static function build(string $name): self * @type int $page_size * Optional. The maximum number of rows to return. The service may return * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values above 10,000 will be reduced to 10,000. + * The maximum value is 10,000; values greater than 10,000 will be reduced to + * 10,000. * @type string $page_token * Optional. A page token, received from a previous `FetchReportResultRows` * call. Provide this to retrieve the second and subsequent batches of rows. @@ -111,7 +113,8 @@ public function setName($var) /** * Optional. The maximum number of rows to return. The service may return * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values above 10,000 will be reduced to 10,000. + * The maximum value is 10,000; values greater than 10,000 will be reduced to + * 10,000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -124,7 +127,8 @@ public function getPageSize() /** * Optional. The maximum number of rows to return. The service may return * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values above 10,000 will be reduced to 10,000. + * The maximum value is 10,000; values greater than 10,000 will be reduced to + * 10,000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/FetchReportResultRowsResponse.php b/AdsAdManager/src/V1/FetchReportResultRowsResponse.php index 74a9f55c6b63..fc893a549109 100644 --- a/AdsAdManager/src/V1/FetchReportResultRowsResponse.php +++ b/AdsAdManager/src/V1/FetchReportResultRowsResponse.php @@ -18,7 +18,7 @@ class FetchReportResultRowsResponse extends \Google\Protobuf\Internal\Message /** * Up to `page_size` rows of report data. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ private $rows; /** @@ -33,7 +33,7 @@ class FetchReportResultRowsResponse extends \Google\Protobuf\Internal\Message * Only returned with the first page of results (when page_token is not * included in the request). * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; */ private $date_ranges; /** @@ -41,7 +41,7 @@ class FetchReportResultRowsResponse extends \Google\Protobuf\Internal\Message * Only returned with the first page of results (when page_token is not * included in the request). * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; */ private $comparison_date_ranges; /** @@ -67,16 +67,16 @@ class FetchReportResultRowsResponse extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type array<\Google\Ads\AdManager\V1\Report\DataTable\Row>|\Google\Protobuf\Internal\RepeatedField $rows + * @type array<\Google\Ads\AdManager\V1\ReportDataTable\Row>|\Google\Protobuf\Internal\RepeatedField $rows * Up to `page_size` rows of report data. * @type \Google\Protobuf\Timestamp $run_time * The time at which the report was scheduled to run. For non-scheduled * reports, this is the time at which the report was requested to be run. - * @type array<\Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges * The computed fixed date ranges this report includes. * Only returned with the first page of results (when page_token is not * included in the request). - * @type array<\Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $comparison_date_ranges + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $comparison_date_ranges * The computed comparison fixed date ranges this report includes. * Only returned with the first page of results (when page_token is not * included in the request). @@ -98,7 +98,7 @@ public function __construct($data = NULL) { /** * Up to `page_size` rows of report data. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRows() @@ -109,13 +109,13 @@ public function getRows() /** * Up to `page_size` rows of report data. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; - * @param array<\Google\Ads\AdManager\V1\Report\DataTable\Row>|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; + * @param array<\Google\Ads\AdManager\V1\ReportDataTable\Row>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRows($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\DataTable\Row::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDataTable\Row::class); $this->rows = $arr; return $this; @@ -164,7 +164,7 @@ public function setRunTime($var) * Only returned with the first page of results (when page_token is not * included in the request). * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getDateRanges() @@ -177,13 +177,13 @@ public function getDateRanges() * Only returned with the first page of results (when page_token is not * included in the request). * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; - * @param array<\Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDateRanges($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange::class); $this->date_ranges = $arr; return $this; @@ -194,7 +194,7 @@ public function setDateRanges($var) * Only returned with the first page of results (when page_token is not * included in the request). * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getComparisonDateRanges() @@ -207,13 +207,13 @@ public function getComparisonDateRanges() * Only returned with the first page of results (when page_token is not * included in the request). * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; - * @param array<\Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setComparisonDateRanges($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange::class); $this->comparison_date_ranges = $arr; return $this; diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FirstPartyMobileApplicationTargeting.php b/AdsAdManager/src/V1/FirstPartyMobileApplicationTargeting.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FirstPartyMobileApplicationTargeting.php rename to AdsAdManager/src/V1/FirstPartyMobileApplicationTargeting.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetApplicationRequest.php b/AdsAdManager/src/V1/GetApplicationRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetApplicationRequest.php rename to AdsAdManager/src/V1/GetApplicationRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAudienceSegmentRequest.php b/AdsAdManager/src/V1/GetAudienceSegmentRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAudienceSegmentRequest.php rename to AdsAdManager/src/V1/GetAudienceSegmentRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserLanguageRequest.php b/AdsAdManager/src/V1/GetBrowserLanguageRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserLanguageRequest.php rename to AdsAdManager/src/V1/GetBrowserLanguageRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserRequest.php b/AdsAdManager/src/V1/GetBrowserRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBrowserRequest.php rename to AdsAdManager/src/V1/GetBrowserRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataKeyRequest.php b/AdsAdManager/src/V1/GetCmsMetadataKeyRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataKeyRequest.php rename to AdsAdManager/src/V1/GetCmsMetadataKeyRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataValueRequest.php b/AdsAdManager/src/V1/GetCmsMetadataValueRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCmsMetadataValueRequest.php rename to AdsAdManager/src/V1/GetCmsMetadataValueRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContactRequest.php b/AdsAdManager/src/V1/GetContactRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContactRequest.php rename to AdsAdManager/src/V1/GetContactRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentBundleRequest.php b/AdsAdManager/src/V1/GetContentBundleRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentBundleRequest.php rename to AdsAdManager/src/V1/GetContentBundleRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentLabelRequest.php b/AdsAdManager/src/V1/GetContentLabelRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentLabelRequest.php rename to AdsAdManager/src/V1/GetContentLabelRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentRequest.php b/AdsAdManager/src/V1/GetContentRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetContentRequest.php rename to AdsAdManager/src/V1/GetContentRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCreativeTemplateRequest.php b/AdsAdManager/src/V1/GetCreativeTemplateRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCreativeTemplateRequest.php rename to AdsAdManager/src/V1/GetCreativeTemplateRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCapabilityRequest.php b/AdsAdManager/src/V1/GetDeviceCapabilityRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCapabilityRequest.php rename to AdsAdManager/src/V1/GetDeviceCapabilityRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceManufacturerRequest.php b/AdsAdManager/src/V1/GetDeviceManufacturerRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceManufacturerRequest.php rename to AdsAdManager/src/V1/GetDeviceManufacturerRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileCarrierRequest.php b/AdsAdManager/src/V1/GetMobileCarrierRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileCarrierRequest.php rename to AdsAdManager/src/V1/GetMobileCarrierRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceRequest.php b/AdsAdManager/src/V1/GetMobileDeviceRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceRequest.php rename to AdsAdManager/src/V1/GetMobileDeviceRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceSubmodelRequest.php b/AdsAdManager/src/V1/GetMobileDeviceSubmodelRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetMobileDeviceSubmodelRequest.php rename to AdsAdManager/src/V1/GetMobileDeviceSubmodelRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetSiteRequest.php b/AdsAdManager/src/V1/GetSiteRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetSiteRequest.php rename to AdsAdManager/src/V1/GetSiteRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTeamRequest.php b/AdsAdManager/src/V1/GetTeamRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTeamRequest.php rename to AdsAdManager/src/V1/GetTeamRequest.php diff --git a/AdsAdManager/src/V1/LabelFrequencyCap.php b/AdsAdManager/src/V1/LabelFrequencyCap.php index 114c8b3e3776..e64694387979 100644 --- a/AdsAdManager/src/V1/LabelFrequencyCap.php +++ b/AdsAdManager/src/V1/LabelFrequencyCap.php @@ -19,13 +19,13 @@ class LabelFrequencyCap extends \Google\Protobuf\Internal\Message * Required. The label to used for frequency capping. * Format: "networks/{network_code}/labels/{label_id}" * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $label = ''; + protected $label = null; /** * The frequency cap. * - * Generated from protobuf field .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * Generated from protobuf field optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; */ protected $frequency_cap = null; @@ -51,19 +51,29 @@ public function __construct($data = NULL) { * Required. The label to used for frequency capping. * Format: "networks/{network_code}/labels/{label_id}" * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getLabel() { - return $this->label; + return isset($this->label) ? $this->label : ''; + } + + public function hasLabel() + { + return isset($this->label); + } + + public function clearLabel() + { + unset($this->label); } /** * Required. The label to used for frequency capping. * Format: "networks/{network_code}/labels/{label_id}" * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -78,7 +88,7 @@ public function setLabel($var) /** * The frequency cap. * - * Generated from protobuf field .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * Generated from protobuf field optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; * @return \Google\Ads\AdManager\V1\FrequencyCap|null */ public function getFrequencyCap() @@ -99,7 +109,7 @@ public function clearFrequencyCap() /** * The frequency cap. * - * Generated from protobuf field .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * Generated from protobuf field optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; * @param \Google\Ads\AdManager\V1\FrequencyCap $var * @return $this */ diff --git a/AdsAdManager/src/V1/ListAdBreaksResponse.php b/AdsAdManager/src/V1/ListAdBreaksResponse.php index 5efd829c3cef..07f1234b86cf 100644 --- a/AdsAdManager/src/V1/ListAdBreaksResponse.php +++ b/AdsAdManager/src/V1/ListAdBreaksResponse.php @@ -34,7 +34,7 @@ class ListAdBreaksResponse extends \Google\Protobuf\Internal\Message * Total number of `AdBreak` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -61,7 +61,7 @@ class ListAdBreaksResponse extends \Google\Protobuf\Internal\Message * Total number of `AdBreak` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -134,7 +134,7 @@ public function setNextPageToken($var) * Total number of `AdBreak` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -153,7 +153,7 @@ public function getTotalSize() * Total number of `AdBreak` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListAdUnitSizesRequest.php b/AdsAdManager/src/V1/ListAdUnitSizesRequest.php index 14020cd4f7ef..0738fead7604 100644 --- a/AdsAdManager/src/V1/ListAdUnitSizesRequest.php +++ b/AdsAdManager/src/V1/ListAdUnitSizesRequest.php @@ -25,8 +25,8 @@ class ListAdUnitSizesRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of AdUnitSizes to return. The service may * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -90,8 +90,8 @@ public static function build(string $parent): self * @type int $page_size * Optional. The maximum number of AdUnitSizes to return. The service may * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListAdUnitSizes` call. * Provide this to retrieve the subsequent page. @@ -145,8 +145,8 @@ public function setParent($var) /** * Optional. The maximum number of AdUnitSizes to return. The service may * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -159,8 +159,8 @@ public function getPageSize() /** * Optional. The maximum number of AdUnitSizes to return. The service may * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListAdUnitSizesResponse.php b/AdsAdManager/src/V1/ListAdUnitSizesResponse.php index c9b275f95ca0..471fe5e27ba6 100644 --- a/AdsAdManager/src/V1/ListAdUnitSizesResponse.php +++ b/AdsAdManager/src/V1/ListAdUnitSizesResponse.php @@ -32,7 +32,7 @@ class ListAdUnitSizesResponse extends \Google\Protobuf\Internal\Message * Total number of AdUnitSizes. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -58,7 +58,7 @@ class ListAdUnitSizesResponse extends \Google\Protobuf\Internal\Message * Total number of AdUnitSizes. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -129,7 +129,7 @@ public function setNextPageToken($var) * Total number of AdUnitSizes. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -148,7 +148,7 @@ public function getTotalSize() * Total number of AdUnitSizes. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListAdUnitsRequest.php b/AdsAdManager/src/V1/ListAdUnitsRequest.php index a026663a9637..727ea00d649d 100644 --- a/AdsAdManager/src/V1/ListAdUnitsRequest.php +++ b/AdsAdManager/src/V1/ListAdUnitsRequest.php @@ -25,8 +25,8 @@ class ListAdUnitsRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of AdUnits to return. The service may return * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -90,8 +90,8 @@ public static function build(string $parent): self * @type int $page_size * Optional. The maximum number of AdUnits to return. The service may return * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListAdUnits` call. * Provide this to retrieve the subsequent page. @@ -145,8 +145,8 @@ public function setParent($var) /** * Optional. The maximum number of AdUnits to return. The service may return * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -159,8 +159,8 @@ public function getPageSize() /** * Optional. The maximum number of AdUnits to return. The service may return * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListAdUnitsResponse.php b/AdsAdManager/src/V1/ListAdUnitsResponse.php index 455e35caede7..fdbd1e40affd 100644 --- a/AdsAdManager/src/V1/ListAdUnitsResponse.php +++ b/AdsAdManager/src/V1/ListAdUnitsResponse.php @@ -32,7 +32,7 @@ class ListAdUnitsResponse extends \Google\Protobuf\Internal\Message * Total number of AdUnits. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -58,7 +58,7 @@ class ListAdUnitsResponse extends \Google\Protobuf\Internal\Message * Total number of AdUnits. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -129,7 +129,7 @@ public function setNextPageToken($var) * Total number of AdUnits. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -148,7 +148,7 @@ public function getTotalSize() * Total number of AdUnits. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsRequest.php b/AdsAdManager/src/V1/ListApplicationsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsRequest.php rename to AdsAdManager/src/V1/ListApplicationsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsResponse.php b/AdsAdManager/src/V1/ListApplicationsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListApplicationsResponse.php rename to AdsAdManager/src/V1/ListApplicationsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsRequest.php b/AdsAdManager/src/V1/ListAudienceSegmentsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsRequest.php rename to AdsAdManager/src/V1/ListAudienceSegmentsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsResponse.php b/AdsAdManager/src/V1/ListAudienceSegmentsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAudienceSegmentsResponse.php rename to AdsAdManager/src/V1/ListAudienceSegmentsResponse.php diff --git a/AdsAdManager/src/V1/ListBandwidthGroupsRequest.php b/AdsAdManager/src/V1/ListBandwidthGroupsRequest.php index c1fa162aedac..7558ac214e44 100644 --- a/AdsAdManager/src/V1/ListBandwidthGroupsRequest.php +++ b/AdsAdManager/src/V1/ListBandwidthGroupsRequest.php @@ -25,8 +25,8 @@ class ListBandwidthGroupsRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of `BandwidthGroups` to return. The service * may return fewer than this value. If unspecified, at most 50 - * `BandwidthGroups` will be returned. The maximum value is 1000; values above - * 1000 will be coerced to 1000. + * `BandwidthGroups` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -90,8 +90,8 @@ public static function build(string $parent): self * @type int $page_size * Optional. The maximum number of `BandwidthGroups` to return. The service * may return fewer than this value. If unspecified, at most 50 - * `BandwidthGroups` will be returned. The maximum value is 1000; values above - * 1000 will be coerced to 1000. + * `BandwidthGroups` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListBandwidthGroups` * call. Provide this to retrieve the subsequent page. @@ -145,8 +145,8 @@ public function setParent($var) /** * Optional. The maximum number of `BandwidthGroups` to return. The service * may return fewer than this value. If unspecified, at most 50 - * `BandwidthGroups` will be returned. The maximum value is 1000; values above - * 1000 will be coerced to 1000. + * `BandwidthGroups` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -159,8 +159,8 @@ public function getPageSize() /** * Optional. The maximum number of `BandwidthGroups` to return. The service * may return fewer than this value. If unspecified, at most 50 - * `BandwidthGroups` will be returned. The maximum value is 1000; values above - * 1000 will be coerced to 1000. + * `BandwidthGroups` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListBandwidthGroupsResponse.php b/AdsAdManager/src/V1/ListBandwidthGroupsResponse.php index 7141f871beed..e9c271e781f6 100644 --- a/AdsAdManager/src/V1/ListBandwidthGroupsResponse.php +++ b/AdsAdManager/src/V1/ListBandwidthGroupsResponse.php @@ -33,7 +33,7 @@ class ListBandwidthGroupsResponse extends \Google\Protobuf\Internal\Message * Total number of `BandwidthGroup` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListBandwidthGroupsResponse extends \Google\Protobuf\Internal\Message * Total number of `BandwidthGroup` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `BandwidthGroup` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `BandwidthGroup` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesRequest.php b/AdsAdManager/src/V1/ListBrowserLanguagesRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesRequest.php rename to AdsAdManager/src/V1/ListBrowserLanguagesRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesResponse.php b/AdsAdManager/src/V1/ListBrowserLanguagesResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowserLanguagesResponse.php rename to AdsAdManager/src/V1/ListBrowserLanguagesResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersRequest.php b/AdsAdManager/src/V1/ListBrowsersRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersRequest.php rename to AdsAdManager/src/V1/ListBrowsersRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersResponse.php b/AdsAdManager/src/V1/ListBrowsersResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBrowsersResponse.php rename to AdsAdManager/src/V1/ListBrowsersResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysRequest.php b/AdsAdManager/src/V1/ListCmsMetadataKeysRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysRequest.php rename to AdsAdManager/src/V1/ListCmsMetadataKeysRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysResponse.php b/AdsAdManager/src/V1/ListCmsMetadataKeysResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataKeysResponse.php rename to AdsAdManager/src/V1/ListCmsMetadataKeysResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesRequest.php b/AdsAdManager/src/V1/ListCmsMetadataValuesRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesRequest.php rename to AdsAdManager/src/V1/ListCmsMetadataValuesRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesResponse.php b/AdsAdManager/src/V1/ListCmsMetadataValuesResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCmsMetadataValuesResponse.php rename to AdsAdManager/src/V1/ListCmsMetadataValuesResponse.php diff --git a/AdsAdManager/src/V1/ListCompaniesRequest.php b/AdsAdManager/src/V1/ListCompaniesRequest.php index 92854e1e909c..c3b776eef434 100644 --- a/AdsAdManager/src/V1/ListCompaniesRequest.php +++ b/AdsAdManager/src/V1/ListCompaniesRequest.php @@ -25,8 +25,8 @@ class ListCompaniesRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of `Companies` to return. The service may * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -90,8 +90,8 @@ public static function build(string $parent): self * @type int $page_size * Optional. The maximum number of `Companies` to return. The service may * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListCompanies` call. * Provide this to retrieve the subsequent page. @@ -145,8 +145,8 @@ public function setParent($var) /** * Optional. The maximum number of `Companies` to return. The service may * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -159,8 +159,8 @@ public function getPageSize() /** * Optional. The maximum number of `Companies` to return. The service may * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListCompaniesResponse.php b/AdsAdManager/src/V1/ListCompaniesResponse.php index 2dc511fcdc1e..69a940f8970d 100644 --- a/AdsAdManager/src/V1/ListCompaniesResponse.php +++ b/AdsAdManager/src/V1/ListCompaniesResponse.php @@ -33,7 +33,7 @@ class ListCompaniesResponse extends \Google\Protobuf\Internal\Message * Total number of `Company` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListCompaniesResponse extends \Google\Protobuf\Internal\Message * Total number of `Company` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `Company` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `Company` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsRequest.php b/AdsAdManager/src/V1/ListContactsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsRequest.php rename to AdsAdManager/src/V1/ListContactsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsResponse.php b/AdsAdManager/src/V1/ListContactsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContactsResponse.php rename to AdsAdManager/src/V1/ListContactsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesRequest.php b/AdsAdManager/src/V1/ListContentBundlesRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesRequest.php rename to AdsAdManager/src/V1/ListContentBundlesRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesResponse.php b/AdsAdManager/src/V1/ListContentBundlesResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentBundlesResponse.php rename to AdsAdManager/src/V1/ListContentBundlesResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsRequest.php b/AdsAdManager/src/V1/ListContentLabelsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsRequest.php rename to AdsAdManager/src/V1/ListContentLabelsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsResponse.php b/AdsAdManager/src/V1/ListContentLabelsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentLabelsResponse.php rename to AdsAdManager/src/V1/ListContentLabelsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentRequest.php b/AdsAdManager/src/V1/ListContentRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentRequest.php rename to AdsAdManager/src/V1/ListContentRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentResponse.php b/AdsAdManager/src/V1/ListContentResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListContentResponse.php rename to AdsAdManager/src/V1/ListContentResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesRequest.php b/AdsAdManager/src/V1/ListCreativeTemplatesRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesRequest.php rename to AdsAdManager/src/V1/ListCreativeTemplatesRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesResponse.php b/AdsAdManager/src/V1/ListCreativeTemplatesResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCreativeTemplatesResponse.php rename to AdsAdManager/src/V1/ListCreativeTemplatesResponse.php diff --git a/AdsAdManager/src/V1/ListCustomFieldsRequest.php b/AdsAdManager/src/V1/ListCustomFieldsRequest.php index 503b26124a12..24f40056566b 100644 --- a/AdsAdManager/src/V1/ListCustomFieldsRequest.php +++ b/AdsAdManager/src/V1/ListCustomFieldsRequest.php @@ -25,8 +25,8 @@ class ListCustomFieldsRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of `CustomFields` to return. The service may * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -90,8 +90,8 @@ public static function build(string $parent): self * @type int $page_size * Optional. The maximum number of `CustomFields` to return. The service may * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListCustomFields` call. * Provide this to retrieve the subsequent page. @@ -145,8 +145,8 @@ public function setParent($var) /** * Optional. The maximum number of `CustomFields` to return. The service may * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -159,8 +159,8 @@ public function getPageSize() /** * Optional. The maximum number of `CustomFields` to return. The service may * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. + * will be returned. The maximum value is 1000; values greater than 1000 will + * be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListCustomFieldsResponse.php b/AdsAdManager/src/V1/ListCustomFieldsResponse.php index 0309c4dbb01a..8ec896f118f9 100644 --- a/AdsAdManager/src/V1/ListCustomFieldsResponse.php +++ b/AdsAdManager/src/V1/ListCustomFieldsResponse.php @@ -33,7 +33,7 @@ class ListCustomFieldsResponse extends \Google\Protobuf\Internal\Message * Total number of `CustomField` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListCustomFieldsResponse extends \Google\Protobuf\Internal\Message * Total number of `CustomField` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `CustomField` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `CustomField` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListCustomTargetingKeysResponse.php b/AdsAdManager/src/V1/ListCustomTargetingKeysResponse.php index 891f1e3aff20..9f478cfee346 100644 --- a/AdsAdManager/src/V1/ListCustomTargetingKeysResponse.php +++ b/AdsAdManager/src/V1/ListCustomTargetingKeysResponse.php @@ -33,7 +33,7 @@ class ListCustomTargetingKeysResponse extends \Google\Protobuf\Internal\Message * Total number of `CustomTargetingKey` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListCustomTargetingKeysResponse extends \Google\Protobuf\Internal\Message * Total number of `CustomTargetingKey` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `CustomTargetingKey` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `CustomTargetingKey` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListCustomTargetingValuesResponse.php b/AdsAdManager/src/V1/ListCustomTargetingValuesResponse.php index e1711c0af28f..34765904f69e 100644 --- a/AdsAdManager/src/V1/ListCustomTargetingValuesResponse.php +++ b/AdsAdManager/src/V1/ListCustomTargetingValuesResponse.php @@ -33,7 +33,7 @@ class ListCustomTargetingValuesResponse extends \Google\Protobuf\Internal\Messag * Total number of `CustomTargetingValue` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListCustomTargetingValuesResponse extends \Google\Protobuf\Internal\Messag * Total number of `CustomTargetingValue` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `CustomTargetingValue` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `CustomTargetingValue` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesRequest.php b/AdsAdManager/src/V1/ListDeviceCapabilitiesRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesRequest.php rename to AdsAdManager/src/V1/ListDeviceCapabilitiesRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesResponse.php b/AdsAdManager/src/V1/ListDeviceCapabilitiesResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCapabilitiesResponse.php rename to AdsAdManager/src/V1/ListDeviceCapabilitiesResponse.php diff --git a/AdsAdManager/src/V1/ListDeviceCategoriesRequest.php b/AdsAdManager/src/V1/ListDeviceCategoriesRequest.php index 4a2e85e64690..6489d950b751 100644 --- a/AdsAdManager/src/V1/ListDeviceCategoriesRequest.php +++ b/AdsAdManager/src/V1/ListDeviceCategoriesRequest.php @@ -26,7 +26,7 @@ class ListDeviceCategoriesRequest extends \Google\Protobuf\Internal\Message * Optional. The maximum number of `DeviceCategories` to return. The service * may return fewer than this value. If unspecified, at most 50 * `DeviceCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -91,7 +91,7 @@ public static function build(string $parent): self * Optional. The maximum number of `DeviceCategories` to return. The service * may return fewer than this value. If unspecified, at most 50 * `DeviceCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListDeviceCategories` * call. Provide this to retrieve the subsequent page. @@ -146,7 +146,7 @@ public function setParent($var) * Optional. The maximum number of `DeviceCategories` to return. The service * may return fewer than this value. If unspecified, at most 50 * `DeviceCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -160,7 +160,7 @@ public function getPageSize() * Optional. The maximum number of `DeviceCategories` to return. The service * may return fewer than this value. If unspecified, at most 50 * `DeviceCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListDeviceCategoriesResponse.php b/AdsAdManager/src/V1/ListDeviceCategoriesResponse.php index 4126f254c2f1..535a42efdd64 100644 --- a/AdsAdManager/src/V1/ListDeviceCategoriesResponse.php +++ b/AdsAdManager/src/V1/ListDeviceCategoriesResponse.php @@ -33,7 +33,7 @@ class ListDeviceCategoriesResponse extends \Google\Protobuf\Internal\Message * Total number of `DeviceCategory` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListDeviceCategoriesResponse extends \Google\Protobuf\Internal\Message * Total number of `DeviceCategory` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `DeviceCategory` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `DeviceCategory` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersRequest.php b/AdsAdManager/src/V1/ListDeviceManufacturersRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersRequest.php rename to AdsAdManager/src/V1/ListDeviceManufacturersRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersResponse.php b/AdsAdManager/src/V1/ListDeviceManufacturersResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceManufacturersResponse.php rename to AdsAdManager/src/V1/ListDeviceManufacturersResponse.php diff --git a/AdsAdManager/src/V1/ListEntitySignalsMappingsResponse.php b/AdsAdManager/src/V1/ListEntitySignalsMappingsResponse.php index 9cd5bb39eea0..e634bf1af866 100644 --- a/AdsAdManager/src/V1/ListEntitySignalsMappingsResponse.php +++ b/AdsAdManager/src/V1/ListEntitySignalsMappingsResponse.php @@ -33,7 +33,7 @@ class ListEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Messag * Total number of `EntitySignalsMappings`. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Messag * Total number of `EntitySignalsMappings`. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `EntitySignalsMappings`. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `EntitySignalsMappings`. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListGeoTargetsRequest.php b/AdsAdManager/src/V1/ListGeoTargetsRequest.php index 2123e1f8c21e..ee35713eaa03 100644 --- a/AdsAdManager/src/V1/ListGeoTargetsRequest.php +++ b/AdsAdManager/src/V1/ListGeoTargetsRequest.php @@ -25,8 +25,8 @@ class ListGeoTargetsRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of `GeoTargets` to return. The service may * return fewer than this value. If unspecified, at most 50 `GeoTargets` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -90,8 +90,8 @@ public static function build(string $parent): self * @type int $page_size * Optional. The maximum number of `GeoTargets` to return. The service may * return fewer than this value. If unspecified, at most 50 `GeoTargets` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListGeoTargets` call. * Provide this to retrieve the subsequent page. @@ -145,8 +145,8 @@ public function setParent($var) /** * Optional. The maximum number of `GeoTargets` to return. The service may * return fewer than this value. If unspecified, at most 50 `GeoTargets` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -159,8 +159,8 @@ public function getPageSize() /** * Optional. The maximum number of `GeoTargets` to return. The service may * return fewer than this value. If unspecified, at most 50 `GeoTargets` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListGeoTargetsResponse.php b/AdsAdManager/src/V1/ListGeoTargetsResponse.php index bf751770209e..ad738b31f5bf 100644 --- a/AdsAdManager/src/V1/ListGeoTargetsResponse.php +++ b/AdsAdManager/src/V1/ListGeoTargetsResponse.php @@ -33,7 +33,7 @@ class ListGeoTargetsResponse extends \Google\Protobuf\Internal\Message * Total number of `GeoTarget` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListGeoTargetsResponse extends \Google\Protobuf\Internal\Message * Total number of `GeoTarget` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `GeoTarget` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `GeoTarget` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersRequest.php b/AdsAdManager/src/V1/ListMobileCarriersRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersRequest.php rename to AdsAdManager/src/V1/ListMobileCarriersRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersResponse.php b/AdsAdManager/src/V1/ListMobileCarriersResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileCarriersResponse.php rename to AdsAdManager/src/V1/ListMobileCarriersResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsRequest.php b/AdsAdManager/src/V1/ListMobileDeviceSubmodelsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsRequest.php rename to AdsAdManager/src/V1/ListMobileDeviceSubmodelsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsResponse.php b/AdsAdManager/src/V1/ListMobileDeviceSubmodelsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDeviceSubmodelsResponse.php rename to AdsAdManager/src/V1/ListMobileDeviceSubmodelsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesRequest.php b/AdsAdManager/src/V1/ListMobileDevicesRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesRequest.php rename to AdsAdManager/src/V1/ListMobileDevicesRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesResponse.php b/AdsAdManager/src/V1/ListMobileDevicesResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListMobileDevicesResponse.php rename to AdsAdManager/src/V1/ListMobileDevicesResponse.php diff --git a/AdsAdManager/src/V1/ListOperatingSystemVersionsRequest.php b/AdsAdManager/src/V1/ListOperatingSystemVersionsRequest.php index ae13815ccdf2..79c4603bed4e 100644 --- a/AdsAdManager/src/V1/ListOperatingSystemVersionsRequest.php +++ b/AdsAdManager/src/V1/ListOperatingSystemVersionsRequest.php @@ -26,7 +26,7 @@ class ListOperatingSystemVersionsRequest extends \Google\Protobuf\Internal\Messa * Optional. The maximum number of `OperatingSystemVersions` to return. The * service may return fewer than this value. If unspecified, at most 50 * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -93,7 +93,7 @@ public static function build(string $parent): self * Optional. The maximum number of `OperatingSystemVersions` to return. The * service may return fewer than this value. If unspecified, at most 50 * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent @@ -150,7 +150,7 @@ public function setParent($var) * Optional. The maximum number of `OperatingSystemVersions` to return. The * service may return fewer than this value. If unspecified, at most 50 * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -164,7 +164,7 @@ public function getPageSize() * Optional. The maximum number of `OperatingSystemVersions` to return. The * service may return fewer than this value. If unspecified, at most 50 * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListOperatingSystemVersionsResponse.php b/AdsAdManager/src/V1/ListOperatingSystemVersionsResponse.php index 3ae54b5f2013..34daa1fe6128 100644 --- a/AdsAdManager/src/V1/ListOperatingSystemVersionsResponse.php +++ b/AdsAdManager/src/V1/ListOperatingSystemVersionsResponse.php @@ -33,7 +33,7 @@ class ListOperatingSystemVersionsResponse extends \Google\Protobuf\Internal\Mess * Total number of `OperatingSystemVersion` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListOperatingSystemVersionsResponse extends \Google\Protobuf\Internal\Mess * Total number of `OperatingSystemVersion` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `OperatingSystemVersion` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `OperatingSystemVersion` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListOperatingSystemsRequest.php b/AdsAdManager/src/V1/ListOperatingSystemsRequest.php index 5efe8a5c6019..24e2509af4e9 100644 --- a/AdsAdManager/src/V1/ListOperatingSystemsRequest.php +++ b/AdsAdManager/src/V1/ListOperatingSystemsRequest.php @@ -26,7 +26,7 @@ class ListOperatingSystemsRequest extends \Google\Protobuf\Internal\Message * Optional. The maximum number of `OperatingSystems` to return. The service * may return fewer than this value. If unspecified, at most 50 * `OperatingSystems` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -91,7 +91,7 @@ public static function build(string $parent): self * Optional. The maximum number of `OperatingSystems` to return. The service * may return fewer than this value. If unspecified, at most 50 * `OperatingSystems` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListOperatingSystems` * call. Provide this to retrieve the subsequent page. @@ -146,7 +146,7 @@ public function setParent($var) * Optional. The maximum number of `OperatingSystems` to return. The service * may return fewer than this value. If unspecified, at most 50 * `OperatingSystems` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -160,7 +160,7 @@ public function getPageSize() * Optional. The maximum number of `OperatingSystems` to return. The service * may return fewer than this value. If unspecified, at most 50 * `OperatingSystems` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListOperatingSystemsResponse.php b/AdsAdManager/src/V1/ListOperatingSystemsResponse.php index 19463b3aab0f..9e5a3456c49a 100644 --- a/AdsAdManager/src/V1/ListOperatingSystemsResponse.php +++ b/AdsAdManager/src/V1/ListOperatingSystemsResponse.php @@ -33,7 +33,7 @@ class ListOperatingSystemsResponse extends \Google\Protobuf\Internal\Message * Total number of `OperatingSystem` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListOperatingSystemsResponse extends \Google\Protobuf\Internal\Message * Total number of `OperatingSystem` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `OperatingSystem` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `OperatingSystem` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListOrdersRequest.php b/AdsAdManager/src/V1/ListOrdersRequest.php index 3aad5cd01b81..be867d697fcc 100644 --- a/AdsAdManager/src/V1/ListOrdersRequest.php +++ b/AdsAdManager/src/V1/ListOrdersRequest.php @@ -25,8 +25,8 @@ class ListOrdersRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of `Orders` to return. The service may return * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -90,8 +90,8 @@ public static function build(string $parent): self * @type int $page_size * Optional. The maximum number of `Orders` to return. The service may return * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListOrders` call. * Provide this to retrieve the subsequent page. @@ -145,8 +145,8 @@ public function setParent($var) /** * Optional. The maximum number of `Orders` to return. The service may return * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -159,8 +159,8 @@ public function getPageSize() /** * Optional. The maximum number of `Orders` to return. The service may return * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListOrdersResponse.php b/AdsAdManager/src/V1/ListOrdersResponse.php index d8f3a73eeeee..02cb3bda5914 100644 --- a/AdsAdManager/src/V1/ListOrdersResponse.php +++ b/AdsAdManager/src/V1/ListOrdersResponse.php @@ -33,7 +33,7 @@ class ListOrdersResponse extends \Google\Protobuf\Internal\Message * Total number of `Orders`. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListOrdersResponse extends \Google\Protobuf\Internal\Message * Total number of `Orders`. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `Orders`. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `Orders`. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListPlacementsRequest.php b/AdsAdManager/src/V1/ListPlacementsRequest.php index 0c728e44c3de..99ed2b60ebb7 100644 --- a/AdsAdManager/src/V1/ListPlacementsRequest.php +++ b/AdsAdManager/src/V1/ListPlacementsRequest.php @@ -25,8 +25,8 @@ class ListPlacementsRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of `Placements` to return. The service may * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -90,8 +90,8 @@ public static function build(string $parent): self * @type int $page_size * Optional. The maximum number of `Placements` to return. The service may * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListPlacements` call. * Provide this to retrieve the subsequent page. @@ -145,8 +145,8 @@ public function setParent($var) /** * Optional. The maximum number of `Placements` to return. The service may * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -159,8 +159,8 @@ public function getPageSize() /** * Optional. The maximum number of `Placements` to return. The service may * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. + * be returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListPlacementsResponse.php b/AdsAdManager/src/V1/ListPlacementsResponse.php index 0d509198484e..33ead5a228c9 100644 --- a/AdsAdManager/src/V1/ListPlacementsResponse.php +++ b/AdsAdManager/src/V1/ListPlacementsResponse.php @@ -33,7 +33,7 @@ class ListPlacementsResponse extends \Google\Protobuf\Internal\Message * Total number of `Placement` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListPlacementsResponse extends \Google\Protobuf\Internal\Message * Total number of `Placement` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `Placement` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `Placement` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListPrivateAuctionDealsRequest.php b/AdsAdManager/src/V1/ListPrivateAuctionDealsRequest.php index 3fd372fc55f3..871cfed21011 100644 --- a/AdsAdManager/src/V1/ListPrivateAuctionDealsRequest.php +++ b/AdsAdManager/src/V1/ListPrivateAuctionDealsRequest.php @@ -27,7 +27,7 @@ class ListPrivateAuctionDealsRequest extends \Google\Protobuf\Internal\Message * Optional. The maximum number of `PrivateAuctionDeals` to return. The * service may return fewer than this value. If unspecified, at most 50 * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -95,7 +95,7 @@ public static function build(string $parent): self * Optional. The maximum number of `PrivateAuctionDeals` to return. The * service may return fewer than this value. If unspecified, at most 50 * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListPrivateAuctionDeals` * call. Provide this to retrieve the subsequent page. @@ -153,7 +153,7 @@ public function setParent($var) * Optional. The maximum number of `PrivateAuctionDeals` to return. The * service may return fewer than this value. If unspecified, at most 50 * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -167,7 +167,7 @@ public function getPageSize() * Optional. The maximum number of `PrivateAuctionDeals` to return. The * service may return fewer than this value. If unspecified, at most 50 * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListPrivateAuctionDealsResponse.php b/AdsAdManager/src/V1/ListPrivateAuctionDealsResponse.php index c23e78413321..1855104b1b70 100644 --- a/AdsAdManager/src/V1/ListPrivateAuctionDealsResponse.php +++ b/AdsAdManager/src/V1/ListPrivateAuctionDealsResponse.php @@ -33,7 +33,7 @@ class ListPrivateAuctionDealsResponse extends \Google\Protobuf\Internal\Message * Total number of `PrivateAuctionDeal` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListPrivateAuctionDealsResponse extends \Google\Protobuf\Internal\Message * Total number of `PrivateAuctionDeal` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `PrivateAuctionDeal` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `PrivateAuctionDeal` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListPrivateAuctionsRequest.php b/AdsAdManager/src/V1/ListPrivateAuctionsRequest.php index 741dc52aecdc..381c9c2be4e2 100644 --- a/AdsAdManager/src/V1/ListPrivateAuctionsRequest.php +++ b/AdsAdManager/src/V1/ListPrivateAuctionsRequest.php @@ -26,7 +26,7 @@ class ListPrivateAuctionsRequest extends \Google\Protobuf\Internal\Message * Optional. The maximum number of `PrivateAuctions` to return. The service * may return fewer than this value. If unspecified, at most 50 * `PrivateAuctions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -92,7 +92,7 @@ public static function build(string $parent): self * Optional. The maximum number of `PrivateAuctions` to return. The service * may return fewer than this value. If unspecified, at most 50 * `PrivateAuctions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListPrivateAuctions` * call. Provide this to retrieve the subsequent page. @@ -148,7 +148,7 @@ public function setParent($var) * Optional. The maximum number of `PrivateAuctions` to return. The service * may return fewer than this value. If unspecified, at most 50 * `PrivateAuctions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -162,7 +162,7 @@ public function getPageSize() * Optional. The maximum number of `PrivateAuctions` to return. The service * may return fewer than this value. If unspecified, at most 50 * `PrivateAuctions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListPrivateAuctionsResponse.php b/AdsAdManager/src/V1/ListPrivateAuctionsResponse.php index ddc09e5e938e..63c0a21fbdf0 100644 --- a/AdsAdManager/src/V1/ListPrivateAuctionsResponse.php +++ b/AdsAdManager/src/V1/ListPrivateAuctionsResponse.php @@ -33,7 +33,7 @@ class ListPrivateAuctionsResponse extends \Google\Protobuf\Internal\Message * Total number of `PrivateAuction` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListPrivateAuctionsResponse extends \Google\Protobuf\Internal\Message * Total number of `PrivateAuction` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `PrivateAuction` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `PrivateAuction` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListProgrammaticBuyersResponse.php b/AdsAdManager/src/V1/ListProgrammaticBuyersResponse.php index aef266e1befc..51c9ce753278 100644 --- a/AdsAdManager/src/V1/ListProgrammaticBuyersResponse.php +++ b/AdsAdManager/src/V1/ListProgrammaticBuyersResponse.php @@ -33,7 +33,7 @@ class ListProgrammaticBuyersResponse extends \Google\Protobuf\Internal\Message * Total number of `ProgrammaticBuyer` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListProgrammaticBuyersResponse extends \Google\Protobuf\Internal\Message * Total number of `ProgrammaticBuyer` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `ProgrammaticBuyer` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `ProgrammaticBuyer` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListReportsRequest.php b/AdsAdManager/src/V1/ListReportsRequest.php index 4f9ef229c9d0..d669dd54c4a4 100644 --- a/AdsAdManager/src/V1/ListReportsRequest.php +++ b/AdsAdManager/src/V1/ListReportsRequest.php @@ -25,8 +25,8 @@ class ListReportsRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of `Reports` to return. The service may return * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -90,8 +90,8 @@ public static function build(string $parent): self * @type int $page_size * Optional. The maximum number of `Reports` to return. The service may return * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * @type string $page_token * Optional. A page token, received from a previous `ListReports` call. * Provide this to retrieve the subsequent page. @@ -145,8 +145,8 @@ public function setParent($var) /** * Optional. The maximum number of `Reports` to return. The service may return * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -159,8 +159,8 @@ public function getPageSize() /** * Optional. The maximum number of `Reports` to return. The service may return * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. + * returned. The maximum value is 1000; values greater than 1000 will be + * coerced to 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListReportsResponse.php b/AdsAdManager/src/V1/ListReportsResponse.php index 7acc7238699f..d657eb5bb2ad 100644 --- a/AdsAdManager/src/V1/ListReportsResponse.php +++ b/AdsAdManager/src/V1/ListReportsResponse.php @@ -33,7 +33,7 @@ class ListReportsResponse extends \Google\Protobuf\Internal\Message * Total number of `Report` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListReportsResponse extends \Google\Protobuf\Internal\Message * Total number of `Report` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `Report` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `Report` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/AdsAdManager/src/V1/ListRolesRequest.php b/AdsAdManager/src/V1/ListRolesRequest.php index ae086b8ea872..2ecdc519297e 100644 --- a/AdsAdManager/src/V1/ListRolesRequest.php +++ b/AdsAdManager/src/V1/ListRolesRequest.php @@ -25,7 +25,8 @@ class ListRolesRequest extends \Google\Protobuf\Internal\Message /** * Optional. The maximum number of `Roles` to return. The service may return * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -89,7 +90,8 @@ public static function build(string $parent): self * @type int $page_size * Optional. The maximum number of `Roles` to return. The service may return * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. * @type string $page_token * Optional. A page token, received from a previous `ListRoles` call. * Provide this to retrieve the subsequent page. @@ -143,7 +145,8 @@ public function setParent($var) /** * Optional. The maximum number of `Roles` to return. The service may return * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -156,7 +159,8 @@ public function getPageSize() /** * Optional. The maximum number of `Roles` to return. The service may return * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/AdsAdManager/src/V1/ListRolesResponse.php b/AdsAdManager/src/V1/ListRolesResponse.php index 6eb4ef45ab2c..f7830a172031 100644 --- a/AdsAdManager/src/V1/ListRolesResponse.php +++ b/AdsAdManager/src/V1/ListRolesResponse.php @@ -32,7 +32,7 @@ class ListRolesResponse extends \Google\Protobuf\Internal\Message * Total number of `Role` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -58,7 +58,7 @@ class ListRolesResponse extends \Google\Protobuf\Internal\Message * Total number of `Role` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -129,7 +129,7 @@ public function setNextPageToken($var) * Total number of `Role` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -148,7 +148,7 @@ public function getTotalSize() * Total number of `Role` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesRequest.php b/AdsAdManager/src/V1/ListSitesRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesRequest.php rename to AdsAdManager/src/V1/ListSitesRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesResponse.php b/AdsAdManager/src/V1/ListSitesResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListSitesResponse.php rename to AdsAdManager/src/V1/ListSitesResponse.php diff --git a/AdsAdManager/src/V1/ListTaxonomyCategoriesResponse.php b/AdsAdManager/src/V1/ListTaxonomyCategoriesResponse.php index 66c311184902..64472ff15193 100644 --- a/AdsAdManager/src/V1/ListTaxonomyCategoriesResponse.php +++ b/AdsAdManager/src/V1/ListTaxonomyCategoriesResponse.php @@ -33,7 +33,7 @@ class ListTaxonomyCategoriesResponse extends \Google\Protobuf\Internal\Message * Total number of `TaxonomyCategory` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -59,7 +59,7 @@ class ListTaxonomyCategoriesResponse extends \Google\Protobuf\Internal\Message * Total number of `TaxonomyCategory` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -130,7 +130,7 @@ public function setNextPageToken($var) * Total number of `TaxonomyCategory` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -149,7 +149,7 @@ public function getTotalSize() * Total number of `TaxonomyCategory` objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsRequest.php b/AdsAdManager/src/V1/ListTeamsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsRequest.php rename to AdsAdManager/src/V1/ListTeamsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsResponse.php b/AdsAdManager/src/V1/ListTeamsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTeamsResponse.php rename to AdsAdManager/src/V1/ListTeamsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileApplicationTargeting.php b/AdsAdManager/src/V1/MobileApplicationTargeting.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileApplicationTargeting.php rename to AdsAdManager/src/V1/MobileApplicationTargeting.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrier.php b/AdsAdManager/src/V1/MobileCarrier.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrier.php rename to AdsAdManager/src/V1/MobileCarrier.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrierTargeting.php b/AdsAdManager/src/V1/MobileCarrierTargeting.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileCarrierTargeting.php rename to AdsAdManager/src/V1/MobileCarrierTargeting.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDevice.php b/AdsAdManager/src/V1/MobileDevice.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDevice.php rename to AdsAdManager/src/V1/MobileDevice.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDeviceSubmodel.php b/AdsAdManager/src/V1/MobileDeviceSubmodel.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/MobileDeviceSubmodel.php rename to AdsAdManager/src/V1/MobileDeviceSubmodel.php diff --git a/AdsAdManager/src/V1/Order.php b/AdsAdManager/src/V1/Order.php index a333ecf28f4d..25dbdd3777f6 100644 --- a/AdsAdManager/src/V1/Order.php +++ b/AdsAdManager/src/V1/Order.php @@ -94,8 +94,7 @@ class Order extends \Google\Protobuf\Internal\Message private $effective_teams; /** * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. This value is assigned by Google. Format: - * "networks/{network_code}/users/{user_id}" + * of the advertiser. Format: "networks/{network_code}/users/{user_id}" * * Generated from protobuf field optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { */ @@ -108,17 +107,17 @@ class Order extends \Google\Protobuf\Internal\Message */ protected $currency_code = null; /** - * Output only. The instant at which the Order and its associated line items - * are eligible to begin serving. This attribute is derived from the line item - * of the order that has the earliest LineItem.start_time. + * Output only. The instant at which the Order and its associated Line items + * are eligible to begin serving. This attribute is derived from the Line item + * of the order that has the earliest `LineItem.start_time`. * * Generated from protobuf field optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $start_time = null; /** - * Output only. The instant at which the Order and its associated line items - * stop being served. This attribute is derived from the line item of the - * order that has the latest LineItem.end_time. + * Output only. The instant at which the Order and its associated Line items + * stop being served. This attribute is derived from the Line item of the + * order that has the latest `LineItem.end_time`. * * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -261,19 +260,18 @@ class Order extends \Google\Protobuf\Internal\Message * inherited values. Format: "networks/{network_code}/teams/{team_id}" * @type string $creator * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. This value is assigned by Google. Format: - * "networks/{network_code}/users/{user_id}" + * of the advertiser. Format: "networks/{network_code}/users/{user_id}" * @type string $currency_code * Output only. The ISO 4217 3-letter currency code for the currency used by * the Order. This value is the network's currency code. * @type \Google\Protobuf\Timestamp $start_time - * Output only. The instant at which the Order and its associated line items - * are eligible to begin serving. This attribute is derived from the line item - * of the order that has the earliest LineItem.start_time. + * Output only. The instant at which the Order and its associated Line items + * are eligible to begin serving. This attribute is derived from the Line item + * of the order that has the earliest `LineItem.start_time`. * @type \Google\Protobuf\Timestamp $end_time - * Output only. The instant at which the Order and its associated line items - * stop being served. This attribute is derived from the line item of the - * order that has the latest LineItem.end_time. + * Output only. The instant at which the Order and its associated Line items + * stop being served. This attribute is derived from the Line item of the + * order that has the latest `LineItem.end_time`. * @type bool $unlimited_end_time * Output only. Indicates whether or not this Order has an end time. * @type int $external_order_id @@ -691,8 +689,7 @@ public function setEffectiveTeams($var) /** * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. This value is assigned by Google. Format: - * "networks/{network_code}/users/{user_id}" + * of the advertiser. Format: "networks/{network_code}/users/{user_id}" * * Generated from protobuf field optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { * @return string @@ -714,8 +711,7 @@ public function clearCreator() /** * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. This value is assigned by Google. Format: - * "networks/{network_code}/users/{user_id}" + * of the advertiser. Format: "networks/{network_code}/users/{user_id}" * * Generated from protobuf field optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { * @param string $var @@ -768,9 +764,9 @@ public function setCurrencyCode($var) } /** - * Output only. The instant at which the Order and its associated line items - * are eligible to begin serving. This attribute is derived from the line item - * of the order that has the earliest LineItem.start_time. + * Output only. The instant at which the Order and its associated Line items + * are eligible to begin serving. This attribute is derived from the Line item + * of the order that has the earliest `LineItem.start_time`. * * Generated from protobuf field optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null @@ -791,9 +787,9 @@ public function clearStartTime() } /** - * Output only. The instant at which the Order and its associated line items - * are eligible to begin serving. This attribute is derived from the line item - * of the order that has the earliest LineItem.start_time. + * Output only. The instant at which the Order and its associated Line items + * are eligible to begin serving. This attribute is derived from the Line item + * of the order that has the earliest `LineItem.start_time`. * * Generated from protobuf field optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var @@ -808,9 +804,9 @@ public function setStartTime($var) } /** - * Output only. The instant at which the Order and its associated line items - * stop being served. This attribute is derived from the line item of the - * order that has the latest LineItem.end_time. + * Output only. The instant at which the Order and its associated Line items + * stop being served. This attribute is derived from the Line item of the + * order that has the latest `LineItem.end_time`. * * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null @@ -831,9 +827,9 @@ public function clearEndTime() } /** - * Output only. The instant at which the Order and its associated line items - * stop being served. This attribute is derived from the line item of the - * order that has the latest LineItem.end_time. + * Output only. The instant at which the Order and its associated Line items + * stop being served. This attribute is derived from the Line item of the + * order that has the latest `LineItem.end_time`. * * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var diff --git a/AdsAdManager/src/V1/Report.php b/AdsAdManager/src/V1/Report.php index e43e74a34472..3e9c1a2c1e8a 100644 --- a/AdsAdManager/src/V1/Report.php +++ b/AdsAdManager/src/V1/Report.php @@ -61,7 +61,7 @@ class Report extends \Google\Protobuf\Internal\Message protected $create_time = null; /** * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can not be modified. + * locale at the time of the request. Locale can't be modified. * * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -97,7 +97,7 @@ class Report extends \Google\Protobuf\Internal\Message * Output only. The instant this report was created. * @type string $locale * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can not be modified. + * locale at the time of the request. Locale can't be modified. * @type \Google\Ads\AdManager\V1\ScheduleOptions $schedule_options * Optional. The schedule options of this report. * } @@ -325,7 +325,7 @@ public function setCreateTime($var) /** * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can not be modified. + * locale at the time of the request. Locale can't be modified. * * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return string @@ -337,7 +337,7 @@ public function getLocale() /** * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can not be modified. + * locale at the time of the request. Locale can't be modified. * * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param string $var diff --git a/AdsAdManager/src/V1/Report/Visibility.php b/AdsAdManager/src/V1/Report/Visibility.php index a93c1bb6b240..e19bb07255e1 100644 --- a/AdsAdManager/src/V1/Report/Visibility.php +++ b/AdsAdManager/src/V1/Report/Visibility.php @@ -14,7 +14,7 @@ class Visibility { /** - * Default value. Reports with hidden visibility will not appear in the Ad + * Default value. Reports with hidden visibility won't appear in the Ad * Manager UI. * * Generated from protobuf enum HIDDEN = 0; diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable.php b/AdsAdManager/src/V1/ReportDataTable.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable.php rename to AdsAdManager/src/V1/ReportDataTable.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/MetricValueGroup.php b/AdsAdManager/src/V1/ReportDataTable/MetricValueGroup.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/MetricValueGroup.php rename to AdsAdManager/src/V1/ReportDataTable/MetricValueGroup.php index 72114fbbe6bf..0014dd904045 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/MetricValueGroup.php +++ b/AdsAdManager/src/V1/ReportDataTable/MetricValueGroup.php @@ -284,6 +284,4 @@ public function setFlagValues($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricValueGroup::class, \Google\Ads\AdManager\V1\ReportDataTable_MetricValueGroup::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/Row.php b/AdsAdManager/src/V1/ReportDataTable/Row.php similarity index 97% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/Row.php rename to AdsAdManager/src/V1/ReportDataTable/Row.php index eb236b0019bb..7c3f17dbff4d 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDataTable/Row.php +++ b/AdsAdManager/src/V1/ReportDataTable/Row.php @@ -131,6 +131,4 @@ public function setMetricValueGroups($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Row::class, \Google\Ads\AdManager\V1\ReportDataTable_Row::class); diff --git a/AdsAdManager/src/V1/ReportDefinition.php b/AdsAdManager/src/V1/ReportDefinition.php index 6593bc03cf36..2a69b0bcadd9 100644 --- a/AdsAdManager/src/V1/ReportDefinition.php +++ b/AdsAdManager/src/V1/ReportDefinition.php @@ -1,6 +1,6 @@ repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $dimensions; /** * Required. The list of metrics to report on. If empty, the report will have * no metrics. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $metrics; /** * Optional. The filters for this report. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $filters; /** * Optional. Where to get the time zone for this report. Defaults to using the * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone - * field in the report definition must also be provided with the desired time - * zone. + * field in the report definition must also set a time zone. * - * Generated from protobuf field .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; */ protected $time_zone_source = 0; /** * Optional. If time_zone_source is PROVIDED, this is the time zone to use for * this report. Leave empty for any other time zone source. Time zone in IANA - * format (e.g. "America/New_York"). + * format. For example, "America/New_York". * * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -62,14 +61,14 @@ class ReportDefinition extends \Google\Protobuf\Internal\Message /** * Required. The primary date range of this report. * - * Generated from protobuf field .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; */ protected $date_range = null; /** * Optional. The comparison date range of this report. If unspecified, the - * report will not have any comparison metrics. + * report won't have any comparison metrics. * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; */ protected $comparison_date_range = null; /** @@ -111,7 +110,7 @@ class ReportDefinition extends \Google\Protobuf\Internal\Message /** * Required. The type of this report. * - * Generated from protobuf field .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; */ protected $report_type = 0; /** @@ -122,20 +121,20 @@ class ReportDefinition extends \Google\Protobuf\Internal\Message * column will also include comparison values for its relative previous * quarter. * - * Generated from protobuf field .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; */ protected $time_period_column = 0; /** * Optional. List of flags for this report. Used to flag rows in a result set * based on a set of defined filters. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; */ private $flags; /** * Optional. Default sorts to apply to this report. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; */ private $sorts; @@ -151,25 +150,24 @@ class ReportDefinition extends \Google\Protobuf\Internal\Message * @type array|\Google\Protobuf\Internal\RepeatedField $metrics * Required. The list of metrics to report on. If empty, the report will have * no metrics. - * @type array<\Google\Ads\AdManager\V1\Report\Filter>|\Google\Protobuf\Internal\RepeatedField $filters + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Filter>|\Google\Protobuf\Internal\RepeatedField $filters * Optional. The filters for this report. * @type int $time_zone_source * Optional. Where to get the time zone for this report. Defaults to using the * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone - * field in the report definition must also be provided with the desired time - * zone. + * field in the report definition must also set a time zone. * @type string $time_zone * Optional. If time_zone_source is PROVIDED, this is the time zone to use for * this report. Leave empty for any other time zone source. Time zone in IANA - * format (e.g. "America/New_York"). + * format. For example, "America/New_York". * @type string $currency_code * Optional. The ISO 4217 currency code for this report. Defaults to publisher * currency code if not specified. - * @type \Google\Ads\AdManager\V1\Report\DateRange $date_range + * @type \Google\Ads\AdManager\V1\ReportDefinition\DateRange $date_range * Required. The primary date range of this report. - * @type \Google\Ads\AdManager\V1\Report\DateRange $comparison_date_range + * @type \Google\Ads\AdManager\V1\ReportDefinition\DateRange $comparison_date_range * Optional. The comparison date range of this report. If unspecified, the - * report will not have any comparison metrics. + * report won't have any comparison metrics. * @type array|array|\Google\Protobuf\Internal\RepeatedField $custom_dimension_key_ids * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* * dimensions. The index of this repeated field corresponds to the index on @@ -199,15 +197,15 @@ class ReportDefinition extends \Google\Protobuf\Internal\Message * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter * column will also include comparison values for its relative previous * quarter. - * @type array<\Google\Ads\AdManager\V1\Report\Flag>|\Google\Protobuf\Internal\RepeatedField $flags + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $flags * Optional. List of flags for this report. Used to flag rows in a result set * based on a set of defined filters. - * @type array<\Google\Ads\AdManager\V1\Report\Sort>|\Google\Protobuf\Internal\RepeatedField $sorts + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Sort>|\Google\Protobuf\Internal\RepeatedField $sorts * Optional. Default sorts to apply to this report. * } */ public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); + \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); parent::__construct($data); } @@ -215,7 +213,7 @@ public function __construct($data = NULL) { * Required. The list of dimensions to report on. If empty, the report will * have no dimensions, and any metrics will be totals. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getDimensions() @@ -227,13 +225,13 @@ public function getDimensions() * Required. The list of dimensions to report on. If empty, the report will * have no dimensions, and any metrics will be totals. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDimensions($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\Report\Dimension::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\ReportDefinition\Dimension::class); $this->dimensions = $arr; return $this; @@ -243,7 +241,7 @@ public function setDimensions($var) * Required. The list of metrics to report on. If empty, the report will have * no metrics. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMetrics() @@ -255,13 +253,13 @@ public function getMetrics() * Required. The list of metrics to report on. If empty, the report will have * no metrics. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMetrics($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\Report\Metric::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\ReportDefinition\Metric::class); $this->metrics = $arr; return $this; @@ -270,7 +268,7 @@ public function setMetrics($var) /** * Optional. The filters for this report. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getFilters() @@ -281,13 +279,13 @@ public function getFilters() /** * Optional. The filters for this report. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\Report\Filter>|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Filter>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFilters($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Filter::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Filter::class); $this->filters = $arr; return $this; @@ -296,10 +294,9 @@ public function setFilters($var) /** * Optional. Where to get the time zone for this report. Defaults to using the * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone - * field in the report definition must also be provided with the desired time - * zone. + * field in the report definition must also set a time zone. * - * Generated from protobuf field .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getTimeZoneSource() @@ -310,16 +307,15 @@ public function getTimeZoneSource() /** * Optional. Where to get the time zone for this report. Defaults to using the * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone - * field in the report definition must also be provided with the desired time - * zone. + * field in the report definition must also set a time zone. * - * Generated from protobuf field .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ public function setTimeZoneSource($var) { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\TimeZoneSource::class); + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\TimeZoneSource::class); $this->time_zone_source = $var; return $this; @@ -328,7 +324,7 @@ public function setTimeZoneSource($var) /** * Optional. If time_zone_source is PROVIDED, this is the time zone to use for * this report. Leave empty for any other time zone source. Time zone in IANA - * format (e.g. "America/New_York"). + * format. For example, "America/New_York". * * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -341,7 +337,7 @@ public function getTimeZone() /** * Optional. If time_zone_source is PROVIDED, this is the time zone to use for * this report. Leave empty for any other time zone source. Time zone in IANA - * format (e.g. "America/New_York"). + * format. For example, "America/New_York". * * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var @@ -386,8 +382,8 @@ public function setCurrencyCode($var) /** * Required. The primary date range of this report. * - * Generated from protobuf field .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Report\DateRange|null + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\ReportDefinition\DateRange|null */ public function getDateRange() { @@ -407,13 +403,13 @@ public function clearDateRange() /** * Required. The primary date range of this report. * - * Generated from protobuf field .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Report\DateRange $var + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ReportDefinition\DateRange $var * @return $this */ public function setDateRange($var) { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\DateRange::class); + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\DateRange::class); $this->date_range = $var; return $this; @@ -421,10 +417,10 @@ public function setDateRange($var) /** * Optional. The comparison date range of this report. If unspecified, the - * report will not have any comparison metrics. + * report won't have any comparison metrics. * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\Report\DateRange|null + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\ReportDefinition\DateRange|null */ public function getComparisonDateRange() { @@ -443,15 +439,15 @@ public function clearComparisonDateRange() /** * Optional. The comparison date range of this report. If unspecified, the - * report will not have any comparison metrics. + * report won't have any comparison metrics. * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\Report\DateRange $var + * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\ReportDefinition\DateRange $var * @return $this */ public function setComparisonDateRange($var) { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\DateRange::class); + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\DateRange::class); $this->comparison_date_range = $var; return $this; @@ -588,7 +584,7 @@ public function setCreativeCustomFieldIds($var) /** * Required. The type of this report. * - * Generated from protobuf field .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * @return int */ public function getReportType() @@ -599,13 +595,13 @@ public function getReportType() /** * Required. The type of this report. * - * Generated from protobuf field .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this */ public function setReportType($var) { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\ReportType::class); + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\ReportType::class); $this->report_type = $var; return $this; @@ -619,7 +615,7 @@ public function setReportType($var) * column will also include comparison values for its relative previous * quarter. * - * Generated from protobuf field .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getTimePeriodColumn() @@ -635,13 +631,13 @@ public function getTimePeriodColumn() * column will also include comparison values for its relative previous * quarter. * - * Generated from protobuf field .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ public function setTimePeriodColumn($var) { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\TimePeriodColumn::class); + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\TimePeriodColumn::class); $this->time_period_column = $var; return $this; @@ -651,7 +647,7 @@ public function setTimePeriodColumn($var) * Optional. List of flags for this report. Used to flag rows in a result set * based on a set of defined filters. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getFlags() @@ -663,13 +659,13 @@ public function getFlags() * Optional. List of flags for this report. Used to flag rows in a result set * based on a set of defined filters. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\Report\Flag>|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFlags($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Flag::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Flag::class); $this->flags = $arr; return $this; @@ -678,7 +674,7 @@ public function setFlags($var) /** * Optional. Default sorts to apply to this report. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSorts() @@ -689,13 +685,13 @@ public function getSorts() /** * Optional. Default sorts to apply to this report. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\Report\Sort>|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Sort>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSorts($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Sort::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Sort::class); $this->sorts = $arr; return $this; diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange.php b/AdsAdManager/src/V1/ReportDefinition/DateRange.php similarity index 94% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange.php rename to AdsAdManager/src/V1/ReportDefinition/DateRange.php index 61b9a84b1375..8e808b367fa3 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange.php +++ b/AdsAdManager/src/V1/ReportDefinition/DateRange.php @@ -106,6 +106,4 @@ public function getDateRangeType() } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DateRange::class, \Google\Ads\AdManager\V1\ReportDefinition_DateRange::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/FixedDateRange.php b/AdsAdManager/src/V1/ReportDefinition/DateRange/FixedDateRange.php similarity index 94% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/FixedDateRange.php rename to AdsAdManager/src/V1/ReportDefinition/DateRange/FixedDateRange.php index 877afeb91686..da9ea2fc1443 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/FixedDateRange.php +++ b/AdsAdManager/src/V1/ReportDefinition/DateRange/FixedDateRange.php @@ -119,6 +119,4 @@ public function setEndDate($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FixedDateRange::class, \Google\Ads\AdManager\V1\ReportDefinition_DateRange_FixedDateRange::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/RelativeDateRange.php b/AdsAdManager/src/V1/ReportDefinition/DateRange/RelativeDateRange.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/RelativeDateRange.php rename to AdsAdManager/src/V1/ReportDefinition/DateRange/RelativeDateRange.php index c96bba1e34b6..e31302d27699 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/DateRange/RelativeDateRange.php +++ b/AdsAdManager/src/V1/ReportDefinition/DateRange/RelativeDateRange.php @@ -335,6 +335,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RelativeDateRange::class, \Google\Ads\AdManager\V1\ReportDefinition_DateRange_RelativeDateRange::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Dimension.php b/AdsAdManager/src/V1/ReportDefinition/Dimension.php similarity index 99% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Dimension.php rename to AdsAdManager/src/V1/ReportDefinition/Dimension.php index d27508310b4e..99005f0eef46 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Dimension.php +++ b/AdsAdManager/src/V1/ReportDefinition/Dimension.php @@ -6822,6 +6822,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Dimension::class, \Google\Ads\AdManager\V1\ReportDefinition_Dimension::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Field.php b/AdsAdManager/src/V1/ReportDefinition/Field.php similarity index 94% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Field.php rename to AdsAdManager/src/V1/ReportDefinition/Field.php index 7b7d2b42fb73..eed45a84ef22 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Field.php +++ b/AdsAdManager/src/V1/ReportDefinition/Field.php @@ -106,6 +106,4 @@ public function getField() } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Field::class, \Google\Ads\AdManager\V1\ReportDefinition_Field::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter.php b/AdsAdManager/src/V1/ReportDefinition/Filter.php similarity index 96% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter.php rename to AdsAdManager/src/V1/ReportDefinition/Filter.php index 3d916edb292e..91351b9116eb 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter.php +++ b/AdsAdManager/src/V1/ReportDefinition/Filter.php @@ -172,6 +172,4 @@ public function getType() } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Filter::class, \Google\Ads\AdManager\V1\ReportDefinition_Filter::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FieldFilter.php b/AdsAdManager/src/V1/ReportDefinition/Filter/FieldFilter.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FieldFilter.php rename to AdsAdManager/src/V1/ReportDefinition/Filter/FieldFilter.php index 33ce447c6f9c..a0fe0ba70072 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FieldFilter.php +++ b/AdsAdManager/src/V1/ReportDefinition/Filter/FieldFilter.php @@ -283,6 +283,4 @@ public function setMetricValueType($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FieldFilter::class, \Google\Ads\AdManager\V1\ReportDefinition_Filter_FieldFilter::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FilterList.php b/AdsAdManager/src/V1/ReportDefinition/Filter/FilterList.php similarity index 92% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FilterList.php rename to AdsAdManager/src/V1/ReportDefinition/Filter/FilterList.php index 02c40baa3029..442fad071718 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/FilterList.php +++ b/AdsAdManager/src/V1/ReportDefinition/Filter/FilterList.php @@ -65,6 +65,4 @@ public function setFilters($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FilterList::class, \Google\Ads\AdManager\V1\ReportDefinition_Filter_FilterList::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/Operation.php b/AdsAdManager/src/V1/ReportDefinition/Filter/Operation.php similarity index 95% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/Operation.php rename to AdsAdManager/src/V1/ReportDefinition/Filter/Operation.php index 3ab157f516b7..ab5012819d03 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Filter/Operation.php +++ b/AdsAdManager/src/V1/ReportDefinition/Filter/Operation.php @@ -130,6 +130,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Ads\AdManager\V1\ReportDefinition_Filter_Operation::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Flag.php b/AdsAdManager/src/V1/ReportDefinition/Flag.php similarity index 96% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Flag.php rename to AdsAdManager/src/V1/ReportDefinition/Flag.php index 76b3e63c4afb..2e7460ca20c7 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Flag.php +++ b/AdsAdManager/src/V1/ReportDefinition/Flag.php @@ -115,6 +115,4 @@ public function setName($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Flag::class, \Google\Ads\AdManager\V1\ReportDefinition_Flag::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Metric.php b/AdsAdManager/src/V1/ReportDefinition/Metric.php similarity index 99% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Metric.php rename to AdsAdManager/src/V1/ReportDefinition/Metric.php index f77a70182ce4..4984b0649702 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Metric.php +++ b/AdsAdManager/src/V1/ReportDefinition/Metric.php @@ -5071,6 +5071,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Metric::class, \Google\Ads\AdManager\V1\ReportDefinition_Metric::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/MetricValueType.php b/AdsAdManager/src/V1/ReportDefinition/MetricValueType.php similarity index 93% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/MetricValueType.php rename to AdsAdManager/src/V1/ReportDefinition/MetricValueType.php index 9df47040facc..1215ab0c5ffb 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/MetricValueType.php +++ b/AdsAdManager/src/V1/ReportDefinition/MetricValueType.php @@ -80,6 +80,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricValueType::class, \Google\Ads\AdManager\V1\ReportDefinition_MetricValueType::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/ReportType.php b/AdsAdManager/src/V1/ReportDefinition/ReportType.php similarity index 91% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/ReportType.php rename to AdsAdManager/src/V1/ReportDefinition/ReportType.php index 6618f6d8e33d..97773a2c1c8c 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/ReportType.php +++ b/AdsAdManager/src/V1/ReportDefinition/ReportType.php @@ -73,6 +73,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReportType::class, \Google\Ads\AdManager\V1\ReportDefinition_ReportType::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Slice.php b/AdsAdManager/src/V1/ReportDefinition/Slice.php similarity index 95% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Slice.php rename to AdsAdManager/src/V1/ReportDefinition/Slice.php index a54f52fcf7c0..1a4d1861d10a 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Slice.php +++ b/AdsAdManager/src/V1/ReportDefinition/Slice.php @@ -111,6 +111,4 @@ public function setValue($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Slice::class, \Google\Ads\AdManager\V1\ReportDefinition_Slice::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Sort.php b/AdsAdManager/src/V1/ReportDefinition/Sort.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Sort.php rename to AdsAdManager/src/V1/ReportDefinition/Sort.php index c06fb305ab0c..1aa0177b30be 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/Sort.php +++ b/AdsAdManager/src/V1/ReportDefinition/Sort.php @@ -249,6 +249,4 @@ public function setMetricValueType($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Sort::class, \Google\Ads\AdManager\V1\ReportDefinition_Sort::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimePeriodColumn.php b/AdsAdManager/src/V1/ReportDefinition/TimePeriodColumn.php similarity index 92% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimePeriodColumn.php rename to AdsAdManager/src/V1/ReportDefinition/TimePeriodColumn.php index f3e41dcd7759..3f37faf336bd 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimePeriodColumn.php +++ b/AdsAdManager/src/V1/ReportDefinition/TimePeriodColumn.php @@ -73,6 +73,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TimePeriodColumn::class, \Google\Ads\AdManager\V1\ReportDefinition_TimePeriodColumn::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimeZoneSource.php b/AdsAdManager/src/V1/ReportDefinition/TimeZoneSource.php similarity index 92% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimeZoneSource.php rename to AdsAdManager/src/V1/ReportDefinition/TimeZoneSource.php index 76ace4fe37fd..413489812510 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition/TimeZoneSource.php +++ b/AdsAdManager/src/V1/ReportDefinition/TimeZoneSource.php @@ -78,6 +78,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TimeZoneSource::class, \Google\Ads\AdManager\V1\ReportDefinition_TimeZoneSource::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue.php b/AdsAdManager/src/V1/ReportValue.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue.php rename to AdsAdManager/src/V1/ReportValue.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/DoubleList.php b/AdsAdManager/src/V1/ReportValue/DoubleList.php similarity index 90% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/DoubleList.php rename to AdsAdManager/src/V1/ReportValue/DoubleList.php index 99e43d4128a8..e4ae70d03f0d 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/DoubleList.php +++ b/AdsAdManager/src/V1/ReportValue/DoubleList.php @@ -65,6 +65,4 @@ public function setValues($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DoubleList::class, \Google\Ads\AdManager\V1\ReportValue_DoubleList::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/IntList.php b/AdsAdManager/src/V1/ReportValue/IntList.php similarity index 91% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/IntList.php rename to AdsAdManager/src/V1/ReportValue/IntList.php index f64fa62cb2c9..b11fc301bb8e 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/IntList.php +++ b/AdsAdManager/src/V1/ReportValue/IntList.php @@ -65,6 +65,4 @@ public function setValues($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IntList::class, \Google\Ads\AdManager\V1\ReportValue_IntList::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/StringList.php b/AdsAdManager/src/V1/ReportValue/StringList.php similarity index 90% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/StringList.php rename to AdsAdManager/src/V1/ReportValue/StringList.php index 40e2f754bf96..6f60b915ec87 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportValue/StringList.php +++ b/AdsAdManager/src/V1/ReportValue/StringList.php @@ -65,6 +65,4 @@ public function setValues($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringList::class, \Google\Ads\AdManager\V1\ReportValue_StringList::class); diff --git a/AdsAdManager/src/V1/ScheduleOptions.php b/AdsAdManager/src/V1/ScheduleOptions.php index 4d6bff921cb8..b982fc993b4c 100644 --- a/AdsAdManager/src/V1/ScheduleOptions.php +++ b/AdsAdManager/src/V1/ScheduleOptions.php @@ -18,7 +18,7 @@ class ScheduleOptions extends \Google\Protobuf\Internal\Message /** * Information pertaining to schedule itself. * - * Generated from protobuf field .google.ads.admanager.v1.Schedule schedule = 1; + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; */ protected $schedule = null; /** @@ -31,7 +31,7 @@ class ScheduleOptions extends \Google\Protobuf\Internal\Message * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT * is specified. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $flags; @@ -41,11 +41,11 @@ class ScheduleOptions extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Ads\AdManager\V1\Schedule $schedule + * @type \Google\Ads\AdManager\V1\ScheduleOptions\Schedule $schedule * Information pertaining to schedule itself. * @type int $delivery_condition * Option for when to deliver the scheduled report. - * @type array<\Google\Ads\AdManager\V1\Report\Flag>|\Google\Protobuf\Internal\RepeatedField $flags + * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $flags * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT * is specified. * } @@ -58,8 +58,8 @@ public function __construct($data = NULL) { /** * Information pertaining to schedule itself. * - * Generated from protobuf field .google.ads.admanager.v1.Schedule schedule = 1; - * @return \Google\Ads\AdManager\V1\Schedule|null + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; + * @return \Google\Ads\AdManager\V1\ScheduleOptions\Schedule|null */ public function getSchedule() { @@ -79,13 +79,13 @@ public function clearSchedule() /** * Information pertaining to schedule itself. * - * Generated from protobuf field .google.ads.admanager.v1.Schedule schedule = 1; - * @param \Google\Ads\AdManager\V1\Schedule $var + * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; + * @param \Google\Ads\AdManager\V1\ScheduleOptions\Schedule $var * @return $this */ public function setSchedule($var) { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Schedule::class); + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ScheduleOptions\Schedule::class); $this->schedule = $var; return $this; @@ -121,7 +121,7 @@ public function setDeliveryCondition($var) * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT * is specified. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getFlags() @@ -133,13 +133,13 @@ public function getFlags() * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT * is specified. * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\Report\Flag>|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFlags($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Flag::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Flag::class); $this->flags = $arr; return $this; diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule.php b/AdsAdManager/src/V1/ScheduleOptions/Schedule.php similarity index 98% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule.php rename to AdsAdManager/src/V1/ScheduleOptions/Schedule.php index e90d79527b74..04ee4fad4426 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule.php +++ b/AdsAdManager/src/V1/ScheduleOptions/Schedule.php @@ -304,6 +304,4 @@ public function getFrequencySchedule() } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Schedule::class, \Google\Ads\AdManager\V1\ScheduleOptions_Schedule::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/Frequency.php b/AdsAdManager/src/V1/ScheduleOptions/Schedule/Frequency.php similarity index 93% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/Frequency.php rename to AdsAdManager/src/V1/ScheduleOptions/Schedule/Frequency.php index b73a35573eb5..f0186048b8d2 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/Frequency.php +++ b/AdsAdManager/src/V1/ScheduleOptions/Schedule/Frequency.php @@ -94,6 +94,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Frequency::class, \Google\Ads\AdManager\V1\ScheduleOptions_Schedule_Frequency::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/MonthlySchedule.php b/AdsAdManager/src/V1/ScheduleOptions/Schedule/MonthlySchedule.php similarity index 92% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/MonthlySchedule.php rename to AdsAdManager/src/V1/ScheduleOptions/Schedule/MonthlySchedule.php index e563148fba39..1bc67a53e885 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/MonthlySchedule.php +++ b/AdsAdManager/src/V1/ScheduleOptions/Schedule/MonthlySchedule.php @@ -69,6 +69,4 @@ public function setMonthlyScheduledDays($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MonthlySchedule::class, \Google\Ads\AdManager\V1\ScheduleOptions_Schedule_MonthlySchedule::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/WeeklySchedule.php b/AdsAdManager/src/V1/ScheduleOptions/Schedule/WeeklySchedule.php similarity index 91% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/WeeklySchedule.php rename to AdsAdManager/src/V1/ScheduleOptions/Schedule/WeeklySchedule.php index e46c2b34eee3..a5f4b739bd41 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/Schedule/WeeklySchedule.php +++ b/AdsAdManager/src/V1/ScheduleOptions/Schedule/WeeklySchedule.php @@ -65,6 +65,4 @@ public function setWeeklyScheduledDays($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WeeklySchedule::class, \Google\Ads\AdManager\V1\ScheduleOptions_Schedule_WeeklySchedule::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsRequest.php b/AdsAdManager/src/V1/SearchAdReviewCenterAdsRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsRequest.php rename to AdsAdManager/src/V1/SearchAdReviewCenterAdsRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsResponse.php b/AdsAdManager/src/V1/SearchAdReviewCenterAdsResponse.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SearchAdReviewCenterAdsResponse.php rename to AdsAdManager/src/V1/SearchAdReviewCenterAdsResponse.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Site.php b/AdsAdManager/src/V1/Site.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Site.php rename to AdsAdManager/src/V1/Site.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum.php b/AdsAdManager/src/V1/SiteApprovalStatusEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum.php rename to AdsAdManager/src/V1/SiteApprovalStatusEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php b/AdsAdManager/src/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php similarity index 92% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php rename to AdsAdManager/src/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php index 83c72f140a8d..be5b97906f5f 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php +++ b/AdsAdManager/src/V1/SiteApprovalStatusEnum/SiteApprovalStatus.php @@ -83,6 +83,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SiteApprovalStatus::class, \Google\Ads\AdManager\V1\SiteApprovalStatusEnum_SiteApprovalStatus::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum.php b/AdsAdManager/src/V1/SiteDisapprovalReasonEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum.php rename to AdsAdManager/src/V1/SiteDisapprovalReasonEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php b/AdsAdManager/src/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php similarity index 90% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php rename to AdsAdManager/src/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php index 6312a4662195..bdf2526e55e1 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php +++ b/AdsAdManager/src/V1/SiteDisapprovalReasonEnum/SiteDisapprovalReason.php @@ -66,6 +66,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SiteDisapprovalReason::class, \Google\Ads\AdManager\V1\SiteDisapprovalReasonEnum_SiteDisapprovalReason::class); diff --git a/AdsAdManager/src/V1/Targeting.php b/AdsAdManager/src/V1/Targeting.php index 481f4e84b32e..a748cbe66f7a 100644 --- a/AdsAdManager/src/V1/Targeting.php +++ b/AdsAdManager/src/V1/Targeting.php @@ -64,6 +64,18 @@ class Targeting extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; */ protected $data_segment_targeting = null; + /** + * Optional. Used to target content. + * + * Generated from protobuf field .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $content_targeting = null; + /** + * Optional. Used to target mobile applications. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $mobile_application_targeting = null; /** * Constructor. @@ -88,6 +100,10 @@ class Targeting extends \Google\Protobuf\Internal\Message * Optional. Used to target video positions. * @type \Google\Ads\AdManager\V1\DataSegmentTargeting $data_segment_targeting * Optional. Used to target data segments. + * @type \Google\Ads\AdManager\V1\ContentTargeting $content_targeting + * Optional. Used to target content. + * @type \Google\Ads\AdManager\V1\MobileApplicationTargeting $mobile_application_targeting + * Optional. Used to target mobile applications. * } */ public function __construct($data = NULL) { @@ -385,5 +401,77 @@ public function setDataSegmentTargeting($var) return $this; } + /** + * Optional. Used to target content. + * + * Generated from protobuf field .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\ContentTargeting|null + */ + public function getContentTargeting() + { + return $this->content_targeting; + } + + public function hasContentTargeting() + { + return isset($this->content_targeting); + } + + public function clearContentTargeting() + { + unset($this->content_targeting); + } + + /** + * Optional. Used to target content. + * + * Generated from protobuf field .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\ContentTargeting $var + * @return $this + */ + public function setContentTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ContentTargeting::class); + $this->content_targeting = $var; + + return $this; + } + + /** + * Optional. Used to target mobile applications. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\MobileApplicationTargeting|null + */ + public function getMobileApplicationTargeting() + { + return $this->mobile_application_targeting; + } + + public function hasMobileApplicationTargeting() + { + return isset($this->mobile_application_targeting); + } + + public function clearMobileApplicationTargeting() + { + unset($this->mobile_application_targeting); + } + + /** + * Optional. Used to target mobile applications. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\MobileApplicationTargeting $var + * @return $this + */ + public function setMobileApplicationTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\MobileApplicationTargeting::class); + $this->mobile_application_targeting = $var; + + return $this; + } + } diff --git a/AdsAdManager/src/V1/TaxonomyTypeEnum/TaxonomyType.php b/AdsAdManager/src/V1/TaxonomyTypeEnum/TaxonomyType.php index e3dcd4043d54..749da57a6494 100644 --- a/AdsAdManager/src/V1/TaxonomyTypeEnum/TaxonomyType.php +++ b/AdsAdManager/src/V1/TaxonomyTypeEnum/TaxonomyType.php @@ -26,6 +26,12 @@ class TaxonomyType * Generated from protobuf enum TAXONOMY_IAB_AUDIENCE_1_1 = 3; */ const TAXONOMY_IAB_AUDIENCE_1_1 = 3; + /** + * The IAB Content Taxonomy v1.0. + * + * Generated from protobuf enum TAXONOMY_IAB_CONTENT_1_0 = 8; + */ + const TAXONOMY_IAB_CONTENT_1_0 = 8; /** * The IAB Content Taxonomy v2.1. * @@ -54,6 +60,7 @@ class TaxonomyType private static $valueToName = [ self::TAXONOMY_TYPE_UNSPECIFIED => 'TAXONOMY_TYPE_UNSPECIFIED', self::TAXONOMY_IAB_AUDIENCE_1_1 => 'TAXONOMY_IAB_AUDIENCE_1_1', + self::TAXONOMY_IAB_CONTENT_1_0 => 'TAXONOMY_IAB_CONTENT_1_0', self::TAXONOMY_IAB_CONTENT_2_1 => 'TAXONOMY_IAB_CONTENT_2_1', self::TAXONOMY_IAB_CONTENT_2_2 => 'TAXONOMY_IAB_CONTENT_2_2', self::TAXONOMY_IAB_CONTENT_3_0 => 'TAXONOMY_IAB_CONTENT_3_0', diff --git a/AdsAdManager/src/V1/Team.php b/AdsAdManager/src/V1/Team.php index 8284923b078e..a40883cd942e 100644 --- a/AdsAdManager/src/V1/Team.php +++ b/AdsAdManager/src/V1/Team.php @@ -22,6 +22,49 @@ class Team extends \Google\Protobuf\Internal\Message * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; */ protected $name = ''; + /** + * Required. The name of the Team. This value has a maximum length of 127 + * characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. The description of the Team. This value has a maximum length of + * 255 characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = null; + /** + * Output only. The status of the Team. This value determines the visibility + * of the team in the UI. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Optional. Whether or not users on this team have access to all companies. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with a Company. + * + * Generated from protobuf field optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $all_companies_access = null; + /** + * Optional. Whether or not users on this team have access to all inventory. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with an AdUnit. + * + * Generated from protobuf field optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $all_inventory_access = null; + /** + * Optional. The default access to orders for users on this team. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $access_type = null; /** * Constructor. @@ -32,6 +75,25 @@ class Team extends \Google\Protobuf\Internal\Message * @type string $name * Identifier. The resource name of the `Team`. * Format: `networks/{network_code}/teams/{team_id}` + * @type string $display_name + * Required. The name of the Team. This value has a maximum length of 127 + * characters. + * @type string $description + * Optional. The description of the Team. This value has a maximum length of + * 255 characters. + * @type int $status + * Output only. The status of the Team. This value determines the visibility + * of the team in the UI. + * @type bool $all_companies_access + * Optional. Whether or not users on this team have access to all companies. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with a Company. + * @type bool $all_inventory_access + * Optional. Whether or not users on this team have access to all inventory. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with an AdUnit. + * @type int $access_type + * Optional. The default access to orders for users on this team. * } */ public function __construct($data = NULL) { @@ -67,5 +129,235 @@ public function setName($var) return $this; } + /** + * Required. The name of the Team. This value has a maximum length of 127 + * characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The name of the Team. This value has a maximum length of 127 + * characters. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The description of the Team. This value has a maximum length of + * 255 characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Optional. The description of the Team. This value has a maximum length of + * 255 characters. + * + * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. The status of the Team. This value determines the visibility + * of the team in the UI. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the Team. This value determines the visibility + * of the team in the UI. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TeamStatusEnum\TeamStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. Whether or not users on this team have access to all companies. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with a Company. + * + * Generated from protobuf field optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllCompaniesAccess() + { + return isset($this->all_companies_access) ? $this->all_companies_access : false; + } + + public function hasAllCompaniesAccess() + { + return isset($this->all_companies_access); + } + + public function clearAllCompaniesAccess() + { + unset($this->all_companies_access); + } + + /** + * Optional. Whether or not users on this team have access to all companies. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with a Company. + * + * Generated from protobuf field optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllCompaniesAccess($var) + { + GPBUtil::checkBool($var); + $this->all_companies_access = $var; + + return $this; + } + + /** + * Optional. Whether or not users on this team have access to all inventory. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with an AdUnit. + * + * Generated from protobuf field optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllInventoryAccess() + { + return isset($this->all_inventory_access) ? $this->all_inventory_access : false; + } + + public function hasAllInventoryAccess() + { + return isset($this->all_inventory_access); + } + + public function clearAllInventoryAccess() + { + unset($this->all_inventory_access); + } + + /** + * Optional. Whether or not users on this team have access to all inventory. + * If this value is true, then an error will be thrown if an attempt is made + * to associate this team with an AdUnit. + * + * Generated from protobuf field optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllInventoryAccess($var) + { + GPBUtil::checkBool($var); + $this->all_inventory_access = $var; + + return $this; + } + + /** + * Optional. The default access to orders for users on this team. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getAccessType() + { + return isset($this->access_type) ? $this->access_type : 0; + } + + public function hasAccessType() + { + return isset($this->access_type); + } + + public function clearAccessType() + { + unset($this->access_type); + } + + /** + * Optional. The default access to orders for users on this team. + * + * Generated from protobuf field optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setAccessType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TeamAccessTypeEnum\TeamAccessType::class); + $this->access_type = $var; + + return $this; + } + } diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum.php b/AdsAdManager/src/V1/TeamAccessTypeEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum.php rename to AdsAdManager/src/V1/TeamAccessTypeEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum/TeamAccessType.php b/AdsAdManager/src/V1/TeamAccessTypeEnum/TeamAccessType.php similarity index 91% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum/TeamAccessType.php rename to AdsAdManager/src/V1/TeamAccessTypeEnum/TeamAccessType.php index 2a6d8a32c9c1..56b283aad163 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamAccessTypeEnum/TeamAccessType.php +++ b/AdsAdManager/src/V1/TeamAccessTypeEnum/TeamAccessType.php @@ -68,6 +68,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TeamAccessType::class, \Google\Ads\AdManager\V1\TeamAccessTypeEnum_TeamAccessType::class); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum.php b/AdsAdManager/src/V1/TeamStatusEnum.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum.php rename to AdsAdManager/src/V1/TeamStatusEnum.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum/TeamStatus.php b/AdsAdManager/src/V1/TeamStatusEnum/TeamStatus.php similarity index 90% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum/TeamStatus.php rename to AdsAdManager/src/V1/TeamStatusEnum/TeamStatus.php index 51cee4613d62..d1523dd4b412 100644 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TeamStatusEnum/TeamStatus.php +++ b/AdsAdManager/src/V1/TeamStatusEnum/TeamStatus.php @@ -59,6 +59,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TeamStatus::class, \Google\Ads\AdManager\V1\TeamStatusEnum_TeamStatus::class); diff --git a/AdsAdManager/src/V1/TechnologyTargeting.php b/AdsAdManager/src/V1/TechnologyTargeting.php index afc31e96ba93..fdb77af49595 100644 --- a/AdsAdManager/src/V1/TechnologyTargeting.php +++ b/AdsAdManager/src/V1/TechnologyTargeting.php @@ -22,12 +22,42 @@ class TechnologyTargeting extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; */ protected $bandwidth_targeting = null; + /** + * Optional. Browser targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $browser_targeting = null; + /** + * Optional. Browser language targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $browser_language_targeting = null; + /** + * Optional. Device capability targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $device_capability_targeting = null; /** * Optional. Device category targeting dimension. * * Generated from protobuf field .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; */ protected $device_category_targeting = null; + /** + * Optional. Device manufacturer targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $device_manufacturer_targeting = null; + /** + * Optional. Mobile carrier targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $mobile_carrier_targeting = null; /** * Optional. Operating system targeting dimension. * @@ -43,8 +73,18 @@ class TechnologyTargeting extends \Google\Protobuf\Internal\Message * * @type \Google\Ads\AdManager\V1\BandwidthTargeting $bandwidth_targeting * Optional. Bandwidth targeting dimension. + * @type \Google\Ads\AdManager\V1\BrowserTargeting $browser_targeting + * Optional. Browser targeting dimension. + * @type \Google\Ads\AdManager\V1\BrowserLanguageTargeting $browser_language_targeting + * Optional. Browser language targeting dimension. + * @type \Google\Ads\AdManager\V1\DeviceCapabilityTargeting $device_capability_targeting + * Optional. Device capability targeting dimension. * @type \Google\Ads\AdManager\V1\DeviceCategoryTargeting $device_category_targeting * Optional. Device category targeting dimension. + * @type \Google\Ads\AdManager\V1\DeviceManufacturerTargeting $device_manufacturer_targeting + * Optional. Device manufacturer targeting dimension. + * @type \Google\Ads\AdManager\V1\MobileCarrierTargeting $mobile_carrier_targeting + * Optional. Mobile carrier targeting dimension. * @type \Google\Ads\AdManager\V1\OperatingSystemTargeting $operating_system_targeting * Optional. Operating system targeting dimension. * } @@ -90,6 +130,114 @@ public function setBandwidthTargeting($var) return $this; } + /** + * Optional. Browser targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\BrowserTargeting|null + */ + public function getBrowserTargeting() + { + return $this->browser_targeting; + } + + public function hasBrowserTargeting() + { + return isset($this->browser_targeting); + } + + public function clearBrowserTargeting() + { + unset($this->browser_targeting); + } + + /** + * Optional. Browser targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\BrowserTargeting $var + * @return $this + */ + public function setBrowserTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\BrowserTargeting::class); + $this->browser_targeting = $var; + + return $this; + } + + /** + * Optional. Browser language targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\BrowserLanguageTargeting|null + */ + public function getBrowserLanguageTargeting() + { + return $this->browser_language_targeting; + } + + public function hasBrowserLanguageTargeting() + { + return isset($this->browser_language_targeting); + } + + public function clearBrowserLanguageTargeting() + { + unset($this->browser_language_targeting); + } + + /** + * Optional. Browser language targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\BrowserLanguageTargeting $var + * @return $this + */ + public function setBrowserLanguageTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\BrowserLanguageTargeting::class); + $this->browser_language_targeting = $var; + + return $this; + } + + /** + * Optional. Device capability targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\DeviceCapabilityTargeting|null + */ + public function getDeviceCapabilityTargeting() + { + return $this->device_capability_targeting; + } + + public function hasDeviceCapabilityTargeting() + { + return isset($this->device_capability_targeting); + } + + public function clearDeviceCapabilityTargeting() + { + unset($this->device_capability_targeting); + } + + /** + * Optional. Device capability targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\DeviceCapabilityTargeting $var + * @return $this + */ + public function setDeviceCapabilityTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DeviceCapabilityTargeting::class); + $this->device_capability_targeting = $var; + + return $this; + } + /** * Optional. Device category targeting dimension. * @@ -126,6 +274,78 @@ public function setDeviceCategoryTargeting($var) return $this; } + /** + * Optional. Device manufacturer targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\DeviceManufacturerTargeting|null + */ + public function getDeviceManufacturerTargeting() + { + return $this->device_manufacturer_targeting; + } + + public function hasDeviceManufacturerTargeting() + { + return isset($this->device_manufacturer_targeting); + } + + public function clearDeviceManufacturerTargeting() + { + unset($this->device_manufacturer_targeting); + } + + /** + * Optional. Device manufacturer targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\DeviceManufacturerTargeting $var + * @return $this + */ + public function setDeviceManufacturerTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DeviceManufacturerTargeting::class); + $this->device_manufacturer_targeting = $var; + + return $this; + } + + /** + * Optional. Mobile carrier targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\MobileCarrierTargeting|null + */ + public function getMobileCarrierTargeting() + { + return $this->mobile_carrier_targeting; + } + + public function hasMobileCarrierTargeting() + { + return isset($this->mobile_carrier_targeting); + } + + public function clearMobileCarrierTargeting() + { + unset($this->mobile_carrier_targeting); + } + + /** + * Optional. Mobile carrier targeting dimension. + * + * Generated from protobuf field .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\MobileCarrierTargeting $var + * @return $this + */ + public function setMobileCarrierTargeting($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\MobileCarrierTargeting::class); + $this->mobile_carrier_targeting = $var; + + return $this; + } + /** * Optional. Operating system targeting dimension. * diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateContactRequest.php b/AdsAdManager/src/V1/UpdateContactRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateContactRequest.php rename to AdsAdManager/src/V1/UpdateContactRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateCustomFieldRequest.php b/AdsAdManager/src/V1/UpdateCustomFieldRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateCustomFieldRequest.php rename to AdsAdManager/src/V1/UpdateCustomFieldRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePlacementRequest.php b/AdsAdManager/src/V1/UpdatePlacementRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePlacementRequest.php rename to AdsAdManager/src/V1/UpdatePlacementRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateSiteRequest.php b/AdsAdManager/src/V1/UpdateSiteRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateSiteRequest.php rename to AdsAdManager/src/V1/UpdateSiteRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateTeamRequest.php b/AdsAdManager/src/V1/UpdateTeamRequest.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateTeamRequest.php rename to AdsAdManager/src/V1/UpdateTeamRequest.php diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/WebProperty.php b/AdsAdManager/src/V1/WebProperty.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/WebProperty.php rename to AdsAdManager/src/V1/WebProperty.php diff --git a/AdsAdManager/src/V1/gapic_metadata.json b/AdsAdManager/src/V1/gapic_metadata.json index 77e50abbdb6a..d1e0f2196cde 100644 --- a/AdsAdManager/src/V1/gapic_metadata.json +++ b/AdsAdManager/src/V1/gapic_metadata.json @@ -39,6 +39,30 @@ } } }, + "AdReviewCenterAdService": { + "clients": { + "grpc": { + "libraryClient": "AdReviewCenterAdServiceGapicClient", + "rpcs": { + "BatchAllowAdReviewCenterAds": { + "methods": [ + "batchAllowAdReviewCenterAds" + ] + }, + "BatchBlockAdReviewCenterAds": { + "methods": [ + "batchBlockAdReviewCenterAds" + ] + }, + "SearchAdReviewCenterAds": { + "methods": [ + "searchAdReviewCenterAds" + ] + } + } + } + } + }, "AdUnitService": { "clients": { "grpc": { @@ -63,6 +87,44 @@ } } }, + "ApplicationService": { + "clients": { + "grpc": { + "libraryClient": "ApplicationServiceGapicClient", + "rpcs": { + "GetApplication": { + "methods": [ + "getApplication" + ] + }, + "ListApplications": { + "methods": [ + "listApplications" + ] + } + } + } + } + }, + "AudienceSegmentService": { + "clients": { + "grpc": { + "libraryClient": "AudienceSegmentServiceGapicClient", + "rpcs": { + "GetAudienceSegment": { + "methods": [ + "getAudienceSegment" + ] + }, + "ListAudienceSegments": { + "methods": [ + "listAudienceSegments" + ] + } + } + } + } + }, "BandwidthGroupService": { "clients": { "grpc": { @@ -82,6 +144,82 @@ } } }, + "BrowserLanguageService": { + "clients": { + "grpc": { + "libraryClient": "BrowserLanguageServiceGapicClient", + "rpcs": { + "GetBrowserLanguage": { + "methods": [ + "getBrowserLanguage" + ] + }, + "ListBrowserLanguages": { + "methods": [ + "listBrowserLanguages" + ] + } + } + } + } + }, + "BrowserService": { + "clients": { + "grpc": { + "libraryClient": "BrowserServiceGapicClient", + "rpcs": { + "GetBrowser": { + "methods": [ + "getBrowser" + ] + }, + "ListBrowsers": { + "methods": [ + "listBrowsers" + ] + } + } + } + } + }, + "CmsMetadataKeyService": { + "clients": { + "grpc": { + "libraryClient": "CmsMetadataKeyServiceGapicClient", + "rpcs": { + "GetCmsMetadataKey": { + "methods": [ + "getCmsMetadataKey" + ] + }, + "ListCmsMetadataKeys": { + "methods": [ + "listCmsMetadataKeys" + ] + } + } + } + } + }, + "CmsMetadataValueService": { + "clients": { + "grpc": { + "libraryClient": "CmsMetadataValueServiceGapicClient", + "rpcs": { + "GetCmsMetadataValue": { + "methods": [ + "getCmsMetadataValue" + ] + }, + "ListCmsMetadataValues": { + "methods": [ + "listCmsMetadataValues" + ] + } + } + } + } + }, "CompanyService": { "clients": { "grpc": { @@ -101,11 +239,151 @@ } } }, + "ContactService": { + "clients": { + "grpc": { + "libraryClient": "ContactServiceGapicClient", + "rpcs": { + "BatchCreateContacts": { + "methods": [ + "batchCreateContacts" + ] + }, + "BatchUpdateContacts": { + "methods": [ + "batchUpdateContacts" + ] + }, + "CreateContact": { + "methods": [ + "createContact" + ] + }, + "GetContact": { + "methods": [ + "getContact" + ] + }, + "ListContacts": { + "methods": [ + "listContacts" + ] + }, + "UpdateContact": { + "methods": [ + "updateContact" + ] + } + } + } + } + }, + "ContentBundleService": { + "clients": { + "grpc": { + "libraryClient": "ContentBundleServiceGapicClient", + "rpcs": { + "GetContentBundle": { + "methods": [ + "getContentBundle" + ] + }, + "ListContentBundles": { + "methods": [ + "listContentBundles" + ] + } + } + } + } + }, + "ContentLabelService": { + "clients": { + "grpc": { + "libraryClient": "ContentLabelServiceGapicClient", + "rpcs": { + "GetContentLabel": { + "methods": [ + "getContentLabel" + ] + }, + "ListContentLabels": { + "methods": [ + "listContentLabels" + ] + } + } + } + } + }, + "ContentService": { + "clients": { + "grpc": { + "libraryClient": "ContentServiceGapicClient", + "rpcs": { + "GetContent": { + "methods": [ + "getContent" + ] + }, + "ListContent": { + "methods": [ + "listContent" + ] + } + } + } + } + }, + "CreativeTemplateService": { + "clients": { + "grpc": { + "libraryClient": "CreativeTemplateServiceGapicClient", + "rpcs": { + "GetCreativeTemplate": { + "methods": [ + "getCreativeTemplate" + ] + }, + "ListCreativeTemplates": { + "methods": [ + "listCreativeTemplates" + ] + } + } + } + } + }, "CustomFieldService": { "clients": { "grpc": { "libraryClient": "CustomFieldServiceGapicClient", "rpcs": { + "BatchActivateCustomFields": { + "methods": [ + "batchActivateCustomFields" + ] + }, + "BatchCreateCustomFields": { + "methods": [ + "batchCreateCustomFields" + ] + }, + "BatchDeactivateCustomFields": { + "methods": [ + "batchDeactivateCustomFields" + ] + }, + "BatchUpdateCustomFields": { + "methods": [ + "batchUpdateCustomFields" + ] + }, + "CreateCustomField": { + "methods": [ + "createCustomField" + ] + }, "GetCustomField": { "methods": [ "getCustomField" @@ -115,6 +393,11 @@ "methods": [ "listCustomFields" ] + }, + "UpdateCustomField": { + "methods": [ + "updateCustomField" + ] } } } @@ -158,6 +441,25 @@ } } }, + "DeviceCapabilityService": { + "clients": { + "grpc": { + "libraryClient": "DeviceCapabilityServiceGapicClient", + "rpcs": { + "GetDeviceCapability": { + "methods": [ + "getDeviceCapability" + ] + }, + "ListDeviceCapabilities": { + "methods": [ + "listDeviceCapabilities" + ] + } + } + } + } + }, "DeviceCategoryService": { "clients": { "grpc": { @@ -177,6 +479,25 @@ } } }, + "DeviceManufacturerService": { + "clients": { + "grpc": { + "libraryClient": "DeviceManufacturerServiceGapicClient", + "rpcs": { + "GetDeviceManufacturer": { + "methods": [ + "getDeviceManufacturer" + ] + }, + "ListDeviceManufacturers": { + "methods": [ + "listDeviceManufacturers" + ] + } + } + } + } + }, "EntitySignalsMappingService": { "clients": { "grpc": { @@ -235,6 +556,63 @@ } } }, + "MobileCarrierService": { + "clients": { + "grpc": { + "libraryClient": "MobileCarrierServiceGapicClient", + "rpcs": { + "GetMobileCarrier": { + "methods": [ + "getMobileCarrier" + ] + }, + "ListMobileCarriers": { + "methods": [ + "listMobileCarriers" + ] + } + } + } + } + }, + "MobileDeviceService": { + "clients": { + "grpc": { + "libraryClient": "MobileDeviceServiceGapicClient", + "rpcs": { + "GetMobileDevice": { + "methods": [ + "getMobileDevice" + ] + }, + "ListMobileDevices": { + "methods": [ + "listMobileDevices" + ] + } + } + } + } + }, + "MobileDeviceSubmodelService": { + "clients": { + "grpc": { + "libraryClient": "MobileDeviceSubmodelServiceGapicClient", + "rpcs": { + "GetMobileDeviceSubmodel": { + "methods": [ + "getMobileDeviceSubmodel" + ] + }, + "ListMobileDeviceSubmodels": { + "methods": [ + "listMobileDeviceSubmodels" + ] + } + } + } + } + }, "NetworkService": { "clients": { "grpc": { @@ -316,6 +694,36 @@ "grpc": { "libraryClient": "PlacementServiceGapicClient", "rpcs": { + "BatchActivatePlacements": { + "methods": [ + "batchActivatePlacements" + ] + }, + "BatchArchivePlacements": { + "methods": [ + "batchArchivePlacements" + ] + }, + "BatchCreatePlacements": { + "methods": [ + "batchCreatePlacements" + ] + }, + "BatchDeactivatePlacements": { + "methods": [ + "batchDeactivatePlacements" + ] + }, + "BatchUpdatePlacements": { + "methods": [ + "batchUpdatePlacements" + ] + }, + "CreatePlacement": { + "methods": [ + "createPlacement" + ] + }, "GetPlacement": { "methods": [ "getPlacement" @@ -325,6 +733,11 @@ "methods": [ "listPlacements" ] + }, + "UpdatePlacement": { + "methods": [ + "updatePlacement" + ] } } } @@ -465,6 +878,55 @@ } } }, + "SiteService": { + "clients": { + "grpc": { + "libraryClient": "SiteServiceGapicClient", + "rpcs": { + "BatchCreateSites": { + "methods": [ + "batchCreateSites" + ] + }, + "BatchDeactivateSites": { + "methods": [ + "batchDeactivateSites" + ] + }, + "BatchSubmitSitesForApproval": { + "methods": [ + "batchSubmitSitesForApproval" + ] + }, + "BatchUpdateSites": { + "methods": [ + "batchUpdateSites" + ] + }, + "CreateSite": { + "methods": [ + "createSite" + ] + }, + "GetSite": { + "methods": [ + "getSite" + ] + }, + "ListSites": { + "methods": [ + "listSites" + ] + }, + "UpdateSite": { + "methods": [ + "updateSite" + ] + } + } + } + } + }, "TaxonomyCategoryService": { "clients": { "grpc": { @@ -484,6 +946,55 @@ } } }, + "TeamService": { + "clients": { + "grpc": { + "libraryClient": "TeamServiceGapicClient", + "rpcs": { + "BatchActivateTeams": { + "methods": [ + "batchActivateTeams" + ] + }, + "BatchCreateTeams": { + "methods": [ + "batchCreateTeams" + ] + }, + "BatchDeactivateTeams": { + "methods": [ + "batchDeactivateTeams" + ] + }, + "BatchUpdateTeams": { + "methods": [ + "batchUpdateTeams" + ] + }, + "CreateTeam": { + "methods": [ + "createTeam" + ] + }, + "GetTeam": { + "methods": [ + "getTeam" + ] + }, + "ListTeams": { + "methods": [ + "listTeams" + ] + }, + "UpdateTeam": { + "methods": [ + "updateTeam" + ] + } + } + } + } + }, "UserService": { "clients": { "grpc": { diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_client_config.json b/AdsAdManager/src/V1/resources/ad_review_center_ad_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_client_config.json rename to AdsAdManager/src/V1/resources/ad_review_center_ad_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_descriptor_config.php b/AdsAdManager/src/V1/resources/ad_review_center_ad_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/ad_review_center_ad_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_rest_client_config.php b/AdsAdManager/src/V1/resources/ad_review_center_ad_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_review_center_ad_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/ad_review_center_ad_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_client_config.json b/AdsAdManager/src/V1/resources/application_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_client_config.json rename to AdsAdManager/src/V1/resources/application_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_descriptor_config.php b/AdsAdManager/src/V1/resources/application_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/application_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_rest_client_config.php b/AdsAdManager/src/V1/resources/application_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/application_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/application_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_client_config.json b/AdsAdManager/src/V1/resources/audience_segment_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_client_config.json rename to AdsAdManager/src/V1/resources/audience_segment_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_descriptor_config.php b/AdsAdManager/src/V1/resources/audience_segment_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/audience_segment_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_rest_client_config.php b/AdsAdManager/src/V1/resources/audience_segment_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/audience_segment_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/audience_segment_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_client_config.json b/AdsAdManager/src/V1/resources/browser_language_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_client_config.json rename to AdsAdManager/src/V1/resources/browser_language_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_descriptor_config.php b/AdsAdManager/src/V1/resources/browser_language_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/browser_language_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_rest_client_config.php b/AdsAdManager/src/V1/resources/browser_language_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_language_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/browser_language_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_client_config.json b/AdsAdManager/src/V1/resources/browser_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_client_config.json rename to AdsAdManager/src/V1/resources/browser_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_descriptor_config.php b/AdsAdManager/src/V1/resources/browser_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/browser_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_rest_client_config.php b/AdsAdManager/src/V1/resources/browser_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/browser_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/browser_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_client_config.json b/AdsAdManager/src/V1/resources/cms_metadata_key_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_client_config.json rename to AdsAdManager/src/V1/resources/cms_metadata_key_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_descriptor_config.php b/AdsAdManager/src/V1/resources/cms_metadata_key_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/cms_metadata_key_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_rest_client_config.php b/AdsAdManager/src/V1/resources/cms_metadata_key_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_key_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/cms_metadata_key_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_client_config.json b/AdsAdManager/src/V1/resources/cms_metadata_value_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_client_config.json rename to AdsAdManager/src/V1/resources/cms_metadata_value_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_descriptor_config.php b/AdsAdManager/src/V1/resources/cms_metadata_value_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/cms_metadata_value_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_rest_client_config.php b/AdsAdManager/src/V1/resources/cms_metadata_value_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/cms_metadata_value_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/cms_metadata_value_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_client_config.json b/AdsAdManager/src/V1/resources/contact_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_client_config.json rename to AdsAdManager/src/V1/resources/contact_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_descriptor_config.php b/AdsAdManager/src/V1/resources/contact_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/contact_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_rest_client_config.php b/AdsAdManager/src/V1/resources/contact_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/contact_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/contact_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_client_config.json b/AdsAdManager/src/V1/resources/content_bundle_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_client_config.json rename to AdsAdManager/src/V1/resources/content_bundle_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_descriptor_config.php b/AdsAdManager/src/V1/resources/content_bundle_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/content_bundle_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_rest_client_config.php b/AdsAdManager/src/V1/resources/content_bundle_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_bundle_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/content_bundle_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_client_config.json b/AdsAdManager/src/V1/resources/content_label_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_client_config.json rename to AdsAdManager/src/V1/resources/content_label_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_descriptor_config.php b/AdsAdManager/src/V1/resources/content_label_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/content_label_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_rest_client_config.php b/AdsAdManager/src/V1/resources/content_label_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_label_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/content_label_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_client_config.json b/AdsAdManager/src/V1/resources/content_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_client_config.json rename to AdsAdManager/src/V1/resources/content_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_descriptor_config.php b/AdsAdManager/src/V1/resources/content_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/content_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_rest_client_config.php b/AdsAdManager/src/V1/resources/content_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/content_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/content_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_client_config.json b/AdsAdManager/src/V1/resources/creative_template_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_client_config.json rename to AdsAdManager/src/V1/resources/creative_template_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_descriptor_config.php b/AdsAdManager/src/V1/resources/creative_template_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/creative_template_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_rest_client_config.php b/AdsAdManager/src/V1/resources/creative_template_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/creative_template_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/creative_template_service_rest_client_config.php diff --git a/AdsAdManager/src/V1/resources/custom_field_service_client_config.json b/AdsAdManager/src/V1/resources/custom_field_service_client_config.json index 8f8a5a8fc36e..2e9f9e2ab6dc 100644 --- a/AdsAdManager/src/V1/resources/custom_field_service_client_config.json +++ b/AdsAdManager/src/V1/resources/custom_field_service_client_config.json @@ -16,6 +16,31 @@ } }, "methods": { + "BatchActivateCustomFields": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchCreateCustomFields": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchDeactivateCustomFields": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateCustomFields": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateCustomField": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "GetCustomField": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -25,6 +50,11 @@ "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" + }, + "UpdateCustomField": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" } } } diff --git a/AdsAdManager/src/V1/resources/custom_field_service_descriptor_config.php b/AdsAdManager/src/V1/resources/custom_field_service_descriptor_config.php index a7ce127626b8..9c720249ee67 100644 --- a/AdsAdManager/src/V1/resources/custom_field_service_descriptor_config.php +++ b/AdsAdManager/src/V1/resources/custom_field_service_descriptor_config.php @@ -23,6 +23,66 @@ return [ 'interfaces' => [ 'google.ads.admanager.v1.CustomFieldService' => [ + 'BatchActivateCustomFields' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchActivateCustomFieldsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateCustomFields' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateCustomFieldsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateCustomFields' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchDeactivateCustomFieldsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateCustomFields' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateCustomFieldsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomField' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CustomField', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], 'GetCustomField' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Ads\AdManager\V1\CustomField', @@ -55,6 +115,19 @@ ], ], ], + 'UpdateCustomField' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CustomField', + 'headerParams' => [ + [ + 'keyName' => 'custom_field.name', + 'fieldAccessors' => [ + 'getCustomField', + 'getName', + ], + ], + ], + ], 'templateMap' => [ 'customField' => 'networks/{network_code}/customFields/{custom_field}', 'network' => 'networks/{network_code}', diff --git a/AdsAdManager/src/V1/resources/custom_field_service_rest_client_config.php b/AdsAdManager/src/V1/resources/custom_field_service_rest_client_config.php index 3c2979acd873..0af95ae4ef62 100644 --- a/AdsAdManager/src/V1/resources/custom_field_service_rest_client_config.php +++ b/AdsAdManager/src/V1/resources/custom_field_service_rest_client_config.php @@ -23,6 +23,66 @@ return [ 'interfaces' => [ 'google.ads.admanager.v1.CustomFieldService' => [ + 'BatchActivateCustomFields' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchActivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateCustomFields' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateCustomFields' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchDeactivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateCustomFields' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomField' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/customFields', + 'body' => 'custom_field', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], 'GetCustomField' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=networks/*/customFields/*}', @@ -45,6 +105,22 @@ ], ], ], + 'UpdateCustomField' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{custom_field.name=networks/*/customFields/*}', + 'body' => 'custom_field', + 'placeholders' => [ + 'custom_field.name' => [ + 'getters' => [ + 'getCustomField', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], ], 'google.longrunning.Operations' => [ 'GetOperation' => [ diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_client_config.json b/AdsAdManager/src/V1/resources/device_capability_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_client_config.json rename to AdsAdManager/src/V1/resources/device_capability_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_descriptor_config.php b/AdsAdManager/src/V1/resources/device_capability_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/device_capability_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_rest_client_config.php b/AdsAdManager/src/V1/resources/device_capability_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_capability_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/device_capability_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_client_config.json b/AdsAdManager/src/V1/resources/device_manufacturer_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_client_config.json rename to AdsAdManager/src/V1/resources/device_manufacturer_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_descriptor_config.php b/AdsAdManager/src/V1/resources/device_manufacturer_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/device_manufacturer_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_rest_client_config.php b/AdsAdManager/src/V1/resources/device_manufacturer_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_manufacturer_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/device_manufacturer_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_client_config.json b/AdsAdManager/src/V1/resources/mobile_carrier_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_client_config.json rename to AdsAdManager/src/V1/resources/mobile_carrier_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_descriptor_config.php b/AdsAdManager/src/V1/resources/mobile_carrier_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/mobile_carrier_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_rest_client_config.php b/AdsAdManager/src/V1/resources/mobile_carrier_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_carrier_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/mobile_carrier_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_client_config.json b/AdsAdManager/src/V1/resources/mobile_device_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_client_config.json rename to AdsAdManager/src/V1/resources/mobile_device_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_descriptor_config.php b/AdsAdManager/src/V1/resources/mobile_device_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/mobile_device_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_rest_client_config.php b/AdsAdManager/src/V1/resources/mobile_device_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/mobile_device_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_client_config.json b/AdsAdManager/src/V1/resources/mobile_device_submodel_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_client_config.json rename to AdsAdManager/src/V1/resources/mobile_device_submodel_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_descriptor_config.php b/AdsAdManager/src/V1/resources/mobile_device_submodel_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/mobile_device_submodel_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_rest_client_config.php b/AdsAdManager/src/V1/resources/mobile_device_submodel_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/mobile_device_submodel_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/mobile_device_submodel_service_rest_client_config.php diff --git a/AdsAdManager/src/V1/resources/placement_service_client_config.json b/AdsAdManager/src/V1/resources/placement_service_client_config.json index 8d039baaad41..5c98f37c18ed 100644 --- a/AdsAdManager/src/V1/resources/placement_service_client_config.json +++ b/AdsAdManager/src/V1/resources/placement_service_client_config.json @@ -16,6 +16,36 @@ } }, "methods": { + "BatchActivatePlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchArchivePlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchCreatePlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchDeactivatePlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdatePlacements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreatePlacement": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "GetPlacement": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -25,6 +55,11 @@ "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" + }, + "UpdatePlacement": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" } } } diff --git a/AdsAdManager/src/V1/resources/placement_service_descriptor_config.php b/AdsAdManager/src/V1/resources/placement_service_descriptor_config.php index f7949ce84422..1879ce926cd0 100644 --- a/AdsAdManager/src/V1/resources/placement_service_descriptor_config.php +++ b/AdsAdManager/src/V1/resources/placement_service_descriptor_config.php @@ -23,6 +23,78 @@ return [ 'interfaces' => [ 'google.ads.admanager.v1.PlacementService' => [ + 'BatchActivatePlacements' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchActivatePlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchArchivePlacements' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchArchivePlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreatePlacements' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreatePlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivatePlacements' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchDeactivatePlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdatePlacements' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdatePlacementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreatePlacement' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Placement', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], 'GetPlacement' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Ads\AdManager\V1\Placement', @@ -55,7 +127,21 @@ ], ], ], + 'UpdatePlacement' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Placement', + 'headerParams' => [ + [ + 'keyName' => 'placement.name', + 'fieldAccessors' => [ + 'getPlacement', + 'getName', + ], + ], + ], + ], 'templateMap' => [ + 'adUnit' => 'networks/{network_code}/adUnits/{ad_unit}', 'network' => 'networks/{network_code}', 'placement' => 'networks/{network_code}/placements/{placement}', ], diff --git a/AdsAdManager/src/V1/resources/placement_service_rest_client_config.php b/AdsAdManager/src/V1/resources/placement_service_rest_client_config.php index 444ff4b1586e..b78c41f788e1 100644 --- a/AdsAdManager/src/V1/resources/placement_service_rest_client_config.php +++ b/AdsAdManager/src/V1/resources/placement_service_rest_client_config.php @@ -23,6 +23,78 @@ return [ 'interfaces' => [ 'google.ads.admanager.v1.PlacementService' => [ + 'BatchActivatePlacements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchActivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchArchivePlacements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchArchive', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreatePlacements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivatePlacements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchDeactivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdatePlacements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreatePlacement' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/placements', + 'body' => 'placement', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], 'GetPlacement' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=networks/*/placements/*}', @@ -45,6 +117,22 @@ ], ], ], + 'UpdatePlacement' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{placement.name=networks/*/placements/*}', + 'body' => 'placement', + 'placeholders' => [ + 'placement.name' => [ + 'getters' => [ + 'getPlacement', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], ], 'google.longrunning.Operations' => [ 'GetOperation' => [ diff --git a/AdsAdManager/src/V1/resources/private_auction_deal_service_descriptor_config.php b/AdsAdManager/src/V1/resources/private_auction_deal_service_descriptor_config.php index 6ffcb369659a..8fee83088d12 100644 --- a/AdsAdManager/src/V1/resources/private_auction_deal_service_descriptor_config.php +++ b/AdsAdManager/src/V1/resources/private_auction_deal_service_descriptor_config.php @@ -82,11 +82,23 @@ ], 'templateMap' => [ 'adUnit' => 'networks/{network_code}/adUnits/{ad_unit}', + 'application' => 'networks/{network_code}/applications/{application}', + 'audienceSegment' => 'networks/{network_code}/audienceSegments/{audience_segment}', 'bandwidthGroup' => 'networks/{network_code}/bandwidthGroups/{bandwidth_group}', + 'browser' => 'networks/{network_code}/browsers/{browser}', + 'browserLanguage' => 'networks/{network_code}/browserLanguages/{browser_language}', + 'cmsMetadataValue' => 'networks/{network_code}/cmsMetadataValues/{cms_metadata_value}', + 'content' => 'networks/{network_code}/content/{content}', + 'contentBundle' => 'networks/{network_code}/contentBundles/{content_bundle}', 'customTargetingKey' => 'networks/{network_code}/customTargetingKeys/{custom_targeting_key}', 'customTargetingValue' => 'networks/{network_code}/customTargetingValues/{custom_targeting_value}', + 'deviceCapability' => 'networks/{network_code}/deviceCapabilities/{device_capability}', 'deviceCategory' => 'networks/{network_code}/deviceCategories/{device_category}', + 'deviceManufacturer' => 'networks/{network_code}/deviceManufacturers/{device_manufacturer}', 'geoTarget' => 'networks/{network_code}/geoTargets/{geo_target}', + 'mobileCarrier' => 'networks/{network_code}/mobileCarriers/{mobile_carrier}', + 'mobileDevice' => 'networks/{network_code}/mobileDevices/{mobile_device}', + 'mobileDeviceSubmodel' => 'networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}', 'network' => 'networks/{network_code}', 'operatingSystem' => 'networks/{network_code}/operatingSystems/{operating_system}', 'operatingSystemVersion' => 'networks/{network_code}/operatingSystemVersions/{operating_system_version}', diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_client_config.json b/AdsAdManager/src/V1/resources/site_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_client_config.json rename to AdsAdManager/src/V1/resources/site_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_descriptor_config.php b/AdsAdManager/src/V1/resources/site_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/site_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_rest_client_config.php b/AdsAdManager/src/V1/resources/site_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/site_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/site_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_client_config.json b/AdsAdManager/src/V1/resources/team_service_client_config.json similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_client_config.json rename to AdsAdManager/src/V1/resources/team_service_client_config.json diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_descriptor_config.php b/AdsAdManager/src/V1/resources/team_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_descriptor_config.php rename to AdsAdManager/src/V1/resources/team_service_descriptor_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_rest_client_config.php b/AdsAdManager/src/V1/resources/team_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/AdsAdManager/v1/src/V1/resources/team_service_rest_client_config.php rename to AdsAdManager/src/V1/resources/team_service_rest_client_config.php diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php similarity index 89% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php index 810b67fcf6ed..78cf872fde75 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/AdReviewCenterAdServiceClientTest.php @@ -58,7 +58,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return AdReviewCenterAdServiceClient */ @@ -104,9 +106,7 @@ public function batchAllowAdReviewCenterAdsTest() $formattedNames = [ $gapicClient->adReviewCenterAdName('[NETWORK_CODE]', '[WEB_PROPERTY_CODE]', '[AD_REVIEW_CENTER_AD]'), ]; - $request = (new BatchAllowAdReviewCenterAdsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $request = (new BatchAllowAdReviewCenterAdsRequest())->setParent($formattedParent)->setNames($formattedNames); $response = $gapicClient->batchAllowAdReviewCenterAds($request); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); @@ -116,7 +116,10 @@ public function batchAllowAdReviewCenterAdsTest() $this->assertSame(0, count($operationsRequestsEmpty)); $actualApiFuncCall = $apiRequests[0]->getFuncCall(); $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdReviewCenterAdService/BatchAllowAdReviewCenterAds', $actualApiFuncCall); + $this->assertSame( + '/google.ads.admanager.v1.AdReviewCenterAdService/BatchAllowAdReviewCenterAds', + $actualApiFuncCall + ); $actualValue = $actualApiRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $actualValue = $actualApiRequestObject->getNames(); @@ -164,21 +167,22 @@ public function batchAllowAdReviewCenterAdsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $operationsTransport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); $formattedNames = [ $gapicClient->adReviewCenterAdName('[NETWORK_CODE]', '[WEB_PROPERTY_CODE]', '[AD_REVIEW_CENTER_AD]'), ]; - $request = (new BatchAllowAdReviewCenterAdsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $request = (new BatchAllowAdReviewCenterAdsRequest())->setParent($formattedParent)->setNames($formattedNames); $response = $gapicClient->batchAllowAdReviewCenterAds($request); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); @@ -235,9 +239,7 @@ public function batchBlockAdReviewCenterAdsTest() $formattedNames = [ $gapicClient->adReviewCenterAdName('[NETWORK_CODE]', '[WEB_PROPERTY_CODE]', '[AD_REVIEW_CENTER_AD]'), ]; - $request = (new BatchBlockAdReviewCenterAdsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $request = (new BatchBlockAdReviewCenterAdsRequest())->setParent($formattedParent)->setNames($formattedNames); $response = $gapicClient->batchBlockAdReviewCenterAds($request); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); @@ -247,7 +249,10 @@ public function batchBlockAdReviewCenterAdsTest() $this->assertSame(0, count($operationsRequestsEmpty)); $actualApiFuncCall = $apiRequests[0]->getFuncCall(); $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdReviewCenterAdService/BatchBlockAdReviewCenterAds', $actualApiFuncCall); + $this->assertSame( + '/google.ads.admanager.v1.AdReviewCenterAdService/BatchBlockAdReviewCenterAds', + $actualApiFuncCall + ); $actualValue = $actualApiRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $actualValue = $actualApiRequestObject->getNames(); @@ -295,21 +300,22 @@ public function batchBlockAdReviewCenterAdsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $operationsTransport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); $formattedNames = [ $gapicClient->adReviewCenterAdName('[NETWORK_CODE]', '[WEB_PROPERTY_CODE]', '[AD_REVIEW_CENTER_AD]'), ]; - $request = (new BatchBlockAdReviewCenterAdsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $request = (new BatchBlockAdReviewCenterAdsRequest())->setParent($formattedParent)->setNames($formattedNames); $response = $gapicClient->batchBlockAdReviewCenterAds($request); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); @@ -343,9 +349,7 @@ public function searchAdReviewCenterAdsTest() // Mock response $nextPageToken = ''; $adReviewCenterAdsElement = new AdReviewCenterAd(); - $adReviewCenterAds = [ - $adReviewCenterAdsElement, - ]; + $adReviewCenterAds = [$adReviewCenterAdsElement]; $expectedResponse = new SearchAdReviewCenterAdsResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setAdReviewCenterAds($adReviewCenterAds); @@ -353,9 +357,7 @@ public function searchAdReviewCenterAdsTest() // Mock request $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); $status = AdReviewCenterAdStatus::AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED; - $request = (new SearchAdReviewCenterAdsRequest()) - ->setParent($formattedParent) - ->setStatus($status); + $request = (new SearchAdReviewCenterAdsRequest())->setParent($formattedParent)->setStatus($status); $response = $gapicClient->searchAdReviewCenterAds($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -384,19 +386,20 @@ public function searchAdReviewCenterAdsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->webPropertyName('[NETWORK_CODE]', '[WEB_PROPERTY]'); $requestStatus = AdReviewCenterAdStatus::AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED; - $request = (new SearchAdReviewCenterAdsRequest()) - ->setParent($formattedParent) - ->setStatus($requestStatus); + $request = (new SearchAdReviewCenterAdsRequest())->setParent($formattedParent)->setStatus($requestStatus); try { $gapicClient->searchAdReviewCenterAds($request); // If the $gapicClient method call did not throw, fail the test @@ -444,9 +447,7 @@ public function batchAllowAdReviewCenterAdsAsyncTest() $formattedNames = [ $gapicClient->adReviewCenterAdName('[NETWORK_CODE]', '[WEB_PROPERTY_CODE]', '[AD_REVIEW_CENTER_AD]'), ]; - $request = (new BatchAllowAdReviewCenterAdsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $request = (new BatchAllowAdReviewCenterAdsRequest())->setParent($formattedParent)->setNames($formattedNames); $response = $gapicClient->batchAllowAdReviewCenterAdsAsync($request)->wait(); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); @@ -456,7 +457,10 @@ public function batchAllowAdReviewCenterAdsAsyncTest() $this->assertSame(0, count($operationsRequestsEmpty)); $actualApiFuncCall = $apiRequests[0]->getFuncCall(); $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdReviewCenterAdService/BatchAllowAdReviewCenterAds', $actualApiFuncCall); + $this->assertSame( + '/google.ads.admanager.v1.AdReviewCenterAdService/BatchAllowAdReviewCenterAds', + $actualApiFuncCall + ); $actualValue = $actualApiRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $actualValue = $actualApiRequestObject->getNames(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ApplicationServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/ApplicationServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ApplicationServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/ApplicationServiceClientTest.php index 5440b2209619..739470e56eea 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ApplicationServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/ApplicationServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return ApplicationServiceClient */ @@ -79,8 +81,7 @@ public function getApplicationTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->applicationName('[NETWORK_CODE]', '[APPLICATION]'); - $request = (new GetApplicationRequest()) - ->setName($formattedName); + $request = (new GetApplicationRequest())->setName($formattedName); $response = $gapicClient->getApplication($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -104,17 +105,19 @@ public function getApplicationExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->applicationName('[NETWORK_CODE]', '[APPLICATION]'); - $request = (new GetApplicationRequest()) - ->setName($formattedName); + $request = (new GetApplicationRequest())->setName($formattedName); try { $gapicClient->getApplication($request); // If the $gapicClient method call did not throw, fail the test @@ -140,9 +143,7 @@ public function listApplicationsTest() $nextPageToken = ''; $totalSize = 705419236; $applicationsElement = new Application(); - $applications = [ - $applicationsElement, - ]; + $applications = [$applicationsElement]; $expectedResponse = new ListApplicationsResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -150,8 +151,7 @@ public function listApplicationsTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListApplicationsRequest()) - ->setParent($formattedParent); + $request = (new ListApplicationsRequest())->setParent($formattedParent); $response = $gapicClient->listApplications($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -178,17 +178,19 @@ public function listApplicationsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListApplicationsRequest()) - ->setParent($formattedParent); + $request = (new ListApplicationsRequest())->setParent($formattedParent); try { $gapicClient->listApplications($request); // If the $gapicClient method call did not throw, fail the test @@ -219,8 +221,7 @@ public function getApplicationAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->applicationName('[NETWORK_CODE]', '[APPLICATION]'); - $request = (new GetApplicationRequest()) - ->setName($formattedName); + $request = (new GetApplicationRequest())->setName($formattedName); $response = $gapicClient->getApplicationAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php index 1dfd21b214a3..2daa331dbd8a 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/AudienceSegmentServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return AudienceSegmentServiceClient */ @@ -79,8 +81,7 @@ public function getAudienceSegmentTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->audienceSegmentName('[NETWORK_CODE]', '[AUDIENCE_SEGMENT]'); - $request = (new GetAudienceSegmentRequest()) - ->setName($formattedName); + $request = (new GetAudienceSegmentRequest())->setName($formattedName); $response = $gapicClient->getAudienceSegment($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -104,17 +105,19 @@ public function getAudienceSegmentExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->audienceSegmentName('[NETWORK_CODE]', '[AUDIENCE_SEGMENT]'); - $request = (new GetAudienceSegmentRequest()) - ->setName($formattedName); + $request = (new GetAudienceSegmentRequest())->setName($formattedName); try { $gapicClient->getAudienceSegment($request); // If the $gapicClient method call did not throw, fail the test @@ -140,9 +143,7 @@ public function listAudienceSegmentsTest() $nextPageToken = ''; $totalSize = 705419236; $audienceSegmentsElement = new AudienceSegment(); - $audienceSegments = [ - $audienceSegmentsElement, - ]; + $audienceSegments = [$audienceSegmentsElement]; $expectedResponse = new ListAudienceSegmentsResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -150,8 +151,7 @@ public function listAudienceSegmentsTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListAudienceSegmentsRequest()) - ->setParent($formattedParent); + $request = (new ListAudienceSegmentsRequest())->setParent($formattedParent); $response = $gapicClient->listAudienceSegments($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -178,17 +178,19 @@ public function listAudienceSegmentsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListAudienceSegmentsRequest()) - ->setParent($formattedParent); + $request = (new ListAudienceSegmentsRequest())->setParent($formattedParent); try { $gapicClient->listAudienceSegments($request); // If the $gapicClient method call did not throw, fail the test @@ -219,8 +221,7 @@ public function getAudienceSegmentAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->audienceSegmentName('[NETWORK_CODE]', '[AUDIENCE_SEGMENT]'); - $request = (new GetAudienceSegmentRequest()) - ->setName($formattedName); + $request = (new GetAudienceSegmentRequest())->setName($formattedName); $response = $gapicClient->getAudienceSegmentAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php index 0b86b005bd58..ddff90cc6377 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/BrowserLanguageServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return BrowserLanguageServiceClient */ @@ -79,8 +81,7 @@ public function getBrowserLanguageTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->browserLanguageName('[NETWORK_CODE]', '[BROWSER_LANGUAGE]'); - $request = (new GetBrowserLanguageRequest()) - ->setName($formattedName); + $request = (new GetBrowserLanguageRequest())->setName($formattedName); $response = $gapicClient->getBrowserLanguage($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -104,17 +105,19 @@ public function getBrowserLanguageExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->browserLanguageName('[NETWORK_CODE]', '[BROWSER_LANGUAGE]'); - $request = (new GetBrowserLanguageRequest()) - ->setName($formattedName); + $request = (new GetBrowserLanguageRequest())->setName($formattedName); try { $gapicClient->getBrowserLanguage($request); // If the $gapicClient method call did not throw, fail the test @@ -140,9 +143,7 @@ public function listBrowserLanguagesTest() $nextPageToken = ''; $totalSize = 705419236; $browserLanguagesElement = new BrowserLanguage(); - $browserLanguages = [ - $browserLanguagesElement, - ]; + $browserLanguages = [$browserLanguagesElement]; $expectedResponse = new ListBrowserLanguagesResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -150,8 +151,7 @@ public function listBrowserLanguagesTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListBrowserLanguagesRequest()) - ->setParent($formattedParent); + $request = (new ListBrowserLanguagesRequest())->setParent($formattedParent); $response = $gapicClient->listBrowserLanguages($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -178,17 +178,19 @@ public function listBrowserLanguagesExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListBrowserLanguagesRequest()) - ->setParent($formattedParent); + $request = (new ListBrowserLanguagesRequest())->setParent($formattedParent); try { $gapicClient->listBrowserLanguages($request); // If the $gapicClient method call did not throw, fail the test @@ -219,8 +221,7 @@ public function getBrowserLanguageAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->browserLanguageName('[NETWORK_CODE]', '[BROWSER_LANGUAGE]'); - $request = (new GetBrowserLanguageRequest()) - ->setName($formattedName); + $request = (new GetBrowserLanguageRequest())->setName($formattedName); $response = $gapicClient->getBrowserLanguageAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/BrowserServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/BrowserServiceClientTest.php index 023166756a55..193f00b50bea 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BrowserServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/BrowserServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return BrowserServiceClient */ @@ -83,8 +85,7 @@ public function getBrowserTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->browserName('[NETWORK_CODE]', '[BROWSER]'); - $request = (new GetBrowserRequest()) - ->setName($formattedName); + $request = (new GetBrowserRequest())->setName($formattedName); $response = $gapicClient->getBrowser($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -108,17 +109,19 @@ public function getBrowserExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->browserName('[NETWORK_CODE]', '[BROWSER]'); - $request = (new GetBrowserRequest()) - ->setName($formattedName); + $request = (new GetBrowserRequest())->setName($formattedName); try { $gapicClient->getBrowser($request); // If the $gapicClient method call did not throw, fail the test @@ -144,9 +147,7 @@ public function listBrowsersTest() $nextPageToken = ''; $totalSize = 705419236; $browsersElement = new Browser(); - $browsers = [ - $browsersElement, - ]; + $browsers = [$browsersElement]; $expectedResponse = new ListBrowsersResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -154,8 +155,7 @@ public function listBrowsersTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListBrowsersRequest()) - ->setParent($formattedParent); + $request = (new ListBrowsersRequest())->setParent($formattedParent); $response = $gapicClient->listBrowsers($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -182,17 +182,19 @@ public function listBrowsersExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListBrowsersRequest()) - ->setParent($formattedParent); + $request = (new ListBrowsersRequest())->setParent($formattedParent); try { $gapicClient->listBrowsers($request); // If the $gapicClient method call did not throw, fail the test @@ -227,8 +229,7 @@ public function getBrowserAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->browserName('[NETWORK_CODE]', '[BROWSER]'); - $request = (new GetBrowserRequest()) - ->setName($formattedName); + $request = (new GetBrowserRequest())->setName($formattedName); $response = $gapicClient->getBrowserAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php index fd7ffaa892ee..9ea2bb804ca6 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/CmsMetadataKeyServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return CmsMetadataKeyServiceClient */ @@ -79,8 +81,7 @@ public function getCmsMetadataKeyTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->cmsMetadataKeyName('[NETWORK_CODE]', '[CMS_METADATA_KEY]'); - $request = (new GetCmsMetadataKeyRequest()) - ->setName($formattedName); + $request = (new GetCmsMetadataKeyRequest())->setName($formattedName); $response = $gapicClient->getCmsMetadataKey($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -104,17 +105,19 @@ public function getCmsMetadataKeyExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->cmsMetadataKeyName('[NETWORK_CODE]', '[CMS_METADATA_KEY]'); - $request = (new GetCmsMetadataKeyRequest()) - ->setName($formattedName); + $request = (new GetCmsMetadataKeyRequest())->setName($formattedName); try { $gapicClient->getCmsMetadataKey($request); // If the $gapicClient method call did not throw, fail the test @@ -140,9 +143,7 @@ public function listCmsMetadataKeysTest() $nextPageToken = ''; $totalSize = 705419236; $cmsMetadataKeysElement = new CmsMetadataKey(); - $cmsMetadataKeys = [ - $cmsMetadataKeysElement, - ]; + $cmsMetadataKeys = [$cmsMetadataKeysElement]; $expectedResponse = new ListCmsMetadataKeysResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -150,8 +151,7 @@ public function listCmsMetadataKeysTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCmsMetadataKeysRequest()) - ->setParent($formattedParent); + $request = (new ListCmsMetadataKeysRequest())->setParent($formattedParent); $response = $gapicClient->listCmsMetadataKeys($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -178,17 +178,19 @@ public function listCmsMetadataKeysExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCmsMetadataKeysRequest()) - ->setParent($formattedParent); + $request = (new ListCmsMetadataKeysRequest())->setParent($formattedParent); try { $gapicClient->listCmsMetadataKeys($request); // If the $gapicClient method call did not throw, fail the test @@ -219,8 +221,7 @@ public function getCmsMetadataKeyAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->cmsMetadataKeyName('[NETWORK_CODE]', '[CMS_METADATA_KEY]'); - $request = (new GetCmsMetadataKeyRequest()) - ->setName($formattedName); + $request = (new GetCmsMetadataKeyRequest())->setName($formattedName); $response = $gapicClient->getCmsMetadataKeyAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php index 6149af2c908b..3946a7ca2fd7 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/CmsMetadataValueServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return CmsMetadataValueServiceClient */ @@ -81,8 +83,7 @@ public function getCmsMetadataValueTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->cmsMetadataValueName('[NETWORK_CODE]', '[CMS_METADATA_VALUE]'); - $request = (new GetCmsMetadataValueRequest()) - ->setName($formattedName); + $request = (new GetCmsMetadataValueRequest())->setName($formattedName); $response = $gapicClient->getCmsMetadataValue($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -106,17 +107,19 @@ public function getCmsMetadataValueExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->cmsMetadataValueName('[NETWORK_CODE]', '[CMS_METADATA_VALUE]'); - $request = (new GetCmsMetadataValueRequest()) - ->setName($formattedName); + $request = (new GetCmsMetadataValueRequest())->setName($formattedName); try { $gapicClient->getCmsMetadataValue($request); // If the $gapicClient method call did not throw, fail the test @@ -142,9 +145,7 @@ public function listCmsMetadataValuesTest() $nextPageToken = ''; $totalSize = 705419236; $cmsMetadataValuesElement = new CmsMetadataValue(); - $cmsMetadataValues = [ - $cmsMetadataValuesElement, - ]; + $cmsMetadataValues = [$cmsMetadataValuesElement]; $expectedResponse = new ListCmsMetadataValuesResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -152,8 +153,7 @@ public function listCmsMetadataValuesTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCmsMetadataValuesRequest()) - ->setParent($formattedParent); + $request = (new ListCmsMetadataValuesRequest())->setParent($formattedParent); $response = $gapicClient->listCmsMetadataValues($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -180,17 +180,19 @@ public function listCmsMetadataValuesExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCmsMetadataValuesRequest()) - ->setParent($formattedParent); + $request = (new ListCmsMetadataValuesRequest())->setParent($formattedParent); try { $gapicClient->listCmsMetadataValues($request); // If the $gapicClient method call did not throw, fail the test @@ -223,8 +225,7 @@ public function getCmsMetadataValueAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->cmsMetadataValueName('[NETWORK_CODE]', '[CMS_METADATA_VALUE]'); - $request = (new GetCmsMetadataValueRequest()) - ->setName($formattedName); + $request = (new GetCmsMetadataValueRequest())->setName($formattedName); $response = $gapicClient->getCmsMetadataValueAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContactServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/ContactServiceClientTest.php similarity index 87% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContactServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/ContactServiceClientTest.php index 0f2fc27c80e9..c4e954a573ea 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContactServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/ContactServiceClientTest.php @@ -57,7 +57,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return ContactServiceClient */ @@ -83,9 +85,7 @@ public function batchCreateContactsTest() // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchCreateContactsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchCreateContactsRequest())->setParent($formattedParent)->setRequests($requests); $response = $gapicClient->batchCreateContacts($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -111,19 +111,20 @@ public function batchCreateContactsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchCreateContactsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchCreateContactsRequest())->setParent($formattedParent)->setRequests($requests); try { $gapicClient->batchCreateContacts($request); // If the $gapicClient method call did not throw, fail the test @@ -151,9 +152,7 @@ public function batchUpdateContactsTest() // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchUpdateContactsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchUpdateContactsRequest())->setParent($formattedParent)->setRequests($requests); $response = $gapicClient->batchUpdateContacts($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -179,19 +178,20 @@ public function batchUpdateContactsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchUpdateContactsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchUpdateContactsRequest())->setParent($formattedParent)->setRequests($requests); try { $gapicClient->batchUpdateContacts($request); // If the $gapicClient method call did not throw, fail the test @@ -243,9 +243,7 @@ public function createContactTest() $contact->setDisplayName($contactDisplayName); $contactCompany = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); $contact->setCompany($contactCompany); - $request = (new CreateContactRequest()) - ->setParent($formattedParent) - ->setContact($contact); + $request = (new CreateContactRequest())->setParent($formattedParent)->setContact($contact); $response = $gapicClient->createContact($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -271,12 +269,15 @@ public function createContactExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); @@ -285,9 +286,7 @@ public function createContactExceptionTest() $contact->setDisplayName($contactDisplayName); $contactCompany = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); $contact->setCompany($contactCompany); - $request = (new CreateContactRequest()) - ->setParent($formattedParent) - ->setContact($contact); + $request = (new CreateContactRequest())->setParent($formattedParent)->setContact($contact); try { $gapicClient->createContact($request); // If the $gapicClient method call did not throw, fail the test @@ -334,8 +333,7 @@ public function getContactTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->contactName('[NETWORK_CODE]', '[CONTACT]'); - $request = (new GetContactRequest()) - ->setName($formattedName); + $request = (new GetContactRequest())->setName($formattedName); $response = $gapicClient->getContact($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -359,17 +357,19 @@ public function getContactExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->contactName('[NETWORK_CODE]', '[CONTACT]'); - $request = (new GetContactRequest()) - ->setName($formattedName); + $request = (new GetContactRequest())->setName($formattedName); try { $gapicClient->getContact($request); // If the $gapicClient method call did not throw, fail the test @@ -395,9 +395,7 @@ public function listContactsTest() $nextPageToken = ''; $totalSize = 705419236; $contactsElement = new Contact(); - $contacts = [ - $contactsElement, - ]; + $contacts = [$contactsElement]; $expectedResponse = new ListContactsResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -405,8 +403,7 @@ public function listContactsTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListContactsRequest()) - ->setParent($formattedParent); + $request = (new ListContactsRequest())->setParent($formattedParent); $response = $gapicClient->listContacts($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -433,17 +430,19 @@ public function listContactsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListContactsRequest()) - ->setParent($formattedParent); + $request = (new ListContactsRequest())->setParent($formattedParent); try { $gapicClient->listContacts($request); // If the $gapicClient method call did not throw, fail the test @@ -495,9 +494,7 @@ public function updateContactTest() $contactCompany = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); $contact->setCompany($contactCompany); $updateMask = new FieldMask(); - $request = (new UpdateContactRequest()) - ->setContact($contact) - ->setUpdateMask($updateMask); + $request = (new UpdateContactRequest())->setContact($contact)->setUpdateMask($updateMask); $response = $gapicClient->updateContact($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -523,12 +520,15 @@ public function updateContactExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $contact = new Contact(); @@ -537,9 +537,7 @@ public function updateContactExceptionTest() $contactCompany = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); $contact->setCompany($contactCompany); $updateMask = new FieldMask(); - $request = (new UpdateContactRequest()) - ->setContact($contact) - ->setUpdateMask($updateMask); + $request = (new UpdateContactRequest())->setContact($contact)->setUpdateMask($updateMask); try { $gapicClient->updateContact($request); // If the $gapicClient method call did not throw, fail the test @@ -567,9 +565,7 @@ public function batchCreateContactsAsyncTest() // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchCreateContactsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchCreateContactsRequest())->setParent($formattedParent)->setRequests($requests); $response = $gapicClient->batchCreateContactsAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentBundleServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/ContentBundleServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentBundleServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/ContentBundleServiceClientTest.php index 0ee36e5be4a4..84db23ba868b 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentBundleServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/ContentBundleServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return ContentBundleServiceClient */ @@ -79,8 +81,7 @@ public function getContentBundleTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->contentBundleName('[NETWORK_CODE]', '[CONTENT_BUNDLE]'); - $request = (new GetContentBundleRequest()) - ->setName($formattedName); + $request = (new GetContentBundleRequest())->setName($formattedName); $response = $gapicClient->getContentBundle($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -104,17 +105,19 @@ public function getContentBundleExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->contentBundleName('[NETWORK_CODE]', '[CONTENT_BUNDLE]'); - $request = (new GetContentBundleRequest()) - ->setName($formattedName); + $request = (new GetContentBundleRequest())->setName($formattedName); try { $gapicClient->getContentBundle($request); // If the $gapicClient method call did not throw, fail the test @@ -140,9 +143,7 @@ public function listContentBundlesTest() $nextPageToken = ''; $totalSize = 705419236; $contentBundlesElement = new ContentBundle(); - $contentBundles = [ - $contentBundlesElement, - ]; + $contentBundles = [$contentBundlesElement]; $expectedResponse = new ListContentBundlesResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -150,8 +151,7 @@ public function listContentBundlesTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListContentBundlesRequest()) - ->setParent($formattedParent); + $request = (new ListContentBundlesRequest())->setParent($formattedParent); $response = $gapicClient->listContentBundles($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -178,17 +178,19 @@ public function listContentBundlesExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListContentBundlesRequest()) - ->setParent($formattedParent); + $request = (new ListContentBundlesRequest())->setParent($formattedParent); try { $gapicClient->listContentBundles($request); // If the $gapicClient method call did not throw, fail the test @@ -219,8 +221,7 @@ public function getContentBundleAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->contentBundleName('[NETWORK_CODE]', '[CONTENT_BUNDLE]'); - $request = (new GetContentBundleRequest()) - ->setName($formattedName); + $request = (new GetContentBundleRequest())->setName($formattedName); $response = $gapicClient->getContentBundleAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentLabelServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/ContentLabelServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentLabelServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/ContentLabelServiceClientTest.php index 4b4d8675c5a0..2a5c5f32a9eb 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentLabelServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/ContentLabelServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return ContentLabelServiceClient */ @@ -79,8 +81,7 @@ public function getContentLabelTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->contentLabelName('[NETWORK_CODE]', '[CONTENT_LABEL]'); - $request = (new GetContentLabelRequest()) - ->setName($formattedName); + $request = (new GetContentLabelRequest())->setName($formattedName); $response = $gapicClient->getContentLabel($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -104,17 +105,19 @@ public function getContentLabelExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->contentLabelName('[NETWORK_CODE]', '[CONTENT_LABEL]'); - $request = (new GetContentLabelRequest()) - ->setName($formattedName); + $request = (new GetContentLabelRequest())->setName($formattedName); try { $gapicClient->getContentLabel($request); // If the $gapicClient method call did not throw, fail the test @@ -140,9 +143,7 @@ public function listContentLabelsTest() $nextPageToken = ''; $totalSize = 705419236; $contentLabelsElement = new ContentLabel(); - $contentLabels = [ - $contentLabelsElement, - ]; + $contentLabels = [$contentLabelsElement]; $expectedResponse = new ListContentLabelsResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -150,8 +151,7 @@ public function listContentLabelsTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListContentLabelsRequest()) - ->setParent($formattedParent); + $request = (new ListContentLabelsRequest())->setParent($formattedParent); $response = $gapicClient->listContentLabels($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -178,17 +178,19 @@ public function listContentLabelsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListContentLabelsRequest()) - ->setParent($formattedParent); + $request = (new ListContentLabelsRequest())->setParent($formattedParent); try { $gapicClient->listContentLabels($request); // If the $gapicClient method call did not throw, fail the test @@ -219,8 +221,7 @@ public function getContentLabelAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->contentLabelName('[NETWORK_CODE]', '[CONTENT_LABEL]'); - $request = (new GetContentLabelRequest()) - ->setName($formattedName); + $request = (new GetContentLabelRequest())->setName($formattedName); $response = $gapicClient->getContentLabelAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/ContentServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/ContentServiceClientTest.php index 74bd8af59da0..6029f11e9057 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ContentServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/ContentServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return ContentServiceClient */ @@ -79,8 +81,7 @@ public function getContentTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->contentName('[NETWORK_CODE]', '[CONTENT]'); - $request = (new GetContentRequest()) - ->setName($formattedName); + $request = (new GetContentRequest())->setName($formattedName); $response = $gapicClient->getContent($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -104,17 +105,19 @@ public function getContentExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->contentName('[NETWORK_CODE]', '[CONTENT]'); - $request = (new GetContentRequest()) - ->setName($formattedName); + $request = (new GetContentRequest())->setName($formattedName); try { $gapicClient->getContent($request); // If the $gapicClient method call did not throw, fail the test @@ -140,9 +143,7 @@ public function listContentTest() $nextPageToken = ''; $totalSize = 705419236; $contentElement = new Content(); - $content = [ - $contentElement, - ]; + $content = [$contentElement]; $expectedResponse = new ListContentResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -150,8 +151,7 @@ public function listContentTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListContentRequest()) - ->setParent($formattedParent); + $request = (new ListContentRequest())->setParent($formattedParent); $response = $gapicClient->listContent($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -178,17 +178,19 @@ public function listContentExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListContentRequest()) - ->setParent($formattedParent); + $request = (new ListContentRequest())->setParent($formattedParent); try { $gapicClient->listContent($request); // If the $gapicClient method call did not throw, fail the test @@ -219,8 +221,7 @@ public function getContentAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->contentName('[NETWORK_CODE]', '[CONTENT]'); - $request = (new GetContentRequest()) - ->setName($formattedName); + $request = (new GetContentRequest())->setName($formattedName); $response = $gapicClient->getContentAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php similarity index 89% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php index 54ad8e832664..647192ec112e 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/CreativeTemplateServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return CreativeTemplateServiceClient */ @@ -91,8 +93,7 @@ public function getCreativeTemplateTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->creativeTemplateName('[NETWORK_CODE]', '[CREATIVE_TEMPLATE]'); - $request = (new GetCreativeTemplateRequest()) - ->setName($formattedName); + $request = (new GetCreativeTemplateRequest())->setName($formattedName); $response = $gapicClient->getCreativeTemplate($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -116,17 +117,19 @@ public function getCreativeTemplateExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->creativeTemplateName('[NETWORK_CODE]', '[CREATIVE_TEMPLATE]'); - $request = (new GetCreativeTemplateRequest()) - ->setName($formattedName); + $request = (new GetCreativeTemplateRequest())->setName($formattedName); try { $gapicClient->getCreativeTemplate($request); // If the $gapicClient method call did not throw, fail the test @@ -152,9 +155,7 @@ public function listCreativeTemplatesTest() $nextPageToken = ''; $totalSize = 705419236; $creativeTemplatesElement = new CreativeTemplate(); - $creativeTemplates = [ - $creativeTemplatesElement, - ]; + $creativeTemplates = [$creativeTemplatesElement]; $expectedResponse = new ListCreativeTemplatesResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -162,8 +163,7 @@ public function listCreativeTemplatesTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCreativeTemplatesRequest()) - ->setParent($formattedParent); + $request = (new ListCreativeTemplatesRequest())->setParent($formattedParent); $response = $gapicClient->listCreativeTemplates($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -190,17 +190,19 @@ public function listCreativeTemplatesExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCreativeTemplatesRequest()) - ->setParent($formattedParent); + $request = (new ListCreativeTemplatesRequest())->setParent($formattedParent); try { $gapicClient->listCreativeTemplates($request); // If the $gapicClient method call did not throw, fail the test @@ -243,8 +245,7 @@ public function getCreativeTemplateAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->creativeTemplateName('[NETWORK_CODE]', '[CREATIVE_TEMPLATE]'); - $request = (new GetCreativeTemplateRequest()) - ->setName($formattedName); + $request = (new GetCreativeTemplateRequest())->setName($formattedName); $response = $gapicClient->getCreativeTemplateAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/AdsAdManager/tests/Unit/V1/Client/CustomFieldServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/CustomFieldServiceClientTest.php index b5cf6fa12850..674521bbfa74 100644 --- a/AdsAdManager/tests/Unit/V1/Client/CustomFieldServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/CustomFieldServiceClientTest.php @@ -22,15 +22,29 @@ namespace Google\Ads\AdManager\Tests\Unit\V1\Client; +use Google\Ads\AdManager\V1\BatchActivateCustomFieldsRequest; +use Google\Ads\AdManager\V1\BatchActivateCustomFieldsResponse; +use Google\Ads\AdManager\V1\BatchCreateCustomFieldsRequest; +use Google\Ads\AdManager\V1\BatchCreateCustomFieldsResponse; +use Google\Ads\AdManager\V1\BatchDeactivateCustomFieldsRequest; +use Google\Ads\AdManager\V1\BatchDeactivateCustomFieldsResponse; +use Google\Ads\AdManager\V1\BatchUpdateCustomFieldsRequest; +use Google\Ads\AdManager\V1\BatchUpdateCustomFieldsResponse; use Google\Ads\AdManager\V1\Client\CustomFieldServiceClient; +use Google\Ads\AdManager\V1\CreateCustomFieldRequest; use Google\Ads\AdManager\V1\CustomField; +use Google\Ads\AdManager\V1\CustomFieldDataTypeEnum\CustomFieldDataType; +use Google\Ads\AdManager\V1\CustomFieldEntityTypeEnum\CustomFieldEntityType; +use Google\Ads\AdManager\V1\CustomFieldVisibilityEnum\CustomFieldVisibility; use Google\Ads\AdManager\V1\GetCustomFieldRequest; use Google\Ads\AdManager\V1\ListCustomFieldsRequest; use Google\Ads\AdManager\V1\ListCustomFieldsResponse; +use Google\Ads\AdManager\V1\UpdateCustomFieldRequest; use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; +use Google\Protobuf\FieldMask; use Google\Rpc\Code; use stdClass; @@ -64,6 +78,365 @@ private function createClient(array $options = []) return new CustomFieldServiceClient($options); } + /** @test */ + public function batchActivateCustomFieldsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateCustomFieldsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]')]; + $request = (new BatchActivateCustomFieldsRequest())->setParent($formattedParent)->setNames($formattedNames); + $response = $gapicClient->batchActivateCustomFields($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchActivateCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateCustomFieldsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]')]; + $request = (new BatchActivateCustomFieldsRequest())->setParent($formattedParent)->setNames($formattedNames); + try { + $gapicClient->batchActivateCustomFields($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateCustomFieldsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateCustomFieldsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateCustomFieldsRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreateCustomFields($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchCreateCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateCustomFieldsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateCustomFieldsRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchCreateCustomFields($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateCustomFieldsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchDeactivateCustomFieldsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]')]; + $request = (new BatchDeactivateCustomFieldsRequest())->setParent($formattedParent)->setNames($formattedNames); + $response = $gapicClient->batchDeactivateCustomFields($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchDeactivateCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateCustomFieldsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]')]; + $request = (new BatchDeactivateCustomFieldsRequest())->setParent($formattedParent)->setNames($formattedNames); + try { + $gapicClient->batchDeactivateCustomFields($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateCustomFieldsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateCustomFieldsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateCustomFieldsRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchUpdateCustomFields($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchUpdateCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateCustomFieldsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateCustomFieldsRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchUpdateCustomFields($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomFieldTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $customFieldId = 66688114; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomField(); + $expectedResponse->setName($name); + $expectedResponse->setCustomFieldId($customFieldId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $customField = new CustomField(); + $customFieldDisplayName = 'customFieldDisplayName-1447155036'; + $customField->setDisplayName($customFieldDisplayName); + $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $customField->setEntityType($customFieldEntityType); + $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $customField->setDataType($customFieldDataType); + $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + $customField->setVisibility($customFieldVisibility); + $request = (new CreateCustomFieldRequest())->setParent($formattedParent)->setCustomField($customField); + $response = $gapicClient->createCustomField($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/CreateCustomField', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCustomField(); + $this->assertProtobufEquals($customField, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomFieldExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $customField = new CustomField(); + $customFieldDisplayName = 'customFieldDisplayName-1447155036'; + $customField->setDisplayName($customFieldDisplayName); + $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $customField->setEntityType($customFieldEntityType); + $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $customField->setDataType($customFieldDataType); + $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + $customField->setVisibility($customFieldVisibility); + $request = (new CreateCustomFieldRequest())->setParent($formattedParent)->setCustomField($customField); + try { + $gapicClient->createCustomField($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function getCustomFieldTest() { @@ -209,7 +582,7 @@ public function listCustomFieldsExceptionTest() } /** @test */ - public function getCustomFieldAsyncTest() + public function updateCustomFieldTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -217,28 +590,114 @@ public function getCustomFieldAsyncTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $name2 = 'name2-1052831874'; + $name = 'name3373707'; $customFieldId = 66688114; $displayName = 'displayName1615086568'; $description = 'description-1724546052'; $expectedResponse = new CustomField(); - $expectedResponse->setName($name2); + $expectedResponse->setName($name); $expectedResponse->setCustomFieldId($customFieldId); $expectedResponse->setDisplayName($displayName); $expectedResponse->setDescription($description); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); - $request = (new GetCustomFieldRequest())->setName($formattedName); - $response = $gapicClient->getCustomFieldAsync($request)->wait(); + $customField = new CustomField(); + $customFieldDisplayName = 'customFieldDisplayName-1447155036'; + $customField->setDisplayName($customFieldDisplayName); + $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $customField->setEntityType($customFieldEntityType); + $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $customField->setDataType($customFieldDataType); + $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + $customField->setVisibility($customFieldVisibility); + $updateMask = new FieldMask(); + $request = (new UpdateCustomFieldRequest())->setCustomField($customField)->setUpdateMask($updateMask); + $response = $gapicClient->updateCustomField($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/GetCustomField', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/UpdateCustomField', $actualFuncCall); + $actualValue = $actualRequestObject->getCustomField(); + $this->assertProtobufEquals($customField, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomFieldExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $customField = new CustomField(); + $customFieldDisplayName = 'customFieldDisplayName-1447155036'; + $customField->setDisplayName($customFieldDisplayName); + $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; + $customField->setEntityType($customFieldEntityType); + $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; + $customField->setDataType($customFieldDataType); + $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; + $customField->setVisibility($customFieldVisibility); + $updateMask = new FieldMask(); + $request = (new UpdateCustomFieldRequest())->setCustomField($customField)->setUpdateMask($updateMask); + try { + $gapicClient->updateCustomField($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateCustomFieldsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateCustomFieldsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]')]; + $request = (new BatchActivateCustomFieldsRequest())->setParent($formattedParent)->setNames($formattedNames); + $response = $gapicClient->batchActivateCustomFieldsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchActivateCustomFields', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); $this->assertTrue($transport->isExhausted()); } } diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php index 2c3d318d6284..b9a2dba83e46 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/DeviceCapabilityServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return DeviceCapabilityServiceClient */ @@ -79,8 +81,7 @@ public function getDeviceCapabilityTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->deviceCapabilityName('[NETWORK_CODE]', '[DEVICE_CAPABILITY]'); - $request = (new GetDeviceCapabilityRequest()) - ->setName($formattedName); + $request = (new GetDeviceCapabilityRequest())->setName($formattedName); $response = $gapicClient->getDeviceCapability($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -104,17 +105,19 @@ public function getDeviceCapabilityExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->deviceCapabilityName('[NETWORK_CODE]', '[DEVICE_CAPABILITY]'); - $request = (new GetDeviceCapabilityRequest()) - ->setName($formattedName); + $request = (new GetDeviceCapabilityRequest())->setName($formattedName); try { $gapicClient->getDeviceCapability($request); // If the $gapicClient method call did not throw, fail the test @@ -140,9 +143,7 @@ public function listDeviceCapabilitiesTest() $nextPageToken = ''; $totalSize = 705419236; $deviceCapabilitiesElement = new DeviceCapability(); - $deviceCapabilities = [ - $deviceCapabilitiesElement, - ]; + $deviceCapabilities = [$deviceCapabilitiesElement]; $expectedResponse = new ListDeviceCapabilitiesResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -150,8 +151,7 @@ public function listDeviceCapabilitiesTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListDeviceCapabilitiesRequest()) - ->setParent($formattedParent); + $request = (new ListDeviceCapabilitiesRequest())->setParent($formattedParent); $response = $gapicClient->listDeviceCapabilities($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -178,17 +178,19 @@ public function listDeviceCapabilitiesExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListDeviceCapabilitiesRequest()) - ->setParent($formattedParent); + $request = (new ListDeviceCapabilitiesRequest())->setParent($formattedParent); try { $gapicClient->listDeviceCapabilities($request); // If the $gapicClient method call did not throw, fail the test @@ -219,8 +221,7 @@ public function getDeviceCapabilityAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->deviceCapabilityName('[NETWORK_CODE]', '[DEVICE_CAPABILITY]'); - $request = (new GetDeviceCapabilityRequest()) - ->setName($formattedName); + $request = (new GetDeviceCapabilityRequest())->setName($formattedName); $response = $gapicClient->getDeviceCapabilityAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php similarity index 86% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php index 903f3cd8e22e..de411f648db3 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/DeviceManufacturerServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return DeviceManufacturerServiceClient */ @@ -79,8 +81,7 @@ public function getDeviceManufacturerTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->deviceManufacturerName('[NETWORK_CODE]', '[DEVICE_MANUFACTURER]'); - $request = (new GetDeviceManufacturerRequest()) - ->setName($formattedName); + $request = (new GetDeviceManufacturerRequest())->setName($formattedName); $response = $gapicClient->getDeviceManufacturer($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -104,17 +105,19 @@ public function getDeviceManufacturerExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->deviceManufacturerName('[NETWORK_CODE]', '[DEVICE_MANUFACTURER]'); - $request = (new GetDeviceManufacturerRequest()) - ->setName($formattedName); + $request = (new GetDeviceManufacturerRequest())->setName($formattedName); try { $gapicClient->getDeviceManufacturer($request); // If the $gapicClient method call did not throw, fail the test @@ -140,9 +143,7 @@ public function listDeviceManufacturersTest() $nextPageToken = ''; $totalSize = 705419236; $deviceManufacturersElement = new DeviceManufacturer(); - $deviceManufacturers = [ - $deviceManufacturersElement, - ]; + $deviceManufacturers = [$deviceManufacturersElement]; $expectedResponse = new ListDeviceManufacturersResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -150,8 +151,7 @@ public function listDeviceManufacturersTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListDeviceManufacturersRequest()) - ->setParent($formattedParent); + $request = (new ListDeviceManufacturersRequest())->setParent($formattedParent); $response = $gapicClient->listDeviceManufacturers($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -161,7 +161,10 @@ public function listDeviceManufacturersTest() $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.DeviceManufacturerService/ListDeviceManufacturers', $actualFuncCall); + $this->assertSame( + '/google.ads.admanager.v1.DeviceManufacturerService/ListDeviceManufacturers', + $actualFuncCall + ); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -178,17 +181,19 @@ public function listDeviceManufacturersExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListDeviceManufacturersRequest()) - ->setParent($formattedParent); + $request = (new ListDeviceManufacturersRequest())->setParent($formattedParent); try { $gapicClient->listDeviceManufacturers($request); // If the $gapicClient method call did not throw, fail the test @@ -219,8 +224,7 @@ public function getDeviceManufacturerAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->deviceManufacturerName('[NETWORK_CODE]', '[DEVICE_MANUFACTURER]'); - $request = (new GetDeviceManufacturerRequest()) - ->setName($formattedName); + $request = (new GetDeviceManufacturerRequest())->setName($formattedName); $response = $gapicClient->getDeviceManufacturerAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php index 7ba5d6486fdf..05dc1e46e192 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/MobileCarrierServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return MobileCarrierServiceClient */ @@ -81,8 +83,7 @@ public function getMobileCarrierTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->mobileCarrierName('[NETWORK_CODE]', '[MOBILE_CARRIER]'); - $request = (new GetMobileCarrierRequest()) - ->setName($formattedName); + $request = (new GetMobileCarrierRequest())->setName($formattedName); $response = $gapicClient->getMobileCarrier($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -106,17 +107,19 @@ public function getMobileCarrierExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->mobileCarrierName('[NETWORK_CODE]', '[MOBILE_CARRIER]'); - $request = (new GetMobileCarrierRequest()) - ->setName($formattedName); + $request = (new GetMobileCarrierRequest())->setName($formattedName); try { $gapicClient->getMobileCarrier($request); // If the $gapicClient method call did not throw, fail the test @@ -142,9 +145,7 @@ public function listMobileCarriersTest() $nextPageToken = ''; $totalSize = 705419236; $mobileCarriersElement = new MobileCarrier(); - $mobileCarriers = [ - $mobileCarriersElement, - ]; + $mobileCarriers = [$mobileCarriersElement]; $expectedResponse = new ListMobileCarriersResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -152,8 +153,7 @@ public function listMobileCarriersTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListMobileCarriersRequest()) - ->setParent($formattedParent); + $request = (new ListMobileCarriersRequest())->setParent($formattedParent); $response = $gapicClient->listMobileCarriers($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -180,17 +180,19 @@ public function listMobileCarriersExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListMobileCarriersRequest()) - ->setParent($formattedParent); + $request = (new ListMobileCarriersRequest())->setParent($formattedParent); try { $gapicClient->listMobileCarriers($request); // If the $gapicClient method call did not throw, fail the test @@ -223,8 +225,7 @@ public function getMobileCarrierAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->mobileCarrierName('[NETWORK_CODE]', '[MOBILE_CARRIER]'); - $request = (new GetMobileCarrierRequest()) - ->setName($formattedName); + $request = (new GetMobileCarrierRequest())->setName($formattedName); $response = $gapicClient->getMobileCarrierAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php similarity index 88% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php index f6f887c1ad5e..20808050abc2 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/MobileDeviceServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return MobileDeviceServiceClient */ @@ -81,8 +83,7 @@ public function getMobileDeviceTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->mobileDeviceName('[NETWORK_CODE]', '[MOBILE_DEVICE]'); - $request = (new GetMobileDeviceRequest()) - ->setName($formattedName); + $request = (new GetMobileDeviceRequest())->setName($formattedName); $response = $gapicClient->getMobileDevice($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -106,17 +107,19 @@ public function getMobileDeviceExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->mobileDeviceName('[NETWORK_CODE]', '[MOBILE_DEVICE]'); - $request = (new GetMobileDeviceRequest()) - ->setName($formattedName); + $request = (new GetMobileDeviceRequest())->setName($formattedName); try { $gapicClient->getMobileDevice($request); // If the $gapicClient method call did not throw, fail the test @@ -142,9 +145,7 @@ public function listMobileDevicesTest() $nextPageToken = ''; $totalSize = 705419236; $mobileDevicesElement = new MobileDevice(); - $mobileDevices = [ - $mobileDevicesElement, - ]; + $mobileDevices = [$mobileDevicesElement]; $expectedResponse = new ListMobileDevicesResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -152,8 +153,7 @@ public function listMobileDevicesTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListMobileDevicesRequest()) - ->setParent($formattedParent); + $request = (new ListMobileDevicesRequest())->setParent($formattedParent); $response = $gapicClient->listMobileDevices($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -180,17 +180,19 @@ public function listMobileDevicesExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListMobileDevicesRequest()) - ->setParent($formattedParent); + $request = (new ListMobileDevicesRequest())->setParent($formattedParent); try { $gapicClient->listMobileDevices($request); // If the $gapicClient method call did not throw, fail the test @@ -223,8 +225,7 @@ public function getMobileDeviceAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->mobileDeviceName('[NETWORK_CODE]', '[MOBILE_DEVICE]'); - $request = (new GetMobileDeviceRequest()) - ->setName($formattedName); + $request = (new GetMobileDeviceRequest())->setName($formattedName); $response = $gapicClient->getMobileDeviceAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php similarity index 83% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php index 4fd765f64783..1b0f4feb3545 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/MobileDeviceSubmodelServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return MobileDeviceSubmodelServiceClient */ @@ -81,15 +83,17 @@ public function getMobileDeviceSubmodelTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->mobileDeviceSubmodelName('[NETWORK_CODE]', '[MOBILE_DEVICE_SUBMODEL]'); - $request = (new GetMobileDeviceSubmodelRequest()) - ->setName($formattedName); + $request = (new GetMobileDeviceSubmodelRequest())->setName($formattedName); $response = $gapicClient->getMobileDeviceSubmodel($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.MobileDeviceSubmodelService/GetMobileDeviceSubmodel', $actualFuncCall); + $this->assertSame( + '/google.ads.admanager.v1.MobileDeviceSubmodelService/GetMobileDeviceSubmodel', + $actualFuncCall + ); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -106,17 +110,19 @@ public function getMobileDeviceSubmodelExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->mobileDeviceSubmodelName('[NETWORK_CODE]', '[MOBILE_DEVICE_SUBMODEL]'); - $request = (new GetMobileDeviceSubmodelRequest()) - ->setName($formattedName); + $request = (new GetMobileDeviceSubmodelRequest())->setName($formattedName); try { $gapicClient->getMobileDeviceSubmodel($request); // If the $gapicClient method call did not throw, fail the test @@ -142,9 +148,7 @@ public function listMobileDeviceSubmodelsTest() $nextPageToken = ''; $totalSize = 705419236; $mobileDeviceSubmodelsElement = new MobileDeviceSubmodel(); - $mobileDeviceSubmodels = [ - $mobileDeviceSubmodelsElement, - ]; + $mobileDeviceSubmodels = [$mobileDeviceSubmodelsElement]; $expectedResponse = new ListMobileDeviceSubmodelsResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -152,8 +156,7 @@ public function listMobileDeviceSubmodelsTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListMobileDeviceSubmodelsRequest()) - ->setParent($formattedParent); + $request = (new ListMobileDeviceSubmodelsRequest())->setParent($formattedParent); $response = $gapicClient->listMobileDeviceSubmodels($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -163,7 +166,10 @@ public function listMobileDeviceSubmodelsTest() $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.MobileDeviceSubmodelService/ListMobileDeviceSubmodels', $actualFuncCall); + $this->assertSame( + '/google.ads.admanager.v1.MobileDeviceSubmodelService/ListMobileDeviceSubmodels', + $actualFuncCall + ); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -180,17 +186,19 @@ public function listMobileDeviceSubmodelsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListMobileDeviceSubmodelsRequest()) - ->setParent($formattedParent); + $request = (new ListMobileDeviceSubmodelsRequest())->setParent($formattedParent); try { $gapicClient->listMobileDeviceSubmodels($request); // If the $gapicClient method call did not throw, fail the test @@ -223,15 +231,17 @@ public function getMobileDeviceSubmodelAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->mobileDeviceSubmodelName('[NETWORK_CODE]', '[MOBILE_DEVICE_SUBMODEL]'); - $request = (new GetMobileDeviceSubmodelRequest()) - ->setName($formattedName); + $request = (new GetMobileDeviceSubmodelRequest())->setName($formattedName); $response = $gapicClient->getMobileDeviceSubmodelAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.MobileDeviceSubmodelService/GetMobileDeviceSubmodel', $actualFuncCall); + $this->assertSame( + '/google.ads.admanager.v1.MobileDeviceSubmodelService/GetMobileDeviceSubmodel', + $actualFuncCall + ); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); diff --git a/AdsAdManager/tests/Unit/V1/Client/PlacementServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/PlacementServiceClientTest.php index 71dbca739c66..6359ee17e329 100644 --- a/AdsAdManager/tests/Unit/V1/Client/PlacementServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/PlacementServiceClientTest.php @@ -22,15 +22,28 @@ namespace Google\Ads\AdManager\Tests\Unit\V1\Client; +use Google\Ads\AdManager\V1\BatchActivatePlacementsRequest; +use Google\Ads\AdManager\V1\BatchActivatePlacementsResponse; +use Google\Ads\AdManager\V1\BatchArchivePlacementsRequest; +use Google\Ads\AdManager\V1\BatchArchivePlacementsResponse; +use Google\Ads\AdManager\V1\BatchCreatePlacementsRequest; +use Google\Ads\AdManager\V1\BatchCreatePlacementsResponse; +use Google\Ads\AdManager\V1\BatchDeactivatePlacementsRequest; +use Google\Ads\AdManager\V1\BatchDeactivatePlacementsResponse; +use Google\Ads\AdManager\V1\BatchUpdatePlacementsRequest; +use Google\Ads\AdManager\V1\BatchUpdatePlacementsResponse; use Google\Ads\AdManager\V1\Client\PlacementServiceClient; +use Google\Ads\AdManager\V1\CreatePlacementRequest; use Google\Ads\AdManager\V1\GetPlacementRequest; use Google\Ads\AdManager\V1\ListPlacementsRequest; use Google\Ads\AdManager\V1\ListPlacementsResponse; use Google\Ads\AdManager\V1\Placement; +use Google\Ads\AdManager\V1\UpdatePlacementRequest; use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; +use Google\Protobuf\FieldMask; use Google\Rpc\Code; use stdClass; @@ -64,6 +77,422 @@ private function createClient(array $options = []) return new PlacementServiceClient($options); } + /** @test */ + public function batchActivatePlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivatePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]')]; + $request = (new BatchActivatePlacementsRequest())->setParent($formattedParent)->setNames($formattedNames); + $response = $gapicClient->batchActivatePlacements($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchActivatePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivatePlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]')]; + $request = (new BatchActivatePlacementsRequest())->setParent($formattedParent)->setNames($formattedNames); + try { + $gapicClient->batchActivatePlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchArchivePlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchArchivePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]')]; + $request = (new BatchArchivePlacementsRequest())->setParent($formattedParent)->setNames($formattedNames); + $response = $gapicClient->batchArchivePlacements($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchArchivePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchArchivePlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]')]; + $request = (new BatchArchivePlacementsRequest())->setParent($formattedParent)->setNames($formattedNames); + try { + $gapicClient->batchArchivePlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreatePlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreatePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreatePlacementsRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreatePlacements($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchCreatePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreatePlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreatePlacementsRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchCreatePlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivatePlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchDeactivatePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]')]; + $request = (new BatchDeactivatePlacementsRequest())->setParent($formattedParent)->setNames($formattedNames); + $response = $gapicClient->batchDeactivatePlacements($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchDeactivatePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivatePlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]')]; + $request = (new BatchDeactivatePlacementsRequest())->setParent($formattedParent)->setNames($formattedNames); + try { + $gapicClient->batchDeactivatePlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdatePlacementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdatePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdatePlacementsRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchUpdatePlacements($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchUpdatePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdatePlacementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdatePlacementsRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchUpdatePlacements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPlacementTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $placementId = 1224358069; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $placementCode = 'placementCode-213099769'; + $expectedResponse = new Placement(); + $expectedResponse->setName($name); + $expectedResponse->setPlacementId($placementId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setPlacementCode($placementCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $placement = new Placement(); + $placementDisplayName = 'placementDisplayName-410969528'; + $placement->setDisplayName($placementDisplayName); + $request = (new CreatePlacementRequest())->setParent($formattedParent)->setPlacement($placement); + $response = $gapicClient->createPlacement($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/CreatePlacement', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getPlacement(); + $this->assertProtobufEquals($placement, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPlacementExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $placement = new Placement(); + $placementDisplayName = 'placementDisplayName-410969528'; + $placement->setDisplayName($placementDisplayName); + $request = (new CreatePlacementRequest())->setParent($formattedParent)->setPlacement($placement); + try { + $gapicClient->createPlacement($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function getPlacementTest() { @@ -211,7 +640,7 @@ public function listPlacementsExceptionTest() } /** @test */ - public function getPlacementAsyncTest() + public function updatePlacementTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -219,30 +648,104 @@ public function getPlacementAsyncTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $name2 = 'name2-1052831874'; + $name = 'name3373707'; $placementId = 1224358069; $displayName = 'displayName1615086568'; $description = 'description-1724546052'; $placementCode = 'placementCode-213099769'; $expectedResponse = new Placement(); - $expectedResponse->setName($name2); + $expectedResponse->setName($name); $expectedResponse->setPlacementId($placementId); $expectedResponse->setDisplayName($displayName); $expectedResponse->setDescription($description); $expectedResponse->setPlacementCode($placementCode); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'); - $request = (new GetPlacementRequest())->setName($formattedName); - $response = $gapicClient->getPlacementAsync($request)->wait(); + $placement = new Placement(); + $placementDisplayName = 'placementDisplayName-410969528'; + $placement->setDisplayName($placementDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdatePlacementRequest())->setPlacement($placement)->setUpdateMask($updateMask); + $response = $gapicClient->updatePlacement($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/GetPlacement', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertSame('/google.ads.admanager.v1.PlacementService/UpdatePlacement', $actualFuncCall); + $actualValue = $actualRequestObject->getPlacement(); + $this->assertProtobufEquals($placement, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePlacementExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $placement = new Placement(); + $placementDisplayName = 'placementDisplayName-410969528'; + $placement->setDisplayName($placementDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdatePlacementRequest())->setPlacement($placement)->setUpdateMask($updateMask); + try { + $gapicClient->updatePlacement($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivatePlacementsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivatePlacementsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]')]; + $request = (new BatchActivatePlacementsRequest())->setParent($formattedParent)->setNames($formattedNames); + $response = $gapicClient->batchActivatePlacementsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchActivatePlacements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); $this->assertTrue($transport->isExhausted()); } } diff --git a/AdsAdManager/tests/Unit/V1/Client/ReportServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/ReportServiceClientTest.php index f9078d83360d..7b93cc03c5cf 100644 --- a/AdsAdManager/tests/Unit/V1/Client/ReportServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/ReportServiceClientTest.php @@ -31,8 +31,8 @@ use Google\Ads\AdManager\V1\ListReportsResponse; use Google\Ads\AdManager\V1\Report; use Google\Ads\AdManager\V1\ReportDefinition; -use Google\Ads\AdManager\V1\Report\DateRange; -use Google\Ads\AdManager\V1\Report\ReportType; +use Google\Ads\AdManager\V1\ReportDefinition\DateRange; +use Google\Ads\AdManager\V1\ReportDefinition\ReportType; use Google\Ads\AdManager\V1\RunReportRequest; use Google\Ads\AdManager\V1\RunReportResponse; use Google\Ads\AdManager\V1\UpdateReportRequest; diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/SiteServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/SiteServiceClientTest.php similarity index 85% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/SiteServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/SiteServiceClientTest.php index 5d746602fb93..de9c3b58ad45 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/SiteServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/SiteServiceClientTest.php @@ -61,7 +61,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return SiteServiceClient */ @@ -87,9 +89,7 @@ public function batchCreateSitesTest() // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchCreateSitesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchCreateSitesRequest())->setParent($formattedParent)->setRequests($requests); $response = $gapicClient->batchCreateSites($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -115,19 +115,20 @@ public function batchCreateSitesExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchCreateSitesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchCreateSitesRequest())->setParent($formattedParent)->setRequests($requests); try { $gapicClient->batchCreateSites($request); // If the $gapicClient method call did not throw, fail the test @@ -155,9 +156,7 @@ public function batchDeactivateSitesTest() // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $names = []; - $request = (new BatchDeactivateSitesRequest()) - ->setParent($formattedParent) - ->setNames($names); + $request = (new BatchDeactivateSitesRequest())->setParent($formattedParent)->setNames($names); $response = $gapicClient->batchDeactivateSites($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -183,19 +182,20 @@ public function batchDeactivateSitesExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $names = []; - $request = (new BatchDeactivateSitesRequest()) - ->setParent($formattedParent) - ->setNames($names); + $request = (new BatchDeactivateSitesRequest())->setParent($formattedParent)->setNames($names); try { $gapicClient->batchDeactivateSites($request); // If the $gapicClient method call did not throw, fail the test @@ -223,9 +223,7 @@ public function batchSubmitSitesForApprovalTest() // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $names = []; - $request = (new BatchSubmitSitesForApprovalRequest()) - ->setParent($formattedParent) - ->setNames($names); + $request = (new BatchSubmitSitesForApprovalRequest())->setParent($formattedParent)->setNames($names); $response = $gapicClient->batchSubmitSitesForApproval($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -251,19 +249,20 @@ public function batchSubmitSitesForApprovalExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $names = []; - $request = (new BatchSubmitSitesForApprovalRequest()) - ->setParent($formattedParent) - ->setNames($names); + $request = (new BatchSubmitSitesForApprovalRequest())->setParent($formattedParent)->setNames($names); try { $gapicClient->batchSubmitSitesForApproval($request); // If the $gapicClient method call did not throw, fail the test @@ -291,9 +290,7 @@ public function batchUpdateSitesTest() // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchUpdateSitesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchUpdateSitesRequest())->setParent($formattedParent)->setRequests($requests); $response = $gapicClient->batchUpdateSites($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -319,19 +316,20 @@ public function batchUpdateSitesExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchUpdateSitesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchUpdateSitesRequest())->setParent($formattedParent)->setRequests($requests); try { $gapicClient->batchUpdateSites($request); // If the $gapicClient method call did not throw, fail the test @@ -367,9 +365,7 @@ public function createSiteTest() $site = new Site(); $siteUrl = 'siteUrl2099991720'; $site->setUrl($siteUrl); - $request = (new CreateSiteRequest()) - ->setParent($formattedParent) - ->setSite($site); + $request = (new CreateSiteRequest())->setParent($formattedParent)->setSite($site); $response = $gapicClient->createSite($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -395,21 +391,22 @@ public function createSiteExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $site = new Site(); $siteUrl = 'siteUrl2099991720'; $site->setUrl($siteUrl); - $request = (new CreateSiteRequest()) - ->setParent($formattedParent) - ->setSite($site); + $request = (new CreateSiteRequest())->setParent($formattedParent)->setSite($site); try { $gapicClient->createSite($request); // If the $gapicClient method call did not throw, fail the test @@ -442,8 +439,7 @@ public function getSiteTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->siteName('[NETWORK_CODE]', '[SITE]'); - $request = (new GetSiteRequest()) - ->setName($formattedName); + $request = (new GetSiteRequest())->setName($formattedName); $response = $gapicClient->getSite($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -467,17 +463,19 @@ public function getSiteExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->siteName('[NETWORK_CODE]', '[SITE]'); - $request = (new GetSiteRequest()) - ->setName($formattedName); + $request = (new GetSiteRequest())->setName($formattedName); try { $gapicClient->getSite($request); // If the $gapicClient method call did not throw, fail the test @@ -503,9 +501,7 @@ public function listSitesTest() $nextPageToken = ''; $totalSize = 705419236; $sitesElement = new Site(); - $sites = [ - $sitesElement, - ]; + $sites = [$sitesElement]; $expectedResponse = new ListSitesResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -513,8 +509,7 @@ public function listSitesTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListSitesRequest()) - ->setParent($formattedParent); + $request = (new ListSitesRequest())->setParent($formattedParent); $response = $gapicClient->listSites($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -541,17 +536,19 @@ public function listSitesExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListSitesRequest()) - ->setParent($formattedParent); + $request = (new ListSitesRequest())->setParent($formattedParent); try { $gapicClient->listSites($request); // If the $gapicClient method call did not throw, fail the test @@ -587,9 +584,7 @@ public function updateSiteTest() $siteUrl = 'siteUrl2099991720'; $site->setUrl($siteUrl); $updateMask = new FieldMask(); - $request = (new UpdateSiteRequest()) - ->setSite($site) - ->setUpdateMask($updateMask); + $request = (new UpdateSiteRequest())->setSite($site)->setUpdateMask($updateMask); $response = $gapicClient->updateSite($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -615,21 +610,22 @@ public function updateSiteExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $site = new Site(); $siteUrl = 'siteUrl2099991720'; $site->setUrl($siteUrl); $updateMask = new FieldMask(); - $request = (new UpdateSiteRequest()) - ->setSite($site) - ->setUpdateMask($updateMask); + $request = (new UpdateSiteRequest())->setSite($site)->setUpdateMask($updateMask); try { $gapicClient->updateSite($request); // If the $gapicClient method call did not throw, fail the test @@ -657,9 +653,7 @@ public function batchCreateSitesAsyncTest() // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchCreateSitesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchCreateSitesRequest())->setParent($formattedParent)->setRequests($requests); $response = $gapicClient->batchCreateSitesAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TeamServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/TeamServiceClientTest.php similarity index 84% rename from owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TeamServiceClientTest.php rename to AdsAdManager/tests/Unit/V1/Client/TeamServiceClientTest.php index 86010c4a23ce..3ed5c7c67a7d 100644 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TeamServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/TeamServiceClientTest.php @@ -61,7 +61,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return TeamServiceClient */ @@ -86,12 +88,8 @@ public function batchActivateTeamsTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'), - ]; - $request = (new BatchActivateTeamsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $formattedNames = [$gapicClient->teamName('[NETWORK_CODE]', '[TEAM]')]; + $request = (new BatchActivateTeamsRequest())->setParent($formattedParent)->setNames($formattedNames); $response = $gapicClient->batchActivateTeams($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -117,21 +115,20 @@ public function batchActivateTeamsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'), - ]; - $request = (new BatchActivateTeamsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $formattedNames = [$gapicClient->teamName('[NETWORK_CODE]', '[TEAM]')]; + $request = (new BatchActivateTeamsRequest())->setParent($formattedParent)->setNames($formattedNames); try { $gapicClient->batchActivateTeams($request); // If the $gapicClient method call did not throw, fail the test @@ -159,9 +156,7 @@ public function batchCreateTeamsTest() // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchCreateTeamsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchCreateTeamsRequest())->setParent($formattedParent)->setRequests($requests); $response = $gapicClient->batchCreateTeams($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -187,19 +182,20 @@ public function batchCreateTeamsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchCreateTeamsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchCreateTeamsRequest())->setParent($formattedParent)->setRequests($requests); try { $gapicClient->batchCreateTeams($request); // If the $gapicClient method call did not throw, fail the test @@ -226,12 +222,8 @@ public function batchDeactivateTeamsTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'), - ]; - $request = (new BatchDeactivateTeamsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $formattedNames = [$gapicClient->teamName('[NETWORK_CODE]', '[TEAM]')]; + $request = (new BatchDeactivateTeamsRequest())->setParent($formattedParent)->setNames($formattedNames); $response = $gapicClient->batchDeactivateTeams($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -257,21 +249,20 @@ public function batchDeactivateTeamsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'), - ]; - $request = (new BatchDeactivateTeamsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $formattedNames = [$gapicClient->teamName('[NETWORK_CODE]', '[TEAM]')]; + $request = (new BatchDeactivateTeamsRequest())->setParent($formattedParent)->setNames($formattedNames); try { $gapicClient->batchDeactivateTeams($request); // If the $gapicClient method call did not throw, fail the test @@ -299,9 +290,7 @@ public function batchUpdateTeamsTest() // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchUpdateTeamsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchUpdateTeamsRequest())->setParent($formattedParent)->setRequests($requests); $response = $gapicClient->batchUpdateTeams($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -327,19 +316,20 @@ public function batchUpdateTeamsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $requests = []; - $request = (new BatchUpdateTeamsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); + $request = (new BatchUpdateTeamsRequest())->setParent($formattedParent)->setRequests($requests); try { $gapicClient->batchUpdateTeams($request); // If the $gapicClient method call did not throw, fail the test @@ -379,9 +369,7 @@ public function createTeamTest() $team = new Team(); $teamDisplayName = 'teamDisplayName1137381328'; $team->setDisplayName($teamDisplayName); - $request = (new CreateTeamRequest()) - ->setParent($formattedParent) - ->setTeam($team); + $request = (new CreateTeamRequest())->setParent($formattedParent)->setTeam($team); $response = $gapicClient->createTeam($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -407,21 +395,22 @@ public function createTeamExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); $team = new Team(); $teamDisplayName = 'teamDisplayName1137381328'; $team->setDisplayName($teamDisplayName); - $request = (new CreateTeamRequest()) - ->setParent($formattedParent) - ->setTeam($team); + $request = (new CreateTeamRequest())->setParent($formattedParent)->setTeam($team); try { $gapicClient->createTeam($request); // If the $gapicClient method call did not throw, fail the test @@ -458,8 +447,7 @@ public function getTeamTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'); - $request = (new GetTeamRequest()) - ->setName($formattedName); + $request = (new GetTeamRequest())->setName($formattedName); $response = $gapicClient->getTeam($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -483,17 +471,19 @@ public function getTeamExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'); - $request = (new GetTeamRequest()) - ->setName($formattedName); + $request = (new GetTeamRequest())->setName($formattedName); try { $gapicClient->getTeam($request); // If the $gapicClient method call did not throw, fail the test @@ -519,9 +509,7 @@ public function listTeamsTest() $nextPageToken = ''; $totalSize = 705419236; $teamsElement = new Team(); - $teams = [ - $teamsElement, - ]; + $teams = [$teamsElement]; $expectedResponse = new ListTeamsResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setTotalSize($totalSize); @@ -529,8 +517,7 @@ public function listTeamsTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListTeamsRequest()) - ->setParent($formattedParent); + $request = (new ListTeamsRequest())->setParent($formattedParent); $response = $gapicClient->listTeams($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -557,17 +544,19 @@ public function listTeamsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListTeamsRequest()) - ->setParent($formattedParent); + $request = (new ListTeamsRequest())->setParent($formattedParent); try { $gapicClient->listTeams($request); // If the $gapicClient method call did not throw, fail the test @@ -607,9 +596,7 @@ public function updateTeamTest() $teamDisplayName = 'teamDisplayName1137381328'; $team->setDisplayName($teamDisplayName); $updateMask = new FieldMask(); - $request = (new UpdateTeamRequest()) - ->setTeam($team) - ->setUpdateMask($updateMask); + $request = (new UpdateTeamRequest())->setTeam($team)->setUpdateMask($updateMask); $response = $gapicClient->updateTeam($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -635,21 +622,22 @@ public function updateTeamExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $team = new Team(); $teamDisplayName = 'teamDisplayName1137381328'; $team->setDisplayName($teamDisplayName); $updateMask = new FieldMask(); - $request = (new UpdateTeamRequest()) - ->setTeam($team) - ->setUpdateMask($updateMask); + $request = (new UpdateTeamRequest())->setTeam($team)->setUpdateMask($updateMask); try { $gapicClient->updateTeam($request); // If the $gapicClient method call did not throw, fail the test @@ -676,12 +664,8 @@ public function batchActivateTeamsAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->teamName('[NETWORK_CODE]', '[TEAM]'), - ]; - $request = (new BatchActivateTeamsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $formattedNames = [$gapicClient->teamName('[NETWORK_CODE]', '[TEAM]')]; + $request = (new BatchActivateTeamsRequest())->setParent($formattedParent)->setNames($formattedNames); $response = $gapicClient->batchActivateTeamsAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakMessages.php deleted file mode 100644 index 590808506f7759c04fb3a418456ef0a86928f1ca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2104 zcmb7FQE%He5T5MBvFR>N++cMxpk>z%b%#xYQ*;l?vdu!$xERs|ZI*{YfIv&MLqrxe zk@DsRe%~JUKZgB}0mFVpp8G3ylqflFQXn-TTjqUtB)|La?wjx8(-=L%`!u2nku<=A zDVC=c#|f9*=OG@X!y!$u&&M$fX<}l$dx&2h9^<{;m&XsmRq!jard(@ZZ8n<=rHa{cN-x; zBtqa`;HYQ^Iv6@f7(Q`22$_$CBocleGvTp_Nk&5U8{BCJ4@oE}#JGwbrjaihkFat$ zjC|U8iu0HX`#9#n!458tb);wkO5B%`q)9|Vcb5u3VX@@N5kPHwL}f{)TIoF1+p2JE zh&%ZiZTre0cd$%SdUJ2opd2MXo zy97uyd)jngo3bJTC0c=|NZX6prCk<0a|PIXM9UsWNVqk3`sb}jR}cg3$zkaDZ^mz3L& zsF`;pRf@E|0-mc|Ul*S5X3NxMy-{FQI139ZY_-3v!eX?l!_uEq3Z0}~hsf0&QB#OV zXg%hEC+Rp2A()qO-vCg?z0qG$par=7A>CO+tHqW%%T5cedGFBb{A-|3fvxu` z!`aX@7Q-m(Jx9h*-)r%Xcu1m=$&-;aqERMg-9%I(fV{;~xm~8~@5;TW6l%4I%eBfM~PpTl8f6Z*l Mkol09p&3H|0~}|rU;qFB diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakService.php deleted file mode 100644 index 6555a4c8a1fc..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdBreakService.php +++ /dev/null @@ -1,68 +0,0 @@ -internalAddGeneratedFile( - ' -ä -.google/ads/admanager/v1/ad_break_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto"K -GetAdBreakRequest6 -name ( B(àAúA" - admanager.googleapis.com/AdBreak"Ç -ListAdBreaksRequest@ -parent ( B0àAúA* -(admanager.googleapis.com/LiveStreamEvent - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"x -ListAdBreaksResponse3 - ad_breaks ( 2 .google.ads.admanager.v1.AdBreak -next_page_token (  - -total_size ("‘ -CreateAdBreakRequest@ -parent ( B0àAúA* -(admanager.googleapis.com/LiveStreamEvent7 -ad_break ( 2 .google.ads.admanager.v1.AdBreakBàA"… -UpdateAdBreakRequest7 -ad_break ( 2 .google.ads.admanager.v1.AdBreakBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"N -DeleteAdBreakRequest6 -name ( B(àAúA" - admanager.googleapis.com/AdBreak2— -AdBreakService¨ - -GetAdBreak*.google.ads.admanager.v1.GetAdBreakRequest .google.ads.admanager.v1.AdBreak"ËÚAname‚Ó䓽=/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}ZEC/v1/{name=networks/*/liveStreamEventsByCustomAssetKey/*/adBreaks/*}Z53/v1/{name=networks/*/liveStreamEvents/*/adBreaks/*}» - ListAdBreaks,.google.ads.admanager.v1.ListAdBreaksRequest-.google.ads.admanager.v1.ListAdBreaksResponse"ÍÚAparent‚Ó䓽=/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaksZEC/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaksZ53/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks× - CreateAdBreak-.google.ads.admanager.v1.CreateAdBreakRequest .google.ads.admanager.v1.AdBreak"ôÚAparent,ad_break‚Óä“Û"=/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaks:ad_breakZO"C/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaks:ad_breakZ?"3/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks:ad_breakÑ - UpdateAdBreak-.google.ads.admanager.v1.UpdateAdBreakRequest .google.ads.admanager.v1.AdBreak"oÚAad_break,update_mask‚Óä“R2F/v1/{ad_break.name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}:ad_break¤ - DeleteAdBreak-.google.ads.admanager.v1.DeleteAdBreakRequest.google.protobuf.Empty"LÚAname‚Óä“?*=/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÇ -com.google.ads.admanager.v1BAdBreakServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitEnums.php deleted file mode 100644 index ae0af4b8f3e281456f79fec6ad1b9cba3b23558c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1144 zcmb7D+iuf95T$7;WfUZnmx@-vQYtl7!BNDUO93Z#g9UM-#7RYE5pC>^YvkD0dR+vl zKg4(Ngv5{V6^t*9(pG&S(mLLmGjql>b6&rV&tiB^IxJ+I3g(jOHzLj$iFqUL)T%|ieuph-ehcZ8YrED`(wg1b@X`v_GOkBLPSGfREHq|MU#Gg2>VRFoS<9udJ)w#-fl zXCmd{VP1EZ;9~KXSN8IaU)G_z?t=Ch2UK4Gv#>q*vjzwMF`3$C0hV!$c*+^b=gplj zAQkN&Vz1LA8^X>Qs>`<86WCI<$;dRU$UcsQI>E`~V8Zsf9@>@z&LVyr!d?O|6PAeV8fPr5x#zecwK zYi7^P$Rwy1(3WbN`ar5=7VVR%c8zu(j-(@yEXr|=Cw}NgUvo|ss>`<8V|Zk#gN|-Z zP7G7)om?Zl2dh@Ek9_yxZtJ6Jevm4yUn{VU;*oFZYpd*PzSQ}a^;b^cm0&LlXz0li z_Zl7xbLlh+7mfW)W>=+lxER>a%4R3ml8joy(=FsEkDI?QJ$5cLe3U*Lh4#0yRfH)D l#$}JvsVL*-bUiQN)!t&mUKESFwCA_(c#bUA`2sEg{sGh0V^RPB diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitMessages.php deleted file mode 100644 index 489ff1c51ff9b18a703e0580befe47a184831a3d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4287 zcmbtXYf}?f7;Xqj;0*)`RTflOQ7d>!hS+x6sI}Rm#2KlXiaOItdpy}aAv@jdZg)2* zb(rbL{+52|ujovt{S|!n2lRuVe9vWb!w4udfpE@yf1meqZr}A=K3vo{nactiF-vdk z=~0X6e&9u(={b6%(`>RpH@&uRJ1i*Z`o<&u`$yaQy^ROk7mzjdI)TZ``i|%AIIKvm z5I=3|(j68Qch~VB(sAvGv{@M9Sy&LF0bGhFJ~f%XSu?g+L@gT8`lgUluUH{|l$83@ z^;-a@L&H$7SWi&cmXZapK*t}y({OB44u>HsjYDiix@35#F zN`A7srqptAc2i%KHkQkWjJ%^qL5KBg*Y$u!oxr^%?B)XYyWi@^h#3Zu$LgNjX@})< z&%vI&<4N&-$7a?;+FjhR9M(BQ-Q*_z;u&ig;y|h7dubXqICd-!3*e5=cWqK@lwU5dS{?{iS~z0 zq-d$64$1D`M{(vP!OHJ5kd`H#pM`PWKDC6NSe-PI2bGEZJV4xOZA+WMizL5D<~Jed z(*VnksCx|r*VTi{*g+-rrg8z6dwG#YQr`{>*z$`~U-gqe5{dj>$SOfTjaph(Pp)Q5 zmlYfirMDniYeKcOWC^A$JMicr>VkQL<8*K% z6!af(1&Qi7S7588idy|$D=@O2oxk;B{j=jX$VcL7&Z5Z#+w*AA;5c z+>o?0CzO`VKY?=tGRQ#h47GV7@oMbcp^%Ebp?_RUBcH)i&q(3wuwd;&1Sj)9!%Wzw zK}2}QNt^eP1&n{L^wmfcA9H%X3Tz>@DCL0@Lw2A{b&6+b4d&x`ps&mg`NW|O2a&yq zdK9v!Iq5Z6==nHId^RRdR&z*Pe*U`h(~*rhzvi;&g%|u17GJ4vgty9l+_L$uhsO%= z`&TpSsFappj9Hi=gOk9Rfoam;lEpz>GF-4R2^k_guA#vh61zUo$BaeLNYB&3yBthm z8OSXeyM%EDJ|*vH3qo^$A22v$U*Q`opd;gZi_tg*IWkatMjlR)Av_3kV@HP4Vw{7; zK39frSN=}`$hpShlK%q6Im*Ns&X&%P1{e}?*pJCU`W#LTZ!KchYUC1cFNEF!wQtc#^;<=+HMNyp_t&u<*sD&#Iwzk(y_ z_&de$N+3r*-&^ELfcO1y#Hpqho}}0ZJ_yq*elH-jDHev7V|j@9LAhXP5dgZ@n>o+@#D90 znL{>*x;q6g*eUKXSB#%xZ_mTlG5BJ?)%Ez#vH4B$9>>8L;%7^~>I+ZT|BG+x;;D|m z)Lk7P>#xTaC0n_SeEgTXESI0IH`2m@n^(Foi|g{`+xJlB4aYX$@kkbw^8LCG`v7kN DexrZ5 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php deleted file mode 100644 index 28589b9b739d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php +++ /dev/null @@ -1,67 +0,0 @@ -internalAddGeneratedFile( - ' -ˆ --google/ads/admanager/v1/ad_unit_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"I -GetAdUnitRequest5 -name ( B\'àAúA! -admanager.googleapis.com/AdUnit"¾ -ListAdUnitsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"u -ListAdUnitsResponse1 -ad_units ( 2.google.ads.admanager.v1.AdUnit -next_page_token (  - -total_size (" -ListAdUnitSizesRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"‚ -ListAdUnitSizesResponse: - ad_unit_sizes ( 2#.google.ads.admanager.v1.AdUnitSize -next_page_token (  - -total_size (2¬ - AdUnitService‡ - GetAdUnit).google.ads.admanager.v1.GetAdUnitRequest.google.ads.admanager.v1.AdUnit".ÚAname‚Óä“!/v1/{name=networks/*/adUnits/*}š - ListAdUnits+.google.ads.admanager.v1.ListAdUnitsRequest,.google.ads.admanager.v1.ListAdUnitsResponse"0ÚAparent‚Óä“!/v1/{parent=networks/*}/adUnitsª -ListAdUnitSizes/.google.ads.admanager.v1.ListAdUnitSizesRequest0.google.ads.admanager.v1.ListAdUnitSizesResponse"4ÚAparent‚Óä“%#/v1/{parent=networks/*}/adUnitSizesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÆ -com.google.ads.admanager.v1BAdUnitServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php deleted file mode 100644 index a49f1ebb2779..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - ' -³ --google/ads/admanager/v1/admanager_error.protogoogle.ads.admanager.v1"– -AdManagerError - -error_code (  -message (  - -field_path (  -trigger (  - stack_trace ( % -details ( 2.google.protobuf.AnyBÇ -com.google.ads.admanager.v1BAdManagerErrorProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php deleted file mode 100644 index e23e5d79d3f6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - ' -‰ -+google/ads/admanager/v1/applied_label.protogoogle.ads.admanager.v1google/api/resource.proto"V - AppliedLabel5 -label ( B&àAúA -admanager.googleapis.com/Label -negated (BÅ -com.google.ads.admanager.v1BAppliedLabelProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupMessages.php deleted file mode 100644 index 0f44937fa7a575304efcc82559cf18740d4db120..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1258 zcmbVM&2G~`5XNo!TR|)JK%te;0+o^?uoaMya48V0H0>cYLRAlyrD$VMoE7fwYIohL zR5>EStMCH60~cO_a}PWN>$T%FO?x5II@Zq2H{VRYFK^z7fk01i3m8bEA;!HEtOtOF z!>Nfj8V>D+$CB278NdBHA= zpuUC+%sh8haI=vOJYv_$mt+ImmQPp`w8f3wfRkbt!$ga(LSyh z9DRR^!A5bg)H7fbGg#)JJ_k;4rc!}Z*5=u<~WNF(Vdtok&=_Hjn9nYv)hh|``?|j=2r)W zwQ=vFFA-F^#una%Mz0y@V=g}{@3egDMm&b$*a%j#CVase!>0??O_B0qe)1x?iLP6g z!2-J5Jx@FM?VuGy#=T-$!OA4dkzuTYJI=xTvM%8%VTsFS;w8YWL%s31Q|4Z;mhxj} zsbwwe8q1o~F8%=A{l>3RB(!cek1`e-KcCGk7iGS0>heb!^!@!t?}jDtvQ~-dSz(HE Q9=g&$HnULq5DgLf2T>BF6aWAK diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupService.php deleted file mode 100644 index 2fa7dc4411a0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/BandwidthGroupService.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' -š - -5google/ads/admanager/v1/bandwidth_group_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"Y -GetBandwidthGroupRequest= -name ( B/àAúA) -\'admanager.googleapis.com/BandwidthGroup"Æ -ListBandwidthGroupsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA" -ListBandwidthGroupsResponseA -bandwidth_groups ( 2\'.google.ads.admanager.v1.BandwidthGroup -next_page_token (  - -total_size (2Ç -BandwidthGroupService§ -GetBandwidthGroup1.google.ads.admanager.v1.GetBandwidthGroupRequest\'.google.ads.admanager.v1.BandwidthGroup"6ÚAname‚Óä“)\'/v1/{name=networks/*/bandwidthGroups/*}º -ListBandwidthGroups3.google.ads.admanager.v1.ListBandwidthGroupsRequest4.google.ads.admanager.v1.ListBandwidthGroupsResponse"8ÚAparent‚Óä“)\'/v1/{parent=networks/*}/bandwidthGroupsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÎ -com.google.ads.admanager.v1BBandwidthGroupServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyEnums.php deleted file mode 100644 index e751c2c9390b5257878e035e2d0de40be9a90f96..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1135 zcmb7D-EPw`6sDyclQ%&LNJGGdH-^>;NL6u{F`!MeF4~qvODRj9n1vILZ0>{MqL_Z{DS+DR>44m|%(+4&dY*vQrFGny|!A zVmQgCQ%s?s%+e^vREDr`Lc?^R*4Ld4UYaF2^|1oOBne~OMnT4Hh6oBVZJ%}8q7spF z50iYB$ptO|1kG@kA|Jzn)jP%v1&AScP(ZldAmdg+xZ}<)0Dg?J45}rRCXm1<0Qr;V zlQ{BW#t`GLttj&%60r!y(FH%u9-N{$!yMpx?ldPpixL7wfk}Ma+JPme$lXd4e)v6j z#mN%)!SBM=3B#12*zM!Yr%}ohYVlM>2{D`BqVTkKs%-^aG=;5_qoQ0Rxd$1|@#5|f zQp|Enb_?DD;Bx*|Fnjejs(5sRV7~1>?@()=D9X0M_Xc?JAFYwr%Ve4Nkz3US`K+_~ zr3UU*4RFp=ESj+S8LTe2q^IDKY93o%8K2@C?oQU=9zPOPgP7V7+3XQXE9g z=0eD`g4_jo@Q;x69Bf>XREI*up6zs7Il^rHABB7knupMGj zOia5Bp)?ZH_2-1`&fD~@zCI{MNaiEN?YNvmdEEJV6>*E{;!72C`F#DVKQ7A@h1ZFt h3M$IDGg&SOyxyMc>SZa{1$E!3>>{%i@g=wf;5R-XU$y`M diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyMessages.php deleted file mode 100644 index db4a05dd1b682b60bc1e33d796c5411291b20f2d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2328 zcmb7G-EJF26vlR9JI9F=EFhae=}=nLrLa~4H#iO8O`5n;Ln5$pfh?`YyJLIAdUrKD z4mFi;xZ+vhMG#NHbsvE%&diSOZPL)h(%9=c|KEIP&pi1y9>(w~Ic6afR5G9RCPWSy ziA5wMFA7L+-0w3%yl52jfC-zB!&CD8X@@*LeAf8{O_OLWJk}(GC>jK;LHz{Rh=z2) zMB`$op)6@QaYrmka4)g7Yk-jAPE0*Uj?bJECaF&)?H+3{-Ikx=GG4mpJ9_|LK$CL1aE~OCO8mLc6PJfvavJbov7~*{r$NHd$5q|_IP@fsLZS>#Lyy%T zk<_Qsy&p#i!9JO#b*4~3M7qyH$wWwl?jcJ&!DAVTGgNIh2TabfR6F%YCaiMD`=p-c z*lb=&a-T>sX4&Y32qwoO+|zk02h;ge_XePKTX7t4=0B%BhN&$oTsXXu8-w}Na6C$G z;U?zYBhCWfVMBVsBXK*^ADAK5jq{!#PKP72Bpt$vGT@2s^12c%M)0e#}6##Bg^Nje@7 z^$ko$(=6Ans5oCkWgO#FV6I}XwT|M-?)I$U8MWgRm=O|a&*wzOl(BcdQCc)`vE9nz%?kYB@q2{bXB~yX34r^|-kyvlEinternalAddGeneratedFile( - ' -¨ --google/ads/admanager/v1/company_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"K -GetCompanyRequest6 -name ( B(àAúA" - admanager.googleapis.com/Company"À -ListCompaniesRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"y -ListCompaniesResponse3 - companies ( 2 .google.ads.admanager.v1.Company -next_page_token (  - -total_size (2 -CompanyServiceŒ - -GetCompany*.google.ads.admanager.v1.GetCompanyRequest .google.ads.admanager.v1.Company"0ÚAname‚Óä“#!/v1/{name=networks/*/companies/*}¢ - ListCompanies-.google.ads.admanager.v1.ListCompaniesRequest..google.ads.admanager.v1.ListCompaniesResponse"2ÚAparent‚Óä“#!/v1/{parent=networks/*}/companiesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÇ -com.google.ads.admanager.v1BCompanyServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactMessages.php deleted file mode 100644 index 78ed321f32214c585e464371551bbe9e8eaf74c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1715 zcmb7EU2oGc6s7If4{rleftC#f1}3c=kgDSaWejNc{V+C-X%8q;luskP9T_-yGpSp+pcAkuS2P71%}*$CBe>Y`aebK^TQ9VV4HDwg6L36+0I* zDZvUHmbIr;k&1ZRRN#c7$XmlaNJuPLvL{0wr-Q{vOSMy5Fvlu7(uTFPM#s5O{>aPt5w{>X|r5?0477i;|Lx58Y&E-{ML=H zxm>jgO6mhb^w=8L(9_dq{sr_ZgTWVpHX z(&%!bPutY_UPr6D|9eMOT-eGh&KXcbVJKVWR%uvqZmXc6`|^XsQRK&6MzK}S&@q!J z3+!PktV#xrD`*;w;~pZB1u~$hfV-g3MxU*TY`bLQ1rZUpCNrR{09nB&mV7i7Ol4?A zqE2|$ME{gdn@)9+Vxd@g{lvWa0Sob9=t^=wNF8OcST=8bNnVytcW;3y|NOd4fw24Dcd9}%t} A4FCWD diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldEnums.php deleted file mode 100644 index 81c470c90343e32ecca3fb1141e4f57d7d1b500e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1417 zcmb7E%Wl&^6eXdp=m?}>1QoDgNGqC3kPxwRDd5Czu$0(V>;x5AvL?U z<QqU<3^Ra-cUuwC?L1HJrTjijw2 zq7JIUnyXPiX;#0L(AJU?Dk$fi##AU$jnTa;Owuz{Z4Ye6?0JW})>S=KaTL!vvNUgC z*p}AT;j>z~AtAJ3JAK{gR7zrR405kR|T$^a!?5jDf+vrxiuPKf` z6u{tQ0Wi~6x|KEQ0g}#7-bMI&_0tL<8}4kD=G67k-6f=jLE1)7R#4iG;tcG|tSRjr zL`i_qjrplu{klrdkfm(I0w5@_$X1|S7$tWXZLgFa>bBm}yMmxgg1y&ORWpDX;0ef3 zJ=5qOfo6b2%n79>RBQbzp~o;t>epPV)~ZU-+j+BDrH}9C5z{Cj;j|tl)5esB`50*w zCK59-cUEW5{^H91C~tN0xl)I@0;^Zdr~0t@``qH@BL^OHn+rqdZ~0LXCd&{f9&@8C f51XTn9KfsHMWa10`gf__uWj|*v*_wGbcWDB%YLrBWGG;hl*S~p5$d0!pH9!wQUC4vW9iCSo(04~5o1wIIymHVOmKoD zl69utPLOlKCjOX`IP@okb7|nVjt`JvIg{dmpyM<5ga{mBfxTlL%Ik$(jv|yd?Ct{u zG3Fe-)*;`hh$lrrcn?Va(tH%t0C9nZ{M(`2rwJ7l$Mknu+W{Kmm=hW2>e_Lh1cI^z zDTmV}Ang~(#8hi{QYN`LK#SDQ6g`p}?`67 zRX93EZIh$pTuJf(i7Y2&bc8Y@@+{fcd8+{P<(sz#abAhAqa>ej$5~am3VLm*lzN(I zmt5c}W!Zmo{h1WKXusqA1Z4;G)}gZrW}Qy z>}hxV+eNgLc8oqpMU_UM+mA{MvZ54Ydh%xt8YNnr4`4%yxn&`%U3aS=d$*g9;ofKB zr(vrityN{M4!-zcShV z>z1_K-95B#DAg{d`iu5ZI=DJ(Qmd-i5j035sF?X;mXg+{1{kaZaHQSNrPpPUl|=zn z1{(?pLtUME19Mx$^w)vuOQ-8V7V`$;mVy`qOev=$8q0cG_4P{`F1;?7va%SQn!-7R zO_r)#gtq`y+l}3q>lAXTT~rv$nSJU_VP~aMv!6Jn+?H2xr?idDy@ZJ0SoSOLyf5DT zfQ4jU+_?JGN?Tci^OsxZ(-?Ofr7yP$_xpN8%|xZ{@v>fVJdzobaF4x7G_pf;5h z<8A@?%Z+vKK*L|{!IL38c)hyC4Fk<*@a1O-7%pWV`czfjnq=r>Z?pO6(y39WN}suk z`?m#ONuq9|-EEan7rjGY=4aNs!{YEnEXGM>vn=XFB+;F!v)YF%9d3WQTYpp@9_!X+ z%hn~wiRps&u>04-;_0p?ABD}6eeF|a+qgN7^iz+*=s3gfsHPLxd%nC3zcc-z)J|?} NC3>Z~;O8(0_!khFpveFL diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php deleted file mode 100644 index 4e5eb9dbc0d4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php +++ /dev/null @@ -1,90 +0,0 @@ -internalAddGeneratedFile( - ' -ç -2google/ads/admanager/v1/custom_field_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"S -GetCustomFieldRequest: -name ( B,àAúA& -$admanager.googleapis.com/CustomField"à -ListCustomFieldsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"„ -ListCustomFieldsResponse; - custom_fields ( 2$.google.ads.admanager.v1.CustomField -next_page_token (  - -total_size ("• -CreateCustomFieldRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network? - custom_field ( 2$.google.ads.admanager.v1.CustomFieldBàA"¤ -BatchCreateCustomFieldsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/NetworkH -requests ( 21.google.ads.admanager.v1.CreateCustomFieldRequestBàA"^ -BatchCreateCustomFieldsResponse; - custom_fields ( 2$.google.ads.admanager.v1.CustomField"‘ -UpdateCustomFieldRequest? - custom_field ( 2$.google.ads.admanager.v1.CustomFieldBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"¤ -BatchUpdateCustomFieldsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/NetworkH -requests ( 21.google.ads.admanager.v1.UpdateCustomFieldRequestBàA"^ -BatchUpdateCustomFieldsResponse; - custom_fields ( 2$.google.ads.admanager.v1.CustomField"™ - BatchActivateCustomFieldsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network; -names ( B,àAúA& -$admanager.googleapis.com/CustomField"# -!BatchActivateCustomFieldsResponse"› -"BatchDeactivateCustomFieldsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network; -names ( B,àAúA& -$admanager.googleapis.com/CustomField"% -#BatchDeactivateCustomFieldsResponse2Ê -CustomFieldService› -GetCustomField..google.ads.admanager.v1.GetCustomFieldRequest$.google.ads.admanager.v1.CustomField"3ÚAname‚Óä“&$/v1/{name=networks/*/customFields/*}® -ListCustomFields0.google.ads.admanager.v1.ListCustomFieldsRequest1.google.ads.admanager.v1.ListCustomFieldsResponse"5ÚAparent‚Óä“&$/v1/{parent=networks/*}/customFields¾ -CreateCustomField1.google.ads.admanager.v1.CreateCustomFieldRequest$.google.ads.admanager.v1.CustomField"PÚAparent,custom_field‚Óä“4"$/v1/{parent=networks/*}/customFields: custom_fieldÛ -BatchCreateCustomFields7.google.ads.admanager.v1.BatchCreateCustomFieldsRequest8.google.ads.admanager.v1.BatchCreateCustomFieldsResponse"MÚAparent,requests‚Óä“5"0/v1/{parent=networks/*}/customFields:batchCreate:*Ð -UpdateCustomField1.google.ads.admanager.v1.UpdateCustomFieldRequest$.google.ads.admanager.v1.CustomField"bÚAcustom_field,update_mask‚Óä“A21/v1/{custom_field.name=networks/*/customFields/*}: custom_fieldÛ -BatchUpdateCustomFields7.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest8.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse"MÚAparent,requests‚Óä“5"0/v1/{parent=networks/*}/customFields:batchUpdate:*à -BatchActivateCustomFields9.google.ads.admanager.v1.BatchActivateCustomFieldsRequest:.google.ads.admanager.v1.BatchActivateCustomFieldsResponse"LÚA parent,names‚Óä“7"2/v1/{parent=networks/*}/customFields:batchActivate:*è -BatchDeactivateCustomFields;.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest<.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse"NÚA parent,names‚Óä“9"4/v1/{parent=networks/*}/customFields:batchDeactivate:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBË -com.google.ads.admanager.v1BCustomFieldServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldValue.php deleted file mode 100644 index 303f1617d72f3c76dfdd1ee631c8f4d7e87ea82d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1281 zcmb7E-EPw`6kfU?HZvhq2{y)!fr)j}NGRN83}_f@cQIC>sTU~Hs4sz3&Q#-%6?80EEQ4uwMpeEWmHj;)6cr9Jv<<}1PyX^@1SIfqMYF>;g}`R*v1yK z+PhhB-Gx1T!K+&}MmHrsWC{c$dAtuY5wuWTboJIS%s`FXSw$M#?$`>B4sgSA48toV z_plNrOrMUi096XMYj{@x=i{&Vx~>&8Hm!-^jEpE3VK}L30x~Q0J-FMvHp{f)$xG@A zZ>8zD&I7HD#+X^fa|``iKu`Zy6!kTm;cFS`;jZ5wH8<{EKov9)j;0mT!*4Zo`?4zP z5n7#A-nxgq#!9sFyH)$!dW<$F*cO)*RQg)v!4y!vgBFco*K0cY=Ci<`LC&8_GMewS3b3eI>=Smtw)1sO17 z-(b?WE1usSclUd3t!@15Yd`C8Wd93(ule(0B{o*qlUs|m+5glwY+4xVylQfbVc2W- bmkfdDTVuWLSl>+9Y^KG`PHTj7bdJzJHAz}A?nI&3lmm1@Pfzzr?2)AeoU(xUR-eWW^CBKHU8Ksg`08?Z(>Kk% zqHPN2%~3PwD9bA(4-jVwz1$rkMtQ=5{fu`Ca8~}yn7w%C6+Ak#S=n|VlxvoWY1uCP zz6o#sSF-w6UMUH&#VW*+PTP%d6?n8N%vh+9#Hl*Pns4+dCSY+Q>FL#t@r| zI-eAMcL8(*_whhc1(}S%z`%H*8KYXY@x1~&t33=Fg^ZJ_PfIT6u;v(F z&8xqLmup!WSl0}*)BT9;H3VD6W3N{}eJBdu&?kW_h0JZaG{}72%0ndb(t&VwDD0Pq=0|mFm>FFXMi*<8 z4-RS4{&^9xvKb(5Ma&XY;7@fsFOy|am)?q?EKl0g&5XdS-SWsk&z*G1c-NXP%gp_C I24?_&0btpvr2qf` diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyMessages.php deleted file mode 100644 index e4cb0eb2a758dee02cd0e257e0aee666c4bfd1f0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1897 zcmbtVOK;Oa5XMQ<$5L7dhlV2P0+pKbaFlX$DNy$f>O-aK0a;iZd*iO^c&*)aQK)j@ z#&6)j58$V8<;sC8{T1x4oirs0q9W2J*3Qf~GhaT>JbMuz#oz(lz!7FhU?0|+P#j?x zGb*S@Ls(1dbOfi-3Y)mCJOR!zxo?=Tf}a(y~DA( zDbHtV6&$IiU|_#fIUPNl)7 z6s|m(%FL7M^h_HyCY8Es)~#jTrmCI3)#bplmQvIGUjidQezm$_+dF7Sgyz>g&)rJpof4{xT|7kn3ry_fbhD7pP0T;kgk zVBGDJlRXKpx!wA)M?gW-YL9^tH~m-bBDn7U!Mgq30JmkcgIKp`RtAn~JvaA^w=Xj- z1~f!bU{V%T0vzexP&ucxXSXbNi2s_K+R)3wl*>Y%?R5W`ht+Rwi=+35{K{;O+$3kY t=`_r;WSsiSjFxp+tqtn}p3Zd!&f|0xcTH|Z3-S6)ZS9#3(H3X{@Ecz4fqno0 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php deleted file mode 100644 index bc0e16e7ac1d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' -à - -:google/ads/admanager/v1/custom_targeting_key_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"a -GetCustomTargetingKeyRequestA -name ( B3àAúA- -+admanager.googleapis.com/CustomTargetingKey"Ê -ListCustomTargetingKeysRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"š -ListCustomTargetingKeysResponseJ -custom_targeting_keys ( 2+.google.ads.admanager.v1.CustomTargetingKey -next_page_token (  - -total_size (2ë -CustomTargetingKeyService· -GetCustomTargetingKey5.google.ads.admanager.v1.GetCustomTargetingKeyRequest+.google.ads.admanager.v1.CustomTargetingKey":ÚAname‚Óä“-+/v1/{name=networks/*/customTargetingKeys/*}Ê -ListCustomTargetingKeys7.google.ads.admanager.v1.ListCustomTargetingKeysRequest8.google.ads.admanager.v1.ListCustomTargetingKeysResponse"<ÚAparent‚Óä“-+/v1/{parent=networks/*}/customTargetingKeysGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÒ -com.google.ads.admanager.v1BCustomTargetingKeyServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueEnums.php deleted file mode 100644 index 3679500cb898f8f3e71827abc96ba9fbba5e777b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1229 zcmbVLL2uJA6sCnuVC_)#GHD3pl}YO)ma5{GG9Yc!5{b6al2!vnirm!AETv9lJCg?5 z5%D)T^Fugr=XB%$2UDDQ~{6usUfTm1z|m zS;A()(KK(7Jb{Ac_-1wp85TLC9nD(-T&;JS+3_n<@~{?*b=raKUUTiJ!VbabEnxnC z+v>YTtRY)2SJ@!rqTTpX0Z;F0jwd^jbJd~-278-5>c`-yH}(932Qr`g&opJeBZG5kQ{k!svkciIx%S_Kp z<7)*x`KMRC4URVu8d-ktZRo#u?Y~Gp0$cW(BqBMi diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueMessages.php deleted file mode 100644 index d73b7c1436798fe45b14f6559862bbabd4eae121..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1845 zcmbtVTW`}a6ehdRyCAAf8$*Bxlhy%C)gkeaF`!|WPH3zeRRt(g#UI0c*%-SOE6= z*5bh7Bn+So*bf|>U4aRv^j(TVLC*$k)mV~@3AU`=fMXgU-`d2?p(NrVEeTh{5dF7# zmS3_fX<7+KYA~DBXc#?3Za_|B+?^dlig`?fbyc?nXtv+1D==vFV{R*m>&!4Z?RL=n zVn)Q;CfIjPe29)oNUs-qfK%!8O{nNyeL+$(3$EMdZd(X3+wNBOz6`#OfsOxCU}i1} z*M)$^O0}jR=NIm`a3hkd$#(5(+Ha!Wh1*>YG;Jy|J@`2cX8JLmxdn!#;^#G}Wyj6I z)52Kh1DNSKD@V97Kc-xsofZa83&Vd3tKe~`yd*P<2-C$0&0R?K1~-Z~zGzzJE|@^B zID($7k`A?!4i`0Pz6T~vWzB-}`c)Hvk8&8sv+BJbC3B>6$eU)c23Y(w_z+cT2b7uem diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php deleted file mode 100644 index 8578c4e14e81..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php +++ /dev/null @@ -1,52 +0,0 @@ -internalAddGeneratedFile( - ' -’ -5gg5Uo?lVJ|iA!O&i|X=t3%%9!5dx~)|yMi5)Vb_^~8v6e>4g1i#DtAJa4 z?4RkM=)LFuivEhOJ|a?rbE#lfLNo8p)6CQRkJ)vGUg8Nb;6y@*H#;n^0cSjwX^s zeg=F?g`g?(YC})9GT5$nz zSOC3qTyYk)r&+3|Gs3qL-C|&BSf0%!a7Gf(1QBqW$&|aQRM%sW&6tZfz4N+lK}RFp zt2FBRJ&_|Uc@B5GW6VM3oDECe1;M^~DwVzcKx-Z2Fl^dhs1^2_!UA@Nem+K{|Jq%r zTfsH8dKLASw41@n_ZE8oz=lpD)IE^yyhg7~YkcV&S8HqTyViVaFBY~l^OtMa@~>tK z*ZOQ<*p}IT)Om`Y%&dvCw8u+l?mM%~b-UF;=-9AL)0(%BjNeL!GO%_)r}2=D%DuX+ zFP~~~oF;_DTFT>o46HP7zeAJ!dN1fF5)nId63V3(c?DS1#l{?Nl=&G`^GSD9F5&8>;0#;7| diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryMessages.php deleted file mode 100644 index 0f356332e355c2f8b98cbb96df1ce4a91eb07b7d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1246 zcmbVLO>fgc5XEVQUe%m-adSFVG7|8$#j)aI}@Mx&a8B$IoklwiLg)n9T z^a6t(2|4KvK`9ecZq@=JPR&h11HjEry#<- zL0c9Rogi#}$*3Q*04q(kdF?XQW1MM5WA?>NSj7VxD=<*!a|a_HXeKyL3)(z@(jLw+ z)7;%en2l8Nj9n*Pl39>{$Tdh#W4{3^kSx(cc1$WE5$O49)0@(sZJWZe0WRen2{}iy zinScUa(9d+=#k`=jCTq!oqzck?Ji;d0fRWK!!aE*AqiPbwE(%S^aI#`_QI-c6;EC= zJ9sS&=W`wyos{OxQl3Tha~(bZKY?s+<#nzRmN`}m?zp^tZw8n!Pg=6Ms2=`x(8j7l zHt(SIRB3k|?3Aw8*Z$P5ZQe&WLZ*_KPI_6WFbl1{yYkI($am+o_SHdtanUw!NfV}A z;|T9e55hrz7V?wwPV84N5Ft#h2dr8dnD`l2OdsFQZx%UEH&$*Y^;_s>Z<%lXw}W;J z3-^)*)pu6u%}kQ1w&Q$!ZR;WtQy#fOMqUIwbEUVK^PHh8^KJYnY&A2Ry2hsFv~ttC z-SV$l#LpaT9yaD151$sc^D;tAUHY&=Lb~Pt)r`Qi;#@%cxe=CpbE#*t%v{-1G)3qi DQ+lAZ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryService.php deleted file mode 100644 index 73b93274b44c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/DeviceCategoryService.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' -¢ - -5google/ads/admanager/v1/device_category_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"Y -GetDeviceCategoryRequest= -name ( B/àAúA) -\'admanager.googleapis.com/DeviceCategory"Ç -ListDeviceCategoriesRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA" -ListDeviceCategoriesResponseB -device_categories ( 2\'.google.ads.admanager.v1.DeviceCategory -next_page_token (  - -total_size (2Ì -DeviceCategoryService¨ -GetDeviceCategory1.google.ads.admanager.v1.GetDeviceCategoryRequest\'.google.ads.admanager.v1.DeviceCategory"7ÚAname‚Óä“*(/v1/{name=networks/*/deviceCategories/*}¾ -ListDeviceCategories4.google.ads.admanager.v1.ListDeviceCategoriesRequest5.google.ads.admanager.v1.ListDeviceCategoriesResponse"9ÚAparent‚Óä“*(/v1/{parent=networks/*}/deviceCategoriesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÎ -com.google.ads.admanager.v1BDeviceCategoryServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EarlyAdBreakNotificationEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EarlyAdBreakNotificationEnums.php deleted file mode 100644 index 9dddd35d3f8dc0162b0e97cebe18b9a3cba56fdc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1021 zcmbtT?P}XF6kSpno9IT!pF#^m%L+|la|rwAEbE-u&BB@wmNY*$gHh~jSIm)&EEl?w z7aDt#J-{AfPcg}MO-AYd%y5mRd+)hNI>&F$lB)#0z$0KFh=c&IZ?L=qoCq$t&ttsK z!Vm=Z`6i(;2m@n#hNrV7cI@%;xoS;$CVVh)#Ca4$hXkpL4Phh#(Yfw+fQb0UBZ0RT zK)!g4OBzz2NXnT9EZd|;J_{j6HjpO72Rxb&CLl>bBymSMtZN0SiW1gcb$bZ;F-cSG zXm~3aXz=L{wxglZH-y!bWb2svIF)LukB@2UQAQ;tG5xAe+{Yn_Q&5O^Yr~BBnkm)| zGv-746c?Df_Bi3{hWhxHAmLh}Q=@<);nP9z~w+7f&Upcc^Z)wTH3W93vxstJ673#JV^kWa5{ilA- zg95-%22fEdWn6b#95qUP7D@on!n8i4{oTFhGjwR#-r%ESeef1bYw38G)5Y8wj?c%A z-FVP^ijb{Vi}7r#*0tt7dNiC(<`>S=Y1Erf(BsAMy<=ZqsN~+@R}CF0zZ&-t8npiD znOwwq?bExmJ>oH8k-|AevX{=Ch& zxv$l$%(=?hzw3uZn`x>({VJ2Dx$3ST<^*1!R06&%e6eGrdo7e#7H-+1Ekb_)epO7l diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingMessages.php deleted file mode 100644 index 3d9b059a5bcb233a7de13186fe52f72ab2025da4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1475 zcmbtUOK;Oa5XMc3%HA4^`T}YDkeULu6}Y(sNYpm%AvA)j2V}|G*c*3+y=(2R1EI=| z13!cV;=m8#&Yg3A1>;APLR~IITHD$A=G$*(XXe?9_$)>nxI;OWL{lI4M_8Xx97~~v zCqmp$1_LUwC!&~zRGJv?9phKWCwPDF=wuCCl}MyVZ5#*@gw!Iwf)x=?0xGRx!=hX> zJ#rNbI0=;-kvL{Na3iV|K$MxCgb*jN6BCc(POsgin)pN$r<0L7EnmSZNS)KhE<#>N zl*0QN`J0@(n^SiSW^|4){Nkh^G7l?FG`u#Mav5iuk&u0aaGQ7lswfa%#|{$iX(l*M z9gew2>)SZzOtG7>fb=x+rN&;GG02v4#5I)=tFuRyCt0k8>;cra1F9!^PIv0t#jzD*JUFI)Uuu-oZ-m0ylc~3xOu-i|#AJWt~TNpRc zvX>|=B3Ba$_nTJskc3GFx?OEWgsl;3m~6K{Zd@z(D-Z^ zwRLn)lMjN6Xykg(q=Aql5TTZ;xRL`6`>S!$`eLA+X*TjqkeDeGn%61~{eV;bUdVUK zIxoIlPxy3PH0_^#1)y@x`d<=M=!rWv|6wRR_Y{5G@L$%c>#LkLzkpKRu7tM03Y!BH>SAUkce8EqOCN>Nwoe=VY9`?6)}%2W=M8>k9^5z!GGyMdV>CwSH?I2c A-T(jq diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingService.php deleted file mode 100644 index 3b817186b608..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EntitySignalsMappingService.php +++ /dev/null @@ -1,76 +0,0 @@ -internalAddGeneratedFile( - ' -… -ÚAparent‚Óä“/-/v1/{parent=networks/*}/entitySignalsMappingsö -CreateEntitySignalsMapping:.google.ads.admanager.v1.CreateEntitySignalsMappingRequest-.google.ads.admanager.v1.EntitySignalsMapping"mÚAparent,entity_signals_mapping‚Óä“G"-/v1/{parent=networks/*}/entitySignalsMappings:entity_signals_mapping“ -UpdateEntitySignalsMapping:.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest-.google.ads.admanager.v1.EntitySignalsMapping"‰ÚA"entity_signals_mapping,update_mask‚Óä“^2D/v1/{entity_signals_mapping.name=networks/*/entitySignalsMappings/*}:entity_signals_mappingÿ - BatchCreateEntitySignalsMappings@.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequestA.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse"VÚAparent,requests‚Óä“>"9/v1/{parent=networks/*}/entitySignalsMappings:batchCreate:*ÿ - BatchUpdateEntitySignalsMappings@.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequestA.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse"VÚAparent,requests‚Óä“>"9/v1/{parent=networks/*}/entitySignalsMappings:batchUpdate:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÔ -com.google.ads.admanager.v1B EntitySignalsMappingServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EnvironmentTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EnvironmentTypeEnum.php deleted file mode 100644 index 8ad405f1742b63e5b1416dbf58013d3cf761693b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 971 zcmbVK?TXVt6tycTjDn^9SXupXT^F_sno{;(YSq?eOTadvTPrJpFimc=1L;hdObV;? z9efTSMSK#U!pXde6!+4JYRH5Hi*(1b{cD8>#AQypu{X@s(~>2{EBm=t`CT>0uE zK_7XxHVS+~I9+3!&;ViV4kxH+NEP+Q1(Y`kQymqQx9Ii=31XV2VEuudYeY)}lCK2x zlVr=71&}JL^yh%3KI2R=8nZ9@ZhctMI7N+fvv!s7Krz7~Z*X{k?IS2L^V)+%=w0;T zlA4>ZN3X`SxkAZl?2RxDBukW#t}Zpr2vxn*{G@$Ujm_cM3fd({)4V~l4@zcubvl4V zl}X+!c;^7y`mbR2>J6)S48pJ;d!hwv*M)i8A^CQf9RG(>t=+Q8(DLf2G%+^aeMTPt zLyr9!d35c#1>~7EUDz{cISO5YrVHmY-`lK(|SPe4`64w|&jxv_eQ4Z5W%%UU#M~E!P;TS%yQ(P?G3AjVWYmd}7cT6SDVng{ zxqrL2SKsyf&hEIdrJ-%9V^TWYSag3}X1v0&`c>sT?b%;Ddu5wx>c0F{B~5eDUEV7Q Z93R#qy)3oAVwGEMQdE|X*pe+FzX1S5J-h$_ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/FrequencyCap.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/FrequencyCap.php deleted file mode 100644 index 336237dec42d35ab50a34dc778edf55a734ba534..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1100 zcmb7D!H&}~5GAdIgsB$jWh>xdV5RK}NL9F{6xh&hcMnT@C_SJ^m76$OONkw9XT^eg z=Uey+E?oEneu1xG;-uNYsuDzU5_`sP=FQA|@hUw_(IY&eoJyi;fL9k-pHZAjp@lDE zyvo9mO6-dyWigdD#-k~IJDuaB(aHP)TvZ~IK6P*;L=@8=2^6e^a1v43JMZ^GNk3$i z`xi@}q_)9Dh?9h>l=u`+X6`A~Bp{l269eHL1`1XQ;Vt?Dg#4H&g~uDHHzY-$5r!wt zRx$Ij(nP~&kEtc&OfwR*Pe5jfLlP?r09Sp(jQg4ij`Iss?$ho8E--W7y;K1CA>QOP z%j*HP@J_gNpYARTcA-?m-zghhrh`7CAc3l_ZB)%Z%2eV=Sr8 zBp;Z(bAWaA=lw&)yg5tgJK%N1v&3;O8D0V!f=^$vlFnfeRN0TA(cLOu9(^DEY@)~i z(c$)P;cUY=z$$xbpZ6brvrwzv$M$`6Dyy zL}Xld8pdMfmNB|vEE&-3G~s;bnQd>0YS-&gZH^m&_p975hAx z``tqKKo8r3xp(UP%;3zd_pi&;A`ufF*+NFWh;k!`UST3B%cb+Ddk~9ZDq&+ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/GeoTargetMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/GeoTargetMessages.php deleted file mode 100644 index d290bab4805aa2ad25cd37568500a5cff92ca096..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1439 zcmb7E-A>yu6keM$z`!;-2@3m>$B-y!OVsTyjBSk=g$qVCAugs!k(;=|TCgMAWn!rJ zdzL-Ho`I*}nirU~tJzMPR0E`~l2gm)oX_7mKHqusEz{#JBDBm(RHtp z+=7x1@c8Wzax4d&ZW`ViU|8(@o643Fe}~{C^6)V_C5*dnnNnXMr(QM<#3c&i6{Cz6TzJh%!n-lmsc_n97D_ zd^RrI*6;QzSSh(=JWxu6t#siO7w=Xy)DoD@0L)FIQG-^-!m2+3GaSdN(}IvixG_vvQFu&tlgTjy6mc*{0qCfL$UnI_!r@v=Q~4V zs3n>yN?FuCm+No?l!jN+#ooIQ=7RBJdJn;T@OSmRdtf#gOV*nN6M@don*%fX4LTj~ zq5>YND%!Way0_37u^Z{#2(VlE{5}tfS%PS6GajointernalAddGeneratedFile( - ' -Ä -0google/ads/admanager/v1/geo_target_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"O -GetGeoTargetRequest8 -name ( B*àAúA$ -"admanager.googleapis.com/GeoTarget"Á -ListGeoTargetsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"~ -ListGeoTargetsResponse7 - geo_targets ( 2".google.ads.admanager.v1.GeoTarget -next_page_token (  - -total_size (2š -GeoTargetService“ - GetGeoTarget,.google.ads.admanager.v1.GetGeoTargetRequest".google.ads.admanager.v1.GeoTarget"1ÚAname‚Óä“$"/v1/{name=networks/*/geoTargets/*}¦ -ListGeoTargets..google.ads.admanager.v1.ListGeoTargetsRequest/.google.ads.admanager.v1.ListGeoTargetsResponse"3ÚAparent‚Óä“$"/v1/{parent=networks/*}/geoTargetsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÉ -com.google.ads.admanager.v1BGeoTargetServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php deleted file mode 100644 index cb39f1d87bde..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - ' -« -,google/ads/admanager/v1/label_messages.protogoogle.ads.admanager.v1google/api/resource.proto"v -Label -name ( BàA:ZêAW -admanager.googleapis.com/Label&networks/{network_code}/labels/{label}*labels2labelBÆ -com.google.ads.admanager.v1BLabelMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LiveStreamEventMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LiveStreamEventMessages.php deleted file mode 100644 index cdd20f0b5dee..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LiveStreamEventMessages.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - ' -‚ -8google/ads/admanager/v1/live_stream_event_messages.protogoogle.ads.admanager.v1google/api/resource.proto"¶ -LiveStreamEvent -name ( BàA:êA‹ -(admanager.googleapis.com/LiveStreamEventinternalAddGeneratedFile( - ' -Ó -.google/ads/admanager/v1/network_messages.protogoogle.ads.admanager.v1google/api/resource.proto"™ -Network -name ( BàA - display_name ( BàA - network_code ( BàA - property_code ( BàA - time_zone ( BàA - currency_code ( BàA% -secondary_currency_codes ( BàAG -effective_root_ad_unit ( B\'àAúA! -admanager.googleapis.com/AdUnit - test_network - (BàA - -network_id (BàA:QêAN - admanager.googleapis.com/Networknetworks/{network_code}*networks2networkBÈ -com.google.ads.admanager.v1BNetworkMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php deleted file mode 100644 index 38a2cadd2288..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php +++ /dev/null @@ -1,42 +0,0 @@ -internalAddGeneratedFile( - ' -  --google/ads/admanager/v1/network_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"K -GetNetworkRequest6 -name ( B(àAúA" - admanager.googleapis.com/Network" -ListNetworksRequest"J -ListNetworksResponse2 -networks ( 2 .google.ads.admanager.v1.Network2à -NetworkService€ - -GetNetwork*.google.ads.admanager.v1.GetNetworkRequest .google.ads.admanager.v1.Network"$ÚAname‚Óä“/v1/{name=networks/*} - ListNetworks,.google.ads.admanager.v1.ListNetworksRequest-.google.ads.admanager.v1.ListNetworksResponse"‚Óä“ /v1/networksGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÇ -com.google.ads.admanager.v1BNetworkServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemMessages.php deleted file mode 100644 index a46f1c88fcdfa8a5003fcfc9a2e15a05e497805e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1253 zcmbVLO>fgc5XEhUUbTY&?TLx4o3p@)zNsveM~Xk$;D70&KzcN0{q z+z|(U2si!)Cw>Aa4*eCZKjKtrbHUPD*3QhEH{gqY zP$bYF4+f|p6eGzJR4%|?2i|oK;mzK`;eA`G#aM;tLo7s`phqKZ&xmpwqw*$IPskLR z@wlgtwZTzugj(C6cC#LYaB6QP4G~)1W*ZHSsG&hCg9{pwwx@s#j;b|6!h~uKof+(h z47FW=k`n^h^CLeR!`4q=<=9^=d~ny@c+#ySjWqS0cV&mD|;Xqe!T7Ib)sm0id& z)7)(->`v-1qt{K>WLFd%aD$4|B-le8DkhCkU7PCrF`9C@=}l#~Xq&>Z0aS91zJHEn z9gG^|+3o-e%~k-^ z4Bm*Ma?X9LluF4g<+($Cu94^eDUprMywJ7UvZoM(JE?Bno*_!+se)}Ts|SA_vc8~^ zjhkdG727QboXXYa>Yv7yjeF!;#I#K4aW4z4%tEVgFMV|!|GRVA_~wwxylvi+N~T?F z3U9GTjidQ2)F%Fs#o4*}$#}aXu z?5KHnf#J+4nRL6($Ja$+EE39NSE$&Fk!RlY=Chvjb*(jl)t+|lefOyP zYZeJIAKOinternalAddGeneratedFile( - ' -« - -6google/ads/admanager/v1/operating_system_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"[ -GetOperatingSystemRequest> -name ( B0àAúA* -(admanager.googleapis.com/OperatingSystem"Ç -ListOperatingSystemsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA" -ListOperatingSystemsResponseC -operating_systems ( 2(.google.ads.admanager.v1.OperatingSystem -next_page_token (  - -total_size (2Ð -OperatingSystemService« -GetOperatingSystem2.google.ads.admanager.v1.GetOperatingSystemRequest(.google.ads.admanager.v1.OperatingSystem"7ÚAname‚Óä“*(/v1/{name=networks/*/operatingSystems/*}¾ -ListOperatingSystems4.google.ads.admanager.v1.ListOperatingSystemsRequest5.google.ads.admanager.v1.ListOperatingSystemsResponse"9ÚAparent‚Óä“*(/v1/{parent=networks/*}/operatingSystemsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÏ -com.google.ads.admanager.v1BOperatingSystemServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemVersionMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OperatingSystemVersionMessages.php deleted file mode 100644 index ee51b3e86e7d37f9be30ff7ff20df04d2c007359..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1430 zcmbtU!EVz)5XEVWU?mXr(3Wywp_Q5y}lOB$uVW z1@oyFW~Hro{G6J?n?X?2d7uZUS}03&?x3G5XzxEKW_3Lyu=U94V`jsi)Hd(r%rSL@ zQJqcMgFh9tws>S#Z=>a81UD>fRj;>}emAeJ-a|J=BEp z+XX{t7|)&Zj}fO2*Nf1_oF{9G1Fc)=X8%HCvYXjXn46i>TfZ!HS65^TocnC8t;MD0 zUQW%`wcfulpFQLeVWG`M=!C%1CE}F5n_EQnVnn`H*4yb;vGrEb=O|lNcCYp$k9g_A x(SIi9>6LR{+04>hSLY>vCg{4o+Tdy`;OR~==Z`YK&e;1>Yp2M}fKxO@=r164internalAddGeneratedFile( - ' -¤ ->google/ads/admanager/v1/operating_system_version_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"i - GetOperatingSystemVersionRequestE -name ( B7àAúA1 -/admanager.googleapis.com/OperatingSystemVersion"Î -"ListOperatingSystemVersionsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"¦ -#ListOperatingSystemVersionsResponseR -operating_system_versions ( 2/.google.ads.admanager.v1.OperatingSystemVersion -next_page_token (  - -total_size (2 -OperatingSystemVersionServiceÇ -GetOperatingSystemVersion9.google.ads.admanager.v1.GetOperatingSystemVersionRequest/.google.ads.admanager.v1.OperatingSystemVersion">ÚAname‚Óä“1//v1/{name=networks/*/operatingSystemVersions/*}Ú -ListOperatingSystemVersions;.google.ads.admanager.v1.ListOperatingSystemVersionsRequest<.google.ads.admanager.v1.ListOperatingSystemVersionsResponse"@ÚAparent‚Óä“1//v1/{parent=networks/*}/operatingSystemVersionsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÖ -com.google.ads.admanager.v1B"OperatingSystemVersionServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderEnums.php deleted file mode 100644 index cf531acbdb7dea67b076dc892c0e1ce6dfe85ad7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 995 zcma)4-D=w~6kgIb?bJbo8FXyB(7Hks*c`&{oMoF6J0Z{}CVv;h5ENT+4US}Fxv-7A z#2#W7dxc%@ZjZ93*pcm;j#8N6$db-?KAoTM-G}%pMz8RYGAf9qK3;#u@`~bEaLGL$ z;dQ#%P=P(Zjl+lv9b;>P$CEj>t1_E~z9wk;ENl1g_~PU6rMF+lSWuY? z*2(f#1iNyVW%lNMSma^)e);SGrqd{aD(oEn+(XU(9*cI8Lv@%SSTO+ox_$b+f{wH1 z&!E$3qDFA~t%8nj-Dxk-)5+Abr>oiAoG)gp#dzk}{n21#TlELpBeZW#&B450)t;cb zV~?%Tc(^hhXF6G$7xg{uF*?jo0Dq_*qa$lHD=+pngldktn1QpVpnY@Pw=dvypdFzD z3$}AO9QJ-y&~p%~eorC2yoyXh*-V|vr;i0T;1OYg&PC7)D9d!(%3UN5m7@Pub*F65 zkLt-V6Rr-z1-s0ZuP@ubZ#-_MX;=!M3#$H8eU^tA2E?hQa2m$4y{=^myge`H`8t=$ REmhsCs0^8lXNPtO{RMe8HrN0F diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderMessages.php deleted file mode 100644 index a4853e9587e596a113017f407979b922db6fc9cf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3357 zcmbtX+iu%N5Us3OmPfwCbX+q|8*lD*kw~>$6s;U56?3tICb7}FE)WPHR^&=1LXpHS z>DCSW-Y@7!^h5g4ugG)y2YKr3E-#85B{nL6qO>z}b~rO(AWvc&?%Y0O;G zJtXlyBM}ed&&e0!HXdiZ4b3Yv;A;SOt(ei-(B)}XGy zYd{0qXS{K+)(E-FxIJJ(;EJd#V1R()N<`~wQ9Uo_t^r$ZwBAnFiC4m!rVL+t8 zcHpp;RiZJa?)50d$KNEGQ#&#u7>&-8AZ9$Ee&-<*4)>xsxW3v-;5(fbwL=56aLkdZ(Sw1LqAC}7Nras#c=jSpK7 zA{rdF&q+^OFpEtza1IMECeG-^CR8+pSXb^HfCa$;W)vrd%#lr&ocY+DeO03!r_c!$2B2K<45dN8Y|NEWtesn&eQO@%&aL0 zRc8}Y;adP?JdbTzx#m1dYwJsOT^72Av8?NPW6%{^m6qQ?l?AT0n>wA{q_n#ZMiThm zz{AOF=LmNYLDg@$4N~hG%(36}%&~KlOrz4cF7ldGLIP3l>|NTDx}l(8es9v#6)|S8h*Bz3-rwL^y~sH!=d}QGALB%t+Hk7!Sgj33D#PEVXB) z;1Wzmp^ZJJi`+8`;dv>14iz~Q6JcIJ$;|rKS+tM0y}D`~KPg=~LWckAJj_YF`%n|q z$AbmqA`Hw0wcW>SQ`Lwe0k&X4Fl4w(`JtUcg^|z9Pji~RZdE>9sS@p7prZQ-(>x=P z1v44pd^yX7c@Yt6>o-P*YIyRi0x_O~S98GY~;EAYiw~#o%ic_-pA{ierKrf zt^JcpI_gybzfxHTUk2WcEorl66YbrN%%P4rxdrsj> LQ=gBI;0WM97>_>J diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php deleted file mode 100644 index 5d0bacd37af2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' -þ -+google/ads/admanager/v1/order_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"G -GetOrderRequest4 -name ( B&àAúA -admanager.googleapis.com/Order"½ -ListOrdersRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"q -ListOrdersResponse. -orders ( 2.google.ads.admanager.v1.Order -next_page_token (  - -total_size (2ö - OrderServiceƒ -GetOrder(.google.ads.admanager.v1.GetOrderRequest.google.ads.admanager.v1.Order"-ÚAname‚Óä“ /v1/{name=networks/*/orders/*}– - -ListOrders*.google.ads.admanager.v1.ListOrdersRequest+.google.ads.admanager.v1.ListOrdersResponse"/ÚAparent‚Óä“ /v1/{parent=networks/*}/ordersGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÅ -com.google.ads.admanager.v1BOrderServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementEnums.php deleted file mode 100644 index f4f8dbe8af72054a98f26037f38304c87021099f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 958 zcmb7C(TdYR6t!JgWDqR%VL^Skt_#}*H>LQNS~YF6HDKFdvwhG&nI_ZhKspm0q}Z!?+_VF8TiFq;S9j=kWSZk0S25wRiRJV{9x$5O`@Gn^37z3z3h6h~xBm|78* zZ>3crBgF8Q$V{hT;t!`p;TS6%P709FiKUJTBwY6T2t_HD68t@wYp~E)1p3MHbxI?U z3M>6Np>jnTRTQW6i@wkRHaL|;L)@<2wl$fUWB;$Gj1K6|j%}n$> zLXRmT7*4}6k&&R8;=t#hnu?;_ z`z$^296SYQ9-*hs`Y#bb5=2^OwKMb0%(vgp+UMvfLa*^Q4Jap)dboXxDM$6xmk@aD$u!2*PeFy<~baW@RRJ~fCZVD(5qx|ACy4I}c2 zOM5hsPLB!!r$SG_5ef*LL}10+Eo+ZT;t@&g?F7eedIDC4V;?qF5psPZ1a9Scdl?)$ zLl}Nh-1eD^g(MRG7MXBZz$7C+`weZa;|}o!1(ch5k- zXjsR2VJ*cBuww59lJbD~_68L$XORqf3tUaJOJ%{QI;k&bX%!sn;Cfo4Y2GMu9ZMe5 z;p`Z5Dq|k3CUq--ezCLfL7QFBwHd@cVVZ*;2avY{MaJ_Ve z*?dx+MH7S9#JpMwOl4&%S6`wDj|s4zI!RPHk1Fjv`lD&p7iiqeWC}{JjpSx+M^k2u zCI`rF=+WBa+@rixQXYqBRLM3LwNbE4uB_>IaHJP4d{6w9?yjFDHSd%au7##0;qYXr z=Mc|{;R%Y`7%oH4_R?ij``27R^MgA`lah!D9Y&JT^nO4<^&=XOBbXl4QJmH)P~rH> zTwY;LxLznL%|8P9&ETqej9%TDplGJ52UPwF`LQt0vYn%d>JJ7SSPByRZ&0xpE0tnz zO`)gG@J(5hXu=t~8fzL&IfZ+Y!m6M#CnZ1e9%|LP(9m-rB5(D&V6A7Z>*F$cXD#jL zm+bz!p-+OY9`dfyr9r}#F<|+|JYOxS`dgaWPG+?Zvl`Z3I`j3z#zk(ilQ9mT%x1$N vzbeh8VWtUj>XR8w^RUq#O$zw1RJ`K1=|~)!po$6R-ZDKC&vdHwQ6HiI4oE@z diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php deleted file mode 100644 index 8fb2beed3f4f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php +++ /dev/null @@ -1,100 +0,0 @@ -internalAddGeneratedFile( - ' -ã -/google/ads/admanager/v1/placement_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"O -GetPlacementRequest8 -name ( B*àAúA$ -"admanager.googleapis.com/Placement"Á -ListPlacementsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"} -ListPlacementsResponse6 - -placements ( 2".google.ads.admanager.v1.Placement -next_page_token (  - -total_size ("Ž -CreatePlacementRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network: - placement ( 2".google.ads.admanager.v1.PlacementBàA"  -BatchCreatePlacementsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/NetworkF -requests ( 2/.google.ads.admanager.v1.CreatePlacementRequestBàA"W -BatchCreatePlacementsResponse6 - -placements ( 2".google.ads.admanager.v1.Placement"Š -UpdatePlacementRequest: - placement ( 2".google.ads.admanager.v1.PlacementBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"  -BatchUpdatePlacementsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/NetworkF -requests ( 2/.google.ads.admanager.v1.UpdatePlacementRequestBàA"W -BatchUpdatePlacementsResponse6 - -placements ( 2".google.ads.admanager.v1.Placement"• -BatchActivatePlacementsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network9 -names ( B*àAúA$ -"admanager.googleapis.com/Placement"! -BatchActivatePlacementsResponse"— - BatchDeactivatePlacementsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network9 -names ( B*àAúA$ -"admanager.googleapis.com/Placement"# -!BatchDeactivatePlacementsResponse"” -BatchArchivePlacementsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network9 -names ( B*àAúA$ -"admanager.googleapis.com/Placement" -BatchArchivePlacementsResponse2Ð -PlacementService“ - GetPlacement,.google.ads.admanager.v1.GetPlacementRequest".google.ads.admanager.v1.Placement"1ÚAname‚Óä“$"/v1/{name=networks/*/placements/*}¦ -ListPlacements..google.ads.admanager.v1.ListPlacementsRequest/.google.ads.admanager.v1.ListPlacementsResponse"3ÚAparent‚Óä“$"/v1/{parent=networks/*}/placements° -CreatePlacement/.google.ads.admanager.v1.CreatePlacementRequest".google.ads.admanager.v1.Placement"HÚAparent,placement‚Óä“/""/v1/{parent=networks/*}/placements: placement¿ -UpdatePlacement/.google.ads.admanager.v1.UpdatePlacementRequest".google.ads.admanager.v1.Placement"WÚAplacement,update_mask‚Óä“92,/v1/{placement.name=networks/*/placements/*}: placementÓ -BatchCreatePlacements5.google.ads.admanager.v1.BatchCreatePlacementsRequest6.google.ads.admanager.v1.BatchCreatePlacementsResponse"KÚAparent,requests‚Óä“3"./v1/{parent=networks/*}/placements:batchCreate:*Ó -BatchUpdatePlacements5.google.ads.admanager.v1.BatchUpdatePlacementsRequest6.google.ads.admanager.v1.BatchUpdatePlacementsResponse"KÚAparent,requests‚Óä“3"./v1/{parent=networks/*}/placements:batchUpdate:*Ø -BatchActivatePlacements7.google.ads.admanager.v1.BatchActivatePlacementsRequest8.google.ads.admanager.v1.BatchActivatePlacementsResponse"JÚA parent,names‚Óä“5"0/v1/{parent=networks/*}/placements:batchActivate:*à -BatchDeactivatePlacements9.google.ads.admanager.v1.BatchDeactivatePlacementsRequest:.google.ads.admanager.v1.BatchDeactivatePlacementsResponse"LÚA parent,names‚Óä“7"2/v1/{parent=networks/*}/placements:batchDeactivate:*Ô -BatchArchivePlacements6.google.ads.admanager.v1.BatchArchivePlacementsRequest7.google.ads.admanager.v1.BatchArchivePlacementsResponse"IÚA parent,names‚Óä“4"//v1/{parent=networks/*}/placements:batchArchive:*GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÉ -com.google.ads.admanager.v1BPlacementServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionDealMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionDealMessages.php deleted file mode 100644 index dcf5aacd189aa2785962a5a121ebcde46dcaf8da..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3178 zcmbtW-A?016mAHxWCD~8-Nmq7F{P-4ZR;phZBqmK03ueo}S}pM=#Dl0%{zl+@%)ohGEyIHR8qa z^hiLul-K(8TEtl&Bs(N^6BY)JM~UzBXdD9|Hl-ef0s<=$aVb7-+9xz29!W^+Sc+^N zdNDj&Wb2~7kC5w=IL1vS`cO$e0>LL*E_#VDe4@1NGZ)7RN#JLj#SRNt!idj)gQFhc z4)J3O;wG`3G?3XGbja|;7B;-wi zT2_}PxsSz4byuqu;#db)m5r7)VdMc$cuGgLW6Wui@?c-uEd*TWZ>?MS4~!$eoen5( zQr=^63}HDRMD$sZ_AG07;Gz6mN!8IfA^eIakq^NX0^>VKJcBUZfqqUnxSa*vcaRaW z)^kRE&!(58&qDrg)SsxXhFg0v&zy4x6_Ai#bbE~=X04Mjpo5z^GD|=Ij_I5{^t?O; zpF=HI^P~|ew1fUwLHlwyLo6rH^(dBCP>lvA zooS#X3%^EgX26KmIwHnSTL)PK)<*zbM{A0s8Q@1Y%O_iI}L3tyg7K zne0=Q`)F45JfnaM)skI&b+}O3MQb&H?$aEJQGXlSbR@$N~IK*|sG)NqfIXjeD)EN4!>T#-*17D?+m2W4K!_13R9Iw!r69T?M3pDT?;bUV#@;5Sm763D^7sZ^A7`xbY&Jzxk~%99 znipL=jSU2vmiI2Ea+>O*8flH91)oW>Xp-ie076-@u^_B{f{g4Mg(HTXB?BlJ()Oum zl);7t<&2WRR?)+@AG%jg*r%K`kLJk5Arc8>iXN!ANBMQ&2xl2f@>oAiJ=PoU5p&9( zGO#Svo*|^vio4!e23_U7FQ@9#9vZppO?ibK0a*!M6hgm2Wf@PZvgds%^)1;`Y%FPN z8i6gEx^g?}GEg@@L8aW7$~sz9=b}Br{1{5Ss7kzG{Z)8<_-6rqI&6=sEJ(y+6Gp7s zNm#?J$juDRwEt(2&Bctv~~StRWFZX_p%l;vS@E0Lln=12xtZN z1GGA^2g{r2@x=0Io3U5XeMdQD*jMD@cq6eF5pwd*VV6+}QdYGAdl@Y{BeiXp&^<>L zpZy4}=ffq~{=cfQ*U_4Da~aqMdZ_Ih%X@nXmGzEDO{se%spS8WOtJqhphpnAX{l>( zHmA<1^7?NUe*Rv!$8PA8plgP_TkFz5HoMv|MJ9&p{XCKWo>@DV)3OQEGCU`005>n{ z|71HYIY`5o-fO`q{d#6Y(JTvi;!AH@)internalAddGeneratedFile( - ' -Ï -:google/ads/admanager/v1/private_auction_deal_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"a -GetPrivateAuctionDealRequestA -name ( B3àAúA- -+admanager.googleapis.com/PrivateAuctionDeal"Ê -ListPrivateAuctionDealsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"š -ListPrivateAuctionDealsResponseJ -private_auction_deals ( 2+.google.ads.admanager.v1.PrivateAuctionDeal -next_page_token (  - -total_size ("« -CreatePrivateAuctionDealRequest8 -parent ( B(àAúA" - admanager.googleapis.com/NetworkN -private_auction_deal ( 2+.google.ads.admanager.v1.PrivateAuctionDealBàA"§ -UpdatePrivateAuctionDealRequestN -private_auction_deal ( 2+.google.ads.admanager.v1.PrivateAuctionDealBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA2à -PrivateAuctionDealService· -GetPrivateAuctionDeal5.google.ads.admanager.v1.GetPrivateAuctionDealRequest+.google.ads.admanager.v1.PrivateAuctionDeal":ÚAname‚Óä“-+/v1/{name=networks/*/privateAuctionDeals/*}Ê -ListPrivateAuctionDeals7.google.ads.admanager.v1.ListPrivateAuctionDealsRequest8.google.ads.admanager.v1.ListPrivateAuctionDealsResponse"<ÚAparent‚Óä“-+/v1/{parent=networks/*}/privateAuctionDealsê -CreatePrivateAuctionDeal8.google.ads.admanager.v1.CreatePrivateAuctionDealRequest+.google.ads.admanager.v1.PrivateAuctionDeal"gÚAparent,private_auction_deal‚Óä“C"+/v1/{parent=networks/*}/privateAuctionDeals:private_auction_deal… -UpdatePrivateAuctionDeal8.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest+.google.ads.admanager.v1.PrivateAuctionDeal"ÚA private_auction_deal,update_mask‚Óä“X2@/v1/{private_auction_deal.name=networks/*/privateAuctionDeals/*}:private_auction_dealGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÒ -com.google.ads.admanager.v1BPrivateAuctionDealServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionMessages.php deleted file mode 100644 index 55f04fe821b522e7998e43e742d9eb61a257507d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1705 zcmbVM-A>d%6t=s_&wvnD4eJtQR1AyJHj9Y~Mbxdx!UeK1$c1Ur4DIYPv9!(1bPbZd zG|^Y_5qt!1^bxq`5xnxWoi57)32~EYyK~O@&N<)tdGRXRkI+NhpaJDXQV;JPV!2Oo z#6uanp^x|CR*Q1%h6fSzDc3Px+s5ye0@9}3 z=+umevko9TBz7eW1LuGW0WzVdE)WU`+(g8sxY4w>s3abd#BQW$cHI+j6q>zTTS3V6 zi4eG%q1H3dErp4W5QbkA@A=HdLJ|qDc_thdFv*C|zCebnxJ7(H0qVSND-O~qabmC? zxU{;6Gt5MHJ_>=6Rh&oHOh^KP?9D(@9uVJNqr&AZk|A$`s%f^V>`|NCR2P-o1dg?E zHH*~v^KII4~G zPOWk`2aK4(Riar#R_2r_ZBHn!A@gi9g$I9z(B#?nE8RpxNgJ0ntX0RX;&FYnG>=My zozJ{-0ThafLUH5TH%%+uLlYhokxvet6rh*`6gIR(K8waZ)lx7!<)K`xZ4?sm8+2Px zAI8#g!$1;OI2)wQziTJ;uNtx! zE)9Hu|K)(n&msRLj3f00gm|=@FCVogKs->B?&B$SldCLEp1rW{pj*y>mBT!13f*w} zOJ_}@38$}C);Jn-a$ZwmACc+*K6b3%8k&KEBiMz_P4%U`;|-VbQ!}#$!u81CxuF8W}0A^ kJe1HhcWZmYX#md_dh`4w+i86(@Y3~{YGzBSi@FH?1D-ZAR{#J2 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionService.php deleted file mode 100644 index af7cd64d4d9c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateAuctionService.php +++ /dev/null @@ -1,62 +0,0 @@ -internalAddGeneratedFile( - ' -µ -5google/ads/admanager/v1/private_auction_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto google/protobuf/field_mask.proto"Y -GetPrivateAuctionRequest= -name ( B/àAúA) -\'admanager.googleapis.com/PrivateAuction"Æ -ListPrivateAuctionsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA" -ListPrivateAuctionsResponseA -private_auctions ( 2\'.google.ads.admanager.v1.PrivateAuction -next_page_token (  - -total_size ("ž -CreatePrivateAuctionRequest8 -parent ( B(àAúA" - admanager.googleapis.com/NetworkE -private_auction ( 2\'.google.ads.admanager.v1.PrivateAuctionBàA"š -UpdatePrivateAuctionRequestE -private_auction ( 2\'.google.ads.admanager.v1.PrivateAuctionBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA2‚ -PrivateAuctionService§ -GetPrivateAuction1.google.ads.admanager.v1.GetPrivateAuctionRequest\'.google.ads.admanager.v1.PrivateAuction"6ÚAname‚Óä“)\'/v1/{name=networks/*/privateAuctions/*}º -ListPrivateAuctions3.google.ads.admanager.v1.ListPrivateAuctionsRequest4.google.ads.admanager.v1.ListPrivateAuctionsResponse"8ÚAparent‚Óä“)\'/v1/{parent=networks/*}/privateAuctionsÐ -CreatePrivateAuction4.google.ads.admanager.v1.CreatePrivateAuctionRequest\'.google.ads.admanager.v1.PrivateAuction"YÚAparent,private_auction‚Óä“:"\'/v1/{parent=networks/*}/privateAuctions:private_auctionå -UpdatePrivateAuction4.google.ads.admanager.v1.UpdatePrivateAuctionRequest\'.google.ads.admanager.v1.PrivateAuction"nÚAprivate_auction,update_mask‚Óä“J27/v1/{private_auction.name=networks/*/privateAuctions/*}:private_auctionGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÎ -com.google.ads.admanager.v1BPrivateAuctionServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateMarketplaceEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PrivateMarketplaceEnums.php deleted file mode 100644 index f4e26ded72b548f5e9b7892258fc0d1879a1bd42..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1075 zcmbVL&2G~`5GE-Uv=k}$QVBRLrBYJ?wjvHl4gs8a8(HMXN}NbkmaL7laaTBNYrT#H zC{My0@D!Xm@f@6Z1lB)Iiqc-NG`2N6^Udsh-@JJjU&P=U>=H&e7Gw@*pP{%QFy@hn z{3wL8bg>{D`q46`A>k^7<`52s4n(HqJe8?QlyaZwFo>ccBpRM4(w3OvfN*Wq&|*$k z64_f~{)vb<#6Ix|OP7h7*8qUwB}roGhF!beCj!s0z-~8(bB%c-t%P%@jV1toh?4}` z1#EwdiZW2}6+rpK=`5r^OavD4b4(MDGAbwz=@)s&7F^&kArfmhc9Ak)(1^h-VaR+^ zKZONm7JD2=awaW!*`A$^Nsh?1m>`_t&^1Zoa~g|?+cH$w10puV%{=wfvTO!N7qDLR zsOvjTwxHlCxmq1UPDILCGw(YCSa1IF&R)KyWgo_TzA1YqiK}k{v$PZNXAivoPsWtP zB2kr8ODnliSB;||6>tqNCc)uY5|JhuLr32#;K?p|+aN^)&+U;lH5}yijnN0>*gd0z zJQEo`Z|oS(Wb91_V;gm>GYgruTgrWK*G2==8gy$F1%Q2{<5*Kvt11WJUdI@8P)~;K zDG$MeG3xcu$g_>fSh{X2HE__LeB65Ow0~8=W2trZhAXzOX+76nE(E)B{=Q5Mq7bt{ zjd-91gyl-tiX$A;Y(xItlICWP->Zk+T>7e%zO;U^N$Rxm^YX;aw?e+kGgt1#@9Lu> nP1j{!_9_o`ecG7q=MB6%*@)mpp{*-YyitaEWTChFJOfwWf+J7Bfm5G?S=)(IrQtxNjjWydzMcJc=6kgtT|{UDw`fQOk<`PTK9(00 zM}kZ4@&I>|ZkGz|@?OLODs+qwPVu|bGyL}8`0NQlW1a|?n%L*u52!)B7*>yj#HYfz zY#6}g3)1Tm$y}$C^r>)qG>#!0>**;7g#>mY;!@mdTPIW!k4R#-QbN1w#jtWh`@FG> zkQzciF0F6lj8o-qMjUk6!@~lh4#`0#`#6+Tge0&JXzU6WNiN!uYMMTkBZ1XUeLFu^ z(XlSBXEmDUM3H+~iiD1zjesI}G}BS`N!^ePBQ-qt?6$)P?ENa*Wa_y#lpoGZCeyupOK?v7sSdugSW z8m1103F{internalAddGeneratedFile( - ' -Í - -8google/ads/admanager/v1/programmatic_buyer_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"_ -GetProgrammaticBuyerRequest@ -name ( B2àAúA, -*admanager.googleapis.com/ProgrammaticBuyer"É -ListProgrammaticBuyersRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"– -ListProgrammaticBuyersResponseG -programmatic_buyers ( 2*.google.ads.admanager.v1.ProgrammaticBuyer -next_page_token (  - -total_size (2â -ProgrammaticBuyerService³ -GetProgrammaticBuyer4.google.ads.admanager.v1.GetProgrammaticBuyerRequest*.google.ads.admanager.v1.ProgrammaticBuyer"9ÚAname‚Óä“,*/v1/{name=networks/*/programmaticBuyers/*}Æ -ListProgrammaticBuyers6.google.ads.admanager.v1.ListProgrammaticBuyersRequest7.google.ads.admanager.v1.ListProgrammaticBuyersResponse";ÚAparent‚Óä“,*/v1/{parent=networks/*}/programmaticBuyersGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÑ -com.google.ads.admanager.v1BProgrammaticBuyerServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportMessages.php deleted file mode 100644 index 1e655f1379b053a4001e273cdc2bc815a28c2f9a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3786 zcmbW4-BQ~|6o6xl4IDaPL?DjSX%v!92-C;|Z7*u_XRvHMjcsZiGilw?tfjTlL`bS6 zlW{X#_Z5267w8kT(+B8GZ~Fqh&Li}yXLltTOc-#Pu`PD@d^&r6cb`0Wk6gGfSEx-r z5>P|#4&~s8%C6@Gj_z1;chKumPu87d*R-go$a1M6*BdQaEmd3hP}Fw@o=yvL-*NgD z%@f1N&oQw{pL+R|&Adll#|yM$>ian4E1V2q6C81gPUXt}PK^e{AOY!AIHXfFeEfuv zPJ443K(~nR%S{feg)DdnGXA-Pu4U@7ACLfl9+e3_N?A>&*bC@l)p-HtPsmm1vJ!!?6p6 z(Jn{O2~cff4d?_E*X)!{Y8gB9h@6;?H<@UYhLLq`wPXLZOpL979J|+lV{7QrP6;z$ zVv(WKdrRq?3FVlIPR}6256kh;d;H7{1FdKnaa@%#4cFsHU~%yfep`XZ6XlWOz$Lut+=C>YQ z!5SqnLrqDy;UmNJU5gAgzJ*k@g@p74%nw{;u@6ljR`++J%6z{rFW zKzgrQDyj9%4QUQirDn0*$|Tt1L9wltGE)WZeX-MlyQ4@J{vodEE7-d7q1)GO8oYJ9 zH-7$I_@wEMK~KXbg~P&2ryDck!QV=Yhqa$luqY^4B}j{OEt>l!0m-KGR(b{*18r*i zxM7Vah>ww#MCU%ZblZZ(ORCg{vl|yu!6{r4X?j5u_bR zv0eCBRarnQm!iV_iYug2MloIxa(|>?Hd0*r4i;I58*qdyF&tq*z2TG-l-P*>I2kp;>TLfVLQVZ}&R&j7jT7jk3UQ<=i4JW0W zkSU|wxzTCfdbnJQfe%&nYha9KeXJ+RnNU=-e=v>=_rHg5S?W?Y~)uzz1 z`0}v$`T+I(7_x_ZYF#V8ELODLMjfwN)kgh5tEsKb)Xtv?xPt{Ra>}@uca}vCMK>gV zB;HSa`yxEA^c@Q;n&No^b EKS_1b=l}o! diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php deleted file mode 100644 index 268358599e42..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php +++ /dev/null @@ -1,89 +0,0 @@ -internalAddGeneratedFile( - ' -» -,google/ads/admanager/v1/report_service.protogoogle.ads.admanager.v1-google/ads/admanager/v1/report_messages.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"I -RunReportRequest5 -name ( B\'àAúA! -admanager.googleapis.com/Report"c -RunReportMetadata -percent_complete (4 -report ( B$úA! -admanager.googleapis.com/Report"* -RunReportResponse - report_result ( "I -GetReportRequest5 -name ( B\'àAúA! -admanager.googleapis.com/Report"¾ -ListReportsRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"t -ListReportsResponse0 -reports ( 2.google.ads.admanager.v1.Report -next_page_token (  - -total_size ("… -CreateReportRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network4 -report ( 2.google.ads.admanager.v1.ReportBàA" -UpdateReportRequest4 -report ( 2.google.ads.admanager.v1.ReportBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"] -FetchReportResultRowsRequest -name (  - page_size (BàA - -page_token ( BàA"ø -FetchReportResultRowsResponse: -rows ( 2,.google.ads.admanager.v1.ReportDataTable.Row, -run_time ( 2.google.protobuf.TimestampW - date_ranges ( 2B.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeb -comparison_date_ranges ( 2B.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange -total_row_count ( -next_page_token ( 2Ò - ReportService‡ - GetReport).google.ads.admanager.v1.GetReportRequest.google.ads.admanager.v1.Report".ÚAname‚Óä“!/v1/{name=networks/*/reports/*}š - ListReports+.google.ads.admanager.v1.ListReportsRequest,.google.ads.admanager.v1.ListReportsResponse"0ÚAparent‚Óä“!/v1/{parent=networks/*}/reportsž - CreateReport,.google.ads.admanager.v1.CreateReportRequest.google.ads.admanager.v1.Report"?ÚA parent,report‚Óä“)"/v1/{parent=networks/*}/reports:reportª - UpdateReport,.google.ads.admanager.v1.UpdateReportRequest.google.ads.admanager.v1.Report"KÚAreport,update_mask‚Óä“02&/v1/{report.name=networks/*/reports/*}:reportµ - RunReport).google.ads.admanager.v1.RunReportRequest.google.longrunning.Operation"^ÊA& -RunReportResponseRunReportMetadataÚAname‚Óä“("#/v1/{name=networks/*/reports/*}:run:*Ê -FetchReportResultRows5.google.ads.admanager.v1.FetchReportResultRowsRequest6.google.ads.admanager.v1.FetchReportResultRowsResponse"BÚAname‚Óä“53/v1/{name=networks/*/reports/*/results/*}:fetchRowsGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÆ -com.google.ads.admanager.v1BReportServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RequestPlatformEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RequestPlatformEnum.php deleted file mode 100644 index 165b2c88b7e330ab29eb656a6876179c6031076b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 987 zcmbVK(QeZ)6s4O4l0i_FhfTo4WlUNpL8@wRDFs@ZR*}{vv|SM>QsgF1W+}CU<4hW; z|H3n$g7^}?0z1i~v9T8-T|4r<=lJ;E^ZIRimZBFhA&dwtNeHV8kY@x^!6grP0;@cV zh=72vQ<@NA0E`?saTZ{W?8S2h&3G;XVnWP$oRAID<*FBb zxRmDV_Ndl)Hj_j!oOmOW1%jrM3s;qzW=v$=RDIGutgh8`G=g@i(KK&}?1L0Jxq3T* zATk%MSLoIRoBFR%_Ua9-bPU3;Qe=Mo0fKsn$*jGSqlgR5LNoyL%Vt z@ju3~w?dDu9k&2In^_-Dt@*-tj|YpfGn@LSCv(?&Z;x$j)V$NWkM0d;&d0emYc^UB z5t=$f``GdauG`#dHPM5mJ+d4P{-i3lhrb%=sq&?9i?reHH3ixy#o*k==XVt-<_Tu8 z!A0DO2`gOLDN{J5+R1;rxmUma$JWlIu&JSJs$yC?-dJ{jUS_<)!D^{;p7QYTttTbS lG!;%SRnjz<-PPSfz|lcHw3nq9u2|<*+Z2_hLpErG&>v^=K>EwKP^1&e%>)MvnDGc(7f|H1v1geuWB1^$p}A$kun-1ZqvSLV zN2nsnGA-oXg!+Dhy5i5?v@XiBHXYkRtLV}9A2itmEpxnI9YCVaCGWbvZGuDfJOK}dVE}KJR?toY57+l{HT!=qbcu^ zvIAGtt=sWGuYLYlh9)AVJn@7~+6i(esdnL_8ME5^SAX4Vn(y`I#A(bk8Z&lPXw+MG ze%^UPCqHwPzR(Epcl|{H^L>M}N9pwab!U6z8hCqNasRql={*HJx_uW}Ec!qWg!}TrEM%AAe9oOltpF9n%EOFs^hU{##9t# z-*4%Ebkjw@p=OZt5(u*U~63#l+M-Z{b_j*ju}&cX3xD3v@B9<^}5c@WYD@g=MQiAX?2w=@mqxB7(Vd~tqm;?E3 zJnE^V^#CoLgGf;kkSc)5;}c4 z#)7IuL|bX!8elm7a{faxM=P}(B?D<$6M7T0YcXQx>@gbpHa#V0jEmcqc4=;eYY$B2 zeEEju; zwUwy^kyFS*PyQBAN$XfyLM83js)3FAyj}d$Dpyv}TLf;*w`=Va1E7v2@4hYxH(5F=D>WqEYz|x%Yr)n$b*)3((KKq4ZK<(Tl__K-KVC*jgukG L%&zSa4H5bWN)gql diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php deleted file mode 100644 index b0a9f69e55ee..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php +++ /dev/null @@ -1,52 +0,0 @@ -internalAddGeneratedFile( - ' -ì -*google/ads/admanager/v1/role_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"E -GetRoleRequest3 -name ( B%àAúA -admanager.googleapis.com/Role"¼ -ListRolesRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"n -ListRolesResponse, -roles ( 2.google.ads.admanager.v1.Role -next_page_token (  - -total_size (2ì - RoleService -GetRole\'.google.ads.admanager.v1.GetRoleRequest.google.ads.admanager.v1.Role",ÚAname‚Óä“/v1/{name=networks/*/roles/*}’ - ListRoles).google.ads.admanager.v1.ListRolesRequest*.google.ads.admanager.v1.ListRolesResponse".ÚAparent‚Óä“/v1/{parent=networks/*}/rolesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÄ -com.google.ads.admanager.v1BRoleServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php deleted file mode 100644 index 7a1dbd7371ad..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - ' -Ÿ -"google/ads/admanager/v1/size.protogoogle.ads.admanager.v1google/api/field_behavior.proto"w -Size -width (BàA -height (BàAF - size_type (2..google.ads.admanager.v1.SizeTypeEnum.SizeTypeBàAB½ -com.google.ads.admanager.v1B SizeProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SizeTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SizeTypeEnum.php deleted file mode 100644 index 5d1476b3ca03b1ad527ec76b2f973df4fa98b95f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 987 zcmb7C!EVz)5G5&1Vd=p{LKSdXN~NY!aTN9D5Fo)$WGPLo#EGD?6m9H{Yspz#>vg4q za^e^G3J&}Q7e0lrVAgi5psEKf&F*UF&D-ah_x62!9i!KHKpEvkP!BI}vACu<=8=fp zD8$QjwW1um(K-%7%2kZ@F&>R=Z0M%_3QChGtoX zE5h)_=`svloCqRdI|-6SzycAF5TG9J;1vlI3IunttCYDSh!~ayW9HJv8O}K+_9Twr z?>l&_$&w9$W;iAjlrs`KI!#<2#3JGrKsC*$qHLqQX`B_$O1fZ$8@WbJyCbrL1yAYj z>lkw?QqJ0$Zb`5yPnohe?}9={*YnC}`!J$L36y20=;t0f|DV~^k8-pMlY}Uypx(5O zzgN)V?gWm%RnVjDMg2K?HZ`w|h5gww7PHaRGCrDp)6kU%^~Y%6GCvtZrBYYWVOOT? z#iVPSW2Gu@%#m$OrnYID-J!Bqe}WFo!Du{z+J|+7Y9m0-4P{^Q^oKK3S8DRuo#{Yu z(EC+EFTtMbJ+gaGw-TjmvN2kfs}BX*k3zzHHR68Lrz|sPGf$B?kWT*B&F!)wKdMKA z%&jW872+~?ygG0F-e#Q4$gmVS2dw<3`XVpWG^mqHk<_$#Ygx+#T%498JkOo6W2Adc Mlp%A!Y|sXwzkLTa1^@s6 diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TargetedVideoBumperTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TargetedVideoBumperTypeEnum.php deleted file mode 100644 index f1b621efe8a725be61d82ed49d95dbabdba2a57e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1026 zcmbtTO>5gg5UpJr=$?!(hUT(OL*tZI#`Gq~ZLMl;d~hsW#n2)UYiX=3NV{USGNi$O zsOSEQp8G5ME4uoKND0oRf>{a8yf;rXPZuB4>lD4hGvFYpf)H zTaY*qNy=i72FCUhUoKrt?790=Lo<=f08AVS5ydc|VWuOYoJJrAyWv1l8G&Z@cPs?q zZ}KDs>8qO*eBgOvl${XbG=VIo0pOWqEkMzbD(cNjQg0GwI%-mHJscqv#5BvWTa&K~ zZmXnrH8at~=oVpprTHdi0nQXv`gY1PpK+!bjoEkowPU=caR!?2VeK~OfntK=0F83^)Kh52T)gR@*KG?rw#EHQ zqiH@6ImSxnaKAgo5>zhvsMK8$?3<@j*}D&{)-eggrtMU(u-_CGuru`YDH{LR?z+7S zZs^tPsJCS7h9|e^_>l#jcpmB<$amkM*Y0FBBQCN1_1q>)-?~~jWaYbG9pYbIesRd> z`E*X~&XewQ^lUP9$*R-pB6MVt>2gInZR>Xn9c$Yf2h>@QnWx;Q)B5(Q21g>MJTiog z1`+VmvV$r`Q&t%MU(=78G5l!vW~GM>?O`2@>c=qF!(Vq9ue7&5>YS$y{-^z-f|;hq j6-S*k&Gm3|R0?>1)@<@^WsrM*I_Racva-z{?GgG5nQT(Y diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Targeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Targeting.php deleted file mode 100644 index cb8966f9dfa06f7a0e3c05d3e20d8bd2f19346ec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7967 zcmbuE&2!vH6~K|55BvEu^4Hj5iB@>y@g|;GJ5Wna)-0C2aZ>rPD{%~jVTDF&k5xM( z2}$FPp>m{(f`Z~eapFL6sZ%{g&3~oScwQv;B79wn$jfw7moE*};+a z(cYt@w^20mJE2W#TGRKNEmF0d2tRGhvzjEVo^4iRD{PY3^_msN1n{gji2}bRN%m~NqJr4O#1F>;G@;sTB^_?bp$%0{>Y0-=vl4$ z9*OMG4Prk$#8+!Iv@UZW{ieL03`=qDiB{%1)@nUUZfkMaA^FiYEhKR#^zJjgDd0`^ zUwsI7)t{3ecSsZ;wygNX58EGkop!C(HMGkeipHHzoMYD^zR_t1Bs@9~$d{xt+Myre zbot%|S%F)B;F6YOkW=f-^}`Dohoa9(vReDPgiZa%x7}o-cN{01*9W-v%h^oOd0B&B zy$|)ZAy>V+#9ypnc;F{l-<7k?mF@peAdY!Poo_an_stmHZxWnU9!)EoGI1^yBwo&o z+)70Pw|YW-X*LpPCd}pB3t{3h{z(7g8jNR=sP4d26IIJ1yfmUI<%z9#Djd*bY-OML znY1zbuN_4_fcco%r=H*Po98*wC?nmKl8!PV0r(W=T0{1yA(rj-=q}j$f%BecVs2fu19*Vu-QUdc4 z+^~I&*#d5c;nt+BN@dhZmM`}%45k$Ws26TI8lwz|CFv&ZZsAJr7Hs_%HR?L3d1r* zwJfjM!D1uF-gs{yn+po$AHiD*8TXgYiDhFYQSdcSF5ehHf0`2(M!>X?#D{H#p<95D zG1cX1fyc%!mlL=+oj%qU7;awEjLxH&JhAnYMN=lrux3e^nDk~gY-?~l~P5$b5w4?g{k^y z3M{3uE5w)j1m-e3a95yV>yp%fA*Qs*rMS$19B$|pQpD+hQD8a!Dot2N>3*$Zb&%6N zdEV82lezy6tV`W5qA4+_evZfuxHwV&{0iLU!}QHQ>MM9Fv%%rHIiKUA(sj1!-D9?F zz?}iM9|zr+AE!7ujTTyUY5MB|c;D~;U> zGpY=?2N;#?Ta+kTlM(sqzaUZn%_x*)J6IuqiaTUfy2{)(IMWIELjLTfUb`gK20e4O zNHxz$7-21)2I~9F?VHeT6(vPUR^SRcA9HyX2g&>|AB0EjWe3s!gC#@nflz&z+jA|) z>|pySDk~>_fllE@+aK;nw#FqS|zuS(|u5dAI z^q-BuVtk7VZO(CpOABQ>Kr!)mkYvZkI6Y(x9TyPC$w(NGpmKI z*CZ(q-Yf<5F_ktZVBAdYFqUA!>=^~M*MEs6x6J)APdtVj;%ujT;NT5J7_6YC{tE@> z`^}k5lV>njSQ?4nc;{nq?U);?*Jt_=JFEOm97rf_dEcy?3Zcp7Fu1&`o6)ri-31O0a15^^q|HQ|OScQP8qzM8=jG`nG*(@?>Q~ZZTyrqxWY~JF_>7PW)_LOQoA5g|Fr@uyyWlKYsDgQ z;lvH2*bJ<&(7NO8wQcFTdqAZQsgRtWgdWX-e7>+}rToKRP_%5rS zZo{g)dg?ZpDJ+}r0*s$TE(A0Froc_?EX#ajO!L4)YuT0Pq4MfG$u&>Yr!Ad|A2zE^ z;;~!aYPVh8b0d5|v+YkKOZ)8Fw}RKc_`zd2y)~{JZ~h~FQfD{9_$zr<$2;MFkF0R9 qS`FpsujFB^cD&iR#uT`>mfhCf<+rT4OIhiKEPIpRk-mX90RIC`v#%xq diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryMessages.php deleted file mode 100644 index 874dffea9ede1e33f0967236bfdbd5103d50fd9f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1749 zcmbVMU2oGc6eaE0hsDOIKr0(;1}4@4OVuGEl(9j>zIYg`P&FhJDRL7xvqJ9Y~Tp>~BHB>{jUwGto)!@Zh$fF*K~MAlx!XH{LHo`lajs%!w@ z_(%v?Pk5gvvBB`Q(G@auYU@FR&sT#5UX1k%Ung z1{_icmsVlS8Df_Mrc~L4X??X&C?%5hf=bLO@~v$w98LnscuheK!^1L@H(V*LCTT-D z(uAeBM#C5=auZ74#{JnLve+zwulR+7pFj94GizFIWT{n|#SB+gMYcgzk1$>_XkNLsT3EyQ(internalAddGeneratedFile( - ' -Ä - -7google/ads/admanager/v1/taxonomy_category_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"] -GetTaxonomyCategoryRequest? -name ( B1àAúA+ -)admanager.googleapis.com/TaxonomyCategory"É -ListTaxonomyCategoriesRequest8 -parent ( B(àAúA" - admanager.googleapis.com/Network - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA -skip (BàA"• -ListTaxonomyCategoriesResponseF -taxonomy_categories ( 2).google.ads.admanager.v1.TaxonomyCategory -next_page_token (  - -total_size (2Þ -TaxonomyCategoryService° -GetTaxonomyCategory3.google.ads.admanager.v1.GetTaxonomyCategoryRequest).google.ads.admanager.v1.TaxonomyCategory"9ÚAname‚Óä“,*/v1/{name=networks/*/taxonomyCategories/*}Æ -ListTaxonomyCategories6.google.ads.admanager.v1.ListTaxonomyCategoriesRequest7.google.ads.admanager.v1.ListTaxonomyCategoriesResponse";ÚAparent‚Óä“,*/v1/{parent=networks/*}/taxonomyCategoriesGÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÐ -com.google.ads.admanager.v1BTaxonomyCategoryServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyTypeEnum.php deleted file mode 100644 index 9d886309b6d09f4e6289b72ebea7c92a5fa0ffea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1114 zcmb7DU5nE|6t(NR%HTsO$odK6TG%dVy4ih8t=cx(5U@$uO^YjmFiob}Kspm9lf^21 z^0)ZnKhdA!gTKMa$A+#;1p_k)bM85FbMHN`-zFCccmZ`xFhd*%aJGc}0>gw+PJJ4~ zSvH?z27S6nq8Kv?Le+w%j}oacg?(v107fgz<~jJqgE#abYOLd?3Ca+jk|l+eY} zW2oE1G3F>h9JzX-;|_vUtV+k7$~^%57^Nw6Dm_QYX+jNr z0Z=?iHj5)4rW|qcYDcLTk%&hqjy{XO>ccsTQ!GSo#?CY1^N13d6D;E6&H*en^VoJm zMHTw+Dla=Pj3|n05RMr^v8&?LXHmi_vqh+)gqYXm%uhN8)wQ`?G>4rsM@6}jWFK;t z;q}`gWSD1+^oqQ5fmQugWcKP!ROK-Ug8JGM(W*`znA7&bw{39vzddU0mJCUBRjjHT z(xtrjbqh5A?!?~j2Dra|*m?#YIfDgurU~VgNbTr z=1B8oPj23BJp~VIb`Fm$)6q;vpoh(S8_^@d-Tnu9)ZE#K9t-6=tqy3{_v)6Vzt_Ao z=X5f1Ca0R}O$}AEiX83^e>A`o;S6a*m4*-2tC0_DF+FzUJMey>i0u^N{ d&vuFgj`!=yd07tR+Wc;u-6FCa(-l|&@CPe|Vg&#I diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamMessages.php deleted file mode 100644 index d998ab85165c4653bd417913f619838fa4d52c1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1612 zcmb7E?QYXB6eVldZQdAK1zH&z7?@bcN2-p083P(^YbP;QjWP)oDRL9Hvq+sNc8ki? z|2zQ?!F%wBr{MQ^39g;=Lu^B=l9SZ;`1s!A>+|AObP}P5xJo&ViKISm_OU#nIEq6V zdSQT@-Bydn*b6%m3utU&ymN@(9yajq&VJ)QEEQol_Nay1Vb~66iTDCWhj7xSaj91> zNlH3yhYA4`!qmJ7aRM_D@hGm=?E@-_Pb6`wn!>600!B*V9GABc@&Y0RZUEIm%7ji4 zhF{ce2F$}k5(%$0CS1muWF%l;pqOpkB7vYla30(0a!<05W3}Lrd$hQL6HbL)i$W-V z8xM1;D?LC9XP-+Na}qc^RCqCqWEj^0YFTY6M=GkB;zqiyqGK&wOmeiWb4hMv8F%UA z?ij~Zc4NM!^Hv0d(U$h?QEZIJcQr zmvrLF?Fm4fmXL%Ve9NM&(lNh;vZ`MT1~!UwcIH=QHh&i__)J6r>AO0V8HT26*S;D? zeihC8X@5YA6|%#yQ8QHd4a%u*=!(KLL>4zU%}WX}RRZrcR2}EUUzJCuHl^4ep_?QK zTy;eWXH>Yv^Wc^ga=<;Sa7HaNfn&T!Ikatmh?^PXvI_SB%_j`5>_@aPt5dZ8nPNrn z*Z}w_&GA%{!Zc7@@6RenXmxxxT|Buc007nJ7Hfp!v@lpx9A z@w9r0&8&LaH_&x=@;vNCwBSx0fIWw1+(dDE8QpR(l4}(BTOUm}A&C9MKzAV9%LK8P zR2f5`(#BCYKE6&*xE%(Bx6Lqam)ewTJ1mV=IA@<*BdxwqEmyTan&6Kx4ibwskIO%Y z5l34mJkpp0=6N=?k}R_AqE5}JS;GbXK*MyiUtlmabDy9m-mTUrE)RJnDkU*y8ia-eCyobA!}6Yr(k#hYfOQxpNfhG_3NsNaL{WrU=ce1?WQFHB zC47!)zS0U}04Q4FEJXo^V|Qp{jzYwdKQ1`@L70iCIQ&_+2S5;`EQ6llnhGjYFoCZC ziYLt%F$rMC5f`r$lFf+#5EPRy;x>J_L~(`%!ENj^rvWDkg|fh*0dAkcl2c+&(nQ?8 z4>y`z*$~kT-=Z8dielfuS-?oj6Xpu2u1A<}+bDP1XVtNijx1rj)TryXMD`(PIo>@T zLWX(HXs^&M3D(=MLfP|Iq|z}6!|kynF{1VsD9cX4j|MpZpV_EKC0Y}c6j4nYclmrrKYyP-i0&0RO;#h zXc&W!N<(gaFwJ+$o_Zhb+s?$hQ1;bB(0Xr;Oi8IUCDwHezhd6(wER$9YfHSk2( zQoBR$@WDo#bW1TlxAy5xg^rRK(MU^J)QK=HOxY<@C?(Rt|GK!hZN$&|(YSD_CR{4Q zE}gE;y1zFWzc8>^s+=z@{HOl7EYo#SCzmRz>$C2nSqOM>x*gql>4+Tz-D#czS^8uR H)&TqkOU^LY diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserMessages.php deleted file mode 100644 index c392dc476e78543d7c3e76807d5865b280ed23a1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1493 zcmb7E-EQ1O6lQ<2yEzm}_a>V_VG60brQp@l8{`mRtScfL7uzWX7&%HRujh$(7eF=m%9 znY}`mX=PQU5_Xx7$EaDPrkPAodyE~Nu%Az!v7Zi}KD$S$M&&v}pG}mSBsdVUp*0n$ zn4liahJ)Oo=2J9=48|*P0a8JhOhm{IPlIE$A{JJJhXq79iVdv_BD@&x0Yr%~hMg1C zafJl0fzgxYmx+v+vBJ`}D-D;av{EGU6&173#v(CD0M}#3c^X-%Qsxp)(g^zxS&8Xl zcQZxB@3RG`Q>O=M5k5^V>Qp4*0h&n5%qo3Kp}s#syHwFx`VXt$IygCI{gR{aUn9BC ztj=-$?~G}*xlZ>A-VR{C{0iTtSSG_K5|cQ0Kw`~Iq`706AgXILHLJF^NYzW!cT zg^%KRS?3dKiT;wAvpAJv?H z3pQ{nWYTM_9ChdT7MfZm*lQN{`)@||e@36d-4)%Es>r1A=%x(LDEO%1GJDVx)Mhj6 zwJ5h!l4&~6U3edVEqjR**Y@I3qgZ6Y;dPwunBFd#|aXA2)Fo}0znr(;)Jwba_|Z4 z@EdCk{;I*pB)4}%2L*S|32!kliW_`dd;Vh;JyD5BC!W%i!35J{E)7=4cx{gDEf4#T z`qp7Fs5}}}w2sSJ=Uoi{UUWyFbDV-4T0G; diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php deleted file mode 100644 index c5ebf125975b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - ' -¨ -*google/ads/admanager/v1/user_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"E -GetUserRequest3 -name ( B%àAúA -admanager.googleapis.com/User2× - UserService -GetUser\'.google.ads.admanager.v1.GetUserRequest.google.ads.admanager.v1.User",ÚAname‚Óä“/v1/{name=networks/*/users/*}GÊAadmanager.googleapis.comÒA)https://www.googleapis.com/auth/admanagerBÄ -com.google.ads.admanager.v1BUserServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerªGoogle.Ads.AdManager.V1ÊGoogle\\Ads\\AdManager\\V1êGoogle::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/VideoPositionEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/VideoPositionEnum.php deleted file mode 100644 index 4d658f86e8d15e739b88d6c14eebe5776b1c8e1f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 975 zcmb7C;cDA35MGk84sC-jKUU~q+`2+j*c{CMIm@NS--l1xRfgWcm@p!+Brz<1fV?7*2`+iWQ&<+O z6%i2ebw*PnECAPssXv2}>&;%P)SMS0A`T>+Cn@RTI9ImD3@1c%H+FYJW5O31 !G zEeI>tmO)2|;Wf!K91$1?!wHc%#uA5P0~8M8Tv-Ja&g~vTQHt{%<{B`l@J0#_{X(F= ztXQTrf?Q&$wqu$vC{s0YN`I<%^Ei43G8ldF&b*Pk|De5xT7&cR{YLu<+M9Upg|80H z_EYp&#m~&CrCq_r$Q&LHuN&y4QloVbt>KHE`dS}mU_s;C=PD)PDQ1bqMbb?OGg|DH zE}T)V-dzRv>R1119*m7REhSE6lTzi@+`hi?ghsb&seGYQ?%(ENndUeuPcN0zapv~& bksgoogle.ads.admanager.v1.AdBreak - */ -class AdBreak extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `AdBreak`. - * This field uses the `LiveStreamEvent` resource's asset key in the - * URI, even if the ad break was created, updated, or queried using the custom - * asset key. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. Immutable. `AdBreak` ID. - * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs - * have a maximum length of 63 characters. - * If not set, an ad break ID is generated as a UUID string. - * - * Generated from protobuf field optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ad_break_id = null; - /** - * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad - * break belongs to. Either an asset key or a custom asset key must be - * provided for creation. - * - * Generated from protobuf field optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $asset_key = null; - /** - * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the - * ad break belongs to. Either an asset key or a custom asset key must be - * provided for creation. - * - * Generated from protobuf field optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $custom_asset_key = null; - /** - * Optional. The expected start time of the ad break. - * When set, the scheduled ad break will be decisioned shortly before the - * expected start time. - * If this field is not set, ad decisioning begins immediately. - * An ad break can be created up to six hours before the expected start time. - * - * Generated from protobuf field optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $expected_start_time = null; - /** - * Required. The duration of the `AdBreak`. - * An expected duration in seconds with up to nine fractional digits, ending - * with `s`, for example, `3.5s`. This value will be updated to match the - * actual duration from the manifest or pod request after the ad break's state - * is - * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE]. - * - * Generated from protobuf field optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $duration = null; - /** - * Output only. The state of the `AdBreak`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $break_state = null; - /** - * Output only. The sequence id of the `AdBreak`. - * The unique sequence number of the created ad break. This value is only set - * after the `AdBreak` starts decisioning indicated by the ad break state's - * being - * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED] - * . - * - * Generated from protobuf field optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $break_sequence = null; - /** - * Optional. The pod template name of the `AdBreak`. - * This field is the required unique name across all pod templates in the - * network, not the display name. - * - * Generated from protobuf field optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $pod_template_name = null; - /** - * Optional. The key-value pairs to be included on the ad requests for this - * `AdBreak`. Key-value pairs to include on ad requests for this break for - * custom criteria targeting in Google Ad Manager, separated by `=` and joined - * by - * `&`. - * Format:"key1=value&key2=value" - * - * Generated from protobuf field optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $custom_params = null; - /** - * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`. - * This field can include the `splice_insert()` or `time_signal()` command. - * **Examples** - * * `time_signal()` - * ``` - * /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg== - * ``` - * * `splice_insert()` - * ``` - * /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo= - * ``` - * - * Generated from protobuf field optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $scte_35_cue_out = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `AdBreak`. - * This field uses the `LiveStreamEvent` resource's asset key in the - * URI, even if the ad break was created, updated, or queried using the custom - * asset key. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` - * @type string $ad_break_id - * Optional. Immutable. `AdBreak` ID. - * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs - * have a maximum length of 63 characters. - * If not set, an ad break ID is generated as a UUID string. - * @type string $asset_key - * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad - * break belongs to. Either an asset key or a custom asset key must be - * provided for creation. - * @type string $custom_asset_key - * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the - * ad break belongs to. Either an asset key or a custom asset key must be - * provided for creation. - * @type \Google\Protobuf\Timestamp $expected_start_time - * Optional. The expected start time of the ad break. - * When set, the scheduled ad break will be decisioned shortly before the - * expected start time. - * If this field is not set, ad decisioning begins immediately. - * An ad break can be created up to six hours before the expected start time. - * @type \Google\Protobuf\Duration $duration - * Required. The duration of the `AdBreak`. - * An expected duration in seconds with up to nine fractional digits, ending - * with `s`, for example, `3.5s`. This value will be updated to match the - * actual duration from the manifest or pod request after the ad break's state - * is - * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE]. - * @type int $break_state - * Output only. The state of the `AdBreak`. - * @type int|string $break_sequence - * Output only. The sequence id of the `AdBreak`. - * The unique sequence number of the created ad break. This value is only set - * after the `AdBreak` starts decisioning indicated by the ad break state's - * being - * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED] - * . - * @type string $pod_template_name - * Optional. The pod template name of the `AdBreak`. - * This field is the required unique name across all pod templates in the - * network, not the display name. - * @type string $custom_params - * Optional. The key-value pairs to be included on the ad requests for this - * `AdBreak`. Key-value pairs to include on ad requests for this break for - * custom criteria targeting in Google Ad Manager, separated by `=` and joined - * by - * `&`. - * Format:"key1=value&key2=value" - * @type string $scte_35_cue_out - * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`. - * This field can include the `splice_insert()` or `time_signal()` command. - * **Examples** - * * `time_signal()` - * ``` - * /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg== - * ``` - * * `splice_insert()` - * ``` - * /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo= - * ``` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdBreakMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `AdBreak`. - * This field uses the `LiveStreamEvent` resource's asset key in the - * URI, even if the ad break was created, updated, or queried using the custom - * asset key. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `AdBreak`. - * This field uses the `LiveStreamEvent` resource's asset key in the - * URI, even if the ad break was created, updated, or queried using the custom - * asset key. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Immutable. `AdBreak` ID. - * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs - * have a maximum length of 63 characters. - * If not set, an ad break ID is generated as a UUID string. - * - * Generated from protobuf field optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdBreakId() - { - return isset($this->ad_break_id) ? $this->ad_break_id : ''; - } - - public function hasAdBreakId() - { - return isset($this->ad_break_id); - } - - public function clearAdBreakId() - { - unset($this->ad_break_id); - } - - /** - * Optional. Immutable. `AdBreak` ID. - * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs - * have a maximum length of 63 characters. - * If not set, an ad break ID is generated as a UUID string. - * - * Generated from protobuf field optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdBreakId($var) - { - GPBUtil::checkString($var, True); - $this->ad_break_id = $var; - - return $this; - } - - /** - * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad - * break belongs to. Either an asset key or a custom asset key must be - * provided for creation. - * - * Generated from protobuf field optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAssetKey() - { - return isset($this->asset_key) ? $this->asset_key : ''; - } - - public function hasAssetKey() - { - return isset($this->asset_key); - } - - public function clearAssetKey() - { - unset($this->asset_key); - } - - /** - * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad - * break belongs to. Either an asset key or a custom asset key must be - * provided for creation. - * - * Generated from protobuf field optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAssetKey($var) - { - GPBUtil::checkString($var, True); - $this->asset_key = $var; - - return $this; - } - - /** - * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the - * ad break belongs to. Either an asset key or a custom asset key must be - * provided for creation. - * - * Generated from protobuf field optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getCustomAssetKey() - { - return isset($this->custom_asset_key) ? $this->custom_asset_key : ''; - } - - public function hasCustomAssetKey() - { - return isset($this->custom_asset_key); - } - - public function clearCustomAssetKey() - { - unset($this->custom_asset_key); - } - - /** - * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the - * ad break belongs to. Either an asset key or a custom asset key must be - * provided for creation. - * - * Generated from protobuf field optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setCustomAssetKey($var) - { - GPBUtil::checkString($var, True); - $this->custom_asset_key = $var; - - return $this; - } - - /** - * Optional. The expected start time of the ad break. - * When set, the scheduled ad break will be decisioned shortly before the - * expected start time. - * If this field is not set, ad decisioning begins immediately. - * An ad break can be created up to six hours before the expected start time. - * - * Generated from protobuf field optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpectedStartTime() - { - return $this->expected_start_time; - } - - public function hasExpectedStartTime() - { - return isset($this->expected_start_time); - } - - public function clearExpectedStartTime() - { - unset($this->expected_start_time); - } - - /** - * Optional. The expected start time of the ad break. - * When set, the scheduled ad break will be decisioned shortly before the - * expected start time. - * If this field is not set, ad decisioning begins immediately. - * An ad break can be created up to six hours before the expected start time. - * - * Generated from protobuf field optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpectedStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expected_start_time = $var; - - return $this; - } - - /** - * Required. The duration of the `AdBreak`. - * An expected duration in seconds with up to nine fractional digits, ending - * with `s`, for example, `3.5s`. This value will be updated to match the - * actual duration from the manifest or pod request after the ad break's state - * is - * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE]. - * - * Generated from protobuf field optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Duration|null - */ - public function getDuration() - { - return $this->duration; - } - - public function hasDuration() - { - return isset($this->duration); - } - - public function clearDuration() - { - unset($this->duration); - } - - /** - * Required. The duration of the `AdBreak`. - * An expected duration in seconds with up to nine fractional digits, ending - * with `s`, for example, `3.5s`. This value will be updated to match the - * actual duration from the manifest or pod request after the ad break's state - * is - * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE]. - * - * Generated from protobuf field optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->duration = $var; - - return $this; - } - - /** - * Output only. The state of the `AdBreak`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getBreakState() - { - return isset($this->break_state) ? $this->break_state : 0; - } - - public function hasBreakState() - { - return isset($this->break_state); - } - - public function clearBreakState() - { - unset($this->break_state); - } - - /** - * Output only. The state of the `AdBreak`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setBreakState($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\AdBreakStateEnum\AdBreakState::class); - $this->break_state = $var; - - return $this; - } - - /** - * Output only. The sequence id of the `AdBreak`. - * The unique sequence number of the created ad break. This value is only set - * after the `AdBreak` starts decisioning indicated by the ad break state's - * being - * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED] - * . - * - * Generated from protobuf field optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getBreakSequence() - { - return isset($this->break_sequence) ? $this->break_sequence : 0; - } - - public function hasBreakSequence() - { - return isset($this->break_sequence); - } - - public function clearBreakSequence() - { - unset($this->break_sequence); - } - - /** - * Output only. The sequence id of the `AdBreak`. - * The unique sequence number of the created ad break. This value is only set - * after the `AdBreak` starts decisioning indicated by the ad break state's - * being - * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED] - * . - * - * Generated from protobuf field optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setBreakSequence($var) - { - GPBUtil::checkInt64($var); - $this->break_sequence = $var; - - return $this; - } - - /** - * Optional. The pod template name of the `AdBreak`. - * This field is the required unique name across all pod templates in the - * network, not the display name. - * - * Generated from protobuf field optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPodTemplateName() - { - return isset($this->pod_template_name) ? $this->pod_template_name : ''; - } - - public function hasPodTemplateName() - { - return isset($this->pod_template_name); - } - - public function clearPodTemplateName() - { - unset($this->pod_template_name); - } - - /** - * Optional. The pod template name of the `AdBreak`. - * This field is the required unique name across all pod templates in the - * network, not the display name. - * - * Generated from protobuf field optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPodTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->pod_template_name = $var; - - return $this; - } - - /** - * Optional. The key-value pairs to be included on the ad requests for this - * `AdBreak`. Key-value pairs to include on ad requests for this break for - * custom criteria targeting in Google Ad Manager, separated by `=` and joined - * by - * `&`. - * Format:"key1=value&key2=value" - * - * Generated from protobuf field optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCustomParams() - { - return isset($this->custom_params) ? $this->custom_params : ''; - } - - public function hasCustomParams() - { - return isset($this->custom_params); - } - - public function clearCustomParams() - { - unset($this->custom_params); - } - - /** - * Optional. The key-value pairs to be included on the ad requests for this - * `AdBreak`. Key-value pairs to include on ad requests for this break for - * custom criteria targeting in Google Ad Manager, separated by `=` and joined - * by - * `&`. - * Format:"key1=value&key2=value" - * - * Generated from protobuf field optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCustomParams($var) - { - GPBUtil::checkString($var, True); - $this->custom_params = $var; - - return $this; - } - - /** - * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`. - * This field can include the `splice_insert()` or `time_signal()` command. - * **Examples** - * * `time_signal()` - * ``` - * /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg== - * ``` - * * `splice_insert()` - * ``` - * /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo= - * ``` - * - * Generated from protobuf field optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getScte35CueOut() - { - return isset($this->scte_35_cue_out) ? $this->scte_35_cue_out : ''; - } - - public function hasScte35CueOut() - { - return isset($this->scte_35_cue_out); - } - - public function clearScte35CueOut() - { - unset($this->scte_35_cue_out); - } - - /** - * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`. - * This field can include the `splice_insert()` or `time_signal()` command. - * **Examples** - * * `time_signal()` - * ``` - * /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg== - * ``` - * * `splice_insert()` - * ``` - * /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo= - * ``` - * - * Generated from protobuf field optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setScte35CueOut($var) - { - GPBUtil::checkString($var, True); - $this->scte_35_cue_out = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum.php deleted file mode 100644 index 7aab2ff96454..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.AdBreakStateEnum - */ -class AdBreakStateEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EarlyAdBreakNotificationEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum/AdBreakState.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum/AdBreakState.php deleted file mode 100644 index 18aba728fca4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdBreakStateEnum/AdBreakState.php +++ /dev/null @@ -1,74 +0,0 @@ -google.ads.admanager.v1.AdBreakStateEnum.AdBreakState - */ -class AdBreakState -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum AD_BREAK_STATE_UNSPECIFIED = 0; - */ - const AD_BREAK_STATE_UNSPECIFIED = 0; - /** - * The ad break's decisioning has finished. You can delete, but not update - * the ad break. - * - * Generated from protobuf enum DECISIONED = 1; - */ - const DECISIONED = 1; - /** - * The ad break has started serving to users. You cannot delete or update - * the ad break. - * - * Generated from protobuf enum COMPLETE = 2; - */ - const COMPLETE = 2; - /** - * The ad break is scheduled and decisioning will start later. You can - * delete or update the ad break. - * - * Generated from protobuf enum SCHEDULED = 3; - */ - const SCHEDULED = 3; - - private static $valueToName = [ - self::AD_BREAK_STATE_UNSPECIFIED => 'AD_BREAK_STATE_UNSPECIFIED', - self::DECISIONED => 'DECISIONED', - self::COMPLETE => 'COMPLETE', - self::SCHEDULED => 'SCHEDULED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AdBreakState::class, \Google\Ads\AdManager\V1\AdBreakStateEnum_AdBreakState::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php deleted file mode 100644 index 2db8e2369455..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php +++ /dev/null @@ -1,241 +0,0 @@ -google.ads.admanager.v1.AdManagerError - */ -class AdManagerError extends \Google\Protobuf\Internal\Message -{ - /** - * The unique identifying string for this error. - * - * Generated from protobuf field string error_code = 1; - */ - protected $error_code = ''; - /** - * A publisher appropriate explanation of this error. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - /** - * The field path that triggered this error. - * - * Generated from protobuf field string field_path = 3; - */ - protected $field_path = ''; - /** - * The value that triggered this error. - * - * Generated from protobuf field string trigger = 4; - */ - protected $trigger = ''; - /** - * The stack trace that accompanies this error. - * - * Generated from protobuf field string stack_trace = 5; - */ - protected $stack_trace = ''; - /** - * A list of messages that carry any additional error details. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 6; - */ - private $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $error_code - * The unique identifying string for this error. - * @type string $message - * A publisher appropriate explanation of this error. - * @type string $field_path - * The field path that triggered this error. - * @type string $trigger - * The value that triggered this error. - * @type string $stack_trace - * The stack trace that accompanies this error. - * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $details - * A list of messages that carry any additional error details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdmanagerError::initOnce(); - parent::__construct($data); - } - - /** - * The unique identifying string for this error. - * - * Generated from protobuf field string error_code = 1; - * @return string - */ - public function getErrorCode() - { - return $this->error_code; - } - - /** - * The unique identifying string for this error. - * - * Generated from protobuf field string error_code = 1; - * @param string $var - * @return $this - */ - public function setErrorCode($var) - { - GPBUtil::checkString($var, True); - $this->error_code = $var; - - return $this; - } - - /** - * A publisher appropriate explanation of this error. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * A publisher appropriate explanation of this error. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The field path that triggered this error. - * - * Generated from protobuf field string field_path = 3; - * @return string - */ - public function getFieldPath() - { - return $this->field_path; - } - - /** - * The field path that triggered this error. - * - * Generated from protobuf field string field_path = 3; - * @param string $var - * @return $this - */ - public function setFieldPath($var) - { - GPBUtil::checkString($var, True); - $this->field_path = $var; - - return $this; - } - - /** - * The value that triggered this error. - * - * Generated from protobuf field string trigger = 4; - * @return string - */ - public function getTrigger() - { - return $this->trigger; - } - - /** - * The value that triggered this error. - * - * Generated from protobuf field string trigger = 4; - * @param string $var - * @return $this - */ - public function setTrigger($var) - { - GPBUtil::checkString($var, True); - $this->trigger = $var; - - return $this; - } - - /** - * The stack trace that accompanies this error. - * - * Generated from protobuf field string stack_trace = 5; - * @return string - */ - public function getStackTrace() - { - return $this->stack_trace; - } - - /** - * The stack trace that accompanies this error. - * - * Generated from protobuf field string stack_trace = 5; - * @param string $var - * @return $this - */ - public function setStackTrace($var) - { - GPBUtil::checkString($var, True); - $this->stack_trace = $var; - - return $this; - } - - /** - * A list of messages that carry any additional error details. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetails() - { - return $this->details; - } - - /** - * A list of messages that carry any additional error details. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 6; - * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php deleted file mode 100644 index 55051c449b90..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php +++ /dev/null @@ -1,1180 +0,0 @@ -google.ads.admanager.v1.AdUnit - */ -class AdUnit extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. AdUnit ID. - * - * Generated from protobuf field int64 ad_unit_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $ad_unit_id = 0; - /** - * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except - * for the root ad unit, which is created by Google. Format: - * "networks/{network_code}/adUnits/{ad_unit_id}" - * - * Generated from protobuf field optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $parent_ad_unit = null; - /** - * Output only. The path to this AdUnit in the ad unit hierarchy represented - * as a list from the root to this ad unit's parent. For root ad units, this - * list is empty. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $parent_path; - /** - * Required. The display name of the ad unit. Its maximum length is 255 - * characters. - * - * Generated from protobuf field optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = null; - /** - * Optional. Immutable. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. This attribute can be set during ad unit - * creation. If it is not provided, it will be assigned by Google based on the - * ad unit ID. - * - * Generated from protobuf field optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ad_unit_code = null; - /** - * Output only. The status of this ad unit. It defaults to ACTIVE. - * - * Generated from protobuf field optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - /** - * Optional. The target window directly applied to this AdUnit. - * If this field is not set, this AdUnit uses the target window specified in - * effectiveTargetWindow. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $applied_target_window = null; - /** - * Output only. Non-empty default. The target window of this AdUnit. This - * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit - * in the hierarchy specifies it. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $effective_target_window = null; - /** - * Optional. The resource names of Teams directly applied to this AdUnit. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $applied_teams; - /** - * Output only. The resource names of all Teams that this AdUnit is on as well - * as those inherited from parent AdUnits. Format: - * "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $teams; - /** - * Optional. A description of the ad unit. The maximum length is 65,535 - * characters. - * - * Generated from protobuf field optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = null; - /** - * Optional. If this field is set to true, then the AdUnit will not be - * implicitly targeted when its parent is. Traffickers must explicitly - * target such an AdUnit or else no line items will serve to it. This - * feature is only available for Ad Manager 360 accounts. - * - * Generated from protobuf field optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $explicitly_targeted = null; - /** - * Output only. This field is set to true if the ad unit has any children. - * - * Generated from protobuf field optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $has_children = null; - /** - * Output only. The time this AdUnit was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The sizes that can be served inside this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $ad_unit_sizes; - /** - * Optional. Determines what set top box video on demand channel this ad unit - * corresponds to in an external set top box ad campaign system. - * - * Generated from protobuf field optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $external_set_top_box_channel_id = null; - /** - * Optional. The duration after which an Ad Unit will automatically refresh. - * This is only valid for ad units in mobile apps. If not set, the ad unit - * will not refresh. - * - * Generated from protobuf field optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $refresh_delay = null; - /** - * Optional. The set of labels applied directly to this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $applied_labels; - /** - * Output only. Contains the set of labels applied directly to the ad unit as - * well as those inherited from the parent ad units. If a label has been - * negated, only the negated label is returned. This attribute is assigned by - * Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $effective_applied_labels; - /** - * Optional. The set of label frequency caps applied directly to this ad unit. - * There is a limit of 10 label frequency caps per ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $applied_label_frequency_caps; - /** - * Output only. The label frequency caps applied directly to the ad unit as - * well as those inherited from parent ad units. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $effective_label_frequency_caps; - /** - * Optional. Non-empty default. The smart size mode for this ad unit. This - * attribute defaults to SmartSizeMode.NONE for fixed sizes. - * - * Generated from protobuf field optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; - */ - protected $smart_size_mode = null; - /** - * Optional. The value of AdSense enabled directly applied to this ad unit. If - * not specified this ad unit will inherit the value of - * effectiveAdsenseEnabled from its ancestors. - * - * Generated from protobuf field optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $applied_adsense_enabled = null; - /** - * Output only. Specifies whether or not the AdUnit is enabled for serving ads - * from the AdSense content network. This attribute defaults to the ad unit's - * parent or ancestor's setting if one has been set. If no ancestor of the ad - * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. - * - * Generated from protobuf field optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $effective_adsense_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * @type int|string $ad_unit_id - * Output only. AdUnit ID. - * @type string $parent_ad_unit - * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except - * for the root ad unit, which is created by Google. Format: - * "networks/{network_code}/adUnits/{ad_unit_id}" - * @type array<\Google\Ads\AdManager\V1\AdUnitParent>|\Google\Protobuf\Internal\RepeatedField $parent_path - * Output only. The path to this AdUnit in the ad unit hierarchy represented - * as a list from the root to this ad unit's parent. For root ad units, this - * list is empty. - * @type string $display_name - * Required. The display name of the ad unit. Its maximum length is 255 - * characters. - * @type string $ad_unit_code - * Optional. Immutable. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. This attribute can be set during ad unit - * creation. If it is not provided, it will be assigned by Google based on the - * ad unit ID. - * @type int $status - * Output only. The status of this ad unit. It defaults to ACTIVE. - * @type int $applied_target_window - * Optional. The target window directly applied to this AdUnit. - * If this field is not set, this AdUnit uses the target window specified in - * effectiveTargetWindow. - * @type int $effective_target_window - * Output only. Non-empty default. The target window of this AdUnit. This - * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit - * in the hierarchy specifies it. - * @type array|\Google\Protobuf\Internal\RepeatedField $applied_teams - * Optional. The resource names of Teams directly applied to this AdUnit. - * Format: "networks/{network_code}/teams/{team_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $teams - * Output only. The resource names of all Teams that this AdUnit is on as well - * as those inherited from parent AdUnits. Format: - * "networks/{network_code}/teams/{team_id}" - * @type string $description - * Optional. A description of the ad unit. The maximum length is 65,535 - * characters. - * @type bool $explicitly_targeted - * Optional. If this field is set to true, then the AdUnit will not be - * implicitly targeted when its parent is. Traffickers must explicitly - * target such an AdUnit or else no line items will serve to it. This - * feature is only available for Ad Manager 360 accounts. - * @type bool $has_children - * Output only. This field is set to true if the ad unit has any children. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time this AdUnit was last modified. - * @type array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $ad_unit_sizes - * Optional. The sizes that can be served inside this ad unit. - * @type string $external_set_top_box_channel_id - * Optional. Determines what set top box video on demand channel this ad unit - * corresponds to in an external set top box ad campaign system. - * @type \Google\Protobuf\Duration $refresh_delay - * Optional. The duration after which an Ad Unit will automatically refresh. - * This is only valid for ad units in mobile apps. If not set, the ad unit - * will not refresh. - * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $applied_labels - * Optional. The set of labels applied directly to this ad unit. - * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $effective_applied_labels - * Output only. Contains the set of labels applied directly to the ad unit as - * well as those inherited from the parent ad units. If a label has been - * negated, only the negated label is returned. This attribute is assigned by - * Google. - * @type array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $applied_label_frequency_caps - * Optional. The set of label frequency caps applied directly to this ad unit. - * There is a limit of 10 label frequency caps per ad unit. - * @type array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $effective_label_frequency_caps - * Output only. The label frequency caps applied directly to the ad unit as - * well as those inherited from parent ad units. - * @type int $smart_size_mode - * Optional. Non-empty default. The smart size mode for this ad unit. This - * attribute defaults to SmartSizeMode.NONE for fixed sizes. - * @type bool $applied_adsense_enabled - * Optional. The value of AdSense enabled directly applied to this ad unit. If - * not specified this ad unit will inherit the value of - * effectiveAdsenseEnabled from its ancestors. - * @type bool $effective_adsense_enabled - * Output only. Specifies whether or not the AdUnit is enabled for serving ads - * from the AdSense content network. This attribute defaults to the ad unit's - * parent or ancestor's setting if one has been set. If no ancestor of the ad - * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. AdUnit ID. - * - * Generated from protobuf field int64 ad_unit_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getAdUnitId() - { - return $this->ad_unit_id; - } - - /** - * Output only. AdUnit ID. - * - * Generated from protobuf field int64 ad_unit_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setAdUnitId($var) - { - GPBUtil::checkInt64($var); - $this->ad_unit_id = $var; - - return $this; - } - - /** - * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except - * for the root ad unit, which is created by Google. Format: - * "networks/{network_code}/adUnits/{ad_unit_id}" - * - * Generated from protobuf field optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getParentAdUnit() - { - return isset($this->parent_ad_unit) ? $this->parent_ad_unit : ''; - } - - public function hasParentAdUnit() - { - return isset($this->parent_ad_unit); - } - - public function clearParentAdUnit() - { - unset($this->parent_ad_unit); - } - - /** - * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except - * for the root ad unit, which is created by Google. Format: - * "networks/{network_code}/adUnits/{ad_unit_id}" - * - * Generated from protobuf field optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParentAdUnit($var) - { - GPBUtil::checkString($var, True); - $this->parent_ad_unit = $var; - - return $this; - } - - /** - * Output only. The path to this AdUnit in the ad unit hierarchy represented - * as a list from the root to this ad unit's parent. For root ad units, this - * list is empty. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParentPath() - { - return $this->parent_path; - } - - /** - * Output only. The path to this AdUnit in the ad unit hierarchy represented - * as a list from the root to this ad unit's parent. For root ad units, this - * list is empty. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Ads\AdManager\V1\AdUnitParent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParentPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitParent::class); - $this->parent_path = $arr; - - return $this; - } - - /** - * Required. The display name of the ad unit. Its maximum length is 255 - * characters. - * - * Generated from protobuf field optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Required. The display name of the ad unit. Its maximum length is 255 - * characters. - * - * Generated from protobuf field optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Immutable. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. This attribute can be set during ad unit - * creation. If it is not provided, it will be assigned by Google based on the - * ad unit ID. - * - * Generated from protobuf field optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdUnitCode() - { - return isset($this->ad_unit_code) ? $this->ad_unit_code : ''; - } - - public function hasAdUnitCode() - { - return isset($this->ad_unit_code); - } - - public function clearAdUnitCode() - { - unset($this->ad_unit_code); - } - - /** - * Optional. Immutable. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. This attribute can be set during ad unit - * creation. If it is not provided, it will be assigned by Google based on the - * ad unit ID. - * - * Generated from protobuf field optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdUnitCode($var) - { - GPBUtil::checkString($var, True); - $this->ad_unit_code = $var; - - return $this; - } - - /** - * Output only. The status of this ad unit. It defaults to ACTIVE. - * - * Generated from protobuf field optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return isset($this->status) ? $this->status : 0; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. The status of this ad unit. It defaults to ACTIVE. - * - * Generated from protobuf field optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\AdUnitStatusEnum\AdUnitStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Optional. The target window directly applied to this AdUnit. - * If this field is not set, this AdUnit uses the target window specified in - * effectiveTargetWindow. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getAppliedTargetWindow() - { - return isset($this->applied_target_window) ? $this->applied_target_window : 0; - } - - public function hasAppliedTargetWindow() - { - return isset($this->applied_target_window); - } - - public function clearAppliedTargetWindow() - { - unset($this->applied_target_window); - } - - /** - * Optional. The target window directly applied to this AdUnit. - * If this field is not set, this AdUnit uses the target window specified in - * effectiveTargetWindow. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setAppliedTargetWindow($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TargetWindowEnum\TargetWindow::class); - $this->applied_target_window = $var; - - return $this; - } - - /** - * Output only. Non-empty default. The target window of this AdUnit. This - * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit - * in the hierarchy specifies it. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEffectiveTargetWindow() - { - return isset($this->effective_target_window) ? $this->effective_target_window : 0; - } - - public function hasEffectiveTargetWindow() - { - return isset($this->effective_target_window); - } - - public function clearEffectiveTargetWindow() - { - unset($this->effective_target_window); - } - - /** - * Output only. Non-empty default. The target window of this AdUnit. This - * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit - * in the hierarchy specifies it. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEffectiveTargetWindow($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TargetWindowEnum\TargetWindow::class); - $this->effective_target_window = $var; - - return $this; - } - - /** - * Optional. The resource names of Teams directly applied to this AdUnit. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedTeams() - { - return $this->applied_teams; - } - - /** - * Optional. The resource names of Teams directly applied to this AdUnit. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->applied_teams = $arr; - - return $this; - } - - /** - * Output only. The resource names of all Teams that this AdUnit is on as well - * as those inherited from parent AdUnits. Format: - * "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTeams() - { - return $this->teams; - } - - /** - * Output only. The resource names of all Teams that this AdUnit is on as well - * as those inherited from parent AdUnits. Format: - * "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->teams = $arr; - - return $this; - } - - /** - * Optional. A description of the ad unit. The maximum length is 65,535 - * characters. - * - * Generated from protobuf field optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Optional. A description of the ad unit. The maximum length is 65,535 - * characters. - * - * Generated from protobuf field optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. If this field is set to true, then the AdUnit will not be - * implicitly targeted when its parent is. Traffickers must explicitly - * target such an AdUnit or else no line items will serve to it. This - * feature is only available for Ad Manager 360 accounts. - * - * Generated from protobuf field optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getExplicitlyTargeted() - { - return isset($this->explicitly_targeted) ? $this->explicitly_targeted : false; - } - - public function hasExplicitlyTargeted() - { - return isset($this->explicitly_targeted); - } - - public function clearExplicitlyTargeted() - { - unset($this->explicitly_targeted); - } - - /** - * Optional. If this field is set to true, then the AdUnit will not be - * implicitly targeted when its parent is. Traffickers must explicitly - * target such an AdUnit or else no line items will serve to it. This - * feature is only available for Ad Manager 360 accounts. - * - * Generated from protobuf field optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setExplicitlyTargeted($var) - { - GPBUtil::checkBool($var); - $this->explicitly_targeted = $var; - - return $this; - } - - /** - * Output only. This field is set to true if the ad unit has any children. - * - * Generated from protobuf field optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getHasChildren() - { - return isset($this->has_children) ? $this->has_children : false; - } - - public function hasHasChildren() - { - return isset($this->has_children); - } - - public function clearHasChildren() - { - unset($this->has_children); - } - - /** - * Output only. This field is set to true if the ad unit has any children. - * - * Generated from protobuf field optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setHasChildren($var) - { - GPBUtil::checkBool($var); - $this->has_children = $var; - - return $this; - } - - /** - * Output only. The time this AdUnit was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time this AdUnit was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. The sizes that can be served inside this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdUnitSizes() - { - return $this->ad_unit_sizes; - } - - /** - * Optional. The sizes that can be served inside this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdUnitSizes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitSize::class); - $this->ad_unit_sizes = $arr; - - return $this; - } - - /** - * Optional. Determines what set top box video on demand channel this ad unit - * corresponds to in an external set top box ad campaign system. - * - * Generated from protobuf field optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return string - * @deprecated - */ - public function getExternalSetTopBoxChannelId() - { - if (isset($this->external_set_top_box_channel_id)) { - @trigger_error('external_set_top_box_channel_id is deprecated.', E_USER_DEPRECATED); - } - return isset($this->external_set_top_box_channel_id) ? $this->external_set_top_box_channel_id : ''; - } - - public function hasExternalSetTopBoxChannelId() - { - if (isset($this->external_set_top_box_channel_id)) { - @trigger_error('external_set_top_box_channel_id is deprecated.', E_USER_DEPRECATED); - } - return isset($this->external_set_top_box_channel_id); - } - - public function clearExternalSetTopBoxChannelId() - { - @trigger_error('external_set_top_box_channel_id is deprecated.', E_USER_DEPRECATED); - unset($this->external_set_top_box_channel_id); - } - - /** - * Optional. Determines what set top box video on demand channel this ad unit - * corresponds to in an external set top box ad campaign system. - * - * Generated from protobuf field optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - * @deprecated - */ - public function setExternalSetTopBoxChannelId($var) - { - @trigger_error('external_set_top_box_channel_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->external_set_top_box_channel_id = $var; - - return $this; - } - - /** - * Optional. The duration after which an Ad Unit will automatically refresh. - * This is only valid for ad units in mobile apps. If not set, the ad unit - * will not refresh. - * - * Generated from protobuf field optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getRefreshDelay() - { - return $this->refresh_delay; - } - - public function hasRefreshDelay() - { - return isset($this->refresh_delay); - } - - public function clearRefreshDelay() - { - unset($this->refresh_delay); - } - - /** - * Optional. The duration after which an Ad Unit will automatically refresh. - * This is only valid for ad units in mobile apps. If not set, the ad unit - * will not refresh. - * - * Generated from protobuf field optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRefreshDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->refresh_delay = $var; - - return $this; - } - - /** - * Optional. The set of labels applied directly to this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedLabels() - { - return $this->applied_labels; - } - - /** - * Optional. The set of labels applied directly to this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); - $this->applied_labels = $arr; - - return $this; - } - - /** - * Output only. Contains the set of labels applied directly to the ad unit as - * well as those inherited from the parent ad units. If a label has been - * negated, only the negated label is returned. This attribute is assigned by - * Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveAppliedLabels() - { - return $this->effective_applied_labels; - } - - /** - * Output only. Contains the set of labels applied directly to the ad unit as - * well as those inherited from the parent ad units. If a label has been - * negated, only the negated label is returned. This attribute is assigned by - * Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveAppliedLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); - $this->effective_applied_labels = $arr; - - return $this; - } - - /** - * Optional. The set of label frequency caps applied directly to this ad unit. - * There is a limit of 10 label frequency caps per ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedLabelFrequencyCaps() - { - return $this->applied_label_frequency_caps; - } - - /** - * Optional. The set of label frequency caps applied directly to this ad unit. - * There is a limit of 10 label frequency caps per ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedLabelFrequencyCaps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\LabelFrequencyCap::class); - $this->applied_label_frequency_caps = $arr; - - return $this; - } - - /** - * Output only. The label frequency caps applied directly to the ad unit as - * well as those inherited from parent ad units. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveLabelFrequencyCaps() - { - return $this->effective_label_frequency_caps; - } - - /** - * Output only. The label frequency caps applied directly to the ad unit as - * well as those inherited from parent ad units. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveLabelFrequencyCaps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\LabelFrequencyCap::class); - $this->effective_label_frequency_caps = $arr; - - return $this; - } - - /** - * Optional. Non-empty default. The smart size mode for this ad unit. This - * attribute defaults to SmartSizeMode.NONE for fixed sizes. - * - * Generated from protobuf field optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; - * @return int - */ - public function getSmartSizeMode() - { - return isset($this->smart_size_mode) ? $this->smart_size_mode : 0; - } - - public function hasSmartSizeMode() - { - return isset($this->smart_size_mode); - } - - public function clearSmartSizeMode() - { - unset($this->smart_size_mode); - } - - /** - * Optional. Non-empty default. The smart size mode for this ad unit. This - * attribute defaults to SmartSizeMode.NONE for fixed sizes. - * - * Generated from protobuf field optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; - * @param int $var - * @return $this - */ - public function setSmartSizeMode($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\SmartSizeModeEnum\SmartSizeMode::class); - $this->smart_size_mode = $var; - - return $this; - } - - /** - * Optional. The value of AdSense enabled directly applied to this ad unit. If - * not specified this ad unit will inherit the value of - * effectiveAdsenseEnabled from its ancestors. - * - * Generated from protobuf field optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAppliedAdsenseEnabled() - { - return isset($this->applied_adsense_enabled) ? $this->applied_adsense_enabled : false; - } - - public function hasAppliedAdsenseEnabled() - { - return isset($this->applied_adsense_enabled); - } - - public function clearAppliedAdsenseEnabled() - { - unset($this->applied_adsense_enabled); - } - - /** - * Optional. The value of AdSense enabled directly applied to this ad unit. If - * not specified this ad unit will inherit the value of - * effectiveAdsenseEnabled from its ancestors. - * - * Generated from protobuf field optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAppliedAdsenseEnabled($var) - { - GPBUtil::checkBool($var); - $this->applied_adsense_enabled = $var; - - return $this; - } - - /** - * Output only. Specifies whether or not the AdUnit is enabled for serving ads - * from the AdSense content network. This attribute defaults to the ad unit's - * parent or ancestor's setting if one has been set. If no ancestor of the ad - * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. - * - * Generated from protobuf field optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getEffectiveAdsenseEnabled() - { - return isset($this->effective_adsense_enabled) ? $this->effective_adsense_enabled : false; - } - - public function hasEffectiveAdsenseEnabled() - { - return isset($this->effective_adsense_enabled); - } - - public function clearEffectiveAdsenseEnabled() - { - unset($this->effective_adsense_enabled); - } - - /** - * Output only. Specifies whether or not the AdUnit is enabled for serving ads - * from the AdSense content network. This attribute defaults to the ad unit's - * parent or ancestor's setting if one has been set. If no ancestor of the ad - * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. - * - * Generated from protobuf field optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setEffectiveAdsenseEnabled($var) - { - GPBUtil::checkBool($var); - $this->effective_adsense_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php deleted file mode 100644 index 769f73062c74..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php +++ /dev/null @@ -1,173 +0,0 @@ -google.ads.admanager.v1.AdUnitParent - */ -class AdUnitParent extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The parent of the current AdUnit - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $parent_ad_unit = null; - /** - * Output only. The display name of the parent AdUnit. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = null; - /** - * Output only. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. - * - * Generated from protobuf field optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $ad_unit_code = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent_ad_unit - * Output only. The parent of the current AdUnit - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * @type string $display_name - * Output only. The display name of the parent AdUnit. - * @type string $ad_unit_code - * Output only. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The parent of the current AdUnit - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getParentAdUnit() - { - return isset($this->parent_ad_unit) ? $this->parent_ad_unit : ''; - } - - public function hasParentAdUnit() - { - return isset($this->parent_ad_unit); - } - - public function clearParentAdUnit() - { - unset($this->parent_ad_unit); - } - - /** - * Output only. The parent of the current AdUnit - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParentAdUnit($var) - { - GPBUtil::checkString($var, True); - $this->parent_ad_unit = $var; - - return $this; - } - - /** - * Output only. The display name of the parent AdUnit. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Output only. The display name of the parent AdUnit. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. - * - * Generated from protobuf field optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAdUnitCode() - { - return isset($this->ad_unit_code) ? $this->ad_unit_code : ''; - } - - public function hasAdUnitCode() - { - return isset($this->ad_unit_code); - } - - public function clearAdUnitCode() - { - unset($this->ad_unit_code); - } - - /** - * Output only. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. - * - * Generated from protobuf field optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAdUnitCode($var) - { - GPBUtil::checkString($var, True); - $this->ad_unit_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php deleted file mode 100644 index 5e828df22a2c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php +++ /dev/null @@ -1,163 +0,0 @@ -google.ads.admanager.v1.AdUnitSize - */ -class AdUnitSize extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Size of the AdUnit. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $size = null; - /** - * Required. The EnvironmentType of the AdUnit - * - * Generated from protobuf field optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $environment_type = null; - /** - * The companions for this ad unit size. Companions are only valid if the - * environment is - * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Size companions = 3; - */ - private $companions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\Size $size - * Required. The Size of the AdUnit. - * @type int $environment_type - * Required. The EnvironmentType of the AdUnit - * @type array<\Google\Ads\AdManager\V1\Size>|\Google\Protobuf\Internal\RepeatedField $companions - * The companions for this ad unit size. Companions are only valid if the - * environment is - * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Size of the AdUnit. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Size|null - */ - public function getSize() - { - return $this->size; - } - - public function hasSize() - { - return isset($this->size); - } - - public function clearSize() - { - unset($this->size); - } - - /** - * Required. The Size of the AdUnit. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Size $var - * @return $this - */ - public function setSize($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Size::class); - $this->size = $var; - - return $this; - } - - /** - * Required. The EnvironmentType of the AdUnit - * - * Generated from protobuf field optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEnvironmentType() - { - return isset($this->environment_type) ? $this->environment_type : 0; - } - - public function hasEnvironmentType() - { - return isset($this->environment_type); - } - - public function clearEnvironmentType() - { - unset($this->environment_type); - } - - /** - * Required. The EnvironmentType of the AdUnit - * - * Generated from protobuf field optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEnvironmentType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\EnvironmentTypeEnum\EnvironmentType::class); - $this->environment_type = $var; - - return $this; - } - - /** - * The companions for this ad unit size. Companions are only valid if the - * environment is - * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Size companions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCompanions() - { - return $this->companions; - } - - /** - * The companions for this ad unit size. Companions are only valid if the - * environment is - * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Size companions = 3; - * @param array<\Google\Ads\AdManager\V1\Size>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCompanions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Size::class); - $this->companions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php deleted file mode 100644 index 0b955366976a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.AdUnitStatusEnum - */ -class AdUnitStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php deleted file mode 100644 index 33bd1c779c3f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus - */ -class AdUnitStatus -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum AD_UNIT_STATUS_UNSPECIFIED = 0; - */ - const AD_UNIT_STATUS_UNSPECIFIED = 0; - /** - * The ad unit is active, available for targeting, and serving. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The ad unit will be visible in the UI, but ignored by serving. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - /** - * The ad unit will be hidden in the UI and ignored by serving. - * - * Generated from protobuf enum ARCHIVED = 3; - */ - const ARCHIVED = 3; - - private static $valueToName = [ - self::AD_UNIT_STATUS_UNSPECIFIED => 'AD_UNIT_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - self::ARCHIVED => 'ARCHIVED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AdUnitStatus::class, \Google\Ads\AdManager\V1\AdUnitStatusEnum_AdUnitStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitTargeting.php deleted file mode 100644 index 874e6ed0a8fa..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitTargeting.php +++ /dev/null @@ -1,121 +0,0 @@ -google.ads.admanager.v1.AdUnitTargeting - */ -class AdUnitTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Whether this ad unit's children should be targeted/excluded as well. - * - * Generated from protobuf field optional bool include_descendants = 1; - */ - protected $include_descendants = null; - /** - * Optional. The resource name of this ad unit. - * - * Generated from protobuf field optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $ad_unit = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $include_descendants - * Whether this ad unit's children should be targeted/excluded as well. - * @type string $ad_unit - * Optional. The resource name of this ad unit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Whether this ad unit's children should be targeted/excluded as well. - * - * Generated from protobuf field optional bool include_descendants = 1; - * @return bool - */ - public function getIncludeDescendants() - { - return isset($this->include_descendants) ? $this->include_descendants : false; - } - - public function hasIncludeDescendants() - { - return isset($this->include_descendants); - } - - public function clearIncludeDescendants() - { - unset($this->include_descendants); - } - - /** - * Whether this ad unit's children should be targeted/excluded as well. - * - * Generated from protobuf field optional bool include_descendants = 1; - * @param bool $var - * @return $this - */ - public function setIncludeDescendants($var) - { - GPBUtil::checkBool($var); - $this->include_descendants = $var; - - return $this; - } - - /** - * Optional. The resource name of this ad unit. - * - * Generated from protobuf field optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAdUnit() - { - return isset($this->ad_unit) ? $this->ad_unit : ''; - } - - public function hasAdUnit() - { - return isset($this->ad_unit); - } - - public function clearAdUnit() - { - unset($this->ad_unit); - } - - /** - * Optional. The resource name of this ad unit. - * - * Generated from protobuf field optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAdUnit($var) - { - GPBUtil::checkString($var, True); - $this->ad_unit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php deleted file mode 100644 index 1bb8c2533c8d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php +++ /dev/null @@ -1,105 +0,0 @@ -google.ads.admanager.v1.AppliedLabel - */ -class AppliedLabel extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The label to be applied. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $label = ''; - /** - * Specifies whether or not to negate the effects of the label. - * - * Generated from protobuf field bool negated = 2; - */ - protected $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $label - * Required. The label to be applied. - * Format: "networks/{network_code}/labels/{label_id}" - * @type bool $negated - * Specifies whether or not to negate the effects of the label. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AppliedLabel::initOnce(); - parent::__construct($data); - } - - /** - * Required. The label to be applied. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Required. The label to be applied. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Specifies whether or not to negate the effects of the label. - * - * Generated from protobuf field bool negated = 2; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Specifies whether or not to negate the effects of the label. - * - * Generated from protobuf field bool negated = 2; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthGroup.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthGroup.php deleted file mode 100644 index 6d70141ab645..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthGroup.php +++ /dev/null @@ -1,126 +0,0 @@ -google.ads.admanager.v1.BandwidthGroup - */ -class BandwidthGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `BandwidthGroup`. - * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` - * - * Generated from protobuf field optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = null; - /** - * Output only. The localized name of the bandwidth group. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `BandwidthGroup`. - * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` - * @type string $display_name - * Output only. The localized name of the bandwidth group. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\BandwidthGroupMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `BandwidthGroup`. - * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` - * - * Generated from protobuf field optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return isset($this->name) ? $this->name : ''; - } - - public function hasName() - { - return isset($this->name); - } - - public function clearName() - { - unset($this->name); - } - - /** - * Identifier. The resource name of the `BandwidthGroup`. - * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` - * - * Generated from protobuf field optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The localized name of the bandwidth group. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Output only. The localized name of the bandwidth group. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthTargeting.php deleted file mode 100644 index d2ac819d4ca4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BandwidthTargeting.php +++ /dev/null @@ -1,112 +0,0 @@ -google.ads.admanager.v1.BandwidthTargeting - */ -class BandwidthTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A list of resource names of the bandwidth groups that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $targeted_bandwidth_groups; - /** - * Optional. A list of resource names of the bandwidth groups that should be - * excluded. - * - * Generated from protobuf field repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $excluded_bandwidth_groups; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_bandwidth_groups - * Optional. A list of resource names of the bandwidth groups that should be - * targeted/included. - * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_bandwidth_groups - * Optional. A list of resource names of the bandwidth groups that should be - * excluded. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A list of resource names of the bandwidth groups that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetedBandwidthGroups() - { - return $this->targeted_bandwidth_groups; - } - - /** - * Optional. A list of resource names of the bandwidth groups that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetedBandwidthGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->targeted_bandwidth_groups = $arr; - - return $this; - } - - /** - * Optional. A list of resource names of the bandwidth groups that should be - * excluded. - * - * Generated from protobuf field repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedBandwidthGroups() - { - return $this->excluded_bandwidth_groups; - } - - /** - * Optional. A list of resource names of the bandwidth groups that should be - * excluded. - * - * Generated from protobuf field repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedBandwidthGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->excluded_bandwidth_groups = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php deleted file mode 100644 index abf061199fc7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequest - */ -class BatchCreateEntitySignalsMappingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where `EntitySignalsMappings` will be - * created. Format: `networks/{network_code}` The parent field in the - * CreateEntitySignalsMappingRequest must match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The `EntitySignalsMapping` objects to create. - * A maximum of 100 objects can be created in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CreateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The parent resource where `EntitySignalsMappings` will be - * created. Format: `networks/{network_code}` The parent field in the - * CreateEntitySignalsMappingRequest must match this field. Please see - * {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest[] $requests Required. The `EntitySignalsMapping` objects to create. - * A maximum of 100 objects can be created in a batch. - * - * @return \Google\Ads\AdManager\V1\BatchCreateEntitySignalsMappingsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where `EntitySignalsMappings` will be - * created. Format: `networks/{network_code}` The parent field in the - * CreateEntitySignalsMappingRequest must match this field. - * @type array<\Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The `EntitySignalsMapping` objects to create. - * A maximum of 100 objects can be created in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where `EntitySignalsMappings` will be - * created. Format: `networks/{network_code}` The parent field in the - * CreateEntitySignalsMappingRequest must match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where `EntitySignalsMappings` will be - * created. Format: `networks/{network_code}` The parent field in the - * CreateEntitySignalsMappingRequest must match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The `EntitySignalsMapping` objects to create. - * A maximum of 100 objects can be created in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CreateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The `EntitySignalsMapping` objects to create. - * A maximum of 100 objects can be created in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CreateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php deleted file mode 100644 index 1b346912c6ce..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse - */ -class BatchCreateEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `EntitySignalsMapping` objects created. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - */ - private $entity_signals_mappings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $entity_signals_mappings - * The `EntitySignalsMapping` objects created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * The `EntitySignalsMapping` objects created. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntitySignalsMappings() - { - return $this->entity_signals_mappings; - } - - /** - * The `EntitySignalsMapping` objects created. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @param array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntitySignalsMappings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); - $this->entity_signals_mappings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php deleted file mode 100644 index 546c88476ab6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequest - */ -class BatchUpdateEntitySignalsMappingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where `EntitySignalsMappings` will be - * updated. Format: `networks/{network_code}` The parent field in the - * UpdateEntitySignalsMappingRequest must match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The `EntitySignalsMapping` objects to update. - * A maximum of 100 objects can be updated in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The parent resource where `EntitySignalsMappings` will be - * updated. Format: `networks/{network_code}` The parent field in the - * UpdateEntitySignalsMappingRequest must match this field. Please see - * {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest[] $requests Required. The `EntitySignalsMapping` objects to update. - * A maximum of 100 objects can be updated in a batch. - * - * @return \Google\Ads\AdManager\V1\BatchUpdateEntitySignalsMappingsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where `EntitySignalsMappings` will be - * updated. Format: `networks/{network_code}` The parent field in the - * UpdateEntitySignalsMappingRequest must match this field. - * @type array<\Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The `EntitySignalsMapping` objects to update. - * A maximum of 100 objects can be updated in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where `EntitySignalsMappings` will be - * updated. Format: `networks/{network_code}` The parent field in the - * UpdateEntitySignalsMappingRequest must match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where `EntitySignalsMappings` will be - * updated. Format: `networks/{network_code}` The parent field in the - * UpdateEntitySignalsMappingRequest must match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The `EntitySignalsMapping` objects to update. - * A maximum of 100 objects can be updated in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The `EntitySignalsMapping` objects to update. - * A maximum of 100 objects can be updated in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php deleted file mode 100644 index 0e3e8a5cff75..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse - */ -class BatchUpdateEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `EntitySignalsMapping` objects updated. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - */ - private $entity_signals_mappings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $entity_signals_mappings - * The `EntitySignalsMapping` objects updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * The `EntitySignalsMapping` objects updated. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntitySignalsMappings() - { - return $this->entity_signals_mappings; - } - - /** - * The `EntitySignalsMapping` objects updated. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @param array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntitySignalsMappings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); - $this->entity_signals_mappings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php deleted file mode 100644 index af97bfc26467..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php +++ /dev/null @@ -1,759 +0,0 @@ -google.ads.admanager.v1.Company - */ -class Company extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Company`. - * Format: `networks/{network_code}/companies/{company_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `Company` ID. - * - * Generated from protobuf field optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $company_id = null; - /** - * Required. The display name of the `Company`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = null; - /** - * Required. The type of the `Company`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = null; - /** - * Optional. The address for the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $address = null; - /** - * Optional. The email for the `Company`. - * This value has a maximum length of 128 characters. - * - * Generated from protobuf field optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $email = null; - /** - * Optional. The fax number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $fax = null; - /** - * Optional. The phone number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $phone = null; - /** - * Optional. The external ID for the `Company`. - * This value has a maximum length of 255 characters. - * - * Generated from protobuf field optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_id = null; - /** - * Optional. Comments about the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $comment = null; - /** - * Optional. The credit status of the `Company`. - * This attribute defaults to `ACTIVE` if basic settings are enabled and - * `ON_HOLD` if advance settings are enabled. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $credit_status = null; - /** - * Optional. The labels that are directly applied to the `Company`. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $applied_labels; - /** - * Optional. The resource names of primary Contact of the `Company`. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $primary_contact = null; - /** - * Optional. The resource names of Teams that are directly associated with the - * `Company`. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $applied_teams; - /** - * Optional. The ID of the Google-recognized canonicalized form of the - * `Company`. - * - * Generated from protobuf field optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $third_party_company_id = null; - /** - * Output only. The time the `Company` was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Company`. - * Format: `networks/{network_code}/companies/{company_id}` - * @type int|string $company_id - * Output only. `Company` ID. - * @type string $display_name - * Required. The display name of the `Company`. - * This value has a maximum length of 127 characters. - * @type int $type - * Required. The type of the `Company`. - * @type string $address - * Optional. The address for the `Company`. - * This value has a maximum length of 1024 characters. - * @type string $email - * Optional. The email for the `Company`. - * This value has a maximum length of 128 characters. - * @type string $fax - * Optional. The fax number for the `Company`. - * This value has a maximum length of 63 characters. - * @type string $phone - * Optional. The phone number for the `Company`. - * This value has a maximum length of 63 characters. - * @type string $external_id - * Optional. The external ID for the `Company`. - * This value has a maximum length of 255 characters. - * @type string $comment - * Optional. Comments about the `Company`. - * This value has a maximum length of 1024 characters. - * @type int $credit_status - * Optional. The credit status of the `Company`. - * This attribute defaults to `ACTIVE` if basic settings are enabled and - * `ON_HOLD` if advance settings are enabled. - * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $applied_labels - * Optional. The labels that are directly applied to the `Company`. - * @type string $primary_contact - * Optional. The resource names of primary Contact of the `Company`. - * Format: "networks/{network_code}/contacts/{contact_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $applied_teams - * Optional. The resource names of Teams that are directly associated with the - * `Company`. Format: "networks/{network_code}/teams/{team_id}" - * @type int|string $third_party_company_id - * Optional. The ID of the Google-recognized canonicalized form of the - * `Company`. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time the `Company` was last modified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Company`. - * Format: `networks/{network_code}/companies/{company_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Company`. - * Format: `networks/{network_code}/companies/{company_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `Company` ID. - * - * Generated from protobuf field optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCompanyId() - { - return isset($this->company_id) ? $this->company_id : 0; - } - - public function hasCompanyId() - { - return isset($this->company_id); - } - - public function clearCompanyId() - { - unset($this->company_id); - } - - /** - * Output only. `Company` ID. - * - * Generated from protobuf field optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCompanyId($var) - { - GPBUtil::checkInt64($var); - $this->company_id = $var; - - return $this; - } - - /** - * Required. The display name of the `Company`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Required. The display name of the `Company`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The type of the `Company`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return isset($this->type) ? $this->type : 0; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * Required. The type of the `Company`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CompanyTypeEnum\CompanyType::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The address for the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAddress() - { - return isset($this->address) ? $this->address : ''; - } - - public function hasAddress() - { - return isset($this->address); - } - - public function clearAddress() - { - unset($this->address); - } - - /** - * Optional. The address for the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAddress($var) - { - GPBUtil::checkString($var, True); - $this->address = $var; - - return $this; - } - - /** - * Optional. The email for the `Company`. - * This value has a maximum length of 128 characters. - * - * Generated from protobuf field optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEmail() - { - return isset($this->email) ? $this->email : ''; - } - - public function hasEmail() - { - return isset($this->email); - } - - public function clearEmail() - { - unset($this->email); - } - - /** - * Optional. The email for the `Company`. - * This value has a maximum length of 128 characters. - * - * Generated from protobuf field optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Optional. The fax number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFax() - { - return isset($this->fax) ? $this->fax : ''; - } - - public function hasFax() - { - return isset($this->fax); - } - - public function clearFax() - { - unset($this->fax); - } - - /** - * Optional. The fax number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFax($var) - { - GPBUtil::checkString($var, True); - $this->fax = $var; - - return $this; - } - - /** - * Optional. The phone number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPhone() - { - return isset($this->phone) ? $this->phone : ''; - } - - public function hasPhone() - { - return isset($this->phone); - } - - public function clearPhone() - { - unset($this->phone); - } - - /** - * Optional. The phone number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPhone($var) - { - GPBUtil::checkString($var, True); - $this->phone = $var; - - return $this; - } - - /** - * Optional. The external ID for the `Company`. - * This value has a maximum length of 255 characters. - * - * Generated from protobuf field optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalId() - { - return isset($this->external_id) ? $this->external_id : ''; - } - - public function hasExternalId() - { - return isset($this->external_id); - } - - public function clearExternalId() - { - unset($this->external_id); - } - - /** - * Optional. The external ID for the `Company`. - * This value has a maximum length of 255 characters. - * - * Generated from protobuf field optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalId($var) - { - GPBUtil::checkString($var, True); - $this->external_id = $var; - - return $this; - } - - /** - * Optional. Comments about the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getComment() - { - return isset($this->comment) ? $this->comment : ''; - } - - public function hasComment() - { - return isset($this->comment); - } - - public function clearComment() - { - unset($this->comment); - } - - /** - * Optional. Comments about the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setComment($var) - { - GPBUtil::checkString($var, True); - $this->comment = $var; - - return $this; - } - - /** - * Optional. The credit status of the `Company`. - * This attribute defaults to `ACTIVE` if basic settings are enabled and - * `ON_HOLD` if advance settings are enabled. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCreditStatus() - { - return isset($this->credit_status) ? $this->credit_status : 0; - } - - public function hasCreditStatus() - { - return isset($this->credit_status); - } - - public function clearCreditStatus() - { - unset($this->credit_status); - } - - /** - * Optional. The credit status of the `Company`. - * This attribute defaults to `ACTIVE` if basic settings are enabled and - * `ON_HOLD` if advance settings are enabled. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCreditStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CompanyCreditStatusEnum\CompanyCreditStatus::class); - $this->credit_status = $var; - - return $this; - } - - /** - * Optional. The labels that are directly applied to the `Company`. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedLabels() - { - return $this->applied_labels; - } - - /** - * Optional. The labels that are directly applied to the `Company`. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); - $this->applied_labels = $arr; - - return $this; - } - - /** - * Optional. The resource names of primary Contact of the `Company`. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getPrimaryContact() - { - return isset($this->primary_contact) ? $this->primary_contact : ''; - } - - public function hasPrimaryContact() - { - return isset($this->primary_contact); - } - - public function clearPrimaryContact() - { - unset($this->primary_contact); - } - - /** - * Optional. The resource names of primary Contact of the `Company`. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setPrimaryContact($var) - { - GPBUtil::checkString($var, True); - $this->primary_contact = $var; - - return $this; - } - - /** - * Optional. The resource names of Teams that are directly associated with the - * `Company`. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedTeams() - { - return $this->applied_teams; - } - - /** - * Optional. The resource names of Teams that are directly associated with the - * `Company`. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->applied_teams = $arr; - - return $this; - } - - /** - * Optional. The ID of the Google-recognized canonicalized form of the - * `Company`. - * - * Generated from protobuf field optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getThirdPartyCompanyId() - { - return isset($this->third_party_company_id) ? $this->third_party_company_id : 0; - } - - public function hasThirdPartyCompanyId() - { - return isset($this->third_party_company_id); - } - - public function clearThirdPartyCompanyId() - { - unset($this->third_party_company_id); - } - - /** - * Optional. The ID of the Google-recognized canonicalized form of the - * `Company`. - * - * Generated from protobuf field optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setThirdPartyCompanyId($var) - { - GPBUtil::checkInt64($var); - $this->third_party_company_id = $var; - - return $this; - } - - /** - * Output only. The time the `Company` was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time the `Company` was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php deleted file mode 100644 index e868e3b2a50a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CompanyCreditStatusEnum - */ -class CompanyCreditStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php deleted file mode 100644 index 7370fcf65e43..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php +++ /dev/null @@ -1,119 +0,0 @@ -google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus - */ -class CompanyCreditStatus -{ - /** - * No value specified - * - * Generated from protobuf enum COMPANY_CREDIT_STATUS_UNSPECIFIED = 0; - */ - const COMPANY_CREDIT_STATUS_UNSPECIFIED = 0; - /** - * The company's credit status is active. - * Line items belonging to the company can serve. - * This credit status is the default for basic settings and is available in - * both basic and advance settings. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The company's credit status is inactive. - * Line items belonging to the company cannot be activated. However, line - * items that were activated before the credit status changed will remain - * active. New orders or line items belonging to the company cannot be - * created. - * Companies with this credit status will be hidden by default in company - * search results. - * This credit status is available in both basic and advance settings. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - /** - * The company's credit status is on hold. - * Line items belonging to the company cannot be activated. However, line - * items that were activated before the credit status changed will remain - * active. New orders or line items belonging to the company can be - * created. - * This credit status is the default in advance settings and is only - * available in advance settings. - * - * Generated from protobuf enum ON_HOLD = 3; - */ - const ON_HOLD = 3; - /** - * The company's credit status is stopped. - * Line items belonging to the company cannot be activated. However, line - * items that were activated before the credit status changed will remain - * active. New orders or line items belonging to the company cannot be - * created. - * This credit status is only available in advance settings. - * - * Generated from protobuf enum STOP = 4; - */ - const STOP = 4; - /** - * The company's credit status is blocked. - * All active line items belonging to the company will stop serving with - * immediate effect. Line items belonging to the company cannot be - * activated, and new orders or line items belonging to the company cannot - * be created. - * This credit status is only available in advance settings. - * - * Generated from protobuf enum BLOCKED = 5; - */ - const BLOCKED = 5; - - private static $valueToName = [ - self::COMPANY_CREDIT_STATUS_UNSPECIFIED => 'COMPANY_CREDIT_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - self::ON_HOLD => 'ON_HOLD', - self::STOP => 'STOP', - self::BLOCKED => 'BLOCKED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CompanyCreditStatus::class, \Google\Ads\AdManager\V1\CompanyCreditStatusEnum_CompanyCreditStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php deleted file mode 100644 index 78a6e7498356..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CompanyTypeEnum - */ -class CompanyTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php deleted file mode 100644 index acd0809696d1..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.CompanyTypeEnum.CompanyType - */ -class CompanyType -{ - /** - * No value specified - * - * Generated from protobuf enum COMPANY_TYPE_UNSPECIFIED = 0; - */ - const COMPANY_TYPE_UNSPECIFIED = 0; - /** - * A business entity that purchases ad inventory. - * - * Generated from protobuf enum ADVERTISER = 1; - */ - const ADVERTISER = 1; - /** - * A company representing the publisher's own advertiser for house ads. - * - * Generated from protobuf enum HOUSE_ADVERTISER = 2; - */ - const HOUSE_ADVERTISER = 2; - /** - * An organization that manages ad accounts and offers services, such as ad - * creation, placement, and management to advertisers. - * - * Generated from protobuf enum AGENCY = 3; - */ - const AGENCY = 3; - /** - * A company representing the publisher's own agency. - * - * Generated from protobuf enum HOUSE_AGENCY = 4; - */ - const HOUSE_AGENCY = 4; - /** - * A company representing multiple advertisers and agencies. - * - * Generated from protobuf enum AD_NETWORK = 5; - */ - const AD_NETWORK = 5; - - private static $valueToName = [ - self::COMPANY_TYPE_UNSPECIFIED => 'COMPANY_TYPE_UNSPECIFIED', - self::ADVERTISER => 'ADVERTISER', - self::HOUSE_ADVERTISER => 'HOUSE_ADVERTISER', - self::AGENCY => 'AGENCY', - self::HOUSE_AGENCY => 'HOUSE_AGENCY', - self::AD_NETWORK => 'AD_NETWORK', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CompanyType::class, \Google\Ads\AdManager\V1\CompanyTypeEnum_CompanyType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php deleted file mode 100644 index 354f867b6fbf..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php +++ /dev/null @@ -1,550 +0,0 @@ -google.ads.admanager.v1.Contact - */ -class Contact extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Contact`. - * Format: `networks/{network_code}/contacts/{contact_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The name of the contact. This attribute has a maximum length of - * 127 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = null; - /** - * Required. Immutable. The resource name of the Company. - * Format: "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $company = null; - /** - * Output only. The status of the contact. This attribute is assigned by - * Google. - * - * Generated from protobuf field optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - /** - * Optional. The address of the contact. This attribute has a maximum length - * of 1024 characters. - * - * Generated from protobuf field optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $address = null; - /** - * Optional. The cell phone number where the contact can be reached. - * - * Generated from protobuf field optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cell_phone = null; - /** - * Optional. A free-form text comment for the contact. This attribute has a - * maximum length of 1024 characters. - * - * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $comment = null; - /** - * Optional. The e-mail address where the contact can be reached. This - * attribute has a maximum length of 128 characters. - * - * Generated from protobuf field optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $email = null; - /** - * Optional. The fax number where the contact can be reached. This attribute - * has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $fax = null; - /** - * Optional. The job title of the contact. This attribute has a maximum length - * of 1024 characters. - * - * Generated from protobuf field optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $title = null; - /** - * Optional. The work phone number where the contact can be reached. This - * attribute has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $work_phone = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Contact`. - * Format: `networks/{network_code}/contacts/{contact_id}` - * @type string $display_name - * Required. The name of the contact. This attribute has a maximum length of - * 127 characters. - * @type string $company - * Required. Immutable. The resource name of the Company. - * Format: "networks/{network_code}/companies/{company_id}" - * @type int $status - * Output only. The status of the contact. This attribute is assigned by - * Google. - * @type string $address - * Optional. The address of the contact. This attribute has a maximum length - * of 1024 characters. - * @type string $cell_phone - * Optional. The cell phone number where the contact can be reached. - * @type string $comment - * Optional. A free-form text comment for the contact. This attribute has a - * maximum length of 1024 characters. - * @type string $email - * Optional. The e-mail address where the contact can be reached. This - * attribute has a maximum length of 128 characters. - * @type string $fax - * Optional. The fax number where the contact can be reached. This attribute - * has a maximum length of 1024 characters. - * @type string $title - * Optional. The job title of the contact. This attribute has a maximum length - * of 1024 characters. - * @type string $work_phone - * Optional. The work phone number where the contact can be reached. This - * attribute has a maximum length of 1024 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ContactMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Contact`. - * Format: `networks/{network_code}/contacts/{contact_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Contact`. - * Format: `networks/{network_code}/contacts/{contact_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The name of the contact. This attribute has a maximum length of - * 127 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Required. The name of the contact. This attribute has a maximum length of - * 127 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. Immutable. The resource name of the Company. - * Format: "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getCompany() - { - return isset($this->company) ? $this->company : ''; - } - - public function hasCompany() - { - return isset($this->company); - } - - public function clearCompany() - { - unset($this->company); - } - - /** - * Required. Immutable. The resource name of the Company. - * Format: "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCompany($var) - { - GPBUtil::checkString($var, True); - $this->company = $var; - - return $this; - } - - /** - * Output only. The status of the contact. This attribute is assigned by - * Google. - * - * Generated from protobuf field optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return isset($this->status) ? $this->status : 0; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. The status of the contact. This attribute is assigned by - * Google. - * - * Generated from protobuf field optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ContactStatusEnum\ContactStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Optional. The address of the contact. This attribute has a maximum length - * of 1024 characters. - * - * Generated from protobuf field optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAddress() - { - return isset($this->address) ? $this->address : ''; - } - - public function hasAddress() - { - return isset($this->address); - } - - public function clearAddress() - { - unset($this->address); - } - - /** - * Optional. The address of the contact. This attribute has a maximum length - * of 1024 characters. - * - * Generated from protobuf field optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAddress($var) - { - GPBUtil::checkString($var, True); - $this->address = $var; - - return $this; - } - - /** - * Optional. The cell phone number where the contact can be reached. - * - * Generated from protobuf field optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCellPhone() - { - return isset($this->cell_phone) ? $this->cell_phone : ''; - } - - public function hasCellPhone() - { - return isset($this->cell_phone); - } - - public function clearCellPhone() - { - unset($this->cell_phone); - } - - /** - * Optional. The cell phone number where the contact can be reached. - * - * Generated from protobuf field optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCellPhone($var) - { - GPBUtil::checkString($var, True); - $this->cell_phone = $var; - - return $this; - } - - /** - * Optional. A free-form text comment for the contact. This attribute has a - * maximum length of 1024 characters. - * - * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getComment() - { - return isset($this->comment) ? $this->comment : ''; - } - - public function hasComment() - { - return isset($this->comment); - } - - public function clearComment() - { - unset($this->comment); - } - - /** - * Optional. A free-form text comment for the contact. This attribute has a - * maximum length of 1024 characters. - * - * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setComment($var) - { - GPBUtil::checkString($var, True); - $this->comment = $var; - - return $this; - } - - /** - * Optional. The e-mail address where the contact can be reached. This - * attribute has a maximum length of 128 characters. - * - * Generated from protobuf field optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEmail() - { - return isset($this->email) ? $this->email : ''; - } - - public function hasEmail() - { - return isset($this->email); - } - - public function clearEmail() - { - unset($this->email); - } - - /** - * Optional. The e-mail address where the contact can be reached. This - * attribute has a maximum length of 128 characters. - * - * Generated from protobuf field optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Optional. The fax number where the contact can be reached. This attribute - * has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFax() - { - return isset($this->fax) ? $this->fax : ''; - } - - public function hasFax() - { - return isset($this->fax); - } - - public function clearFax() - { - unset($this->fax); - } - - /** - * Optional. The fax number where the contact can be reached. This attribute - * has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFax($var) - { - GPBUtil::checkString($var, True); - $this->fax = $var; - - return $this; - } - - /** - * Optional. The job title of the contact. This attribute has a maximum length - * of 1024 characters. - * - * Generated from protobuf field optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTitle() - { - return isset($this->title) ? $this->title : ''; - } - - public function hasTitle() - { - return isset($this->title); - } - - public function clearTitle() - { - unset($this->title); - } - - /** - * Optional. The job title of the contact. This attribute has a maximum length - * of 1024 characters. - * - * Generated from protobuf field optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * Optional. The work phone number where the contact can be reached. This - * attribute has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getWorkPhone() - { - return isset($this->work_phone) ? $this->work_phone : ''; - } - - public function hasWorkPhone() - { - return isset($this->work_phone); - } - - public function clearWorkPhone() - { - unset($this->work_phone); - } - - /** - * Optional. The work phone number where the contact can be reached. This - * attribute has a maximum length of 1024 characters. - * - * Generated from protobuf field optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setWorkPhone($var) - { - GPBUtil::checkString($var, True); - $this->work_phone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateAdBreakRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateAdBreakRequest.php deleted file mode 100644 index 4a76f7af5b01..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateAdBreakRequest.php +++ /dev/null @@ -1,148 +0,0 @@ -google.ads.admanager.v1.CreateAdBreakRequest - */ -class CreateAdBreakRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this `AdBreak` will be created - * identified by an asset key or custom asset key. - * Formats: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The `AdBreak` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ad_break = null; - - /** - * @param string $parent Required. The parent resource where this `AdBreak` will be created - * identified by an asset key or custom asset key. - * - * Formats: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` - * Please see {@see AdBreakServiceClient::liveStreamEventName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\AdBreak $adBreak Required. The `AdBreak` to create. - * - * @return \Google\Ads\AdManager\V1\CreateAdBreakRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Ads\AdManager\V1\AdBreak $adBreak): self - { - return (new self()) - ->setParent($parent) - ->setAdBreak($adBreak); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this `AdBreak` will be created - * identified by an asset key or custom asset key. - * Formats: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` - * @type \Google\Ads\AdManager\V1\AdBreak $ad_break - * Required. The `AdBreak` to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this `AdBreak` will be created - * identified by an asset key or custom asset key. - * Formats: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this `AdBreak` will be created - * identified by an asset key or custom asset key. - * Formats: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The `AdBreak` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\AdBreak|null - */ - public function getAdBreak() - { - return $this->ad_break; - } - - public function hasAdBreak() - { - return isset($this->ad_break); - } - - public function clearAdBreak() - { - unset($this->ad_break); - } - - /** - * Required. The `AdBreak` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\AdBreak $var - * @return $this - */ - public function setAdBreak($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\AdBreak::class); - $this->ad_break = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php deleted file mode 100644 index 35f125049dec..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.ads.admanager.v1.CreateEntitySignalsMappingRequest - */ -class CreateEntitySignalsMappingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this EntitySignalsMapping will be - * created. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The EntitySignalsMapping object to create. - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entity_signals_mapping = null; - - /** - * @param string $parent Required. The parent resource where this EntitySignalsMapping will be - * created. Format: `networks/{network_code}` - * Please see {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping Required. The EntitySignalsMapping object to create. - * - * @return \Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping): self - { - return (new self()) - ->setParent($parent) - ->setEntitySignalsMapping($entitySignalsMapping); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this EntitySignalsMapping will be - * created. Format: `networks/{network_code}` - * @type \Google\Ads\AdManager\V1\EntitySignalsMapping $entity_signals_mapping - * Required. The EntitySignalsMapping object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this EntitySignalsMapping will be - * created. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this EntitySignalsMapping will be - * created. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The EntitySignalsMapping object to create. - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\EntitySignalsMapping|null - */ - public function getEntitySignalsMapping() - { - return $this->entity_signals_mapping; - } - - public function hasEntitySignalsMapping() - { - return isset($this->entity_signals_mapping); - } - - public function clearEntitySignalsMapping() - { - unset($this->entity_signals_mapping); - } - - /** - * Required. The EntitySignalsMapping object to create. - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $var - * @return $this - */ - public function setEntitySignalsMapping($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); - $this->entity_signals_mapping = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionDealRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionDealRequest.php deleted file mode 100644 index b37f7199767a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionDealRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.ads.admanager.v1.CreatePrivateAuctionDealRequest - */ -class CreatePrivateAuctionDealRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this `PrivateAuctionDeal` will be - * created. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The `PrivateAuctionDeal` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $private_auction_deal = null; - - /** - * @param string $parent Required. The parent resource where this `PrivateAuctionDeal` will be - * created. Format: `networks/{network_code}` - * Please see {@see PrivateAuctionDealServiceClient::networkName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\PrivateAuctionDeal $privateAuctionDeal Required. The `PrivateAuctionDeal` to create. - * - * @return \Google\Ads\AdManager\V1\CreatePrivateAuctionDealRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Ads\AdManager\V1\PrivateAuctionDeal $privateAuctionDeal): self - { - return (new self()) - ->setParent($parent) - ->setPrivateAuctionDeal($privateAuctionDeal); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this `PrivateAuctionDeal` will be - * created. Format: `networks/{network_code}` - * @type \Google\Ads\AdManager\V1\PrivateAuctionDeal $private_auction_deal - * Required. The `PrivateAuctionDeal` to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this `PrivateAuctionDeal` will be - * created. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this `PrivateAuctionDeal` will be - * created. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The `PrivateAuctionDeal` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\PrivateAuctionDeal|null - */ - public function getPrivateAuctionDeal() - { - return $this->private_auction_deal; - } - - public function hasPrivateAuctionDeal() - { - return isset($this->private_auction_deal); - } - - public function clearPrivateAuctionDeal() - { - unset($this->private_auction_deal); - } - - /** - * Required. The `PrivateAuctionDeal` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\PrivateAuctionDeal $var - * @return $this - */ - public function setPrivateAuctionDeal($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\PrivateAuctionDeal::class); - $this->private_auction_deal = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionRequest.php deleted file mode 100644 index 2f79a498d14f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreatePrivateAuctionRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.ads.admanager.v1.CreatePrivateAuctionRequest - */ -class CreatePrivateAuctionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this `PrivateAuction` will be - * created. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The `PrivateAuction` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $private_auction = null; - - /** - * @param string $parent Required. The parent resource where this `PrivateAuction` will be - * created. Format: `networks/{network_code}` - * Please see {@see PrivateAuctionServiceClient::networkName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\PrivateAuction $privateAuction Required. The `PrivateAuction` to create. - * - * @return \Google\Ads\AdManager\V1\CreatePrivateAuctionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Ads\AdManager\V1\PrivateAuction $privateAuction): self - { - return (new self()) - ->setParent($parent) - ->setPrivateAuction($privateAuction); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this `PrivateAuction` will be - * created. Format: `networks/{network_code}` - * @type \Google\Ads\AdManager\V1\PrivateAuction $private_auction - * Required. The `PrivateAuction` to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this `PrivateAuction` will be - * created. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this `PrivateAuction` will be - * created. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The `PrivateAuction` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\PrivateAuction|null - */ - public function getPrivateAuction() - { - return $this->private_auction; - } - - public function hasPrivateAuction() - { - return isset($this->private_auction); - } - - public function clearPrivateAuction() - { - unset($this->private_auction); - } - - /** - * Required. The `PrivateAuction` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\PrivateAuction $var - * @return $this - */ - public function setPrivateAuction($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\PrivateAuction::class); - $this->private_auction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php deleted file mode 100644 index 6d466eb38e48..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.ads.admanager.v1.CreateReportRequest - */ -class CreateReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this `Report` will be created. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The `Report` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $report = null; - - /** - * @param string $parent Required. The parent resource where this `Report` will be created. - * Format: `networks/{network_code}` - * Please see {@see ReportServiceClient::networkName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\Report $report Required. The `Report` to create. - * - * @return \Google\Ads\AdManager\V1\CreateReportRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Ads\AdManager\V1\Report $report): self - { - return (new self()) - ->setParent($parent) - ->setReport($report); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this `Report` will be created. - * Format: `networks/{network_code}` - * @type \Google\Ads\AdManager\V1\Report $report - * Required. The `Report` to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this `Report` will be created. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this `Report` will be created. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The `Report` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Report|null - */ - public function getReport() - { - return $this->report; - } - - public function hasReport() - { - return isset($this->report); - } - - public function clearReport() - { - unset($this->report); - } - - /** - * Required. The `Report` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Report $var - * @return $this - */ - public function setReport($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report::class); - $this->report = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php deleted file mode 100644 index 40f2e3e4c9d4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php +++ /dev/null @@ -1,425 +0,0 @@ -google.ads.admanager.v1.CustomField - */ -class CustomField extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `CustomField`. - * Format: `networks/{network_code}/customFields/{custom_field}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Unique ID of the CustomField. This attribute is assigned by - * Google. - * - * Generated from protobuf field optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom_field_id = null; - /** - * Required. Name of the CustomField. The max length is 127 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = null; - /** - * Optional. A description of the custom field. The maximum length is 511 - * characters. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = null; - /** - * Output only. The status of the `CustomField`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - /** - * Required. The type of entity the `CustomField` can be applied to. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entity_type = null; - /** - * Required. The data type of the `CustomField`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_type = null; - /** - * Required. The visibility of the `CustomField`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $visibility = null; - /** - * Optional. The drop-down options for the `CustomField`. - * Only applicable for `CustomField` with the drop-down data type. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldOption options = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $options; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `CustomField`. - * Format: `networks/{network_code}/customFields/{custom_field}` - * @type int|string $custom_field_id - * Output only. Unique ID of the CustomField. This attribute is assigned by - * Google. - * @type string $display_name - * Required. Name of the CustomField. The max length is 127 characters. - * @type string $description - * Optional. A description of the custom field. The maximum length is 511 - * characters. - * @type int $status - * Output only. The status of the `CustomField`. - * @type int $entity_type - * Required. The type of entity the `CustomField` can be applied to. - * @type int $data_type - * Required. The data type of the `CustomField`. - * @type int $visibility - * Required. The visibility of the `CustomField`. - * @type array<\Google\Ads\AdManager\V1\CustomFieldOption>|\Google\Protobuf\Internal\RepeatedField $options - * Optional. The drop-down options for the `CustomField`. - * Only applicable for `CustomField` with the drop-down data type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `CustomField`. - * Format: `networks/{network_code}/customFields/{custom_field}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `CustomField`. - * Format: `networks/{network_code}/customFields/{custom_field}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Unique ID of the CustomField. This attribute is assigned by - * Google. - * - * Generated from protobuf field optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCustomFieldId() - { - return isset($this->custom_field_id) ? $this->custom_field_id : 0; - } - - public function hasCustomFieldId() - { - return isset($this->custom_field_id); - } - - public function clearCustomFieldId() - { - unset($this->custom_field_id); - } - - /** - * Output only. Unique ID of the CustomField. This attribute is assigned by - * Google. - * - * Generated from protobuf field optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCustomFieldId($var) - { - GPBUtil::checkInt64($var); - $this->custom_field_id = $var; - - return $this; - } - - /** - * Required. Name of the CustomField. The max length is 127 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Required. Name of the CustomField. The max length is 127 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. A description of the custom field. The maximum length is 511 - * characters. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Optional. A description of the custom field. The maximum length is 511 - * characters. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The status of the `CustomField`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return isset($this->status) ? $this->status : 0; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. The status of the `CustomField`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldStatusEnum\CustomFieldStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Required. The type of entity the `CustomField` can be applied to. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEntityType() - { - return isset($this->entity_type) ? $this->entity_type : 0; - } - - public function hasEntityType() - { - return isset($this->entity_type); - } - - public function clearEntityType() - { - unset($this->entity_type); - } - - /** - * Required. The type of entity the `CustomField` can be applied to. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEntityType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldEntityTypeEnum\CustomFieldEntityType::class); - $this->entity_type = $var; - - return $this; - } - - /** - * Required. The data type of the `CustomField`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getDataType() - { - return isset($this->data_type) ? $this->data_type : 0; - } - - public function hasDataType() - { - return isset($this->data_type); - } - - public function clearDataType() - { - unset($this->data_type); - } - - /** - * Required. The data type of the `CustomField`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setDataType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldDataTypeEnum\CustomFieldDataType::class); - $this->data_type = $var; - - return $this; - } - - /** - * Required. The visibility of the `CustomField`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getVisibility() - { - return isset($this->visibility) ? $this->visibility : 0; - } - - public function hasVisibility() - { - return isset($this->visibility); - } - - public function clearVisibility() - { - unset($this->visibility); - } - - /** - * Required. The visibility of the `CustomField`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setVisibility($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldVisibilityEnum\CustomFieldVisibility::class); - $this->visibility = $var; - - return $this; - } - - /** - * Optional. The drop-down options for the `CustomField`. - * Only applicable for `CustomField` with the drop-down data type. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldOption options = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOptions() - { - return $this->options; - } - - /** - * Optional. The drop-down options for the `CustomField`. - * Only applicable for `CustomField` with the drop-down data type. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldOption options = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\CustomFieldOption>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOptions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomFieldOption::class); - $this->options = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php deleted file mode 100644 index a9ef8a168597..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomFieldDataTypeEnum - */ -class CustomFieldDataTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php deleted file mode 100644 index dfb53ccb9f52..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php +++ /dev/null @@ -1,79 +0,0 @@ -google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType - */ -class CustomFieldDataType -{ - /** - * No value specified - * - * Generated from protobuf enum CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED = 0; - /** - * A string field - * The max length is 255 characters. - * - * Generated from protobuf enum STRING = 1; - */ - const STRING = 1; - /** - * A number field. - * - * Generated from protobuf enum NUMBER = 2; - */ - const NUMBER = 2; - /** - * A "Yes" or "No" toggle field. - * - * Generated from protobuf enum TOGGLE = 3; - */ - const TOGGLE = 3; - /** - * A drop-down field. - * - * Generated from protobuf enum DROP_DOWN = 4; - */ - const DROP_DOWN = 4; - - private static $valueToName = [ - self::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED => 'CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED', - self::STRING => 'STRING', - self::NUMBER => 'NUMBER', - self::TOGGLE => 'TOGGLE', - self::DROP_DOWN => 'DROP_DOWN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomFieldDataType::class, \Google\Ads\AdManager\V1\CustomFieldDataTypeEnum_CustomFieldDataType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php deleted file mode 100644 index c37b1c9f4229..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomFieldEntityTypeEnum - */ -class CustomFieldEntityTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php deleted file mode 100644 index aa575dd7ead0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php +++ /dev/null @@ -1,85 +0,0 @@ -google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType - */ -class CustomFieldEntityType -{ - /** - * No value specified - * - * Generated from protobuf enum CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED = 0; - /** - * The CustomField is applied to LineItems. - * - * Generated from protobuf enum LINE_ITEM = 1; - */ - const LINE_ITEM = 1; - /** - * The CustomField is applied to Orders. - * - * Generated from protobuf enum ORDER = 2; - */ - const ORDER = 2; - /** - * The CustomField is applied to Creatives. - * - * Generated from protobuf enum CREATIVE = 3; - */ - const CREATIVE = 3; - /** - * The CustomField is applied to Proposals. - * - * Generated from protobuf enum PROPOSAL = 4; - */ - const PROPOSAL = 4; - /** - * The CustomField is applied to ProposalLineItems. - * - * Generated from protobuf enum PROPOSAL_LINE_ITEM = 5; - */ - const PROPOSAL_LINE_ITEM = 5; - - private static $valueToName = [ - self::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED => 'CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED', - self::LINE_ITEM => 'LINE_ITEM', - self::ORDER => 'ORDER', - self::CREATIVE => 'CREATIVE', - self::PROPOSAL => 'PROPOSAL', - self::PROPOSAL_LINE_ITEM => 'PROPOSAL_LINE_ITEM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomFieldEntityType::class, \Google\Ads\AdManager\V1\CustomFieldEntityTypeEnum_CustomFieldEntityType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php deleted file mode 100644 index 9b4ffb8ccc50..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php +++ /dev/null @@ -1,105 +0,0 @@ -google.ads.admanager.v1.CustomFieldOption - */ -class CustomFieldOption extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Non-empty default. `CustomFieldOption` ID. - * - * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; - */ - protected $custom_field_option_id = 0; - /** - * Required. The display name of the `CustomFieldOption`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $custom_field_option_id - * Optional. Non-empty default. `CustomFieldOption` ID. - * @type string $display_name - * Required. The display name of the `CustomFieldOption`. - * This value has a maximum length of 127 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldMessages::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Non-empty default. `CustomFieldOption` ID. - * - * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; - * @return int|string - */ - public function getCustomFieldOptionId() - { - return $this->custom_field_option_id; - } - - /** - * Optional. Non-empty default. `CustomFieldOption` ID. - * - * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; - * @param int|string $var - * @return $this - */ - public function setCustomFieldOptionId($var) - { - GPBUtil::checkInt64($var); - $this->custom_field_option_id = $var; - - return $this; - } - - /** - * Required. The display name of the `CustomFieldOption`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the `CustomFieldOption`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php deleted file mode 100644 index 0ad861f4eb8f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomFieldStatusEnum - */ -class CustomFieldStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php deleted file mode 100644 index 3100bdce0634..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus - */ -class CustomFieldStatus -{ - /** - * No value specified - * - * Generated from protobuf enum CUSTOM_FIELD_STATUS_UNSPECIFIED = 0; - */ - const CUSTOM_FIELD_STATUS_UNSPECIFIED = 0; - /** - * The CustomField is active. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The CustomField is inactive. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - - private static $valueToName = [ - self::CUSTOM_FIELD_STATUS_UNSPECIFIED => 'CUSTOM_FIELD_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomFieldStatus::class, \Google\Ads\AdManager\V1\CustomFieldStatusEnum_CustomFieldStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php deleted file mode 100644 index 9a40b22f768f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php +++ /dev/null @@ -1,115 +0,0 @@ -google.ads.admanager.v1.CustomFieldValue - */ -class CustomFieldValue extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The custom field for which this is a value. - * Format: "networks/{network_code}/customFields/{custom_field_id}" - * - * Generated from protobuf field string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $custom_field = ''; - /** - * Required. A typed value representation of the value. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $custom_field - * Required. The custom field for which this is a value. - * Format: "networks/{network_code}/customFields/{custom_field_id}" - * @type \Google\Ads\AdManager\V1\CustomFieldValue\Value $value - * Required. A typed value representation of the value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldValue::initOnce(); - parent::__construct($data); - } - - /** - * Required. The custom field for which this is a value. - * Format: "networks/{network_code}/customFields/{custom_field_id}" - * - * Generated from protobuf field string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getCustomField() - { - return $this->custom_field; - } - - /** - * Required. The custom field for which this is a value. - * Format: "networks/{network_code}/customFields/{custom_field_id}" - * - * Generated from protobuf field string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCustomField($var) - { - GPBUtil::checkString($var, True); - $this->custom_field = $var; - - return $this; - } - - /** - * Required. A typed value representation of the value. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\CustomFieldValue\Value|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Required. A typed value representation of the value. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\CustomFieldValue\Value $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CustomFieldValue\Value::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php deleted file mode 100644 index 84fa151afac7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php +++ /dev/null @@ -1,177 +0,0 @@ -google.ads.admanager.v1.CustomFieldValue.Value - */ -class Value extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $dropdown_value - * The custom_field_option_id, if the CustomFieldDataType is DROPDOWN. - * @type string $string_value - * The value, if the CustomFieldDataType is STRING. - * @type float $number_value - * The value, if the CustomFieldDataType is NUMBER. - * @type bool $toggle_value - * The value, if the CustomFieldDataType is TOGGLE. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldValue::initOnce(); - parent::__construct($data); - } - - /** - * The custom_field_option_id, if the CustomFieldDataType is DROPDOWN. - * - * Generated from protobuf field int64 dropdown_value = 1; - * @return int|string - */ - public function getDropdownValue() - { - return $this->readOneof(1); - } - - public function hasDropdownValue() - { - return $this->hasOneof(1); - } - - /** - * The custom_field_option_id, if the CustomFieldDataType is DROPDOWN. - * - * Generated from protobuf field int64 dropdown_value = 1; - * @param int|string $var - * @return $this - */ - public function setDropdownValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The value, if the CustomFieldDataType is STRING. - * - * Generated from protobuf field string string_value = 2; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(2); - } - - public function hasStringValue() - { - return $this->hasOneof(2); - } - - /** - * The value, if the CustomFieldDataType is STRING. - * - * Generated from protobuf field string string_value = 2; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The value, if the CustomFieldDataType is NUMBER. - * - * Generated from protobuf field double number_value = 3; - * @return float - */ - public function getNumberValue() - { - return $this->readOneof(3); - } - - public function hasNumberValue() - { - return $this->hasOneof(3); - } - - /** - * The value, if the CustomFieldDataType is NUMBER. - * - * Generated from protobuf field double number_value = 3; - * @param float $var - * @return $this - */ - public function setNumberValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The value, if the CustomFieldDataType is TOGGLE. - * - * Generated from protobuf field bool toggle_value = 4; - * @return bool - */ - public function getToggleValue() - { - return $this->readOneof(4); - } - - public function hasToggleValue() - { - return $this->hasOneof(4); - } - - /** - * The value, if the CustomFieldDataType is TOGGLE. - * - * Generated from protobuf field bool toggle_value = 4; - * @param bool $var - * @return $this - */ - public function setToggleValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Value::class, \Google\Ads\AdManager\V1\CustomFieldValue_Value::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php deleted file mode 100644 index 3b68d3b5e3bb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomFieldVisibilityEnum - */ -class CustomFieldVisibilityEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php deleted file mode 100644 index ab5626373f6f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php +++ /dev/null @@ -1,72 +0,0 @@ -google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility - */ -class CustomFieldVisibility -{ - /** - * No value specified - * - * Generated from protobuf enum CUSTOM_FIELD_VISIBILITY_UNSPECIFIED = 0; - */ - const CUSTOM_FIELD_VISIBILITY_UNSPECIFIED = 0; - /** - * The CustomField is not visible in the UI and only visible through the - * API. - * - * Generated from protobuf enum HIDDEN = 1; - */ - const HIDDEN = 1; - /** - * The CustomField is visible in the UI and only editable through the API. - * - * Generated from protobuf enum READ_ONLY = 2; - */ - const READ_ONLY = 2; - /** - * The CustomField is visible and editable in both the API and UI. - * - * Generated from protobuf enum EDITABLE = 3; - */ - const EDITABLE = 3; - - private static $valueToName = [ - self::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED => 'CUSTOM_FIELD_VISIBILITY_UNSPECIFIED', - self::HIDDEN => 'HIDDEN', - self::READ_ONLY => 'READ_ONLY', - self::EDITABLE => 'EDITABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomFieldVisibility::class, \Google\Ads\AdManager\V1\CustomFieldVisibilityEnum_CustomFieldVisibility::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargeting.php deleted file mode 100644 index ecef4408e9d1..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargeting.php +++ /dev/null @@ -1,68 +0,0 @@ -google.ads.admanager.v1.CustomTargeting - */ -class CustomTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. These clauses are all ORed together. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $custom_targeting_clauses; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\CustomTargetingClause>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_clauses - * Optional. These clauses are all ORed together. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. These clauses are all ORed together. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomTargetingClauses() - { - return $this->custom_targeting_clauses; - } - - /** - * Optional. These clauses are all ORed together. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\CustomTargetingClause>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomTargetingClauses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomTargetingClause::class); - $this->custom_targeting_clauses = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingClause.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingClause.php deleted file mode 100644 index ac5b782d3038..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingClause.php +++ /dev/null @@ -1,135 +0,0 @@ -google.ads.admanager.v1.CustomTargetingClause - */ -class CustomTargetingClause extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Leaf targeting expressions for custom key/values. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $custom_targeting_literals; - /** - * Optional. Leaf targeting expressions for audience segments. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $audience_segment_targetings; - /** - * Optional. Leaf targeting expressions for cms metadata. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $cms_metadata_targetings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\CustomTargetingLiteral>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_literals - * Optional. Leaf targeting expressions for custom key/values. - * @type array<\Google\Ads\AdManager\V1\AudienceSegmentTargeting>|\Google\Protobuf\Internal\RepeatedField $audience_segment_targetings - * Optional. Leaf targeting expressions for audience segments. - * @type array<\Google\Ads\AdManager\V1\CmsMetadataTargeting>|\Google\Protobuf\Internal\RepeatedField $cms_metadata_targetings - * Optional. Leaf targeting expressions for cms metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Leaf targeting expressions for custom key/values. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomTargetingLiterals() - { - return $this->custom_targeting_literals; - } - - /** - * Optional. Leaf targeting expressions for custom key/values. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\CustomTargetingLiteral>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomTargetingLiterals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomTargetingLiteral::class); - $this->custom_targeting_literals = $arr; - - return $this; - } - - /** - * Optional. Leaf targeting expressions for audience segments. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAudienceSegmentTargetings() - { - return $this->audience_segment_targetings; - } - - /** - * Optional. Leaf targeting expressions for audience segments. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AudienceSegmentTargeting>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAudienceSegmentTargetings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AudienceSegmentTargeting::class); - $this->audience_segment_targetings = $arr; - - return $this; - } - - /** - * Optional. Leaf targeting expressions for cms metadata. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCmsMetadataTargetings() - { - return $this->cms_metadata_targetings; - } - - /** - * Optional. Leaf targeting expressions for cms metadata. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\CmsMetadataTargeting>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCmsMetadataTargetings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CmsMetadataTargeting::class); - $this->cms_metadata_targetings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php deleted file mode 100644 index abaefc021afb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php +++ /dev/null @@ -1,355 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKey - */ -class CustomTargetingKey extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `CustomTargetingKey` ID. - * - * Generated from protobuf field optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom_targeting_key_id = null; - /** - * Immutable. Name of the key. Keys can contain up to 10 characters each. You - * can use alphanumeric characters and symbols other than the following: - * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. - * - * Generated from protobuf field optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ad_tag_name = null; - /** - * Optional. Descriptive name for the `CustomTargetingKey`. - * - * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = null; - /** - * Required. Indicates whether users will select from predefined values or - * create new targeting values, while specifying targeting criteria for a line - * item. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = null; - /** - * Output only. Status of the `CustomTargetingKey`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - /** - * Required. Reportable state of the `CustomTargetingKey`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reportable_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * @type int|string $custom_targeting_key_id - * Output only. `CustomTargetingKey` ID. - * @type string $ad_tag_name - * Immutable. Name of the key. Keys can contain up to 10 characters each. You - * can use alphanumeric characters and symbols other than the following: - * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. - * @type string $display_name - * Optional. Descriptive name for the `CustomTargetingKey`. - * @type int $type - * Required. Indicates whether users will select from predefined values or - * create new targeting values, while specifying targeting criteria for a line - * item. - * @type int $status - * Output only. Status of the `CustomTargetingKey`. - * @type int $reportable_type - * Required. Reportable state of the `CustomTargetingKey`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `CustomTargetingKey` ID. - * - * Generated from protobuf field optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCustomTargetingKeyId() - { - return isset($this->custom_targeting_key_id) ? $this->custom_targeting_key_id : 0; - } - - public function hasCustomTargetingKeyId() - { - return isset($this->custom_targeting_key_id); - } - - public function clearCustomTargetingKeyId() - { - unset($this->custom_targeting_key_id); - } - - /** - * Output only. `CustomTargetingKey` ID. - * - * Generated from protobuf field optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCustomTargetingKeyId($var) - { - GPBUtil::checkInt64($var); - $this->custom_targeting_key_id = $var; - - return $this; - } - - /** - * Immutable. Name of the key. Keys can contain up to 10 characters each. You - * can use alphanumeric characters and symbols other than the following: - * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. - * - * Generated from protobuf field optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdTagName() - { - return isset($this->ad_tag_name) ? $this->ad_tag_name : ''; - } - - public function hasAdTagName() - { - return isset($this->ad_tag_name); - } - - public function clearAdTagName() - { - unset($this->ad_tag_name); - } - - /** - * Immutable. Name of the key. Keys can contain up to 10 characters each. You - * can use alphanumeric characters and symbols other than the following: - * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. - * - * Generated from protobuf field optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdTagName($var) - { - GPBUtil::checkString($var, True); - $this->ad_tag_name = $var; - - return $this; - } - - /** - * Optional. Descriptive name for the `CustomTargetingKey`. - * - * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Optional. Descriptive name for the `CustomTargetingKey`. - * - * Generated from protobuf field optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. Indicates whether users will select from predefined values or - * create new targeting values, while specifying targeting criteria for a line - * item. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return isset($this->type) ? $this->type : 0; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * Required. Indicates whether users will select from predefined values or - * create new targeting values, while specifying targeting criteria for a line - * item. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingKeyTypeEnum\CustomTargetingKeyType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. Status of the `CustomTargetingKey`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return isset($this->status) ? $this->status : 0; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. Status of the `CustomTargetingKey`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingKeyStatusEnum\CustomTargetingKeyStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Required. Reportable state of the `CustomTargetingKey`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getReportableType() - { - return isset($this->reportable_type) ? $this->reportable_type : 0; - } - - public function hasReportableType() - { - return isset($this->reportable_type); - } - - public function clearReportableType() - { - unset($this->reportable_type); - } - - /** - * Required. Reportable state of the `CustomTargetingKey`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setReportableType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingKeyReportableTypeEnum\CustomTargetingKeyReportableType::class); - $this->reportable_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php deleted file mode 100644 index b2162fa94cad..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum - */ -class CustomTargetingKeyReportableTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php deleted file mode 100644 index 2b99b0f4dfac..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType - */ -class CustomTargetingKeyReportableType -{ - /** - * Not specified value. - * - * Generated from protobuf enum CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED = 0; - /** - * Not available for reporting in the Ad Manager query tool. - * - * Generated from protobuf enum OFF = 1; - */ - const OFF = 1; - /** - * Available for reporting in the Ad Manager query tool. - * - * Generated from protobuf enum ON = 2; - */ - const ON = 2; - /** - * Custom dimension available for reporting in the AdManager query tool. - * - * Generated from protobuf enum CUSTOM_DIMENSION = 3; - */ - const CUSTOM_DIMENSION = 3; - - private static $valueToName = [ - self::CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED => 'CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED', - self::OFF => 'OFF', - self::ON => 'ON', - self::CUSTOM_DIMENSION => 'CUSTOM_DIMENSION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomTargetingKeyReportableType::class, \Google\Ads\AdManager\V1\CustomTargetingKeyReportableTypeEnum_CustomTargetingKeyReportableType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php deleted file mode 100644 index fa3d998db1df..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyStatusEnum - */ -class CustomTargetingKeyStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php deleted file mode 100644 index fb15ff972000..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus - */ -class CustomTargetingKeyStatus -{ - /** - * Not specified value. - * - * Generated from protobuf enum CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED = 0; - */ - const CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED = 0; - /** - * Custom targeting key is active. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * Custom targeting key is inactive. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - - private static $valueToName = [ - self::CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED => 'CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomTargetingKeyStatus::class, \Google\Ads\AdManager\V1\CustomTargetingKeyStatusEnum_CustomTargetingKeyStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php deleted file mode 100644 index 5fa9dc725a74..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyTypeEnum - */ -class CustomTargetingKeyTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php deleted file mode 100644 index 014d9fb54424..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType - */ -class CustomTargetingKeyType -{ - /** - * Not specified value. - * - * Generated from protobuf enum CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED = 0; - /** - * Key with a fixed set of values. - * - * Generated from protobuf enum PREDEFINED = 1; - */ - const PREDEFINED = 1; - /** - * Key without a fixed set of values - * - * Generated from protobuf enum FREEFORM = 2; - */ - const FREEFORM = 2; - - private static $valueToName = [ - self::CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED => 'CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED', - self::PREDEFINED => 'PREDEFINED', - self::FREEFORM => 'FREEFORM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomTargetingKeyType::class, \Google\Ads\AdManager\V1\CustomTargetingKeyTypeEnum_CustomTargetingKeyType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingLiteral.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingLiteral.php deleted file mode 100644 index b5c7bafc9dca..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingLiteral.php +++ /dev/null @@ -1,159 +0,0 @@ -google.ads.admanager.v1.CustomTargetingLiteral - */ -class CustomTargetingLiteral extends \Google\Protobuf\Internal\Message -{ - /** - * Whether this expression is negatively targeted, meaning it matches - * ad requests that exclude the below values. - * - * Generated from protobuf field optional bool negative = 1; - */ - protected $negative = null; - /** - * Optional. The resource name of the targeted CustomKey. - * - * Generated from protobuf field optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $custom_targeting_key = null; - /** - * Optional. The resource names of the targeted CustomValues. - * - * Generated from protobuf field repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $custom_targeting_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $negative - * Whether this expression is negatively targeted, meaning it matches - * ad requests that exclude the below values. - * @type string $custom_targeting_key - * Optional. The resource name of the targeted CustomKey. - * @type array|\Google\Protobuf\Internal\RepeatedField $custom_targeting_values - * Optional. The resource names of the targeted CustomValues. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Whether this expression is negatively targeted, meaning it matches - * ad requests that exclude the below values. - * - * Generated from protobuf field optional bool negative = 1; - * @return bool - */ - public function getNegative() - { - return isset($this->negative) ? $this->negative : false; - } - - public function hasNegative() - { - return isset($this->negative); - } - - public function clearNegative() - { - unset($this->negative); - } - - /** - * Whether this expression is negatively targeted, meaning it matches - * ad requests that exclude the below values. - * - * Generated from protobuf field optional bool negative = 1; - * @param bool $var - * @return $this - */ - public function setNegative($var) - { - GPBUtil::checkBool($var); - $this->negative = $var; - - return $this; - } - - /** - * Optional. The resource name of the targeted CustomKey. - * - * Generated from protobuf field optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getCustomTargetingKey() - { - return isset($this->custom_targeting_key) ? $this->custom_targeting_key : ''; - } - - public function hasCustomTargetingKey() - { - return isset($this->custom_targeting_key); - } - - public function clearCustomTargetingKey() - { - unset($this->custom_targeting_key); - } - - /** - * Optional. The resource name of the targeted CustomKey. - * - * Generated from protobuf field optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCustomTargetingKey($var) - { - GPBUtil::checkString($var, True); - $this->custom_targeting_key = $var; - - return $this; - } - - /** - * Optional. The resource names of the targeted CustomValues. - * - * Generated from protobuf field repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomTargetingValues() - { - return $this->custom_targeting_values; - } - - /** - * Optional. The resource names of the targeted CustomValues. - * - * Generated from protobuf field repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomTargetingValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->custom_targeting_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php deleted file mode 100644 index 844841b82ffe..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php +++ /dev/null @@ -1,323 +0,0 @@ -google.ads.admanager.v1.CustomTargetingValue - */ -class CustomTargetingValue extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `CustomTargetingValue`. - * Format: - * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Immutable. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $custom_targeting_key = null; - /** - * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 - * characters each. You can use alphanumeric characters and symbols other than - * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are - * not data-specific; all values are treated as strings. For example, instead - * of using "age>=18 AND <=34", try "18-34" - * - * Generated from protobuf field optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ad_tag_name = null; - /** - * Optional. Descriptive name for the `CustomTargetingValue`. - * - * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = null; - /** - * Required. Immutable. The way in which the CustomTargetingValue.name strings - * will be matched. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $match_type = null; - /** - * Output only. Status of the `CustomTargetingValue`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `CustomTargetingValue`. - * Format: - * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` - * @type string $custom_targeting_key - * Required. Immutable. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * @type string $ad_tag_name - * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 - * characters each. You can use alphanumeric characters and symbols other than - * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are - * not data-specific; all values are treated as strings. For example, instead - * of using "age>=18 AND <=34", try "18-34" - * @type string $display_name - * Optional. Descriptive name for the `CustomTargetingValue`. - * @type int $match_type - * Required. Immutable. The way in which the CustomTargetingValue.name strings - * will be matched. - * @type int $status - * Output only. Status of the `CustomTargetingValue`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `CustomTargetingValue`. - * Format: - * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `CustomTargetingValue`. - * Format: - * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getCustomTargetingKey() - { - return isset($this->custom_targeting_key) ? $this->custom_targeting_key : ''; - } - - public function hasCustomTargetingKey() - { - return isset($this->custom_targeting_key); - } - - public function clearCustomTargetingKey() - { - unset($this->custom_targeting_key); - } - - /** - * Required. Immutable. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCustomTargetingKey($var) - { - GPBUtil::checkString($var, True); - $this->custom_targeting_key = $var; - - return $this; - } - - /** - * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 - * characters each. You can use alphanumeric characters and symbols other than - * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are - * not data-specific; all values are treated as strings. For example, instead - * of using "age>=18 AND <=34", try "18-34" - * - * Generated from protobuf field optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdTagName() - { - return isset($this->ad_tag_name) ? $this->ad_tag_name : ''; - } - - public function hasAdTagName() - { - return isset($this->ad_tag_name); - } - - public function clearAdTagName() - { - unset($this->ad_tag_name); - } - - /** - * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 - * characters each. You can use alphanumeric characters and symbols other than - * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are - * not data-specific; all values are treated as strings. For example, instead - * of using "age>=18 AND <=34", try "18-34" - * - * Generated from protobuf field optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdTagName($var) - { - GPBUtil::checkString($var, True); - $this->ad_tag_name = $var; - - return $this; - } - - /** - * Optional. Descriptive name for the `CustomTargetingValue`. - * - * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Optional. Descriptive name for the `CustomTargetingValue`. - * - * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. Immutable. The way in which the CustomTargetingValue.name strings - * will be matched. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMatchType() - { - return isset($this->match_type) ? $this->match_type : 0; - } - - public function hasMatchType() - { - return isset($this->match_type); - } - - public function clearMatchType() - { - unset($this->match_type); - } - - /** - * Required. Immutable. The way in which the CustomTargetingValue.name strings - * will be matched. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingValueMatchTypeEnum\CustomTargetingValueMatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * Output only. Status of the `CustomTargetingValue`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return isset($this->status) ? $this->status : 0; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. Status of the `CustomTargetingValue`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingValueStatusEnum\CustomTargetingValueStatus::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php deleted file mode 100644 index 8889014cf2ac..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum - */ -class CustomTargetingValueMatchTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php deleted file mode 100644 index 4393c282fdcb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php +++ /dev/null @@ -1,113 +0,0 @@ -google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType - */ -class CustomTargetingValueMatchType -{ - /** - * Not specified value. - * - * Generated from protobuf enum CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED = 0; - /** - * Used for exact matching. For example, the targeting value car=honda will - * only match to the ad request car=honda. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Used for lenient matching when at least one of the words in the ad - * request matches the targeted value. The targeting value car=honda will - * match to ad requests containing the word honda. So ad requests car=honda - * or car=honda civic or car=buy honda or car=how much does a honda cost - * will all have the line item delivered. - * This match type can not be used within an audience segment rule. - * - * Generated from protobuf enum BROAD = 2; - */ - const BROAD = 2; - /** - * Used for 'starts with' matching when the first few characters in the ad - * request match all of the characters in the targeted value. The targeting - * value car=honda will match to ad requests car=honda or car=hondas for - * sale but not to car=I want a honda. - * - * Generated from protobuf enum PREFIX = 3; - */ - const PREFIX = 3; - /** - * This is a combination of MatchType#BROAD and MatchType#PREFIX matching. - * The targeting value car=honda will match to ad requests that contain - * words that start with the characters in the targeted value, for example - * with car=civic hondas. - * This match type can not be used within an audience segment rule. - * - * Generated from protobuf enum BROAD_PREFIX = 4; - */ - const BROAD_PREFIX = 4; - /** - * Used for 'ends with' matching when the last characters in the ad request - * match all of the characters in the targeted value. The targeting value - * car=honda will match with ad requests car=honda or car=I want a honda but - * not to car=hondas for sale. - * This match type can not be used within line item targeting. - * - * Generated from protobuf enum SUFFIX = 5; - */ - const SUFFIX = 5; - /** - * Used for 'within' matching when the string in the ad request contains the - * string in the targeted value. The targeting value car=honda will match - * with ad requests car=honda, car=I want a honda, and also with car=hondas - * for sale, but not with car=misspelled hond a. This match type can not be - * used within line item targeting. - * - * Generated from protobuf enum CONTAINS = 6; - */ - const CONTAINS = 6; - - private static $valueToName = [ - self::CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED => 'CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BROAD => 'BROAD', - self::PREFIX => 'PREFIX', - self::BROAD_PREFIX => 'BROAD_PREFIX', - self::SUFFIX => 'SUFFIX', - self::CONTAINS => 'CONTAINS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomTargetingValueMatchType::class, \Google\Ads\AdManager\V1\CustomTargetingValueMatchTypeEnum_CustomTargetingValueMatchType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php deleted file mode 100644 index 43c17351d951..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomTargetingValueStatusEnum - */ -class CustomTargetingValueStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php deleted file mode 100644 index 90f6956737e0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus - */ -class CustomTargetingValueStatus -{ - /** - * Not specified value. - * - * Generated from protobuf enum CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED = 0; - */ - const CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED = 0; - /** - * Custom targeting value is active. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * Custom targeting value is inactive. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - - private static $valueToName = [ - self::CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED => 'CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomTargetingValueStatus::class, \Google\Ads\AdManager\V1\CustomTargetingValueStatusEnum_CustomTargetingValueStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DataSegmentTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DataSegmentTargeting.php deleted file mode 100644 index d1b2de8b54c4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DataSegmentTargeting.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.DataSegmentTargeting - */ -class DataSegmentTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Whether any data segments are currently targeted. - * - * Generated from protobuf field bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $has_data_segment_targeting = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $has_data_segment_targeting - * Output only. Whether any data segments are currently targeted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Whether any data segments are currently targeted. - * - * Generated from protobuf field bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getHasDataSegmentTargeting() - { - return $this->has_data_segment_targeting; - } - - /** - * Output only. Whether any data segments are currently targeted. - * - * Generated from protobuf field bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setHasDataSegmentTargeting($var) - { - GPBUtil::checkBool($var); - $this->has_data_segment_targeting = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum.php deleted file mode 100644 index d7421940f7ff..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.DealBuyerPermissionTypeEnum - */ -class DealBuyerPermissionTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\DealBuyerPermissionTypeEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum/DealBuyerPermissionType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum/DealBuyerPermissionType.php deleted file mode 100644 index 84033d050984..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DealBuyerPermissionTypeEnum/DealBuyerPermissionType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType - */ -class DealBuyerPermissionType -{ - /** - * No value specified. - * - * Generated from protobuf enum DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED = 0; - */ - const DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED = 0; - /** - * The deal only transacts with the buyer specified. - * - * Generated from protobuf enum NEGOTIATOR_ONLY = 1; - */ - const NEGOTIATOR_ONLY = 1; - /** - * The deal transacts with all buyers under the same bidder. - * - * Generated from protobuf enum BIDDER = 2; - */ - const BIDDER = 2; - - private static $valueToName = [ - self::DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED => 'DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED', - self::NEGOTIATOR_ONLY => 'NEGOTIATOR_ONLY', - self::BIDDER => 'BIDDER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DealBuyerPermissionType::class, \Google\Ads\AdManager\V1\DealBuyerPermissionTypeEnum_DealBuyerPermissionType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeleteAdBreakRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeleteAdBreakRequest.php deleted file mode 100644 index 7de009578545..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeleteAdBreakRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.ads.admanager.v1.DeleteAdBreakRequest - */ -class DeleteAdBreakRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the ad break to delete. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the ad break to delete. - * - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` - * Please see {@see AdBreakServiceClient::adBreakName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\DeleteAdBreakRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the ad break to delete. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the ad break to delete. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the ad break to delete. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategory.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategory.php deleted file mode 100644 index 49df97f42f03..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategory.php +++ /dev/null @@ -1,115 +0,0 @@ -google.ads.admanager.v1.DeviceCategory - */ -class DeviceCategory extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `DeviceCategory`. - * Format: `networks/{network_code}/deviceCategories/{device_category}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The display name of the device category. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `DeviceCategory`. - * Format: `networks/{network_code}/deviceCategories/{device_category}` - * @type string $display_name - * Output only. The display name of the device category. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\DeviceCategoryMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `DeviceCategory`. - * Format: `networks/{network_code}/deviceCategories/{device_category}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `DeviceCategory`. - * Format: `networks/{network_code}/deviceCategories/{device_category}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The display name of the device category. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Output only. The display name of the device category. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategoryTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategoryTargeting.php deleted file mode 100644 index 1ea89eb1000d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/DeviceCategoryTargeting.php +++ /dev/null @@ -1,105 +0,0 @@ -google.ads.admanager.v1.DeviceCategoryTargeting - */ -class DeviceCategoryTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A list of device category resource names that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $targeted_categories; - /** - * Optional. A list of device category resource names that should be excluded. - * - * Generated from protobuf field repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $excluded_categories; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_categories - * Optional. A list of device category resource names that should be - * targeted/included. - * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_categories - * Optional. A list of device category resource names that should be excluded. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A list of device category resource names that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetedCategories() - { - return $this->targeted_categories; - } - - /** - * Optional. A list of device category resource names that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetedCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->targeted_categories = $arr; - - return $this; - } - - /** - * Optional. A list of device category resource names that should be excluded. - * - * Generated from protobuf field repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedCategories() - { - return $this->excluded_categories; - } - - /** - * Optional. A list of device category resource names that should be excluded. - * - * Generated from protobuf field repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->excluded_categories = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php deleted file mode 100644 index 78a70a0ba94a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php +++ /dev/null @@ -1,265 +0,0 @@ -google.ads.admanager.v1.EntitySignalsMapping - */ -class EntitySignalsMapping extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `EntitySignalsMapping`. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `EntitySignalsMapping` ID. - * - * Generated from protobuf field optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $entity_signals_mapping_id = null; - /** - * Optional. The IDs of the categories that are associated with the - * referencing entity. - * - * Generated from protobuf field repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $taxonomy_category_ids; - protected $entity; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $audience_segment_id - * ID of an AudienceSegment that this mapping belongs to. - * @type int|string $content_bundle_id - * ID of a ContentBundle that this mapping belongs to. - * @type int|string $custom_targeting_value_id - * ID of a CustomValue that this mapping belongs to. - * @type string $name - * Identifier. The resource name of the `EntitySignalsMapping`. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * @type int|string $entity_signals_mapping_id - * Output only. `EntitySignalsMapping` ID. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $taxonomy_category_ids - * Optional. The IDs of the categories that are associated with the - * referencing entity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingMessages::initOnce(); - parent::__construct($data); - } - - /** - * ID of an AudienceSegment that this mapping belongs to. - * - * Generated from protobuf field int64 audience_segment_id = 3; - * @return int|string - */ - public function getAudienceSegmentId() - { - return $this->readOneof(3); - } - - public function hasAudienceSegmentId() - { - return $this->hasOneof(3); - } - - /** - * ID of an AudienceSegment that this mapping belongs to. - * - * Generated from protobuf field int64 audience_segment_id = 3; - * @param int|string $var - * @return $this - */ - public function setAudienceSegmentId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * ID of a ContentBundle that this mapping belongs to. - * - * Generated from protobuf field int64 content_bundle_id = 4; - * @return int|string - */ - public function getContentBundleId() - { - return $this->readOneof(4); - } - - public function hasContentBundleId() - { - return $this->hasOneof(4); - } - - /** - * ID of a ContentBundle that this mapping belongs to. - * - * Generated from protobuf field int64 content_bundle_id = 4; - * @param int|string $var - * @return $this - */ - public function setContentBundleId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * ID of a CustomValue that this mapping belongs to. - * - * Generated from protobuf field int64 custom_targeting_value_id = 5; - * @return int|string - */ - public function getCustomTargetingValueId() - { - return $this->readOneof(5); - } - - public function hasCustomTargetingValueId() - { - return $this->hasOneof(5); - } - - /** - * ID of a CustomValue that this mapping belongs to. - * - * Generated from protobuf field int64 custom_targeting_value_id = 5; - * @param int|string $var - * @return $this - */ - public function setCustomTargetingValueId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Identifier. The resource name of the `EntitySignalsMapping`. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `EntitySignalsMapping`. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `EntitySignalsMapping` ID. - * - * Generated from protobuf field optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getEntitySignalsMappingId() - { - return isset($this->entity_signals_mapping_id) ? $this->entity_signals_mapping_id : 0; - } - - public function hasEntitySignalsMappingId() - { - return isset($this->entity_signals_mapping_id); - } - - public function clearEntitySignalsMappingId() - { - unset($this->entity_signals_mapping_id); - } - - /** - * Output only. `EntitySignalsMapping` ID. - * - * Generated from protobuf field optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setEntitySignalsMappingId($var) - { - GPBUtil::checkInt64($var); - $this->entity_signals_mapping_id = $var; - - return $this; - } - - /** - * Optional. The IDs of the categories that are associated with the - * referencing entity. - * - * Generated from protobuf field repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaxonomyCategoryIds() - { - return $this->taxonomy_category_ids; - } - - /** - * Optional. The IDs of the categories that are associated with the - * referencing entity. - * - * Generated from protobuf field repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaxonomyCategoryIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->taxonomy_category_ids = $arr; - - return $this; - } - - /** - * @return string - */ - public function getEntity() - { - return $this->whichOneof("entity"); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php deleted file mode 100644 index eb19e59df821..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.EnvironmentTypeEnum - */ -class EnvironmentTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EnvironmentTypeEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php deleted file mode 100644 index 4454399e1eb3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType - */ -class EnvironmentType -{ - /** - * No value specified - * - * Generated from protobuf enum ENVIRONMENT_TYPE_UNSPECIFIED = 0; - */ - const ENVIRONMENT_TYPE_UNSPECIFIED = 0; - /** - * A regular web browser. - * - * Generated from protobuf enum BROWSER = 1; - */ - const BROWSER = 1; - /** - * Video players. - * - * Generated from protobuf enum VIDEO_PLAYER = 2; - */ - const VIDEO_PLAYER = 2; - - private static $valueToName = [ - self::ENVIRONMENT_TYPE_UNSPECIFIED => 'ENVIRONMENT_TYPE_UNSPECIFIED', - self::BROWSER => 'BROWSER', - self::VIDEO_PLAYER => 'VIDEO_PLAYER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EnvironmentType::class, \Google\Ads\AdManager\V1\EnvironmentTypeEnum_EnvironmentType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php deleted file mode 100644 index b23277077000..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.ads.admanager.v1.FetchReportResultRowsRequest - */ -class FetchReportResultRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The report result being fetched. - * Format: - * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. The maximum number of rows to return. The service may return - * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values greater than 10,000 will be reduced to - * 10,000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `FetchReportResultRows` - * call. Provide this to retrieve the second and subsequent batches of rows. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $name The report result being fetched. - * Format: - * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` - * - * @return \Google\Ads\AdManager\V1\FetchReportResultRowsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The report result being fetched. - * Format: - * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` - * @type int $page_size - * Optional. The maximum number of rows to return. The service may return - * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values greater than 10,000 will be reduced to - * 10,000. - * @type string $page_token - * Optional. A page token, received from a previous `FetchReportResultRows` - * call. Provide this to retrieve the second and subsequent batches of rows. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * The report result being fetched. - * Format: - * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The report result being fetched. - * Format: - * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The maximum number of rows to return. The service may return - * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values greater than 10,000 will be reduced to - * 10,000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of rows to return. The service may return - * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values greater than 10,000 will be reduced to - * 10,000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `FetchReportResultRows` - * call. Provide this to retrieve the second and subsequent batches of rows. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `FetchReportResultRows` - * call. Provide this to retrieve the second and subsequent batches of rows. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php deleted file mode 100644 index fc893a549109..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php +++ /dev/null @@ -1,283 +0,0 @@ -google.ads.admanager.v1.FetchReportResultRowsResponse - */ -class FetchReportResultRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Up to `page_size` rows of report data. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; - */ - private $rows; - /** - * The time at which the report was scheduled to run. For non-scheduled - * reports, this is the time at which the report was requested to be run. - * - * Generated from protobuf field .google.protobuf.Timestamp run_time = 2; - */ - protected $run_time = null; - /** - * The computed fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; - */ - private $date_ranges; - /** - * The computed comparison fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; - */ - private $comparison_date_ranges; - /** - * The total number of rows available from this report. Useful for - * pagination. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field int32 total_row_count = 5; - */ - protected $total_row_count = 0; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 6; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\ReportDataTable\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Up to `page_size` rows of report data. - * @type \Google\Protobuf\Timestamp $run_time - * The time at which the report was scheduled to run. For non-scheduled - * reports, this is the time at which the report was requested to be run. - * @type array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * The computed fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * @type array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $comparison_date_ranges - * The computed comparison fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * @type int $total_row_count - * The total number of rows available from this report. Useful for - * pagination. - * Only returned with the first page of results (when page_token is not - * included in the request). - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Up to `page_size` rows of report data. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Up to `page_size` rows of report data. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; - * @param array<\Google\Ads\AdManager\V1\ReportDataTable\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDataTable\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * The time at which the report was scheduled to run. For non-scheduled - * reports, this is the time at which the report was requested to be run. - * - * Generated from protobuf field .google.protobuf.Timestamp run_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRunTime() - { - return $this->run_time; - } - - public function hasRunTime() - { - return isset($this->run_time); - } - - public function clearRunTime() - { - unset($this->run_time); - } - - /** - * The time at which the report was scheduled to run. For non-scheduled - * reports, this is the time at which the report was requested to be run. - * - * Generated from protobuf field .google.protobuf.Timestamp run_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRunTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->run_time = $var; - - return $this; - } - - /** - * The computed fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * The computed fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; - * @param array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * The computed comparison fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComparisonDateRanges() - { - return $this->comparison_date_ranges; - } - - /** - * The computed comparison fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; - * @param array<\Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComparisonDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\DateRange\FixedDateRange::class); - $this->comparison_date_ranges = $arr; - - return $this; - } - - /** - * The total number of rows available from this report. Useful for - * pagination. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field int32 total_row_count = 5; - * @return int - */ - public function getTotalRowCount() - { - return $this->total_row_count; - } - - /** - * The total number of rows available from this report. Useful for - * pagination. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field int32 total_row_count = 5; - * @param int $var - * @return $this - */ - public function setTotalRowCount($var) - { - GPBUtil::checkInt32($var); - $this->total_row_count = $var; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 6; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 6; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php deleted file mode 100644 index 168ab1cb5f0c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php +++ /dev/null @@ -1,165 +0,0 @@ -google.ads.admanager.v1.FrequencyCap - */ -class FrequencyCap extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of impressions for this frequency cap. - * - * Generated from protobuf field optional int64 max_impressions = 1; - */ - protected $max_impressions = null; - /** - * The number of time units over which the frequency cap is effective. - * - * Generated from protobuf field optional int64 time_amount = 2; - */ - protected $time_amount = null; - /** - * The units of time of this frequency cap. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3; - */ - protected $time_unit = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $max_impressions - * The maximum number of impressions for this frequency cap. - * @type int|string $time_amount - * The number of time units over which the frequency cap is effective. - * @type int $time_unit - * The units of time of this frequency cap. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\FrequencyCap::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of impressions for this frequency cap. - * - * Generated from protobuf field optional int64 max_impressions = 1; - * @return int|string - */ - public function getMaxImpressions() - { - return isset($this->max_impressions) ? $this->max_impressions : 0; - } - - public function hasMaxImpressions() - { - return isset($this->max_impressions); - } - - public function clearMaxImpressions() - { - unset($this->max_impressions); - } - - /** - * The maximum number of impressions for this frequency cap. - * - * Generated from protobuf field optional int64 max_impressions = 1; - * @param int|string $var - * @return $this - */ - public function setMaxImpressions($var) - { - GPBUtil::checkInt64($var); - $this->max_impressions = $var; - - return $this; - } - - /** - * The number of time units over which the frequency cap is effective. - * - * Generated from protobuf field optional int64 time_amount = 2; - * @return int|string - */ - public function getTimeAmount() - { - return isset($this->time_amount) ? $this->time_amount : 0; - } - - public function hasTimeAmount() - { - return isset($this->time_amount); - } - - public function clearTimeAmount() - { - unset($this->time_amount); - } - - /** - * The number of time units over which the frequency cap is effective. - * - * Generated from protobuf field optional int64 time_amount = 2; - * @param int|string $var - * @return $this - */ - public function setTimeAmount($var) - { - GPBUtil::checkInt64($var); - $this->time_amount = $var; - - return $this; - } - - /** - * The units of time of this frequency cap. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3; - * @return int - */ - public function getTimeUnit() - { - return isset($this->time_unit) ? $this->time_unit : 0; - } - - public function hasTimeUnit() - { - return isset($this->time_unit); - } - - public function clearTimeUnit() - { - unset($this->time_unit); - } - - /** - * The units of time of this frequency cap. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3; - * @param int $var - * @return $this - */ - public function setTimeUnit($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TimeUnitEnum\TimeUnit::class); - $this->time_unit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTarget.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTarget.php deleted file mode 100644 index 6973b263c149..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTarget.php +++ /dev/null @@ -1,345 +0,0 @@ -google.ads.admanager.v1.GeoTarget - */ -class GeoTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `GeoTarget`. - * Format: `networks/{network_code}/geoTargets/{geo_target_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The display name of the GeoTarget. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = null; - /** - * Output only. The name of the direct parent that defines the canonical name - * of the geo target. For example, if the current geo target is "San - * Francisco", its canonical name would be "San Francisco, California, United - * States" thus the canonical_parent would be the name of California and the - * canonical_parent of California would be the name of United states Format: - * `networks/{network_code}/geoTargets/{geo_target}` - * - * Generated from protobuf field optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $canonical_parent = null; - /** - * Output only. All parents of the geo target ordered by ascending size. - * - * Generated from protobuf field repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $parent_names; - /** - * Output only. The Unicode CLDR region code of the geo target. - * - * Generated from protobuf field optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $region_code = null; - /** - * Output only. The location type (unlocalized) for this geographical entity. - * - * Generated from protobuf field optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = null; - /** - * Output only. Whether the geo target is targetable. - * - * Generated from protobuf field optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $targetable = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `GeoTarget`. - * Format: `networks/{network_code}/geoTargets/{geo_target_id}` - * @type string $display_name - * Output only. The display name of the GeoTarget. - * @type string $canonical_parent - * Output only. The name of the direct parent that defines the canonical name - * of the geo target. For example, if the current geo target is "San - * Francisco", its canonical name would be "San Francisco, California, United - * States" thus the canonical_parent would be the name of California and the - * canonical_parent of California would be the name of United states Format: - * `networks/{network_code}/geoTargets/{geo_target}` - * @type array|\Google\Protobuf\Internal\RepeatedField $parent_names - * Output only. All parents of the geo target ordered by ascending size. - * @type string $region_code - * Output only. The Unicode CLDR region code of the geo target. - * @type string $type - * Output only. The location type (unlocalized) for this geographical entity. - * @type bool $targetable - * Output only. Whether the geo target is targetable. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\GeoTargetMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `GeoTarget`. - * Format: `networks/{network_code}/geoTargets/{geo_target_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `GeoTarget`. - * Format: `networks/{network_code}/geoTargets/{geo_target_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The display name of the GeoTarget. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Output only. The display name of the GeoTarget. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The name of the direct parent that defines the canonical name - * of the geo target. For example, if the current geo target is "San - * Francisco", its canonical name would be "San Francisco, California, United - * States" thus the canonical_parent would be the name of California and the - * canonical_parent of California would be the name of United states Format: - * `networks/{network_code}/geoTargets/{geo_target}` - * - * Generated from protobuf field optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getCanonicalParent() - { - return isset($this->canonical_parent) ? $this->canonical_parent : ''; - } - - public function hasCanonicalParent() - { - return isset($this->canonical_parent); - } - - public function clearCanonicalParent() - { - unset($this->canonical_parent); - } - - /** - * Output only. The name of the direct parent that defines the canonical name - * of the geo target. For example, if the current geo target is "San - * Francisco", its canonical name would be "San Francisco, California, United - * States" thus the canonical_parent would be the name of California and the - * canonical_parent of California would be the name of United states Format: - * `networks/{network_code}/geoTargets/{geo_target}` - * - * Generated from protobuf field optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCanonicalParent($var) - { - GPBUtil::checkString($var, True); - $this->canonical_parent = $var; - - return $this; - } - - /** - * Output only. All parents of the geo target ordered by ascending size. - * - * Generated from protobuf field repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParentNames() - { - return $this->parent_names; - } - - /** - * Output only. All parents of the geo target ordered by ascending size. - * - * Generated from protobuf field repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParentNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->parent_names = $arr; - - return $this; - } - - /** - * Output only. The Unicode CLDR region code of the geo target. - * - * Generated from protobuf field optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRegionCode() - { - return isset($this->region_code) ? $this->region_code : ''; - } - - public function hasRegionCode() - { - return isset($this->region_code); - } - - public function clearRegionCode() - { - unset($this->region_code); - } - - /** - * Output only. The Unicode CLDR region code of the geo target. - * - * Generated from protobuf field optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Output only. The location type (unlocalized) for this geographical entity. - * - * Generated from protobuf field optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getType() - { - return isset($this->type) ? $this->type : ''; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * Output only. The location type (unlocalized) for this geographical entity. - * - * Generated from protobuf field optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Output only. Whether the geo target is targetable. - * - * Generated from protobuf field optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getTargetable() - { - return isset($this->targetable) ? $this->targetable : false; - } - - public function hasTargetable() - { - return isset($this->targetable); - } - - public function clearTargetable() - { - unset($this->targetable); - } - - /** - * Output only. Whether the geo target is targetable. - * - * Generated from protobuf field optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setTargetable($var) - { - GPBUtil::checkBool($var); - $this->targetable = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTargeting.php deleted file mode 100644 index 0b36d557278d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GeoTargeting.php +++ /dev/null @@ -1,101 +0,0 @@ -google.ads.admanager.v1.GeoTargeting - */ -class GeoTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A list of geo resource names that should be targeted/included. - * - * Generated from protobuf field repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $targeted_geos; - /** - * Optional. A list of geo resource names that should be excluded. - * - * Generated from protobuf field repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $excluded_geos; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_geos - * Optional. A list of geo resource names that should be targeted/included. - * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_geos - * Optional. A list of geo resource names that should be excluded. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A list of geo resource names that should be targeted/included. - * - * Generated from protobuf field repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetedGeos() - { - return $this->targeted_geos; - } - - /** - * Optional. A list of geo resource names that should be targeted/included. - * - * Generated from protobuf field repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetedGeos($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->targeted_geos = $arr; - - return $this; - } - - /** - * Optional. A list of geo resource names that should be excluded. - * - * Generated from protobuf field repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedGeos() - { - return $this->excluded_geos; - } - - /** - * Optional. A list of geo resource names that should be excluded. - * - * Generated from protobuf field repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedGeos($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->excluded_geos = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdBreakRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdBreakRequest.php deleted file mode 100644 index c266d0f08b88..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdBreakRequest.php +++ /dev/null @@ -1,102 +0,0 @@ -google.ads.admanager.v1.GetAdBreakRequest - */ -class GetAdBreakRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the AdBreak using the asset key or custom - * asset key. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the AdBreak using the asset key or custom - * asset key. - * - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` - * Please see {@see AdBreakServiceClient::adBreakName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetAdBreakRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the AdBreak using the asset key or custom - * asset key. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the AdBreak using the asset key or custom - * asset key. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the AdBreak using the asset key or custom - * asset key. - * Format: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php deleted file mode 100644 index a359f1d3acaf..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetAdUnitRequest - */ -class GetAdUnitRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * Please see {@see AdUnitServiceClient::adUnitName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetAdUnitRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBandwidthGroupRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBandwidthGroupRequest.php deleted file mode 100644 index 33bd890c8708..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetBandwidthGroupRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetBandwidthGroupRequest - */ -class GetBandwidthGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the BandwidthGroup. - * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the BandwidthGroup. - * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` - * Please see {@see BandwidthGroupServiceClient::bandwidthGroupName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetBandwidthGroupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the BandwidthGroup. - * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\BandwidthGroupService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the BandwidthGroup. - * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the BandwidthGroup. - * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php deleted file mode 100644 index 6fe5c202376a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetCompanyRequest - */ -class GetCompanyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Company. - * Format: `networks/{network_code}/companies/{company_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Company. - * Format: `networks/{network_code}/companies/{company_id}` - * Please see {@see CompanyServiceClient::companyName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetCompanyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Company. - * Format: `networks/{network_code}/companies/{company_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Company. - * Format: `networks/{network_code}/companies/{company_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the Company. - * Format: `networks/{network_code}/companies/{company_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php deleted file mode 100644 index 493ec5fcc0d9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetCustomFieldRequest - */ -class GetCustomFieldRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the CustomField. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the CustomField. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * Please see {@see CustomFieldServiceClient::customFieldName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetCustomFieldRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the CustomField. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the CustomField. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the CustomField. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php deleted file mode 100644 index 9499837ddb77..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.ads.admanager.v1.GetCustomTargetingKeyRequest - */ -class GetCustomTargetingKeyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the CustomTargetingKey. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the CustomTargetingKey. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * Please see {@see CustomTargetingKeyServiceClient::customTargetingKeyName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetCustomTargetingKeyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the CustomTargetingKey. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the CustomTargetingKey. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the CustomTargetingKey. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php deleted file mode 100644 index 7292b27a278d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.ads.admanager.v1.GetCustomTargetingValueRequest - */ -class GetCustomTargetingValueRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the CustomTargetingValue. - * Format: - * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the CustomTargetingValue. - * Format: - * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` - * Please see {@see CustomTargetingValueServiceClient::customTargetingValueName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetCustomTargetingValueRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the CustomTargetingValue. - * Format: - * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the CustomTargetingValue. - * Format: - * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the CustomTargetingValue. - * Format: - * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCategoryRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCategoryRequest.php deleted file mode 100644 index 36cd0abfc491..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetDeviceCategoryRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetDeviceCategoryRequest - */ -class GetDeviceCategoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the DeviceCategory. - * Format: `networks/{network_code}/deviceCategories/{device_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the DeviceCategory. - * Format: `networks/{network_code}/deviceCategories/{device_category_id}` - * Please see {@see DeviceCategoryServiceClient::deviceCategoryName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetDeviceCategoryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the DeviceCategory. - * Format: `networks/{network_code}/deviceCategories/{device_category_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\DeviceCategoryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the DeviceCategory. - * Format: `networks/{network_code}/deviceCategories/{device_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the DeviceCategory. - * Format: `networks/{network_code}/deviceCategories/{device_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php deleted file mode 100644 index f0b13fadda72..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.ads.admanager.v1.GetEntitySignalsMappingRequest - */ -class GetEntitySignalsMappingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the EntitySignalsMapping. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the EntitySignalsMapping. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * Please see {@see EntitySignalsMappingServiceClient::entitySignalsMappingName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetEntitySignalsMappingRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the EntitySignalsMapping. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the EntitySignalsMapping. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the EntitySignalsMapping. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetGeoTargetRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetGeoTargetRequest.php deleted file mode 100644 index 7b07fd6cdc24..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetGeoTargetRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetGeoTargetRequest - */ -class GetGeoTargetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the GeoTarget. - * Format: `networks/{network_code}/geoTargets/{geo_target_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the GeoTarget. - * Format: `networks/{network_code}/geoTargets/{geo_target_id}` - * Please see {@see GeoTargetServiceClient::geoTargetName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetGeoTargetRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the GeoTarget. - * Format: `networks/{network_code}/geoTargets/{geo_target_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\GeoTargetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the GeoTarget. - * Format: `networks/{network_code}/geoTargets/{geo_target_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the GeoTarget. - * Format: `networks/{network_code}/geoTargets/{geo_target_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php deleted file mode 100644 index f091d5459079..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetNetworkRequest - */ -class GetNetworkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of Network. - * Format: networks/{network_code} - * Please see {@see NetworkServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetNetworkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of Network. - * Format: networks/{network_code} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\NetworkService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemRequest.php deleted file mode 100644 index e83cf0f9ec54..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetOperatingSystemRequest - */ -class GetOperatingSystemRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the OperatingSystem. - * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the OperatingSystem. - * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` - * Please see {@see OperatingSystemServiceClient::operatingSystemName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetOperatingSystemRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the OperatingSystem. - * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the OperatingSystem. - * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the OperatingSystem. - * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemVersionRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemVersionRequest.php deleted file mode 100644 index f9085908fa69..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOperatingSystemVersionRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.ads.admanager.v1.GetOperatingSystemVersionRequest - */ -class GetOperatingSystemVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the OperatingSystemVersion. - * Format: - * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the OperatingSystemVersion. - * Format: - * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` - * Please see {@see OperatingSystemVersionServiceClient::operatingSystemVersionName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetOperatingSystemVersionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the OperatingSystemVersion. - * Format: - * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemVersionService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the OperatingSystemVersion. - * Format: - * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the OperatingSystemVersion. - * Format: - * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php deleted file mode 100644 index b2ad956f8023..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetOrderRequest - */ -class GetOrderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Order. - * Format: `networks/{network_code}/orders/{order_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Order. - * Format: `networks/{network_code}/orders/{order_id}` - * Please see {@see OrderServiceClient::orderName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetOrderRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Order. - * Format: `networks/{network_code}/orders/{order_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OrderService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Order. - * Format: `networks/{network_code}/orders/{order_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the Order. - * Format: `networks/{network_code}/orders/{order_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php deleted file mode 100644 index dc0b6f37f542..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetPlacementRequest - */ -class GetPlacementRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Placement. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Placement. - * Format: `networks/{network_code}/placements/{placement_id}` - * Please see {@see PlacementServiceClient::placementName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetPlacementRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Placement. - * Format: `networks/{network_code}/placements/{placement_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Placement. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the Placement. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionDealRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionDealRequest.php deleted file mode 100644 index 8da4871cea62..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionDealRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.ads.admanager.v1.GetPrivateAuctionDealRequest - */ -class GetPrivateAuctionDealRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the PrivateAuctionDeal. - * Format: - * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the PrivateAuctionDeal. - * Format: - * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` - * Please see {@see PrivateAuctionDealServiceClient::privateAuctionDealName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetPrivateAuctionDealRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the PrivateAuctionDeal. - * Format: - * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the PrivateAuctionDeal. - * Format: - * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the PrivateAuctionDeal. - * Format: - * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionRequest.php deleted file mode 100644 index 59895bd7a3a7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPrivateAuctionRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.ads.admanager.v1.GetPrivateAuctionRequest - */ -class GetPrivateAuctionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the PrivateAuction. - * Format: - * `networks/{network_code}/privateAuctions/{private_auction_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the PrivateAuction. - * Format: - * `networks/{network_code}/privateAuctions/{private_auction_id}` - * Please see {@see PrivateAuctionServiceClient::privateAuctionName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetPrivateAuctionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the PrivateAuction. - * Format: - * `networks/{network_code}/privateAuctions/{private_auction_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the PrivateAuction. - * Format: - * `networks/{network_code}/privateAuctions/{private_auction_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the PrivateAuction. - * Format: - * `networks/{network_code}/privateAuctions/{private_auction_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetProgrammaticBuyerRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetProgrammaticBuyerRequest.php deleted file mode 100644 index 6353f429cb7c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetProgrammaticBuyerRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.ads.admanager.v1.GetProgrammaticBuyerRequest - */ -class GetProgrammaticBuyerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the ProgrammaticBuyer. - * Format: - * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the ProgrammaticBuyer. - * Format: - * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` - * Please see {@see ProgrammaticBuyerServiceClient::programmaticBuyerName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetProgrammaticBuyerRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the ProgrammaticBuyer. - * Format: - * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ProgrammaticBuyerService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the ProgrammaticBuyer. - * Format: - * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the ProgrammaticBuyer. - * Format: - * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php deleted file mode 100644 index 796bc7046179..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetReportRequest - */ -class GetReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the report. - * Format: `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the report. - * Format: `networks/{network_code}/reports/{report_id}` - * Please see {@see ReportServiceClient::reportName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetReportRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the report. - * Format: `networks/{network_code}/reports/{report_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the report. - * Format: `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the report. - * Format: `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php deleted file mode 100644 index 5b5ef57b0bc8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetRoleRequest - */ -class GetRoleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Role. - * Format: `networks/{network_code}/roles/{role_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Role. - * Format: `networks/{network_code}/roles/{role_id}` - * Please see {@see RoleServiceClient::roleName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetRoleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Role. - * Format: `networks/{network_code}/roles/{role_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RoleService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Role. - * Format: `networks/{network_code}/roles/{role_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the Role. - * Format: `networks/{network_code}/roles/{role_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php deleted file mode 100644 index b0e943d63698..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetTaxonomyCategoryRequest - */ -class GetTaxonomyCategoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the TaxonomyCategory. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the TaxonomyCategory. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * Please see {@see TaxonomyCategoryServiceClient::taxonomyCategoryName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetTaxonomyCategoryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the TaxonomyCategory. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the TaxonomyCategory. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the TaxonomyCategory. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php deleted file mode 100644 index 602f87ff62d3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetUserRequest - */ -class GetUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * Please see {@see UserServiceClient::userName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetUserRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\UserService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/InventoryTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/InventoryTargeting.php deleted file mode 100644 index b123aee6d83c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/InventoryTargeting.php +++ /dev/null @@ -1,153 +0,0 @@ -google.ads.admanager.v1.InventoryTargeting - */ -class InventoryTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A list of ad units that should be targeted/included. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $targeted_ad_units; - /** - * Optional. A list of ad units that should be excluded. - * Excluded AUs take precedence over targeted AUs. In fact an AU can be - * excluded only if one of its ancestors is targeted. Subsequently child - * AUs of an excluded AU can not be targeted (except via a placement). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $excluded_ad_units; - /** - * Optional. The resource names of the placements that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $targeted_placements; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\AdUnitTargeting>|\Google\Protobuf\Internal\RepeatedField $targeted_ad_units - * Optional. A list of ad units that should be targeted/included. - * @type array<\Google\Ads\AdManager\V1\AdUnitTargeting>|\Google\Protobuf\Internal\RepeatedField $excluded_ad_units - * Optional. A list of ad units that should be excluded. - * Excluded AUs take precedence over targeted AUs. In fact an AU can be - * excluded only if one of its ancestors is targeted. Subsequently child - * AUs of an excluded AU can not be targeted (except via a placement). - * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_placements - * Optional. The resource names of the placements that should be - * targeted/included. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A list of ad units that should be targeted/included. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetedAdUnits() - { - return $this->targeted_ad_units; - } - - /** - * Optional. A list of ad units that should be targeted/included. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AdUnitTargeting>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetedAdUnits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitTargeting::class); - $this->targeted_ad_units = $arr; - - return $this; - } - - /** - * Optional. A list of ad units that should be excluded. - * Excluded AUs take precedence over targeted AUs. In fact an AU can be - * excluded only if one of its ancestors is targeted. Subsequently child - * AUs of an excluded AU can not be targeted (except via a placement). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedAdUnits() - { - return $this->excluded_ad_units; - } - - /** - * Optional. A list of ad units that should be excluded. - * Excluded AUs take precedence over targeted AUs. In fact an AU can be - * excluded only if one of its ancestors is targeted. Subsequently child - * AUs of an excluded AU can not be targeted (except via a placement). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AdUnitTargeting>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedAdUnits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitTargeting::class); - $this->excluded_ad_units = $arr; - - return $this; - } - - /** - * Optional. The resource names of the placements that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetedPlacements() - { - return $this->targeted_placements; - } - - /** - * Optional. The resource names of the placements that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetedPlacements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->targeted_placements = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php deleted file mode 100644 index 246b02a2b2c7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.Label - */ -class Label extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Label`. - * Format: `networks/{network_code}/labels/{label_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Label`. - * Format: `networks/{network_code}/labels/{label_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\LabelMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Label`. - * Format: `networks/{network_code}/labels/{label_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Label`. - * Format: `networks/{network_code}/labels/{label_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php deleted file mode 100644 index e64694387979..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php +++ /dev/null @@ -1,125 +0,0 @@ -google.ads.admanager.v1.LabelFrequencyCap - */ -class LabelFrequencyCap extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The label to used for frequency capping. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $label = null; - /** - * The frequency cap. - * - * Generated from protobuf field optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; - */ - protected $frequency_cap = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $label - * Required. The label to used for frequency capping. - * Format: "networks/{network_code}/labels/{label_id}" - * @type \Google\Ads\AdManager\V1\FrequencyCap $frequency_cap - * The frequency cap. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); - parent::__construct($data); - } - - /** - * Required. The label to used for frequency capping. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLabel() - { - return isset($this->label) ? $this->label : ''; - } - - public function hasLabel() - { - return isset($this->label); - } - - public function clearLabel() - { - unset($this->label); - } - - /** - * Required. The label to used for frequency capping. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * The frequency cap. - * - * Generated from protobuf field optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; - * @return \Google\Ads\AdManager\V1\FrequencyCap|null - */ - public function getFrequencyCap() - { - return $this->frequency_cap; - } - - public function hasFrequencyCap() - { - return isset($this->frequency_cap); - } - - public function clearFrequencyCap() - { - unset($this->frequency_cap); - } - - /** - * The frequency cap. - * - * Generated from protobuf field optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; - * @param \Google\Ads\AdManager\V1\FrequencyCap $var - * @return $this - */ - public function setFrequencyCap($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\FrequencyCap::class); - $this->frequency_cap = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksRequest.php deleted file mode 100644 index 4be9b9b02823..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksRequest.php +++ /dev/null @@ -1,307 +0,0 @@ -google.ads.admanager.v1.ListAdBreaksRequest - */ -class ListAdBreaksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of AdBreaks. - * Formats: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `AdBreaks` to return. The service might - * return fewer than this value. If unspecified, at most 10 ad breaks are - * returned. The maximum value is `100`. Values above `100` are coerced to - * `100`. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListAdBreaks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdBreaks` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of AdBreaks. - * - * Formats: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` - * Please see {@see AdBreakServiceClient::liveStreamEventName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListAdBreaksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of AdBreaks. - * Formats: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` - * @type int $page_size - * Optional. The maximum number of `AdBreaks` to return. The service might - * return fewer than this value. If unspecified, at most 10 ad breaks are - * returned. The maximum value is `100`. Values above `100` are coerced to - * `100`. - * @type string $page_token - * Optional. A page token, received from a previous `ListAdBreaks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdBreaks` must match - * the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of AdBreaks. - * Formats: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of AdBreaks. - * Formats: - * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` - * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `AdBreaks` to return. The service might - * return fewer than this value. If unspecified, at most 10 ad breaks are - * returned. The maximum value is `100`. Values above `100` are coerced to - * `100`. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `AdBreaks` to return. The service might - * return fewer than this value. If unspecified, at most 10 ad breaks are - * returned. The maximum value is `100`. Values above `100` are coerced to - * `100`. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListAdBreaks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdBreaks` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListAdBreaks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdBreaks` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksResponse.php deleted file mode 100644 index 07f1234b86cf..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdBreaksResponse.php +++ /dev/null @@ -1,176 +0,0 @@ -google.ads.admanager.v1.ListAdBreaksResponse - */ -class ListAdBreaksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `AdBreak` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; - */ - private $ad_breaks; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. This field expires - * after five minutes. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `AdBreak` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\AdBreak>|\Google\Protobuf\Internal\RepeatedField $ad_breaks - * The `AdBreak` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. This field expires - * after five minutes. - * @type int $total_size - * Total number of `AdBreak` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); - parent::__construct($data); - } - - /** - * The `AdBreak` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdBreaks() - { - return $this->ad_breaks; - } - - /** - * The `AdBreak` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; - * @param array<\Google\Ads\AdManager\V1\AdBreak>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdBreaks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdBreak::class); - $this->ad_breaks = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. This field expires - * after five minutes. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. This field expires - * after five minutes. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `AdBreak` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `AdBreak` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php deleted file mode 100644 index 0738fead7604..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListAdUnitSizesRequest - */ -class ListAdUnitSizesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of AdUnitSizes. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of AdUnitSizes to return. The service may - * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListAdUnitSizes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnitSizes` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of AdUnitSizes. - * Format: `networks/{network_code}` - * Please see {@see AdUnitServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListAdUnitSizesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of AdUnitSizes. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of AdUnitSizes to return. The service may - * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListAdUnitSizes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnitSizes` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of AdUnitSizes. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of AdUnitSizes. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of AdUnitSizes to return. The service may - * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of AdUnitSizes to return. The service may - * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListAdUnitSizes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnitSizes` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListAdUnitSizes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnitSizes` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php deleted file mode 100644 index 471fe5e27ba6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php +++ /dev/null @@ -1,171 +0,0 @@ -google.ads.admanager.v1.ListAdUnitSizesResponse - */ -class ListAdUnitSizesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The AdUnitSizes from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1; - */ - private $ad_unit_sizes; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of AdUnitSizes. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $ad_unit_sizes - * The AdUnitSizes from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of AdUnitSizes. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); - parent::__construct($data); - } - - /** - * The AdUnitSizes from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdUnitSizes() - { - return $this->ad_unit_sizes; - } - - /** - * The AdUnitSizes from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1; - * @param array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdUnitSizes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitSize::class); - $this->ad_unit_sizes = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of AdUnitSizes. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of AdUnitSizes. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php deleted file mode 100644 index 727ea00d649d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListAdUnitsRequest - */ -class ListAdUnitsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of AdUnits. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of AdUnits to return. The service may return - * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListAdUnits` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnits` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of AdUnits. - * Format: `networks/{network_code}` - * Please see {@see AdUnitServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListAdUnitsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of AdUnits. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of AdUnits to return. The service may return - * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListAdUnits` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnits` must match - * the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of AdUnits. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of AdUnits. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of AdUnits to return. The service may return - * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of AdUnits to return. The service may return - * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListAdUnits` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnits` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListAdUnits` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnits` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php deleted file mode 100644 index fdbd1e40affd..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php +++ /dev/null @@ -1,171 +0,0 @@ -google.ads.admanager.v1.ListAdUnitsResponse - */ -class ListAdUnitsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The AdUnit from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnit ad_units = 1; - */ - private $ad_units; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of AdUnits. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\AdUnit>|\Google\Protobuf\Internal\RepeatedField $ad_units - * The AdUnit from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of AdUnits. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); - parent::__construct($data); - } - - /** - * The AdUnit from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnit ad_units = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdUnits() - { - return $this->ad_units; - } - - /** - * The AdUnit from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnit ad_units = 1; - * @param array<\Google\Ads\AdManager\V1\AdUnit>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdUnits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnit::class); - $this->ad_units = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of AdUnits. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of AdUnits. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsRequest.php deleted file mode 100644 index 7558ac214e44..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListBandwidthGroupsRequest - */ -class ListBandwidthGroupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of BandwidthGroups. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `BandwidthGroups` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `BandwidthGroups` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListBandwidthGroups` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBandwidthGroups` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of BandwidthGroups. - * Format: `networks/{network_code}` - * Please see {@see BandwidthGroupServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListBandwidthGroupsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of BandwidthGroups. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `BandwidthGroups` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `BandwidthGroups` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListBandwidthGroups` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBandwidthGroups` - * must match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\BandwidthGroupService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of BandwidthGroups. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of BandwidthGroups. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `BandwidthGroups` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `BandwidthGroups` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `BandwidthGroups` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `BandwidthGroups` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListBandwidthGroups` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBandwidthGroups` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListBandwidthGroups` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBandwidthGroups` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsResponse.php deleted file mode 100644 index e9c271e781f6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListBandwidthGroupsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListBandwidthGroupsResponse - */ -class ListBandwidthGroupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `BandwidthGroup` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; - */ - private $bandwidth_groups; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `BandwidthGroup` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\BandwidthGroup>|\Google\Protobuf\Internal\RepeatedField $bandwidth_groups - * The `BandwidthGroup` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `BandwidthGroup` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\BandwidthGroupService::initOnce(); - parent::__construct($data); - } - - /** - * The `BandwidthGroup` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBandwidthGroups() - { - return $this->bandwidth_groups; - } - - /** - * The `BandwidthGroup` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; - * @param array<\Google\Ads\AdManager\V1\BandwidthGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBandwidthGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\BandwidthGroup::class); - $this->bandwidth_groups = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `BandwidthGroup` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `BandwidthGroup` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php deleted file mode 100644 index c3b776eef434..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListCompaniesRequest - */ -class ListCompaniesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of Companies. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListCompanies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of Companies. - * Format: `networks/{network_code}` - * Please see {@see CompanyServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListCompaniesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of Companies. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListCompanies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of Companies. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of Companies. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListCompanies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListCompanies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php deleted file mode 100644 index 69a940f8970d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListCompaniesResponse - */ -class ListCompaniesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Company` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; - */ - private $companies; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `Company` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Company>|\Google\Protobuf\Internal\RepeatedField $companies - * The `Company` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `Company` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); - parent::__construct($data); - } - - /** - * The `Company` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCompanies() - { - return $this->companies; - } - - /** - * The `Company` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; - * @param array<\Google\Ads\AdManager\V1\Company>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCompanies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Company::class); - $this->companies = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `Company` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `Company` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php deleted file mode 100644 index 24f40056566b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListCustomFieldsRequest - */ -class ListCustomFieldsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of CustomFields. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `CustomFields` to return. The service may - * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values greater than 1000 will - * be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListCustomFields` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomFields` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of CustomFields. - * Format: `networks/{network_code}` - * Please see {@see CustomFieldServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListCustomFieldsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of CustomFields. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `CustomFields` to return. The service may - * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values greater than 1000 will - * be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListCustomFields` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomFields` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of CustomFields. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of CustomFields. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `CustomFields` to return. The service may - * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values greater than 1000 will - * be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `CustomFields` to return. The service may - * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values greater than 1000 will - * be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListCustomFields` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomFields` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListCustomFields` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomFields` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php deleted file mode 100644 index 8ec896f118f9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListCustomFieldsResponse - */ -class ListCustomFieldsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `CustomField` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; - */ - private $custom_fields; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `CustomField` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\CustomField>|\Google\Protobuf\Internal\RepeatedField $custom_fields - * The `CustomField` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `CustomField` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); - parent::__construct($data); - } - - /** - * The `CustomField` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomFields() - { - return $this->custom_fields; - } - - /** - * The `CustomField` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; - * @param array<\Google\Ads\AdManager\V1\CustomField>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomField::class); - $this->custom_fields = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `CustomField` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `CustomField` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php deleted file mode 100644 index bf474f6a2a8f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListCustomTargetingKeysRequest - */ -class ListCustomTargetingKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of CustomTargetingKeys. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `CustomTargetingKeys` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingKeys` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListCustomTargetingKeys` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomTargetingKeys` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of CustomTargetingKeys. - * Format: `networks/{network_code}` - * Please see {@see CustomTargetingKeyServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListCustomTargetingKeysRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of CustomTargetingKeys. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `CustomTargetingKeys` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingKeys` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListCustomTargetingKeys` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomTargetingKeys` - * must match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of CustomTargetingKeys. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of CustomTargetingKeys. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `CustomTargetingKeys` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingKeys` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `CustomTargetingKeys` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingKeys` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListCustomTargetingKeys` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomTargetingKeys` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListCustomTargetingKeys` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomTargetingKeys` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php deleted file mode 100644 index 9f478cfee346..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListCustomTargetingKeysResponse - */ -class ListCustomTargetingKeysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `CustomTargetingKey` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; - */ - private $custom_targeting_keys; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `CustomTargetingKey` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\CustomTargetingKey>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_keys - * The `CustomTargetingKey` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `CustomTargetingKey` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyService::initOnce(); - parent::__construct($data); - } - - /** - * The `CustomTargetingKey` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomTargetingKeys() - { - return $this->custom_targeting_keys; - } - - /** - * The `CustomTargetingKey` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; - * @param array<\Google\Ads\AdManager\V1\CustomTargetingKey>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomTargetingKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomTargetingKey::class); - $this->custom_targeting_keys = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `CustomTargetingKey` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `CustomTargetingKey` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php deleted file mode 100644 index 2256be2a2f5f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php +++ /dev/null @@ -1,309 +0,0 @@ -google.ads.admanager.v1.ListCustomTargetingValuesRequest - */ -class ListCustomTargetingValuesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of CustomTargetingValues. - * Format: - * `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `CustomTargetingValues` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingValues` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListCustomTargetingValues` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of CustomTargetingValues. - * Format: - * `networks/{network_code}` - * Please see {@see CustomTargetingValueServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListCustomTargetingValuesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of CustomTargetingValues. - * Format: - * `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `CustomTargetingValues` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingValues` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListCustomTargetingValues` must match the call that provided the page - * token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of CustomTargetingValues. - * Format: - * `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of CustomTargetingValues. - * Format: - * `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `CustomTargetingValues` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingValues` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `CustomTargetingValues` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingValues` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListCustomTargetingValues` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListCustomTargetingValues` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php deleted file mode 100644 index 34765904f69e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListCustomTargetingValuesResponse - */ -class ListCustomTargetingValuesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `CustomTargetingValue` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1; - */ - private $custom_targeting_values; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `CustomTargetingValue` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\CustomTargetingValue>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_values - * The `CustomTargetingValue` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `CustomTargetingValue` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueService::initOnce(); - parent::__construct($data); - } - - /** - * The `CustomTargetingValue` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomTargetingValues() - { - return $this->custom_targeting_values; - } - - /** - * The `CustomTargetingValue` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1; - * @param array<\Google\Ads\AdManager\V1\CustomTargetingValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomTargetingValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomTargetingValue::class); - $this->custom_targeting_values = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `CustomTargetingValue` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `CustomTargetingValue` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesRequest.php deleted file mode 100644 index 6489d950b751..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListDeviceCategoriesRequest - */ -class ListDeviceCategoriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of DeviceCategories. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `DeviceCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `DeviceCategories` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDeviceCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDeviceCategories` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of DeviceCategories. - * Format: `networks/{network_code}` - * Please see {@see DeviceCategoryServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListDeviceCategoriesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of DeviceCategories. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `DeviceCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `DeviceCategories` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListDeviceCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDeviceCategories` - * must match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\DeviceCategoryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of DeviceCategories. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of DeviceCategories. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `DeviceCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `DeviceCategories` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `DeviceCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `DeviceCategories` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListDeviceCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDeviceCategories` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDeviceCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDeviceCategories` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesResponse.php deleted file mode 100644 index 535a42efdd64..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListDeviceCategoriesResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListDeviceCategoriesResponse - */ -class ListDeviceCategoriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `DeviceCategory` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; - */ - private $device_categories; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `DeviceCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\DeviceCategory>|\Google\Protobuf\Internal\RepeatedField $device_categories - * The `DeviceCategory` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `DeviceCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\DeviceCategoryService::initOnce(); - parent::__construct($data); - } - - /** - * The `DeviceCategory` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeviceCategories() - { - return $this->device_categories; - } - - /** - * The `DeviceCategory` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; - * @param array<\Google\Ads\AdManager\V1\DeviceCategory>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeviceCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DeviceCategory::class); - $this->device_categories = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `DeviceCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `DeviceCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php deleted file mode 100644 index a4a2945b87fe..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php +++ /dev/null @@ -1,304 +0,0 @@ -google.ads.admanager.v1.ListEntitySignalsMappingsRequest - */ -class ListEntitySignalsMappingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of EntitySignalsMappings. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `EntitySignalsMappings` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `EntitySignalsMappings` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListEntitySignalsMappings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of EntitySignalsMappings. - * Format: `networks/{network_code}` - * Please see {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListEntitySignalsMappingsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of EntitySignalsMappings. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `EntitySignalsMappings` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `EntitySignalsMappings` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListEntitySignalsMappings` must match the call that provided the page - * token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of EntitySignalsMappings. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of EntitySignalsMappings. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `EntitySignalsMappings` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `EntitySignalsMappings` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `EntitySignalsMappings` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `EntitySignalsMappings` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListEntitySignalsMappings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListEntitySignalsMappings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php deleted file mode 100644 index e634bf1af866..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListEntitySignalsMappingsResponse - */ -class ListEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `EntitySignalsMapping` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - */ - private $entity_signals_mappings; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `EntitySignalsMappings`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $entity_signals_mappings - * The `EntitySignalsMapping` from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `EntitySignalsMappings`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * The `EntitySignalsMapping` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntitySignalsMappings() - { - return $this->entity_signals_mappings; - } - - /** - * The `EntitySignalsMapping` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @param array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntitySignalsMappings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); - $this->entity_signals_mappings = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `EntitySignalsMappings`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `EntitySignalsMappings`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsRequest.php deleted file mode 100644 index ee35713eaa03..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListGeoTargetsRequest - */ -class ListGeoTargetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of GeoTargets. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `GeoTargets` to return. The service may - * return fewer than this value. If unspecified, at most 50 `GeoTargets` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListGeoTargets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGeoTargets` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of GeoTargets. - * Format: `networks/{network_code}` - * Please see {@see GeoTargetServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListGeoTargetsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of GeoTargets. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `GeoTargets` to return. The service may - * return fewer than this value. If unspecified, at most 50 `GeoTargets` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListGeoTargets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGeoTargets` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\GeoTargetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of GeoTargets. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of GeoTargets. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `GeoTargets` to return. The service may - * return fewer than this value. If unspecified, at most 50 `GeoTargets` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `GeoTargets` to return. The service may - * return fewer than this value. If unspecified, at most 50 `GeoTargets` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListGeoTargets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGeoTargets` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListGeoTargets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGeoTargets` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsResponse.php deleted file mode 100644 index ad738b31f5bf..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListGeoTargetsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListGeoTargetsResponse - */ -class ListGeoTargetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `GeoTarget` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; - */ - private $geo_targets; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `GeoTarget` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\GeoTarget>|\Google\Protobuf\Internal\RepeatedField $geo_targets - * The `GeoTarget` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `GeoTarget` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\GeoTargetService::initOnce(); - parent::__construct($data); - } - - /** - * The `GeoTarget` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGeoTargets() - { - return $this->geo_targets; - } - - /** - * The `GeoTarget` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; - * @param array<\Google\Ads\AdManager\V1\GeoTarget>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGeoTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\GeoTarget::class); - $this->geo_targets = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `GeoTarget` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `GeoTarget` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php deleted file mode 100644 index 533cdfe2486e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php +++ /dev/null @@ -1,33 +0,0 @@ -google.ads.admanager.v1.ListNetworksRequest - */ -class ListNetworksRequest extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\NetworkService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php deleted file mode 100644 index 0e19406e6bf5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.ListNetworksResponse - */ -class ListNetworksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Network`s a user has access to. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Network networks = 1; - */ - private $networks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Network>|\Google\Protobuf\Internal\RepeatedField $networks - * The `Network`s a user has access to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\NetworkService::initOnce(); - parent::__construct($data); - } - - /** - * The `Network`s a user has access to. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Network networks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNetworks() - { - return $this->networks; - } - - /** - * The `Network`s a user has access to. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Network networks = 1; - * @param array<\Google\Ads\AdManager\V1\Network>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNetworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Network::class); - $this->networks = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsRequest.php deleted file mode 100644 index 79c4603bed4e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsRequest.php +++ /dev/null @@ -1,304 +0,0 @@ -google.ads.admanager.v1.ListOperatingSystemVersionsRequest - */ -class ListOperatingSystemVersionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of - * OperatingSystemVersions. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `OperatingSystemVersions` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListOperatingSystemVersions` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of - * OperatingSystemVersions. Format: `networks/{network_code}` - * Please see {@see OperatingSystemVersionServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListOperatingSystemVersionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of - * OperatingSystemVersions. Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `OperatingSystemVersions` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListOperatingSystemVersions` must match the call that provided the page - * token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemVersionService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of - * OperatingSystemVersions. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of - * OperatingSystemVersions. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `OperatingSystemVersions` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `OperatingSystemVersions` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListOperatingSystemVersions` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListOperatingSystemVersions` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsResponse.php deleted file mode 100644 index 34daa1fe6128..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemVersionsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListOperatingSystemVersionsResponse - */ -class ListOperatingSystemVersionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `OperatingSystemVersion` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; - */ - private $operating_system_versions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `OperatingSystemVersion` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\OperatingSystemVersion>|\Google\Protobuf\Internal\RepeatedField $operating_system_versions - * The `OperatingSystemVersion` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `OperatingSystemVersion` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemVersionService::initOnce(); - parent::__construct($data); - } - - /** - * The `OperatingSystemVersion` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOperatingSystemVersions() - { - return $this->operating_system_versions; - } - - /** - * The `OperatingSystemVersion` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; - * @param array<\Google\Ads\AdManager\V1\OperatingSystemVersion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOperatingSystemVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\OperatingSystemVersion::class); - $this->operating_system_versions = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `OperatingSystemVersion` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `OperatingSystemVersion` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsRequest.php deleted file mode 100644 index 24e2509af4e9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListOperatingSystemsRequest - */ -class ListOperatingSystemsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of OperatingSystems. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `OperatingSystems` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `OperatingSystems` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListOperatingSystems` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOperatingSystems` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of OperatingSystems. - * Format: `networks/{network_code}` - * Please see {@see OperatingSystemServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListOperatingSystemsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of OperatingSystems. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `OperatingSystems` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `OperatingSystems` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListOperatingSystems` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOperatingSystems` - * must match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of OperatingSystems. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of OperatingSystems. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `OperatingSystems` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `OperatingSystems` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `OperatingSystems` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `OperatingSystems` will be returned. The maximum value is 1000; values - * greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListOperatingSystems` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOperatingSystems` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListOperatingSystems` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOperatingSystems` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsResponse.php deleted file mode 100644 index 9e5a3456c49a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOperatingSystemsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListOperatingSystemsResponse - */ -class ListOperatingSystemsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `OperatingSystem` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; - */ - private $operating_systems; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `OperatingSystem` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\OperatingSystem>|\Google\Protobuf\Internal\RepeatedField $operating_systems - * The `OperatingSystem` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `OperatingSystem` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemService::initOnce(); - parent::__construct($data); - } - - /** - * The `OperatingSystem` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOperatingSystems() - { - return $this->operating_systems; - } - - /** - * The `OperatingSystem` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; - * @param array<\Google\Ads\AdManager\V1\OperatingSystem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOperatingSystems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\OperatingSystem::class); - $this->operating_systems = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `OperatingSystem` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `OperatingSystem` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php deleted file mode 100644 index be867d697fcc..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListOrdersRequest - */ -class ListOrdersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of Orders. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Orders` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListOrders` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOrders` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of Orders. - * Format: `networks/{network_code}` - * Please see {@see OrderServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListOrdersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of Orders. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `Orders` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListOrders` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOrders` must match - * the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OrderService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of Orders. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of Orders. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Orders` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Orders` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListOrders` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOrders` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListOrders` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOrders` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php deleted file mode 100644 index 02cb3bda5914..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListOrdersResponse - */ -class ListOrdersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Order` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Order orders = 1; - */ - private $orders; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `Orders`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Order>|\Google\Protobuf\Internal\RepeatedField $orders - * The `Order` from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `Orders`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OrderService::initOnce(); - parent::__construct($data); - } - - /** - * The `Order` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Order orders = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrders() - { - return $this->orders; - } - - /** - * The `Order` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Order orders = 1; - * @param array<\Google\Ads\AdManager\V1\Order>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Order::class); - $this->orders = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `Orders`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `Orders`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php deleted file mode 100644 index 99ed2b60ebb7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListPlacementsRequest - */ -class ListPlacementsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of Placements. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Placements` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListPlacements` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListPlacements` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of Placements. - * Format: `networks/{network_code}` - * Please see {@see PlacementServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListPlacementsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of Placements. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `Placements` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListPlacements` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListPlacements` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of Placements. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of Placements. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Placements` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Placements` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListPlacements` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListPlacements` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListPlacements` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListPlacements` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php deleted file mode 100644 index 33ead5a228c9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListPlacementsResponse - */ -class ListPlacementsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Placement` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; - */ - private $placements; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `Placement` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $placements - * The `Placement` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `Placement` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); - parent::__construct($data); - } - - /** - * The `Placement` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPlacements() - { - return $this->placements; - } - - /** - * The `Placement` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; - * @param array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPlacements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Placement::class); - $this->placements = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `Placement` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `Placement` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsRequest.php deleted file mode 100644 index 871cfed21011..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsRequest.php +++ /dev/null @@ -1,305 +0,0 @@ -google.ads.admanager.v1.ListPrivateAuctionDealsRequest - */ -class ListPrivateAuctionDealsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of PrivateAuctionDeals. - * Format: - * `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `PrivateAuctionDeals` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListPrivateAuctionDeals` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListPrivateAuctionDeals` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of PrivateAuctionDeals. - * Format: - * `networks/{network_code}` - * Please see {@see PrivateAuctionDealServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListPrivateAuctionDealsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of PrivateAuctionDeals. - * Format: - * `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `PrivateAuctionDeals` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListPrivateAuctionDeals` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListPrivateAuctionDeals` must match the call that provided the page - * token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of PrivateAuctionDeals. - * Format: - * `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of PrivateAuctionDeals. - * Format: - * `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `PrivateAuctionDeals` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `PrivateAuctionDeals` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListPrivateAuctionDeals` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListPrivateAuctionDeals` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListPrivateAuctionDeals` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListPrivateAuctionDeals` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsResponse.php deleted file mode 100644 index 1855104b1b70..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionDealsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListPrivateAuctionDealsResponse - */ -class ListPrivateAuctionDealsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `PrivateAuctionDeal` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; - */ - private $private_auction_deals; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `PrivateAuctionDeal` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\PrivateAuctionDeal>|\Google\Protobuf\Internal\RepeatedField $private_auction_deals - * The `PrivateAuctionDeal` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `PrivateAuctionDeal` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealService::initOnce(); - parent::__construct($data); - } - - /** - * The `PrivateAuctionDeal` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPrivateAuctionDeals() - { - return $this->private_auction_deals; - } - - /** - * The `PrivateAuctionDeal` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; - * @param array<\Google\Ads\AdManager\V1\PrivateAuctionDeal>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPrivateAuctionDeals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\PrivateAuctionDeal::class); - $this->private_auction_deals = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `PrivateAuctionDeal` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `PrivateAuctionDeal` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsRequest.php deleted file mode 100644 index 381c9c2be4e2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsRequest.php +++ /dev/null @@ -1,300 +0,0 @@ -google.ads.admanager.v1.ListPrivateAuctionsRequest - */ -class ListPrivateAuctionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of PrivateAuctions. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `PrivateAuctions` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `PrivateAuctions` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListPrivateAuctions` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListPrivateAuctions` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of PrivateAuctions. - * Format: `networks/{network_code}` - * Please see {@see PrivateAuctionServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListPrivateAuctionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of PrivateAuctions. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `PrivateAuctions` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `PrivateAuctions` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListPrivateAuctions` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListPrivateAuctions` must match the call that provided the - * page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of PrivateAuctions. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of PrivateAuctions. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `PrivateAuctions` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `PrivateAuctions` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `PrivateAuctions` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `PrivateAuctions` will be returned. The maximum value is 1000; - * values greater than 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListPrivateAuctions` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListPrivateAuctions` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListPrivateAuctions` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListPrivateAuctions` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsResponse.php deleted file mode 100644 index 63c0a21fbdf0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPrivateAuctionsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListPrivateAuctionsResponse - */ -class ListPrivateAuctionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `PrivateAuction` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; - */ - private $private_auctions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `PrivateAuction` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\PrivateAuction>|\Google\Protobuf\Internal\RepeatedField $private_auctions - * The `PrivateAuction` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `PrivateAuction` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionService::initOnce(); - parent::__construct($data); - } - - /** - * The `PrivateAuction` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPrivateAuctions() - { - return $this->private_auctions; - } - - /** - * The `PrivateAuction` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; - * @param array<\Google\Ads\AdManager\V1\PrivateAuction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPrivateAuctions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\PrivateAuction::class); - $this->private_auctions = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `PrivateAuction` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `PrivateAuction` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersRequest.php deleted file mode 100644 index ed1ef25de090..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListProgrammaticBuyersRequest - */ -class ListProgrammaticBuyersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of ProgrammaticBuyers. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `ProgrammaticBuyers` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `ProgrammaticBuyers` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListProgrammaticBuyers` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProgrammaticBuyers` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of ProgrammaticBuyers. - * Format: `networks/{network_code}` - * Please see {@see ProgrammaticBuyerServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListProgrammaticBuyersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of ProgrammaticBuyers. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `ProgrammaticBuyers` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `ProgrammaticBuyers` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListProgrammaticBuyers` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProgrammaticBuyers` - * must match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ProgrammaticBuyerService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of ProgrammaticBuyers. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of ProgrammaticBuyers. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `ProgrammaticBuyers` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `ProgrammaticBuyers` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `ProgrammaticBuyers` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `ProgrammaticBuyers` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListProgrammaticBuyers` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProgrammaticBuyers` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListProgrammaticBuyers` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProgrammaticBuyers` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersResponse.php deleted file mode 100644 index 51c9ce753278..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListProgrammaticBuyersResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListProgrammaticBuyersResponse - */ -class ListProgrammaticBuyersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `ProgrammaticBuyer` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; - */ - private $programmatic_buyers; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `ProgrammaticBuyer` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\ProgrammaticBuyer>|\Google\Protobuf\Internal\RepeatedField $programmatic_buyers - * The `ProgrammaticBuyer` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `ProgrammaticBuyer` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ProgrammaticBuyerService::initOnce(); - parent::__construct($data); - } - - /** - * The `ProgrammaticBuyer` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProgrammaticBuyers() - { - return $this->programmatic_buyers; - } - - /** - * The `ProgrammaticBuyer` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; - * @param array<\Google\Ads\AdManager\V1\ProgrammaticBuyer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProgrammaticBuyers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ProgrammaticBuyer::class); - $this->programmatic_buyers = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `ProgrammaticBuyer` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `ProgrammaticBuyer` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php deleted file mode 100644 index d669dd54c4a4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListReportsRequest - */ -class ListReportsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of reports. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Reports` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListReports` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReports` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of reports. - * Format: `networks/{network_code}` - * Please see {@see ReportServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListReportsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of reports. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `Reports` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListReports` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReports` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of reports. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of reports. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Reports` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Reports` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values greater than 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListReports` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReports` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListReports` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReports` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php deleted file mode 100644 index d657eb5bb2ad..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListReportsResponse - */ -class ListReportsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Report` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report reports = 1; - */ - private $reports; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `Report` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Report>|\Google\Protobuf\Internal\RepeatedField $reports - * The `Report` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `Report` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * The `Report` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report reports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReports() - { - return $this->reports; - } - - /** - * The `Report` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report reports = 1; - * @param array<\Google\Ads\AdManager\V1\Report>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report::class); - $this->reports = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `Report` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `Report` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php deleted file mode 100644 index 2ecdc519297e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListRolesRequest - */ -class ListRolesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of Roles. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Roles` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values greater than 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListRoles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRoles` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of Roles. - * Format: `networks/{network_code}` - * Please see {@see RoleServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListRolesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of Roles. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `Roles` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values greater than 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListRoles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRoles` must match - * the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RoleService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of Roles. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of Roles. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Roles` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values greater than 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Roles` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values greater than 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListRoles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRoles` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListRoles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRoles` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php deleted file mode 100644 index f7830a172031..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php +++ /dev/null @@ -1,171 +0,0 @@ -google.ads.admanager.v1.ListRolesResponse - */ -class ListRolesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Role` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Role roles = 1; - */ - private $roles; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `Role` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Role>|\Google\Protobuf\Internal\RepeatedField $roles - * The `Role` objects from the specified network. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `Role` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RoleService::initOnce(); - parent::__construct($data); - } - - /** - * The `Role` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Role roles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRoles() - { - return $this->roles; - } - - /** - * The `Role` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Role roles = 1; - * @param array<\Google\Ads\AdManager\V1\Role>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRoles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Role::class); - $this->roles = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `Role` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `Role` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php deleted file mode 100644 index fcbb1bb1167d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListTaxonomyCategoriesRequest - */ -class ListTaxonomyCategoriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of TaxonomyCategories. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `TaxonomyCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `TaxonomyCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListTaxonomyCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTaxonomyCategories` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of TaxonomyCategories. - * Format: `networks/{network_code}` - * Please see {@see TaxonomyCategoryServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListTaxonomyCategoriesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of TaxonomyCategories. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `TaxonomyCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `TaxonomyCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListTaxonomyCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTaxonomyCategories` - * must match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of TaxonomyCategories. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of TaxonomyCategories. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `TaxonomyCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `TaxonomyCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `TaxonomyCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `TaxonomyCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListTaxonomyCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTaxonomyCategories` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListTaxonomyCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTaxonomyCategories` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php deleted file mode 100644 index 64472ff15193..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListTaxonomyCategoriesResponse - */ -class ListTaxonomyCategoriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `TaxonomyCategory` objects. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.TaxonomyCategory taxonomy_categories = 1; - */ - private $taxonomy_categories; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total number of `TaxonomyCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\TaxonomyCategory>|\Google\Protobuf\Internal\RepeatedField $taxonomy_categories - * The `TaxonomyCategory` objects. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type int $total_size - * Total number of `TaxonomyCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryService::initOnce(); - parent::__construct($data); - } - - /** - * The `TaxonomyCategory` objects. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.TaxonomyCategory taxonomy_categories = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaxonomyCategories() - { - return $this->taxonomy_categories; - } - - /** - * The `TaxonomyCategory` objects. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.TaxonomyCategory taxonomy_categories = 1; - * @param array<\Google\Ads\AdManager\V1\TaxonomyCategory>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaxonomyCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\TaxonomyCategory::class); - $this->taxonomy_categories = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total number of `TaxonomyCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `TaxonomyCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` won't be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LiveStreamEvent.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LiveStreamEvent.php deleted file mode 100644 index fee5f508b387..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LiveStreamEvent.php +++ /dev/null @@ -1,76 +0,0 @@ -google.ads.admanager.v1.LiveStreamEvent - */ -class LiveStreamEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `LiveStreamEvent`. - * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `LiveStreamEvent`. - * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\LiveStreamEventMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `LiveStreamEvent`. - * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `LiveStreamEvent`. - * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php deleted file mode 100644 index 8d16b403c142..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php +++ /dev/null @@ -1,393 +0,0 @@ -google.ads.admanager.v1.Network - */ -class Network extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. Display name for Network. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. Network Code. - * - * Generated from protobuf field string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $network_code = ''; - /** - * Output only. Property code. - * - * Generated from protobuf field string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $property_code = ''; - /** - * Output only. Time zone associated with the delivery of orders and - * reporting. - * - * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $time_zone = ''; - /** - * Output only. Primary currency code, in ISO-4217 format. - * - * Generated from protobuf field string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $currency_code = ''; - /** - * Optional. Currency codes that can be used as an alternative to the primary - * currency code for trafficking Line Items. - * - * Generated from protobuf field repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $secondary_currency_codes; - /** - * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which - * descendant Ad Units can be added. - * Format: networks/{network_code}/adUnits/{ad_unit} - * - * Generated from protobuf field string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $effective_root_ad_unit = ''; - /** - * Output only. Whether this is a test network. - * - * Generated from protobuf field bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $test_network = false; - /** - * Output only. Network ID. - * - * Generated from protobuf field int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $network_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the Network. - * Format: networks/{network_code} - * @type string $display_name - * Optional. Display name for Network. - * @type string $network_code - * Output only. Network Code. - * @type string $property_code - * Output only. Property code. - * @type string $time_zone - * Output only. Time zone associated with the delivery of orders and - * reporting. - * @type string $currency_code - * Output only. Primary currency code, in ISO-4217 format. - * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_currency_codes - * Optional. Currency codes that can be used as an alternative to the primary - * currency code for trafficking Line Items. - * @type string $effective_root_ad_unit - * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which - * descendant Ad Units can be added. - * Format: networks/{network_code}/adUnits/{ad_unit} - * @type bool $test_network - * Output only. Whether this is a test network. - * @type int|string $network_id - * Output only. Network ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\NetworkMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Display name for Network. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Display name for Network. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Network Code. - * - * Generated from protobuf field string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getNetworkCode() - { - return $this->network_code; - } - - /** - * Output only. Network Code. - * - * Generated from protobuf field string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setNetworkCode($var) - { - GPBUtil::checkString($var, True); - $this->network_code = $var; - - return $this; - } - - /** - * Output only. Property code. - * - * Generated from protobuf field string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPropertyCode() - { - return $this->property_code; - } - - /** - * Output only. Property code. - * - * Generated from protobuf field string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPropertyCode($var) - { - GPBUtil::checkString($var, True); - $this->property_code = $var; - - return $this; - } - - /** - * Output only. Time zone associated with the delivery of orders and - * reporting. - * - * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Output only. Time zone associated with the delivery of orders and - * reporting. - * - * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Output only. Primary currency code, in ISO-4217 format. - * - * Generated from protobuf field string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Output only. Primary currency code, in ISO-4217 format. - * - * Generated from protobuf field string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Optional. Currency codes that can be used as an alternative to the primary - * currency code for trafficking Line Items. - * - * Generated from protobuf field repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondaryCurrencyCodes() - { - return $this->secondary_currency_codes; - } - - /** - * Optional. Currency codes that can be used as an alternative to the primary - * currency code for trafficking Line Items. - * - * Generated from protobuf field repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondaryCurrencyCodes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->secondary_currency_codes = $arr; - - return $this; - } - - /** - * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which - * descendant Ad Units can be added. - * Format: networks/{network_code}/adUnits/{ad_unit} - * - * Generated from protobuf field string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getEffectiveRootAdUnit() - { - return $this->effective_root_ad_unit; - } - - /** - * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which - * descendant Ad Units can be added. - * Format: networks/{network_code}/adUnits/{ad_unit} - * - * Generated from protobuf field string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEffectiveRootAdUnit($var) - { - GPBUtil::checkString($var, True); - $this->effective_root_ad_unit = $var; - - return $this; - } - - /** - * Output only. Whether this is a test network. - * - * Generated from protobuf field bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getTestNetwork() - { - return $this->test_network; - } - - /** - * Output only. Whether this is a test network. - * - * Generated from protobuf field bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setTestNetwork($var) - { - GPBUtil::checkBool($var); - $this->test_network = $var; - - return $this; - } - - /** - * Output only. Network ID. - * - * Generated from protobuf field int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getNetworkId() - { - return $this->network_id; - } - - /** - * Output only. Network ID. - * - * Generated from protobuf field int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setNetworkId($var) - { - GPBUtil::checkInt64($var); - $this->network_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystem.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystem.php deleted file mode 100644 index 1ab598bbaf23..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystem.php +++ /dev/null @@ -1,115 +0,0 @@ -google.ads.admanager.v1.OperatingSystem - */ -class OperatingSystem extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `OperatingSystem`. - * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The name of the operating system. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `OperatingSystem`. - * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` - * @type string $display_name - * Output only. The name of the operating system. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `OperatingSystem`. - * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `OperatingSystem`. - * Format: `networks/{network_code}/operatingSystems/{operating_system_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The name of the operating system. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Output only. The name of the operating system. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemTargeting.php deleted file mode 100644 index 70180dcf10e4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemTargeting.php +++ /dev/null @@ -1,185 +0,0 @@ -google.ads.admanager.v1.OperatingSystemTargeting - */ -class OperatingSystemTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A list of operating system resource names that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $targeted_operating_systems; - /** - * Optional. A list of operating system resource names that should be - * excluded. - * - * Generated from protobuf field repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $excluded_operating_systems; - /** - * Optional. A list of operating system version resource names that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $targeted_operating_system_versions; - /** - * Optional. A list of operating system version resource names that should be - * excluded. - * - * Generated from protobuf field repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $excluded_operating_system_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_operating_systems - * Optional. A list of operating system resource names that should be - * targeted/included. - * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_operating_systems - * Optional. A list of operating system resource names that should be - * excluded. - * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_operating_system_versions - * Optional. A list of operating system version resource names that should be - * targeted/included. - * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_operating_system_versions - * Optional. A list of operating system version resource names that should be - * excluded. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A list of operating system resource names that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetedOperatingSystems() - { - return $this->targeted_operating_systems; - } - - /** - * Optional. A list of operating system resource names that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetedOperatingSystems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->targeted_operating_systems = $arr; - - return $this; - } - - /** - * Optional. A list of operating system resource names that should be - * excluded. - * - * Generated from protobuf field repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedOperatingSystems() - { - return $this->excluded_operating_systems; - } - - /** - * Optional. A list of operating system resource names that should be - * excluded. - * - * Generated from protobuf field repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedOperatingSystems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->excluded_operating_systems = $arr; - - return $this; - } - - /** - * Optional. A list of operating system version resource names that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetedOperatingSystemVersions() - { - return $this->targeted_operating_system_versions; - } - - /** - * Optional. A list of operating system version resource names that should be - * targeted/included. - * - * Generated from protobuf field repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetedOperatingSystemVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->targeted_operating_system_versions = $arr; - - return $this; - } - - /** - * Optional. A list of operating system version resource names that should be - * excluded. - * - * Generated from protobuf field repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedOperatingSystemVersions() - { - return $this->excluded_operating_system_versions; - } - - /** - * Optional. A list of operating system version resource names that should be - * excluded. - * - * Generated from protobuf field repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedOperatingSystemVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->excluded_operating_system_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemVersion.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemVersion.php deleted file mode 100644 index a5d0cbfb53c1..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OperatingSystemVersion.php +++ /dev/null @@ -1,207 +0,0 @@ -google.ads.admanager.v1.OperatingSystemVersion - */ -class OperatingSystemVersion extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `OperatingSystemVersion`. - * Format: - * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The major version of the operating system. - * - * Generated from protobuf field optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $major_version = null; - /** - * Output only. The minor version of the operating system. - * - * Generated from protobuf field optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $minor_version = null; - /** - * Output only. The micro version of the operating system. - * - * Generated from protobuf field optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $micro_version = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `OperatingSystemVersion`. - * Format: - * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` - * @type int $major_version - * Output only. The major version of the operating system. - * @type int $minor_version - * Output only. The minor version of the operating system. - * @type int $micro_version - * Output only. The micro version of the operating system. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OperatingSystemVersionMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `OperatingSystemVersion`. - * Format: - * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `OperatingSystemVersion`. - * Format: - * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The major version of the operating system. - * - * Generated from protobuf field optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getMajorVersion() - { - return isset($this->major_version) ? $this->major_version : 0; - } - - public function hasMajorVersion() - { - return isset($this->major_version); - } - - public function clearMajorVersion() - { - unset($this->major_version); - } - - /** - * Output only. The major version of the operating system. - * - * Generated from protobuf field optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setMajorVersion($var) - { - GPBUtil::checkInt32($var); - $this->major_version = $var; - - return $this; - } - - /** - * Output only. The minor version of the operating system. - * - * Generated from protobuf field optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getMinorVersion() - { - return isset($this->minor_version) ? $this->minor_version : 0; - } - - public function hasMinorVersion() - { - return isset($this->minor_version); - } - - public function clearMinorVersion() - { - unset($this->minor_version); - } - - /** - * Output only. The minor version of the operating system. - * - * Generated from protobuf field optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setMinorVersion($var) - { - GPBUtil::checkInt32($var); - $this->minor_version = $var; - - return $this; - } - - /** - * Output only. The micro version of the operating system. - * - * Generated from protobuf field optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getMicroVersion() - { - return isset($this->micro_version) ? $this->micro_version : 0; - } - - public function hasMicroVersion() - { - return isset($this->micro_version); - } - - public function clearMicroVersion() - { - unset($this->micro_version); - } - - /** - * Output only. The micro version of the operating system. - * - * Generated from protobuf field optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setMicroVersion($var) - { - GPBUtil::checkInt32($var); - $this->micro_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php deleted file mode 100644 index 25dbdd3777f6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php +++ /dev/null @@ -1,1325 +0,0 @@ -google.ads.admanager.v1.Order - */ -class Order extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Order`. - * Format: `networks/{network_code}/orders/{order_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Order ID. - * - * Generated from protobuf field optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $order_id = null; - /** - * Required. The display name of the Order. This value has a maximum length - * of 255 characters. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = null; - /** - * Optional. Specifies whether or not the Order is a programmatic order. - * - * Generated from protobuf field optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $programmatic = null; - /** - * Required. The resource name of the User responsible for trafficking the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $trafficker = null; - /** - * Optional. The resource names of Contacts from the advertiser of this Order. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $advertiser_contacts; - /** - * Required. The resource name of the Company, which is of type - * Company.Type.ADVERTISER, to which this order belongs. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $advertiser = null; - /** - * Optional. The resource names of Contacts from the advertising Agency of - * this Order. Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string agency_contacts = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $agency_contacts; - /** - * Optional. The resource name of the Company, which is of type - * Company.Type.AGENCY, with which this order is associated. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $agency = null; - /** - * Optional. The resource names of Teams directly applied to this Order. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $applied_teams; - /** - * Output only. The resource names of Teams applied to this Order including - * inherited values. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string effective_teams = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $effective_teams; - /** - * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $creator = null; - /** - * Output only. The ISO 4217 3-letter currency code for the currency used by - * the Order. This value is the network's currency code. - * - * Generated from protobuf field optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $currency_code = null; - /** - * Output only. The instant at which the Order and its associated Line items - * are eligible to begin serving. This attribute is derived from the Line item - * of the order that has the earliest `LineItem.start_time`. - * - * Generated from protobuf field optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The instant at which the Order and its associated Line items - * stop being served. This attribute is derived from the Line item of the - * order that has the latest `LineItem.end_time`. - * - * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Indicates whether or not this Order has an end time. - * - * Generated from protobuf field optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $unlimited_end_time = null; - /** - * Optional. An arbitrary ID to associate to the Order, which can be used as a - * key to an external system. - * - * Generated from protobuf field optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_order_id = null; - /** - * Output only. The archival status of the Order. - * - * Generated from protobuf field optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $archived = null; - /** - * Output only. The application which modified this order. This attribute is - * assigned by Google. - * - * Generated from protobuf field optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_modified_by_app = null; - /** - * Output only. The instant this Order was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Provides any additional notes that may annotate the Order. This - * attribute has a maximum length of 65,535 characters. - * - * Generated from protobuf field optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $notes = null; - /** - * Optional. The purchase order number for the Order. This value has a maximum - * length of 63 characters. - * - * Generated from protobuf field optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $po_number = null; - /** - * Output only. The status of the Order. - * - * Generated from protobuf field optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - /** - * Optional. The resource name of the User responsible for the sales of the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $salesperson = null; - /** - * Optional. Unordered list. The resource names of the secondary salespeople - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_salespeople = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - */ - private $secondary_salespeople; - /** - * Optional. Unordered list. The resource names of the secondary traffickers - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_traffickers = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - */ - private $secondary_traffickers; - /** - * Optional. The set of labels applied directly to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 25 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $applied_labels; - /** - * Output only. Contains the set of labels applied directly to the order as - * well as those inherited from the company that owns the order. If a label - * has been negated, only the negated label is returned. This field is - * assigned by Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $effective_applied_labels; - /** - * Optional. The set of custom field values to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 38 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $custom_field_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Order`. - * Format: `networks/{network_code}/orders/{order_id}` - * @type int|string $order_id - * Output only. Order ID. - * @type string $display_name - * Required. The display name of the Order. This value has a maximum length - * of 255 characters. - * @type bool $programmatic - * Optional. Specifies whether or not the Order is a programmatic order. - * @type string $trafficker - * Required. The resource name of the User responsible for trafficking the - * Order. Format: "networks/{network_code}/users/{user_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $advertiser_contacts - * Optional. The resource names of Contacts from the advertiser of this Order. - * Format: "networks/{network_code}/contacts/{contact_id}" - * @type string $advertiser - * Required. The resource name of the Company, which is of type - * Company.Type.ADVERTISER, to which this order belongs. Format: - * "networks/{network_code}/companies/{company_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $agency_contacts - * Optional. The resource names of Contacts from the advertising Agency of - * this Order. Format: "networks/{network_code}/contacts/{contact_id}" - * @type string $agency - * Optional. The resource name of the Company, which is of type - * Company.Type.AGENCY, with which this order is associated. Format: - * "networks/{network_code}/companies/{company_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $applied_teams - * Optional. The resource names of Teams directly applied to this Order. - * Format: "networks/{network_code}/teams/{team_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $effective_teams - * Output only. The resource names of Teams applied to this Order including - * inherited values. Format: "networks/{network_code}/teams/{team_id}" - * @type string $creator - * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. Format: "networks/{network_code}/users/{user_id}" - * @type string $currency_code - * Output only. The ISO 4217 3-letter currency code for the currency used by - * the Order. This value is the network's currency code. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The instant at which the Order and its associated Line items - * are eligible to begin serving. This attribute is derived from the Line item - * of the order that has the earliest `LineItem.start_time`. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The instant at which the Order and its associated Line items - * stop being served. This attribute is derived from the Line item of the - * order that has the latest `LineItem.end_time`. - * @type bool $unlimited_end_time - * Output only. Indicates whether or not this Order has an end time. - * @type int $external_order_id - * Optional. An arbitrary ID to associate to the Order, which can be used as a - * key to an external system. - * @type bool $archived - * Output only. The archival status of the Order. - * @type string $last_modified_by_app - * Output only. The application which modified this order. This attribute is - * assigned by Google. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The instant this Order was last modified. - * @type string $notes - * Optional. Provides any additional notes that may annotate the Order. This - * attribute has a maximum length of 65,535 characters. - * @type string $po_number - * Optional. The purchase order number for the Order. This value has a maximum - * length of 63 characters. - * @type int $status - * Output only. The status of the Order. - * @type string $salesperson - * Optional. The resource name of the User responsible for the sales of the - * Order. Format: "networks/{network_code}/users/{user_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_salespeople - * Optional. Unordered list. The resource names of the secondary salespeople - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_traffickers - * Optional. Unordered list. The resource names of the secondary traffickers - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $applied_labels - * Optional. The set of labels applied directly to this order. - * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $effective_applied_labels - * Output only. Contains the set of labels applied directly to the order as - * well as those inherited from the company that owns the order. If a label - * has been negated, only the negated label is returned. This field is - * assigned by Google. - * @type array<\Google\Ads\AdManager\V1\CustomFieldValue>|\Google\Protobuf\Internal\RepeatedField $custom_field_values - * Optional. The set of custom field values to this order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OrderMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Order`. - * Format: `networks/{network_code}/orders/{order_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Order`. - * Format: `networks/{network_code}/orders/{order_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Order ID. - * - * Generated from protobuf field optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getOrderId() - { - return isset($this->order_id) ? $this->order_id : 0; - } - - public function hasOrderId() - { - return isset($this->order_id); - } - - public function clearOrderId() - { - unset($this->order_id); - } - - /** - * Output only. Order ID. - * - * Generated from protobuf field optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setOrderId($var) - { - GPBUtil::checkInt64($var); - $this->order_id = $var; - - return $this; - } - - /** - * Required. The display name of the Order. This value has a maximum length - * of 255 characters. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Required. The display name of the Order. This value has a maximum length - * of 255 characters. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Specifies whether or not the Order is a programmatic order. - * - * Generated from protobuf field optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getProgrammatic() - { - return isset($this->programmatic) ? $this->programmatic : false; - } - - public function hasProgrammatic() - { - return isset($this->programmatic); - } - - public function clearProgrammatic() - { - unset($this->programmatic); - } - - /** - * Optional. Specifies whether or not the Order is a programmatic order. - * - * Generated from protobuf field optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setProgrammatic($var) - { - GPBUtil::checkBool($var); - $this->programmatic = $var; - - return $this; - } - - /** - * Required. The resource name of the User responsible for trafficking the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getTrafficker() - { - return isset($this->trafficker) ? $this->trafficker : ''; - } - - public function hasTrafficker() - { - return isset($this->trafficker); - } - - public function clearTrafficker() - { - unset($this->trafficker); - } - - /** - * Required. The resource name of the User responsible for trafficking the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTrafficker($var) - { - GPBUtil::checkString($var, True); - $this->trafficker = $var; - - return $this; - } - - /** - * Optional. The resource names of Contacts from the advertiser of this Order. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdvertiserContacts() - { - return $this->advertiser_contacts; - } - - /** - * Optional. The resource names of Contacts from the advertiser of this Order. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdvertiserContacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->advertiser_contacts = $arr; - - return $this; - } - - /** - * Required. The resource name of the Company, which is of type - * Company.Type.ADVERTISER, to which this order belongs. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getAdvertiser() - { - return isset($this->advertiser) ? $this->advertiser : ''; - } - - public function hasAdvertiser() - { - return isset($this->advertiser); - } - - public function clearAdvertiser() - { - unset($this->advertiser); - } - - /** - * Required. The resource name of the Company, which is of type - * Company.Type.ADVERTISER, to which this order belongs. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAdvertiser($var) - { - GPBUtil::checkString($var, True); - $this->advertiser = $var; - - return $this; - } - - /** - * Optional. The resource names of Contacts from the advertising Agency of - * this Order. Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string agency_contacts = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAgencyContacts() - { - return $this->agency_contacts; - } - - /** - * Optional. The resource names of Contacts from the advertising Agency of - * this Order. Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string agency_contacts = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAgencyContacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->agency_contacts = $arr; - - return $this; - } - - /** - * Optional. The resource name of the Company, which is of type - * Company.Type.AGENCY, with which this order is associated. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAgency() - { - return isset($this->agency) ? $this->agency : ''; - } - - public function hasAgency() - { - return isset($this->agency); - } - - public function clearAgency() - { - unset($this->agency); - } - - /** - * Optional. The resource name of the Company, which is of type - * Company.Type.AGENCY, with which this order is associated. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAgency($var) - { - GPBUtil::checkString($var, True); - $this->agency = $var; - - return $this; - } - - /** - * Optional. The resource names of Teams directly applied to this Order. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedTeams() - { - return $this->applied_teams; - } - - /** - * Optional. The resource names of Teams directly applied to this Order. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->applied_teams = $arr; - - return $this; - } - - /** - * Output only. The resource names of Teams applied to this Order including - * inherited values. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string effective_teams = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveTeams() - { - return $this->effective_teams; - } - - /** - * Output only. The resource names of Teams applied to this Order including - * inherited values. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string effective_teams = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->effective_teams = $arr; - - return $this; - } - - /** - * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getCreator() - { - return isset($this->creator) ? $this->creator : ''; - } - - public function hasCreator() - { - return isset($this->creator); - } - - public function clearCreator() - { - unset($this->creator); - } - - /** - * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCreator($var) - { - GPBUtil::checkString($var, True); - $this->creator = $var; - - return $this; - } - - /** - * Output only. The ISO 4217 3-letter currency code for the currency used by - * the Order. This value is the network's currency code. - * - * Generated from protobuf field optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCurrencyCode() - { - return isset($this->currency_code) ? $this->currency_code : ''; - } - - public function hasCurrencyCode() - { - return isset($this->currency_code); - } - - public function clearCurrencyCode() - { - unset($this->currency_code); - } - - /** - * Output only. The ISO 4217 3-letter currency code for the currency used by - * the Order. This value is the network's currency code. - * - * Generated from protobuf field optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Output only. The instant at which the Order and its associated Line items - * are eligible to begin serving. This attribute is derived from the Line item - * of the order that has the earliest `LineItem.start_time`. - * - * Generated from protobuf field optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The instant at which the Order and its associated Line items - * are eligible to begin serving. This attribute is derived from the Line item - * of the order that has the earliest `LineItem.start_time`. - * - * Generated from protobuf field optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. The instant at which the Order and its associated Line items - * stop being served. This attribute is derived from the Line item of the - * order that has the latest `LineItem.end_time`. - * - * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The instant at which the Order and its associated Line items - * stop being served. This attribute is derived from the Line item of the - * order that has the latest `LineItem.end_time`. - * - * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Indicates whether or not this Order has an end time. - * - * Generated from protobuf field optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getUnlimitedEndTime() - { - return isset($this->unlimited_end_time) ? $this->unlimited_end_time : false; - } - - public function hasUnlimitedEndTime() - { - return isset($this->unlimited_end_time); - } - - public function clearUnlimitedEndTime() - { - unset($this->unlimited_end_time); - } - - /** - * Output only. Indicates whether or not this Order has an end time. - * - * Generated from protobuf field optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setUnlimitedEndTime($var) - { - GPBUtil::checkBool($var); - $this->unlimited_end_time = $var; - - return $this; - } - - /** - * Optional. An arbitrary ID to associate to the Order, which can be used as a - * key to an external system. - * - * Generated from protobuf field optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getExternalOrderId() - { - return isset($this->external_order_id) ? $this->external_order_id : 0; - } - - public function hasExternalOrderId() - { - return isset($this->external_order_id); - } - - public function clearExternalOrderId() - { - unset($this->external_order_id); - } - - /** - * Optional. An arbitrary ID to associate to the Order, which can be used as a - * key to an external system. - * - * Generated from protobuf field optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setExternalOrderId($var) - { - GPBUtil::checkInt32($var); - $this->external_order_id = $var; - - return $this; - } - - /** - * Output only. The archival status of the Order. - * - * Generated from protobuf field optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getArchived() - { - return isset($this->archived) ? $this->archived : false; - } - - public function hasArchived() - { - return isset($this->archived); - } - - public function clearArchived() - { - unset($this->archived); - } - - /** - * Output only. The archival status of the Order. - * - * Generated from protobuf field optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setArchived($var) - { - GPBUtil::checkBool($var); - $this->archived = $var; - - return $this; - } - - /** - * Output only. The application which modified this order. This attribute is - * assigned by Google. - * - * Generated from protobuf field optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLastModifiedByApp() - { - return isset($this->last_modified_by_app) ? $this->last_modified_by_app : ''; - } - - public function hasLastModifiedByApp() - { - return isset($this->last_modified_by_app); - } - - public function clearLastModifiedByApp() - { - unset($this->last_modified_by_app); - } - - /** - * Output only. The application which modified this order. This attribute is - * assigned by Google. - * - * Generated from protobuf field optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLastModifiedByApp($var) - { - GPBUtil::checkString($var, True); - $this->last_modified_by_app = $var; - - return $this; - } - - /** - * Output only. The instant this Order was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The instant this Order was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Provides any additional notes that may annotate the Order. This - * attribute has a maximum length of 65,535 characters. - * - * Generated from protobuf field optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNotes() - { - return isset($this->notes) ? $this->notes : ''; - } - - public function hasNotes() - { - return isset($this->notes); - } - - public function clearNotes() - { - unset($this->notes); - } - - /** - * Optional. Provides any additional notes that may annotate the Order. This - * attribute has a maximum length of 65,535 characters. - * - * Generated from protobuf field optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNotes($var) - { - GPBUtil::checkString($var, True); - $this->notes = $var; - - return $this; - } - - /** - * Optional. The purchase order number for the Order. This value has a maximum - * length of 63 characters. - * - * Generated from protobuf field optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPoNumber() - { - return isset($this->po_number) ? $this->po_number : ''; - } - - public function hasPoNumber() - { - return isset($this->po_number); - } - - public function clearPoNumber() - { - unset($this->po_number); - } - - /** - * Optional. The purchase order number for the Order. This value has a maximum - * length of 63 characters. - * - * Generated from protobuf field optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPoNumber($var) - { - GPBUtil::checkString($var, True); - $this->po_number = $var; - - return $this; - } - - /** - * Output only. The status of the Order. - * - * Generated from protobuf field optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return isset($this->status) ? $this->status : 0; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. The status of the Order. - * - * Generated from protobuf field optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\OrderStatusEnum\OrderStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Optional. The resource name of the User responsible for the sales of the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getSalesperson() - { - return isset($this->salesperson) ? $this->salesperson : ''; - } - - public function hasSalesperson() - { - return isset($this->salesperson); - } - - public function clearSalesperson() - { - unset($this->salesperson); - } - - /** - * Optional. The resource name of the User responsible for the sales of the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSalesperson($var) - { - GPBUtil::checkString($var, True); - $this->salesperson = $var; - - return $this; - } - - /** - * Optional. Unordered list. The resource names of the secondary salespeople - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_salespeople = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondarySalespeople() - { - return $this->secondary_salespeople; - } - - /** - * Optional. Unordered list. The resource names of the secondary salespeople - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_salespeople = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondarySalespeople($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->secondary_salespeople = $arr; - - return $this; - } - - /** - * Optional. Unordered list. The resource names of the secondary traffickers - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_traffickers = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondaryTraffickers() - { - return $this->secondary_traffickers; - } - - /** - * Optional. Unordered list. The resource names of the secondary traffickers - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_traffickers = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondaryTraffickers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->secondary_traffickers = $arr; - - return $this; - } - - /** - * Optional. The set of labels applied directly to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedLabels() - { - return $this->applied_labels; - } - - /** - * Optional. The set of labels applied directly to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); - $this->applied_labels = $arr; - - return $this; - } - - /** - * Output only. Contains the set of labels applied directly to the order as - * well as those inherited from the company that owns the order. If a label - * has been negated, only the negated label is returned. This field is - * assigned by Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveAppliedLabels() - { - return $this->effective_applied_labels; - } - - /** - * Output only. Contains the set of labels applied directly to the order as - * well as those inherited from the company that owns the order. If a label - * has been negated, only the negated label is returned. This field is - * assigned by Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveAppliedLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); - $this->effective_applied_labels = $arr; - - return $this; - } - - /** - * Optional. The set of custom field values to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 38 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomFieldValues() - { - return $this->custom_field_values; - } - - /** - * Optional. The set of custom field values to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 38 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\CustomFieldValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomFieldValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomFieldValue::class); - $this->custom_field_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php deleted file mode 100644 index 4ba75691537a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.OrderStatusEnum - */ -class OrderStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OrderEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php deleted file mode 100644 index 5b5b4ffaf2e6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php +++ /dev/null @@ -1,102 +0,0 @@ -google.ads.admanager.v1.OrderStatusEnum.OrderStatus - */ -class OrderStatus -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum ORDER_STATUS_UNSPECIFIED = 0; - */ - const ORDER_STATUS_UNSPECIFIED = 0; - /** - * Indicates that the Order has just been created but no approval has been - * requested yet. - * - * Generated from protobuf enum DRAFT = 2; - */ - const DRAFT = 2; - /** - * Indicates that a request for approval for the Order has been made. - * - * Generated from protobuf enum PENDING_APPROVAL = 3; - */ - const PENDING_APPROVAL = 3; - /** - * Indicates that the Order has been approved and is ready to serve. - * - * Generated from protobuf enum APPROVED = 4; - */ - const APPROVED = 4; - /** - * Indicates that the Order has been disapproved and is not eligible to - * serve. - * - * Generated from protobuf enum DISAPPROVED = 5; - */ - const DISAPPROVED = 5; - /** - * This is a legacy state. Paused status should be checked on LineItems - * within the order. - * - * Generated from protobuf enum PAUSED = 6; - */ - const PAUSED = 6; - /** - * Indicates that the Order has been canceled and cannot serve. - * - * Generated from protobuf enum CANCELED = 7; - */ - const CANCELED = 7; - /** - * Indicates that the Order has been deleted. - * - * Generated from protobuf enum DELETED = 8; - */ - const DELETED = 8; - - private static $valueToName = [ - self::ORDER_STATUS_UNSPECIFIED => 'ORDER_STATUS_UNSPECIFIED', - self::DRAFT => 'DRAFT', - self::PENDING_APPROVAL => 'PENDING_APPROVAL', - self::APPROVED => 'APPROVED', - self::DISAPPROVED => 'DISAPPROVED', - self::PAUSED => 'PAUSED', - self::CANCELED => 'CANCELED', - self::DELETED => 'DELETED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrderStatus::class, \Google\Ads\AdManager\V1\OrderStatusEnum_OrderStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php deleted file mode 100644 index f912ac7e45e2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php +++ /dev/null @@ -1,375 +0,0 @@ -google.ads.admanager.v1.Placement - */ -class Placement extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Placement`. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `Placement` ID. - * - * Generated from protobuf field int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $placement_id = 0; - /** - * Required. The display name of the placement. This attribute has a maximum - * length of 255 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = null; - /** - * Optional. A description of the Placement. This attribute has a maximum - * length of 65,535 characters. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = null; - /** - * Output only. A string used to uniquely identify the Placement for purposes - * of serving the ad. This attribute is assigned by Google. - * - * Generated from protobuf field optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $placement_code = null; - /** - * Output only. The status of the Placement. - * - * Generated from protobuf field optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - /** - * Optional. The resource names of AdUnits that constitute the Placement. - * Format: "networks/{network_code}/adUnits/{ad_unit}" - * - * Generated from protobuf field repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $targeted_ad_units; - /** - * Output only. The instant this Placement was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Placement`. - * Format: `networks/{network_code}/placements/{placement_id}` - * @type int|string $placement_id - * Output only. `Placement` ID. - * @type string $display_name - * Required. The display name of the placement. This attribute has a maximum - * length of 255 characters. - * @type string $description - * Optional. A description of the Placement. This attribute has a maximum - * length of 65,535 characters. - * @type string $placement_code - * Output only. A string used to uniquely identify the Placement for purposes - * of serving the ad. This attribute is assigned by Google. - * @type int $status - * Output only. The status of the Placement. - * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_ad_units - * Optional. The resource names of AdUnits that constitute the Placement. - * Format: "networks/{network_code}/adUnits/{ad_unit}" - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The instant this Placement was last modified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PlacementMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Placement`. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Placement`. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `Placement` ID. - * - * Generated from protobuf field int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getPlacementId() - { - return $this->placement_id; - } - - /** - * Output only. `Placement` ID. - * - * Generated from protobuf field int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setPlacementId($var) - { - GPBUtil::checkInt64($var); - $this->placement_id = $var; - - return $this; - } - - /** - * Required. The display name of the placement. This attribute has a maximum - * length of 255 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Required. The display name of the placement. This attribute has a maximum - * length of 255 characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. A description of the Placement. This attribute has a maximum - * length of 65,535 characters. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Optional. A description of the Placement. This attribute has a maximum - * length of 65,535 characters. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. A string used to uniquely identify the Placement for purposes - * of serving the ad. This attribute is assigned by Google. - * - * Generated from protobuf field optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPlacementCode() - { - return isset($this->placement_code) ? $this->placement_code : ''; - } - - public function hasPlacementCode() - { - return isset($this->placement_code); - } - - public function clearPlacementCode() - { - unset($this->placement_code); - } - - /** - * Output only. A string used to uniquely identify the Placement for purposes - * of serving the ad. This attribute is assigned by Google. - * - * Generated from protobuf field optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPlacementCode($var) - { - GPBUtil::checkString($var, True); - $this->placement_code = $var; - - return $this; - } - - /** - * Output only. The status of the Placement. - * - * Generated from protobuf field optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return isset($this->status) ? $this->status : 0; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. The status of the Placement. - * - * Generated from protobuf field optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\PlacementStatusEnum\PlacementStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Optional. The resource names of AdUnits that constitute the Placement. - * Format: "networks/{network_code}/adUnits/{ad_unit}" - * - * Generated from protobuf field repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetedAdUnits() - { - return $this->targeted_ad_units; - } - - /** - * Optional. The resource names of AdUnits that constitute the Placement. - * Format: "networks/{network_code}/adUnits/{ad_unit}" - * - * Generated from protobuf field repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetedAdUnits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->targeted_ad_units = $arr; - - return $this; - } - - /** - * Output only. The instant this Placement was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The instant this Placement was last modified. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php deleted file mode 100644 index 08bc6de84382..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.PlacementStatusEnum - */ -class PlacementStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PlacementEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php deleted file mode 100644 index 21bdaea88d01..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus - */ -class PlacementStatus -{ - /** - * Not specified value. - * - * Generated from protobuf enum PLACEMENT_STATUS_UNSPECIFIED = 0; - */ - const PLACEMENT_STATUS_UNSPECIFIED = 0; - /** - * Stats are collected, user-visible. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * No stats collected, not user-visible. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - /** - * No stats collected, user-visible. - * - * Generated from protobuf enum ARCHIVED = 3; - */ - const ARCHIVED = 3; - - private static $valueToName = [ - self::PLACEMENT_STATUS_UNSPECIFIED => 'PLACEMENT_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - self::ARCHIVED => 'ARCHIVED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PlacementStatus::class, \Google\Ads\AdManager\V1\PlacementStatusEnum_PlacementStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuction.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuction.php deleted file mode 100644 index 32ac9a76a096..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuction.php +++ /dev/null @@ -1,385 +0,0 @@ -google.ads.admanager.v1.PrivateAuction - */ -class PrivateAuction extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `PrivateAuction`. - * Format: - * `networks/{network_code}/privateAuctions/{private_auction_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `PrivateAuction` ID. - * - * Generated from protobuf field optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $private_auction_id = null; - /** - * Required. Display name of the `PrivateAuction`. This attribute has a - * maximum length of 255 bytes. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = null; - /** - * Optional. Description of the `PrivateAuction`. This attribute has a - * maximum length of 4096 bytes. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = null; - /** - * Optional. The resource names of the seller contact users associated with - * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $seller_contact_users; - /** - * Output only. Whether the `PrivateAuction` is archived. - * - * Generated from protobuf field optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $archived = null; - /** - * Output only. The instant at which the PrivateAuction was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The instant at which the PrivateAuction was last updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `PrivateAuction`. - * Format: - * `networks/{network_code}/privateAuctions/{private_auction_id}` - * @type int|string $private_auction_id - * Output only. `PrivateAuction` ID. - * @type string $display_name - * Required. Display name of the `PrivateAuction`. This attribute has a - * maximum length of 255 bytes. - * @type string $description - * Optional. Description of the `PrivateAuction`. This attribute has a - * maximum length of 4096 bytes. - * @type array|\Google\Protobuf\Internal\RepeatedField $seller_contact_users - * Optional. The resource names of the seller contact users associated with - * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}` - * @type bool $archived - * Output only. Whether the `PrivateAuction` is archived. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The instant at which the PrivateAuction was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The instant at which the PrivateAuction was last updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `PrivateAuction`. - * Format: - * `networks/{network_code}/privateAuctions/{private_auction_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `PrivateAuction`. - * Format: - * `networks/{network_code}/privateAuctions/{private_auction_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `PrivateAuction` ID. - * - * Generated from protobuf field optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getPrivateAuctionId() - { - return isset($this->private_auction_id) ? $this->private_auction_id : 0; - } - - public function hasPrivateAuctionId() - { - return isset($this->private_auction_id); - } - - public function clearPrivateAuctionId() - { - unset($this->private_auction_id); - } - - /** - * Output only. `PrivateAuction` ID. - * - * Generated from protobuf field optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setPrivateAuctionId($var) - { - GPBUtil::checkInt64($var); - $this->private_auction_id = $var; - - return $this; - } - - /** - * Required. Display name of the `PrivateAuction`. This attribute has a - * maximum length of 255 bytes. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Required. Display name of the `PrivateAuction`. This attribute has a - * maximum length of 255 bytes. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description of the `PrivateAuction`. This attribute has a - * maximum length of 4096 bytes. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Optional. Description of the `PrivateAuction`. This attribute has a - * maximum length of 4096 bytes. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. The resource names of the seller contact users associated with - * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSellerContactUsers() - { - return $this->seller_contact_users; - } - - /** - * Optional. The resource names of the seller contact users associated with - * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSellerContactUsers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->seller_contact_users = $arr; - - return $this; - } - - /** - * Output only. Whether the `PrivateAuction` is archived. - * - * Generated from protobuf field optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getArchived() - { - return isset($this->archived) ? $this->archived : false; - } - - public function hasArchived() - { - return isset($this->archived); - } - - public function clearArchived() - { - unset($this->archived); - } - - /** - * Output only. Whether the `PrivateAuction` is archived. - * - * Generated from protobuf field optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setArchived($var) - { - GPBUtil::checkBool($var); - $this->archived = $var; - - return $this; - } - - /** - * Output only. The instant at which the PrivateAuction was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The instant at which the PrivateAuction was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The instant at which the PrivateAuction was last updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The instant at which the PrivateAuction was last updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal.php deleted file mode 100644 index 1ce452d7549a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal.php +++ /dev/null @@ -1,785 +0,0 @@ -google.ads.admanager.v1.PrivateAuctionDeal - */ -class PrivateAuctionDeal extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `PrivateAuctionDeal`. - * Format: - * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `PrivateAuctionDeal` ID. - * - * Generated from protobuf field optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $private_auction_deal_id = null; - /** - * Immutable. The ID of the - * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). - * - * Generated from protobuf field optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $private_auction_id = null; - /** - * Output only. The display name of the - * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). - * - * Generated from protobuf field optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $private_auction_display_name = null; - /** - * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $buyer_account_id = null; - /** - * Output only. The external ID of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $external_deal_id = null; - /** - * Optional. The targeting of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $targeting = null; - /** - * Optional. The end time of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $end_time = null; - /** - * Required. The floor price of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $floor_price = null; - /** - * Optional. The expected creative sizes of the `PrivateAuctionDeal`. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $creative_sizes; - /** - * Output only. The status of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - /** - * Optional. Whether the deal is enabled with priority over open auction. - * - * Generated from protobuf field optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $auction_priority_enabled = null; - /** - * Optional. Whether the deal has block override enabled. - * - * Generated from protobuf field optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $block_override_enabled = null; - /** - * Optional. The buyer permission model defining how the deal would transact - * among all buyers under the same bidder. - * - * Generated from protobuf field optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $buyer_permission_type = null; - /** - * Optional. The buyer data required by the Marketplace API. - * - * Generated from protobuf field optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $buyer_data = null; - /** - * Output only. The instant at which the `PrivateAuctionDeal` was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The instant at which the `PrivateAuctionDeal` was last - * updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `PrivateAuctionDeal`. - * Format: - * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` - * @type int|string $private_auction_deal_id - * Output only. `PrivateAuctionDeal` ID. - * @type int|string $private_auction_id - * Immutable. The ID of the - * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). - * @type string $private_auction_display_name - * Output only. The display name of the - * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). - * @type int|string $buyer_account_id - * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`. - * @type int|string $external_deal_id - * Output only. The external ID of the `PrivateAuctionDeal`. - * @type \Google\Ads\AdManager\V1\Targeting $targeting - * Optional. The targeting of the `PrivateAuctionDeal`. - * @type \Google\Protobuf\Timestamp $end_time - * Optional. The end time of the `PrivateAuctionDeal`. - * @type \Google\Type\Money $floor_price - * Required. The floor price of the `PrivateAuctionDeal`. - * @type array<\Google\Ads\AdManager\V1\Size>|\Google\Protobuf\Internal\RepeatedField $creative_sizes - * Optional. The expected creative sizes of the `PrivateAuctionDeal`. - * @type int $status - * Output only. The status of the `PrivateAuctionDeal`. - * @type bool $auction_priority_enabled - * Optional. Whether the deal is enabled with priority over open auction. - * @type bool $block_override_enabled - * Optional. Whether the deal has block override enabled. - * @type int $buyer_permission_type - * Optional. The buyer permission model defining how the deal would transact - * among all buyers under the same bidder. - * @type \Google\Ads\AdManager\V1\PrivateAuctionDeal\BuyerData $buyer_data - * Optional. The buyer data required by the Marketplace API. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The instant at which the `PrivateAuctionDeal` was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The instant at which the `PrivateAuctionDeal` was last - * updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `PrivateAuctionDeal`. - * Format: - * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `PrivateAuctionDeal`. - * Format: - * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `PrivateAuctionDeal` ID. - * - * Generated from protobuf field optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getPrivateAuctionDealId() - { - return isset($this->private_auction_deal_id) ? $this->private_auction_deal_id : 0; - } - - public function hasPrivateAuctionDealId() - { - return isset($this->private_auction_deal_id); - } - - public function clearPrivateAuctionDealId() - { - unset($this->private_auction_deal_id); - } - - /** - * Output only. `PrivateAuctionDeal` ID. - * - * Generated from protobuf field optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setPrivateAuctionDealId($var) - { - GPBUtil::checkInt64($var); - $this->private_auction_deal_id = $var; - - return $this; - } - - /** - * Immutable. The ID of the - * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). - * - * Generated from protobuf field optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int|string - */ - public function getPrivateAuctionId() - { - return isset($this->private_auction_id) ? $this->private_auction_id : 0; - } - - public function hasPrivateAuctionId() - { - return isset($this->private_auction_id); - } - - public function clearPrivateAuctionId() - { - unset($this->private_auction_id); - } - - /** - * Immutable. The ID of the - * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). - * - * Generated from protobuf field optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int|string $var - * @return $this - */ - public function setPrivateAuctionId($var) - { - GPBUtil::checkInt64($var); - $this->private_auction_id = $var; - - return $this; - } - - /** - * Output only. The display name of the - * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). - * - * Generated from protobuf field optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPrivateAuctionDisplayName() - { - return isset($this->private_auction_display_name) ? $this->private_auction_display_name : ''; - } - - public function hasPrivateAuctionDisplayName() - { - return isset($this->private_auction_display_name); - } - - public function clearPrivateAuctionDisplayName() - { - unset($this->private_auction_display_name); - } - - /** - * Output only. The display name of the - * [PrivateAuction](google.ads.admanager.v1.PrivateAuction). - * - * Generated from protobuf field optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPrivateAuctionDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->private_auction_display_name = $var; - - return $this; - } - - /** - * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int|string - */ - public function getBuyerAccountId() - { - return isset($this->buyer_account_id) ? $this->buyer_account_id : 0; - } - - public function hasBuyerAccountId() - { - return isset($this->buyer_account_id); - } - - public function clearBuyerAccountId() - { - unset($this->buyer_account_id); - } - - /** - * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int|string $var - * @return $this - */ - public function setBuyerAccountId($var) - { - GPBUtil::checkInt64($var); - $this->buyer_account_id = $var; - - return $this; - } - - /** - * Output only. The external ID of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getExternalDealId() - { - return isset($this->external_deal_id) ? $this->external_deal_id : 0; - } - - public function hasExternalDealId() - { - return isset($this->external_deal_id); - } - - public function clearExternalDealId() - { - unset($this->external_deal_id); - } - - /** - * Output only. The external ID of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setExternalDealId($var) - { - GPBUtil::checkInt64($var); - $this->external_deal_id = $var; - - return $this; - } - - /** - * Optional. The targeting of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\Targeting|null - */ - public function getTargeting() - { - return $this->targeting; - } - - public function hasTargeting() - { - return isset($this->targeting); - } - - public function clearTargeting() - { - unset($this->targeting); - } - - /** - * Optional. The targeting of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\Targeting $var - * @return $this - */ - public function setTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Targeting::class); - $this->targeting = $var; - - return $this; - } - - /** - * Optional. The end time of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Optional. The end time of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Required. The floor price of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\Money|null - */ - public function getFloorPrice() - { - return $this->floor_price; - } - - public function hasFloorPrice() - { - return isset($this->floor_price); - } - - public function clearFloorPrice() - { - unset($this->floor_price); - } - - /** - * Required. The floor price of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\Money $var - * @return $this - */ - public function setFloorPrice($var) - { - GPBUtil::checkMessage($var, \Google\Type\Money::class); - $this->floor_price = $var; - - return $this; - } - - /** - * Optional. The expected creative sizes of the `PrivateAuctionDeal`. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCreativeSizes() - { - return $this->creative_sizes; - } - - /** - * Optional. The expected creative sizes of the `PrivateAuctionDeal`. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\Size>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCreativeSizes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Size::class); - $this->creative_sizes = $arr; - - return $this; - } - - /** - * Output only. The status of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return isset($this->status) ? $this->status : 0; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. The status of the `PrivateAuctionDeal`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\PrivateMarketplaceDealStatusEnum\PrivateMarketplaceDealStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Optional. Whether the deal is enabled with priority over open auction. - * - * Generated from protobuf field optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAuctionPriorityEnabled() - { - return isset($this->auction_priority_enabled) ? $this->auction_priority_enabled : false; - } - - public function hasAuctionPriorityEnabled() - { - return isset($this->auction_priority_enabled); - } - - public function clearAuctionPriorityEnabled() - { - unset($this->auction_priority_enabled); - } - - /** - * Optional. Whether the deal is enabled with priority over open auction. - * - * Generated from protobuf field optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAuctionPriorityEnabled($var) - { - GPBUtil::checkBool($var); - $this->auction_priority_enabled = $var; - - return $this; - } - - /** - * Optional. Whether the deal has block override enabled. - * - * Generated from protobuf field optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getBlockOverrideEnabled() - { - return isset($this->block_override_enabled) ? $this->block_override_enabled : false; - } - - public function hasBlockOverrideEnabled() - { - return isset($this->block_override_enabled); - } - - public function clearBlockOverrideEnabled() - { - unset($this->block_override_enabled); - } - - /** - * Optional. Whether the deal has block override enabled. - * - * Generated from protobuf field optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setBlockOverrideEnabled($var) - { - GPBUtil::checkBool($var); - $this->block_override_enabled = $var; - - return $this; - } - - /** - * Optional. The buyer permission model defining how the deal would transact - * among all buyers under the same bidder. - * - * Generated from protobuf field optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getBuyerPermissionType() - { - return isset($this->buyer_permission_type) ? $this->buyer_permission_type : 0; - } - - public function hasBuyerPermissionType() - { - return isset($this->buyer_permission_type); - } - - public function clearBuyerPermissionType() - { - unset($this->buyer_permission_type); - } - - /** - * Optional. The buyer permission model defining how the deal would transact - * among all buyers under the same bidder. - * - * Generated from protobuf field optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setBuyerPermissionType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\DealBuyerPermissionTypeEnum\DealBuyerPermissionType::class); - $this->buyer_permission_type = $var; - - return $this; - } - - /** - * Optional. The buyer data required by the Marketplace API. - * - * Generated from protobuf field optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\PrivateAuctionDeal\BuyerData|null - */ - public function getBuyerData() - { - return $this->buyer_data; - } - - public function hasBuyerData() - { - return isset($this->buyer_data); - } - - public function clearBuyerData() - { - unset($this->buyer_data); - } - - /** - * Optional. The buyer data required by the Marketplace API. - * - * Generated from protobuf field optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\PrivateAuctionDeal\BuyerData $var - * @return $this - */ - public function setBuyerData($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\PrivateAuctionDeal\BuyerData::class); - $this->buyer_data = $var; - - return $this; - } - - /** - * Output only. The instant at which the `PrivateAuctionDeal` was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The instant at which the `PrivateAuctionDeal` was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The instant at which the `PrivateAuctionDeal` was last - * updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The instant at which the `PrivateAuctionDeal` was last - * updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal/BuyerData.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal/BuyerData.php deleted file mode 100644 index e67b325f919d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateAuctionDeal/BuyerData.php +++ /dev/null @@ -1,70 +0,0 @@ -google.ads.admanager.v1.PrivateAuctionDeal.BuyerData - */ -class BuyerData extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`. - * - * Generated from protobuf field repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $buyer_emails; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $buyer_emails - * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealMessages::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`. - * - * Generated from protobuf field repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBuyerEmails() - { - return $this->buyer_emails; - } - - /** - * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`. - * - * Generated from protobuf field repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBuyerEmails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->buyer_emails = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BuyerData::class, \Google\Ads\AdManager\V1\PrivateAuctionDeal_BuyerData::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum.php deleted file mode 100644 index 836848c98874..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum - */ -class PrivateMarketplaceDealStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateMarketplaceEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum/PrivateMarketplaceDealStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum/PrivateMarketplaceDealStatus.php deleted file mode 100644 index 5f83ee3e81fa..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PrivateMarketplaceDealStatusEnum/PrivateMarketplaceDealStatus.php +++ /dev/null @@ -1,85 +0,0 @@ -google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus - */ -class PrivateMarketplaceDealStatus -{ - /** - * No value specified. - * - * Generated from protobuf enum PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED = 0; - */ - const PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED = 0; - /** - * The deal is pending. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The deal is active. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The deal is canceled. - * - * Generated from protobuf enum CANCELED = 3; - */ - const CANCELED = 3; - /** - * The deal is paused by the seller. - * - * Generated from protobuf enum SELLER_PAUSED = 4; - */ - const SELLER_PAUSED = 4; - /** - * The deal is paused by the buyer. - * - * Generated from protobuf enum BUYER_PAUSED = 5; - */ - const BUYER_PAUSED = 5; - - private static $valueToName = [ - self::PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED => 'PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED', - self::PENDING => 'PENDING', - self::ACTIVE => 'ACTIVE', - self::CANCELED => 'CANCELED', - self::SELLER_PAUSED => 'SELLER_PAUSED', - self::BUYER_PAUSED => 'BUYER_PAUSED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PrivateMarketplaceDealStatus::class, \Google\Ads\AdManager\V1\PrivateMarketplaceDealStatusEnum_PrivateMarketplaceDealStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ProgrammaticBuyer.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ProgrammaticBuyer.php deleted file mode 100644 index 9b18ceb51b62..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ProgrammaticBuyer.php +++ /dev/null @@ -1,395 +0,0 @@ -google.ads.admanager.v1.ProgrammaticBuyer - */ -class ProgrammaticBuyer extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `ProgrammaticBuyer`. - * Format: - * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The buyer account ID of the buyer. - * - * Generated from protobuf field optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $buyer_account_id = null; - /** - * Output only. The display name of the buyer. - * - * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = null; - /** - * Output only. The ID of the programmatic buyer's sponsor. If the buyer has - * no sponsor, this field will be -1. - * - * Generated from protobuf field optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $parent_account_id = null; - /** - * Output only. ID of the Display & Video 360 client buyer partner ID (if - * Display & Video 360) or Authorized Buyers client buyer account ID. - * - * Generated from protobuf field optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $partner_client_id = null; - /** - * Output only. Whether the buyer is an advertising agency. - * - * Generated from protobuf field optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $agency = null; - /** - * Output only. Whether the buyer is enabled for preferred deals. - * - * Generated from protobuf field optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $preferred_deals_enabled = null; - /** - * Output only. Whether the buyer is enabled for programmatic guaranteed - * deals. - * - * Generated from protobuf field optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $programmatic_guaranteed_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `ProgrammaticBuyer`. - * Format: - * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` - * @type int|string $buyer_account_id - * Output only. The buyer account ID of the buyer. - * @type string $display_name - * Output only. The display name of the buyer. - * @type int|string $parent_account_id - * Output only. The ID of the programmatic buyer's sponsor. If the buyer has - * no sponsor, this field will be -1. - * @type string $partner_client_id - * Output only. ID of the Display & Video 360 client buyer partner ID (if - * Display & Video 360) or Authorized Buyers client buyer account ID. - * @type bool $agency - * Output only. Whether the buyer is an advertising agency. - * @type bool $preferred_deals_enabled - * Output only. Whether the buyer is enabled for preferred deals. - * @type bool $programmatic_guaranteed_enabled - * Output only. Whether the buyer is enabled for programmatic guaranteed - * deals. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ProgrammaticBuyerMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `ProgrammaticBuyer`. - * Format: - * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `ProgrammaticBuyer`. - * Format: - * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The buyer account ID of the buyer. - * - * Generated from protobuf field optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getBuyerAccountId() - { - return isset($this->buyer_account_id) ? $this->buyer_account_id : 0; - } - - public function hasBuyerAccountId() - { - return isset($this->buyer_account_id); - } - - public function clearBuyerAccountId() - { - unset($this->buyer_account_id); - } - - /** - * Output only. The buyer account ID of the buyer. - * - * Generated from protobuf field optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setBuyerAccountId($var) - { - GPBUtil::checkInt64($var); - $this->buyer_account_id = $var; - - return $this; - } - - /** - * Output only. The display name of the buyer. - * - * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Output only. The display name of the buyer. - * - * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The ID of the programmatic buyer's sponsor. If the buyer has - * no sponsor, this field will be -1. - * - * Generated from protobuf field optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getParentAccountId() - { - return isset($this->parent_account_id) ? $this->parent_account_id : 0; - } - - public function hasParentAccountId() - { - return isset($this->parent_account_id); - } - - public function clearParentAccountId() - { - unset($this->parent_account_id); - } - - /** - * Output only. The ID of the programmatic buyer's sponsor. If the buyer has - * no sponsor, this field will be -1. - * - * Generated from protobuf field optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setParentAccountId($var) - { - GPBUtil::checkInt64($var); - $this->parent_account_id = $var; - - return $this; - } - - /** - * Output only. ID of the Display & Video 360 client buyer partner ID (if - * Display & Video 360) or Authorized Buyers client buyer account ID. - * - * Generated from protobuf field optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPartnerClientId() - { - return isset($this->partner_client_id) ? $this->partner_client_id : ''; - } - - public function hasPartnerClientId() - { - return isset($this->partner_client_id); - } - - public function clearPartnerClientId() - { - unset($this->partner_client_id); - } - - /** - * Output only. ID of the Display & Video 360 client buyer partner ID (if - * Display & Video 360) or Authorized Buyers client buyer account ID. - * - * Generated from protobuf field optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPartnerClientId($var) - { - GPBUtil::checkString($var, True); - $this->partner_client_id = $var; - - return $this; - } - - /** - * Output only. Whether the buyer is an advertising agency. - * - * Generated from protobuf field optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getAgency() - { - return isset($this->agency) ? $this->agency : false; - } - - public function hasAgency() - { - return isset($this->agency); - } - - public function clearAgency() - { - unset($this->agency); - } - - /** - * Output only. Whether the buyer is an advertising agency. - * - * Generated from protobuf field optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setAgency($var) - { - GPBUtil::checkBool($var); - $this->agency = $var; - - return $this; - } - - /** - * Output only. Whether the buyer is enabled for preferred deals. - * - * Generated from protobuf field optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getPreferredDealsEnabled() - { - return isset($this->preferred_deals_enabled) ? $this->preferred_deals_enabled : false; - } - - public function hasPreferredDealsEnabled() - { - return isset($this->preferred_deals_enabled); - } - - public function clearPreferredDealsEnabled() - { - unset($this->preferred_deals_enabled); - } - - /** - * Output only. Whether the buyer is enabled for preferred deals. - * - * Generated from protobuf field optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setPreferredDealsEnabled($var) - { - GPBUtil::checkBool($var); - $this->preferred_deals_enabled = $var; - - return $this; - } - - /** - * Output only. Whether the buyer is enabled for programmatic guaranteed - * deals. - * - * Generated from protobuf field optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getProgrammaticGuaranteedEnabled() - { - return isset($this->programmatic_guaranteed_enabled) ? $this->programmatic_guaranteed_enabled : false; - } - - public function hasProgrammaticGuaranteedEnabled() - { - return isset($this->programmatic_guaranteed_enabled); - } - - public function clearProgrammaticGuaranteedEnabled() - { - unset($this->programmatic_guaranteed_enabled); - } - - /** - * Output only. Whether the buyer is enabled for programmatic guaranteed - * deals. - * - * Generated from protobuf field optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setProgrammaticGuaranteedEnabled($var) - { - GPBUtil::checkBool($var); - $this->programmatic_guaranteed_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php deleted file mode 100644 index 3e9c1a2c1e8a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php +++ /dev/null @@ -1,391 +0,0 @@ -google.ads.admanager.v1.Report - */ -class Report extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the report. - * Report resource name have the form: - * `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Report ID. - * - * Generated from protobuf field int64 report_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $report_id = 0; - /** - * Optional. The visibility of a report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $visibility = 0; - /** - * Required. The report definition of the report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition report_definition = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $report_definition = null; - /** - * Optional. Display name for the report. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. The instant this report was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The instant this report was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can't be modified. - * - * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $locale = ''; - /** - * Optional. The schedule options of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions schedule_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schedule_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the report. - * Report resource name have the form: - * `networks/{network_code}/reports/{report_id}` - * @type int|string $report_id - * Output only. Report ID. - * @type int $visibility - * Optional. The visibility of a report. - * @type \Google\Ads\AdManager\V1\ReportDefinition $report_definition - * Required. The report definition of the report. - * @type string $display_name - * Optional. Display name for the report. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The instant this report was last modified. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The instant this report was created. - * @type string $locale - * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can't be modified. - * @type \Google\Ads\AdManager\V1\ScheduleOptions $schedule_options - * Optional. The schedule options of this report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the report. - * Report resource name have the form: - * `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the report. - * Report resource name have the form: - * `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Report ID. - * - * Generated from protobuf field int64 report_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getReportId() - { - return $this->report_id; - } - - /** - * Output only. Report ID. - * - * Generated from protobuf field int64 report_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setReportId($var) - { - GPBUtil::checkInt64($var); - $this->report_id = $var; - - return $this; - } - - /** - * Optional. The visibility of a report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getVisibility() - { - return $this->visibility; - } - - /** - * Optional. The visibility of a report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setVisibility($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\Visibility::class); - $this->visibility = $var; - - return $this; - } - - /** - * Required. The report definition of the report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition report_definition = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\ReportDefinition|null - */ - public function getReportDefinition() - { - return $this->report_definition; - } - - public function hasReportDefinition() - { - return isset($this->report_definition); - } - - public function clearReportDefinition() - { - unset($this->report_definition); - } - - /** - * Required. The report definition of the report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition report_definition = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\ReportDefinition $var - * @return $this - */ - public function setReportDefinition($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition::class); - $this->report_definition = $var; - - return $this; - } - - /** - * Optional. Display name for the report. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Display name for the report. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The instant this report was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The instant this report was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The instant this report was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The instant this report was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can't be modified. - * - * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocale() - { - return $this->locale; - } - - /** - * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can't be modified. - * - * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocale($var) - { - GPBUtil::checkString($var, True); - $this->locale = $var; - - return $this; - } - - /** - * Optional. The schedule options of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions schedule_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\ScheduleOptions|null - */ - public function getScheduleOptions() - { - return $this->schedule_options; - } - - public function hasScheduleOptions() - { - return isset($this->schedule_options); - } - - public function clearScheduleOptions() - { - unset($this->schedule_options); - } - - /** - * Optional. The schedule options of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions schedule_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\ScheduleOptions $var - * @return $this - */ - public function setScheduleOptions($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ScheduleOptions::class); - $this->schedule_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php deleted file mode 100644 index 51a72642795d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.Report.Visibility - */ -class Visibility -{ - /** - * Default value. Reports with hidden visibility won't appear in the Ad - * Manager UI. - * - * Generated from protobuf enum HIDDEN = 0; - */ - const HIDDEN = 0; - /** - * Reports with draft visibility will appear in the Ad Manager UI only if - * the user has configured the UI to show them. - * - * Generated from protobuf enum DRAFT = 1; - */ - const DRAFT = 1; - /** - * Reports with saved visibility will appear in the Ad Manager UI by - * default. - * - * Generated from protobuf enum SAVED = 2; - */ - const SAVED = 2; - - private static $valueToName = [ - self::HIDDEN => 'HIDDEN', - self::DRAFT => 'DRAFT', - self::SAVED => 'SAVED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Visibility::class, \Google\Ads\AdManager\V1\Report_Visibility::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php deleted file mode 100644 index 2a69b0bcadd9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php +++ /dev/null @@ -1,701 +0,0 @@ -google.ads.admanager.v1.ReportDefinition - */ -class ReportDefinition extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of dimensions to report on. If empty, the report will - * have no dimensions, and any metrics will be totals. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $dimensions; - /** - * Required. The list of metrics to report on. If empty, the report will have - * no metrics. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $metrics; - /** - * Optional. The filters for this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $filters; - /** - * Optional. Where to get the time zone for this report. Defaults to using the - * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone - * field in the report definition must also set a time zone. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_zone_source = 0; - /** - * Optional. If time_zone_source is PROVIDED, this is the time zone to use for - * this report. Leave empty for any other time zone source. Time zone in IANA - * format. For example, "America/New_York". - * - * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_zone = ''; - /** - * Optional. The ISO 4217 currency code for this report. Defaults to publisher - * currency code if not specified. - * - * Generated from protobuf field string currency_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $currency_code = ''; - /** - * Required. The primary date range of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $date_range = null; - /** - * Optional. The comparison date range of this report. If unspecified, the - * report won't have any comparison metrics. - * - * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $comparison_date_range = null; - /** - * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, custom_dimension_key_ids[0] describes - * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. - * - * Generated from protobuf field repeated int64 custom_dimension_key_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $custom_dimension_key_ids; - /** - * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, line_item_custom_field_ids[0] describes - * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 line_item_custom_field_ids = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $line_item_custom_field_ids; - /** - * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, order_custom_field_ids[0] describes - * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 order_custom_field_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $order_custom_field_ids; - /** - * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, creative_custom_field_ids[0] describes - * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 creative_custom_field_ids = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $creative_custom_field_ids; - /** - * Required. The type of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $report_type = 0; - /** - * Optional. Include a time period column to introduce comparison columns in - * the report for each generated period. For example, set to "QUARTERS" here - * to have a column for each quarter present in the primary date range. If - * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter - * column will also include comparison values for its relative previous - * quarter. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_period_column = 0; - /** - * Optional. List of flags for this report. Used to flag rows in a result set - * based on a set of defined filters. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $flags; - /** - * Optional. Default sorts to apply to this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $sorts; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $dimensions - * Required. The list of dimensions to report on. If empty, the report will - * have no dimensions, and any metrics will be totals. - * @type array|\Google\Protobuf\Internal\RepeatedField $metrics - * Required. The list of metrics to report on. If empty, the report will have - * no metrics. - * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Filter>|\Google\Protobuf\Internal\RepeatedField $filters - * Optional. The filters for this report. - * @type int $time_zone_source - * Optional. Where to get the time zone for this report. Defaults to using the - * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone - * field in the report definition must also set a time zone. - * @type string $time_zone - * Optional. If time_zone_source is PROVIDED, this is the time zone to use for - * this report. Leave empty for any other time zone source. Time zone in IANA - * format. For example, "America/New_York". - * @type string $currency_code - * Optional. The ISO 4217 currency code for this report. Defaults to publisher - * currency code if not specified. - * @type \Google\Ads\AdManager\V1\ReportDefinition\DateRange $date_range - * Required. The primary date range of this report. - * @type \Google\Ads\AdManager\V1\ReportDefinition\DateRange $comparison_date_range - * Optional. The comparison date range of this report. If unspecified, the - * report won't have any comparison metrics. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $custom_dimension_key_ids - * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, custom_dimension_key_ids[0] describes - * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $line_item_custom_field_ids - * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, line_item_custom_field_ids[0] describes - * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $order_custom_field_ids - * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, order_custom_field_ids[0] describes - * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $creative_custom_field_ids - * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, creative_custom_field_ids[0] describes - * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. - * @type int $report_type - * Required. The type of this report. - * @type int $time_period_column - * Optional. Include a time period column to introduce comparison columns in - * the report for each generated period. For example, set to "QUARTERS" here - * to have a column for each quarter present in the primary date range. If - * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter - * column will also include comparison values for its relative previous - * quarter. - * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $flags - * Optional. List of flags for this report. Used to flag rows in a result set - * based on a set of defined filters. - * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Sort>|\Google\Protobuf\Internal\RepeatedField $sorts - * Optional. Default sorts to apply to this report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportDefinition::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of dimensions to report on. If empty, the report will - * have no dimensions, and any metrics will be totals. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * Required. The list of dimensions to report on. If empty, the report will - * have no dimensions, and any metrics will be totals. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\ReportDefinition\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * Required. The list of metrics to report on. If empty, the report will have - * no metrics. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Required. The list of metrics to report on. If empty, the report will have - * no metrics. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\ReportDefinition\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Optional. The filters for this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilters() - { - return $this->filters; - } - - /** - * Optional. The filters for this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Filter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Filter::class); - $this->filters = $arr; - - return $this; - } - - /** - * Optional. Where to get the time zone for this report. Defaults to using the - * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone - * field in the report definition must also set a time zone. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTimeZoneSource() - { - return $this->time_zone_source; - } - - /** - * Optional. Where to get the time zone for this report. Defaults to using the - * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone - * field in the report definition must also set a time zone. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTimeZoneSource($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\TimeZoneSource::class); - $this->time_zone_source = $var; - - return $this; - } - - /** - * Optional. If time_zone_source is PROVIDED, this is the time zone to use for - * this report. Leave empty for any other time zone source. Time zone in IANA - * format. For example, "America/New_York". - * - * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Optional. If time_zone_source is PROVIDED, this is the time zone to use for - * this report. Leave empty for any other time zone source. Time zone in IANA - * format. For example, "America/New_York". - * - * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Optional. The ISO 4217 currency code for this report. Defaults to publisher - * currency code if not specified. - * - * Generated from protobuf field string currency_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Optional. The ISO 4217 currency code for this report. Defaults to publisher - * currency code if not specified. - * - * Generated from protobuf field string currency_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Required. The primary date range of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\ReportDefinition\DateRange|null - */ - public function getDateRange() - { - return $this->date_range; - } - - public function hasDateRange() - { - return isset($this->date_range); - } - - public function clearDateRange() - { - unset($this->date_range); - } - - /** - * Required. The primary date range of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\ReportDefinition\DateRange $var - * @return $this - */ - public function setDateRange($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\DateRange::class); - $this->date_range = $var; - - return $this; - } - - /** - * Optional. The comparison date range of this report. If unspecified, the - * report won't have any comparison metrics. - * - * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\ReportDefinition\DateRange|null - */ - public function getComparisonDateRange() - { - return $this->comparison_date_range; - } - - public function hasComparisonDateRange() - { - return isset($this->comparison_date_range); - } - - public function clearComparisonDateRange() - { - unset($this->comparison_date_range); - } - - /** - * Optional. The comparison date range of this report. If unspecified, the - * report won't have any comparison metrics. - * - * Generated from protobuf field optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\ReportDefinition\DateRange $var - * @return $this - */ - public function setComparisonDateRange($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition\DateRange::class); - $this->comparison_date_range = $var; - - return $this; - } - - /** - * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, custom_dimension_key_ids[0] describes - * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. - * - * Generated from protobuf field repeated int64 custom_dimension_key_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomDimensionKeyIds() - { - return $this->custom_dimension_key_ids; - } - - /** - * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, custom_dimension_key_ids[0] describes - * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. - * - * Generated from protobuf field repeated int64 custom_dimension_key_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomDimensionKeyIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->custom_dimension_key_ids = $arr; - - return $this; - } - - /** - * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, line_item_custom_field_ids[0] describes - * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 line_item_custom_field_ids = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLineItemCustomFieldIds() - { - return $this->line_item_custom_field_ids; - } - - /** - * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, line_item_custom_field_ids[0] describes - * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 line_item_custom_field_ids = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLineItemCustomFieldIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->line_item_custom_field_ids = $arr; - - return $this; - } - - /** - * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, order_custom_field_ids[0] describes - * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 order_custom_field_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderCustomFieldIds() - { - return $this->order_custom_field_ids; - } - - /** - * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, order_custom_field_ids[0] describes - * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 order_custom_field_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderCustomFieldIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->order_custom_field_ids = $arr; - - return $this; - } - - /** - * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, creative_custom_field_ids[0] describes - * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 creative_custom_field_ids = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCreativeCustomFieldIds() - { - return $this->creative_custom_field_ids; - } - - /** - * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, creative_custom_field_ids[0] describes - * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 creative_custom_field_ids = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCreativeCustomFieldIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->creative_custom_field_ids = $arr; - - return $this; - } - - /** - * Required. The type of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getReportType() - { - return $this->report_type; - } - - /** - * Required. The type of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setReportType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\ReportType::class); - $this->report_type = $var; - - return $this; - } - - /** - * Optional. Include a time period column to introduce comparison columns in - * the report for each generated period. For example, set to "QUARTERS" here - * to have a column for each quarter present in the primary date range. If - * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter - * column will also include comparison values for its relative previous - * quarter. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTimePeriodColumn() - { - return $this->time_period_column; - } - - /** - * Optional. Include a time period column to introduce comparison columns in - * the report for each generated period. For example, set to "QUARTERS" here - * to have a column for each quarter present in the primary date range. If - * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter - * column will also include comparison values for its relative previous - * quarter. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTimePeriodColumn($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportDefinition\TimePeriodColumn::class); - $this->time_period_column = $var; - - return $this; - } - - /** - * Optional. List of flags for this report. Used to flag rows in a result set - * based on a set of defined filters. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFlags() - { - return $this->flags; - } - - /** - * Optional. List of flags for this report. Used to flag rows in a result set - * based on a set of defined filters. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFlags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Flag::class); - $this->flags = $arr; - - return $this; - } - - /** - * Optional. Default sorts to apply to this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSorts() - { - return $this->sorts; - } - - /** - * Optional. Default sorts to apply to this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Sort>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSorts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Sort::class); - $this->sorts = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum.php deleted file mode 100644 index be20db2b3e31..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum.php +++ /dev/null @@ -1,37 +0,0 @@ -google.ads.admanager.v1.RequestPlatformEnum - */ -class RequestPlatformEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RequestPlatformEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum/RequestPlatform.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum/RequestPlatform.php deleted file mode 100644 index eedf0f286761..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformEnum/RequestPlatform.php +++ /dev/null @@ -1,72 +0,0 @@ -google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform - */ -class RequestPlatform -{ - /** - * No value specified - * - * Generated from protobuf enum REQUEST_PLATFORM_UNSPECIFIED = 0; - */ - const REQUEST_PLATFORM_UNSPECIFIED = 0; - /** - * Represents a request made from a web browser (incl. desktop browsers, - * mobile browsers, webviews, etc.). - * - * Generated from protobuf enum BROWSER = 1; - */ - const BROWSER = 1; - /** - * Represents a request made from a Mobile Application. - * - * Generated from protobuf enum MOBILE_APP = 2; - */ - const MOBILE_APP = 2; - /** - * Represents a request made from a video player. - * - * Generated from protobuf enum VIDEO_PLAYER = 3; - */ - const VIDEO_PLAYER = 3; - - private static $valueToName = [ - self::REQUEST_PLATFORM_UNSPECIFIED => 'REQUEST_PLATFORM_UNSPECIFIED', - self::BROWSER => 'BROWSER', - self::MOBILE_APP => 'MOBILE_APP', - self::VIDEO_PLAYER => 'VIDEO_PLAYER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RequestPlatform::class, \Google\Ads\AdManager\V1\RequestPlatformEnum_RequestPlatform::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformTargeting.php deleted file mode 100644 index 1ce28b113fbc..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RequestPlatformTargeting.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.RequestPlatformTargeting - */ -class RequestPlatformTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The list of request platforms that should be targeted. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $request_platforms; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $request_platforms - * Optional. The list of request platforms that should be targeted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The list of request platforms that should be targeted. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequestPlatforms() - { - return $this->request_platforms; - } - - /** - * Optional. The list of request platforms that should be targeted. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequestPlatforms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\RequestPlatformEnum\RequestPlatform::class); - $this->request_platforms = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php deleted file mode 100644 index fa87ad2f35fb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php +++ /dev/null @@ -1,291 +0,0 @@ -google.ads.admanager.v1.Role - */ -class Role extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Role`. - * Format: `networks/{network_code}/roles/{role_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `Role` ID. - * - * Generated from protobuf field optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $role_id = null; - /** - * Required. The display name of the `Role`. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = null; - /** - * Optional. The description of the `Role`. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = null; - /** - * Output only. Whether the `Role` is a built-in or custom user role. - * - * Generated from protobuf field optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $built_in = null; - /** - * Output only. The status of the `Role`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Role`. - * Format: `networks/{network_code}/roles/{role_id}` - * @type int|string $role_id - * Output only. `Role` ID. - * @type string $display_name - * Required. The display name of the `Role`. - * @type string $description - * Optional. The description of the `Role`. - * @type bool $built_in - * Output only. Whether the `Role` is a built-in or custom user role. - * @type int $status - * Output only. The status of the `Role`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RoleMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Role`. - * Format: `networks/{network_code}/roles/{role_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Role`. - * Format: `networks/{network_code}/roles/{role_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `Role` ID. - * - * Generated from protobuf field optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getRoleId() - { - return isset($this->role_id) ? $this->role_id : 0; - } - - public function hasRoleId() - { - return isset($this->role_id); - } - - public function clearRoleId() - { - unset($this->role_id); - } - - /** - * Output only. `Role` ID. - * - * Generated from protobuf field optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setRoleId($var) - { - GPBUtil::checkInt64($var); - $this->role_id = $var; - - return $this; - } - - /** - * Required. The display name of the `Role`. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Required. The display name of the `Role`. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The description of the `Role`. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Optional. The description of the `Role`. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Whether the `Role` is a built-in or custom user role. - * - * Generated from protobuf field optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getBuiltIn() - { - return isset($this->built_in) ? $this->built_in : false; - } - - public function hasBuiltIn() - { - return isset($this->built_in); - } - - public function clearBuiltIn() - { - unset($this->built_in); - } - - /** - * Output only. Whether the `Role` is a built-in or custom user role. - * - * Generated from protobuf field optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setBuiltIn($var) - { - GPBUtil::checkBool($var); - $this->built_in = $var; - - return $this; - } - - /** - * Output only. The status of the `Role`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return isset($this->status) ? $this->status : 0; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. The status of the `Role`. - * - * Generated from protobuf field optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\RoleStatusEnum\RoleStatus::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php deleted file mode 100644 index f503830b55c8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.RoleStatusEnum - */ -class RoleStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RoleEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php deleted file mode 100644 index ff2884a49981..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.RoleStatusEnum.RoleStatus - */ -class RoleStatus -{ - /** - * No value specified. - * - * Generated from protobuf enum ROLE_STATUS_UNSPECIFIED = 0; - */ - const ROLE_STATUS_UNSPECIFIED = 0; - /** - * Role is active. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * Role is inactive. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - - private static $valueToName = [ - self::ROLE_STATUS_UNSPECIFIED => 'ROLE_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RoleStatus::class, \Google\Ads\AdManager\V1\RoleStatusEnum_RoleStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php deleted file mode 100644 index 8ef7b7307ec0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php +++ /dev/null @@ -1,105 +0,0 @@ -google.ads.admanager.v1.RunReportMetadata - */ -class RunReportMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * An estimate of how close this report is to being completed. Will always be - * 100 for failed and completed reports. - * - * Generated from protobuf field int32 percent_complete = 2; - */ - protected $percent_complete = 0; - /** - * The result's parent report. - * - * Generated from protobuf field string report = 4 [(.google.api.resource_reference) = { - */ - protected $report = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $percent_complete - * An estimate of how close this report is to being completed. Will always be - * 100 for failed and completed reports. - * @type string $report - * The result's parent report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * An estimate of how close this report is to being completed. Will always be - * 100 for failed and completed reports. - * - * Generated from protobuf field int32 percent_complete = 2; - * @return int - */ - public function getPercentComplete() - { - return $this->percent_complete; - } - - /** - * An estimate of how close this report is to being completed. Will always be - * 100 for failed and completed reports. - * - * Generated from protobuf field int32 percent_complete = 2; - * @param int $var - * @return $this - */ - public function setPercentComplete($var) - { - GPBUtil::checkInt32($var); - $this->percent_complete = $var; - - return $this; - } - - /** - * The result's parent report. - * - * Generated from protobuf field string report = 4 [(.google.api.resource_reference) = { - * @return string - */ - public function getReport() - { - return $this->report; - } - - /** - * The result's parent report. - * - * Generated from protobuf field string report = 4 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setReport($var) - { - GPBUtil::checkString($var, True); - $this->report = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php deleted file mode 100644 index 45effb973cb7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.RunReportRequest - */ -class RunReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The report to run. - * Format: `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The report to run. - * Format: `networks/{network_code}/reports/{report_id}` - * Please see {@see ReportServiceClient::reportName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\RunReportRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The report to run. - * Format: `networks/{network_code}/reports/{report_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The report to run. - * Format: `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The report to run. - * Format: `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php deleted file mode 100644 index c19b155b00c9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.RunReportResponse - */ -class RunReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name of the generated result. Use with `FetchReportResultRows` - * to retrieve data. - * - * Generated from protobuf field string report_result = 1; - */ - protected $report_result = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $report_result - * The unique name of the generated result. Use with `FetchReportResultRows` - * to retrieve data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * The unique name of the generated result. Use with `FetchReportResultRows` - * to retrieve data. - * - * Generated from protobuf field string report_result = 1; - * @return string - */ - public function getReportResult() - { - return $this->report_result; - } - - /** - * The unique name of the generated result. Use with `FetchReportResultRows` - * to retrieve data. - * - * Generated from protobuf field string report_result = 1; - * @param string $var - * @return $this - */ - public function setReportResult($var) - { - GPBUtil::checkString($var, True); - $this->report_result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php deleted file mode 100644 index b982fc993b4c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php +++ /dev/null @@ -1,149 +0,0 @@ -google.ads.admanager.v1.ScheduleOptions - */ -class ScheduleOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Information pertaining to schedule itself. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; - */ - protected $schedule = null; - /** - * Option for when to deliver the scheduled report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.DeliveryCondition delivery_condition = 2; - */ - protected $delivery_condition = 0; - /** - * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT - * is specified. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $flags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\ScheduleOptions\Schedule $schedule - * Information pertaining to schedule itself. - * @type int $delivery_condition - * Option for when to deliver the scheduled report. - * @type array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $flags - * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT - * is specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportMessages::initOnce(); - parent::__construct($data); - } - - /** - * Information pertaining to schedule itself. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; - * @return \Google\Ads\AdManager\V1\ScheduleOptions\Schedule|null - */ - public function getSchedule() - { - return $this->schedule; - } - - public function hasSchedule() - { - return isset($this->schedule); - } - - public function clearSchedule() - { - unset($this->schedule); - } - - /** - * Information pertaining to schedule itself. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; - * @param \Google\Ads\AdManager\V1\ScheduleOptions\Schedule $var - * @return $this - */ - public function setSchedule($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ScheduleOptions\Schedule::class); - $this->schedule = $var; - - return $this; - } - - /** - * Option for when to deliver the scheduled report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.DeliveryCondition delivery_condition = 2; - * @return int - */ - public function getDeliveryCondition() - { - return $this->delivery_condition; - } - - /** - * Option for when to deliver the scheduled report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.DeliveryCondition delivery_condition = 2; - * @param int $var - * @return $this - */ - public function setDeliveryCondition($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ScheduleOptions\DeliveryCondition::class); - $this->delivery_condition = $var; - - return $this; - } - - /** - * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT - * is specified. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFlags() - { - return $this->flags; - } - - /** - * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT - * is specified. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\ReportDefinition\Flag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFlags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ReportDefinition\Flag::class); - $this->flags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php deleted file mode 100644 index a5d39bb84e6e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.ScheduleOptions.DeliveryCondition - */ -class DeliveryCondition -{ - /** - * Never deliver report. - * - * Generated from protobuf enum NEVER = 0; - */ - const NEVER = 0; - /** - * Always deliver report. - * - * Generated from protobuf enum ALWAYS = 1; - */ - const ALWAYS = 1; - /** - * Deliver report when flag's conditions are met. - * - * Generated from protobuf enum WHEN_FLAG_CONDITIONS_MET = 2; - */ - const WHEN_FLAG_CONDITIONS_MET = 2; - - private static $valueToName = [ - self::NEVER => 'NEVER', - self::ALWAYS => 'ALWAYS', - self::WHEN_FLAG_CONDITIONS_MET => 'WHEN_FLAG_CONDITIONS_MET', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DeliveryCondition::class, \Google\Ads\AdManager\V1\ScheduleOptions_DeliveryCondition::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php deleted file mode 100644 index 47651043c22f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php +++ /dev/null @@ -1,147 +0,0 @@ -google.ads.admanager.v1.Size - */ -class Size extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The width of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * - * Generated from protobuf field int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $width = 0; - /** - * Required. The height of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * - * Generated from protobuf field int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $height = 0; - /** - * Required. The SizeType of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * - * Generated from protobuf field .google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $size_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $width - * Required. The width of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * @type int $height - * Required. The height of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * @type int $size_type - * Required. The SizeType of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Size::initOnce(); - parent::__construct($data); - } - - /** - * Required. The width of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * - * Generated from protobuf field int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getWidth() - { - return $this->width; - } - - /** - * Required. The width of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * - * Generated from protobuf field int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setWidth($var) - { - GPBUtil::checkInt32($var); - $this->width = $var; - - return $this; - } - - /** - * Required. The height of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * - * Generated from protobuf field int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getHeight() - { - return $this->height; - } - - /** - * Required. The height of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * - * Generated from protobuf field int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setHeight($var) - { - GPBUtil::checkInt32($var); - $this->height = $var; - - return $this; - } - - /** - * Required. The SizeType of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * - * Generated from protobuf field .google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getSizeType() - { - return $this->size_type; - } - - /** - * Required. The SizeType of the Creative, - * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. - * - * Generated from protobuf field .google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setSizeType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\SizeTypeEnum\SizeType::class); - $this->size_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php deleted file mode 100644 index 245c82dc7304..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.SizeTypeEnum - */ -class SizeTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\SizeTypeEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php deleted file mode 100644 index 0398dcae2c6c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php +++ /dev/null @@ -1,105 +0,0 @@ -google.ads.admanager.v1.SizeTypeEnum.SizeType - */ -class SizeType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum SIZE_TYPE_UNSPECIFIED = 0; - */ - const SIZE_TYPE_UNSPECIFIED = 0; - /** - * Dimension based size, an actual height and width in pixels. - * - * Generated from protobuf enum PIXEL = 1; - */ - const PIXEL = 1; - /** - * Size is expressed as a ratio. For example, 4:1 could be - * met by a 100 x 25 sized image. - * - * Generated from protobuf enum ASPECT_RATIO = 2; - */ - const ASPECT_RATIO = 2; - /** - * Out-of-page (Interstitial) size that is not related to the slot it is - * served. This must be used with 1x1 size. - * - * Generated from protobuf enum INTERSTITIAL = 3; - */ - const INTERSTITIAL = 3; - /** - * Size is ignored. This must be used with 1x1 - * size. - * - * Generated from protobuf enum IGNORED = 4; - */ - const IGNORED = 4; - /** - * Native size, which is a function of the how the client renders the - * creative. This must be used with 1x1 size. - * - * Generated from protobuf enum NATIVE = 5; - */ - const NATIVE = 5; - /** - * Fluid size. Automatically sizes the ad by filling the width of the - * enclosing column and adjusting the height as appropriate. This must be - * used with 1x1 size. - * - * Generated from protobuf enum FLUID = 6; - */ - const FLUID = 6; - /** - * Audio size. Used with audio ads. This must be used with 1x1 size. - * - * Generated from protobuf enum AUDIO = 7; - */ - const AUDIO = 7; - - private static $valueToName = [ - self::SIZE_TYPE_UNSPECIFIED => 'SIZE_TYPE_UNSPECIFIED', - self::PIXEL => 'PIXEL', - self::ASPECT_RATIO => 'ASPECT_RATIO', - self::INTERSTITIAL => 'INTERSTITIAL', - self::IGNORED => 'IGNORED', - self::NATIVE => 'NATIVE', - self::FLUID => 'FLUID', - self::AUDIO => 'AUDIO', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SizeType::class, \Google\Ads\AdManager\V1\SizeTypeEnum_SizeType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php deleted file mode 100644 index 40e9ca0edd29..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.SmartSizeModeEnum - */ -class SmartSizeModeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php deleted file mode 100644 index 8f4f281107ee..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php +++ /dev/null @@ -1,72 +0,0 @@ -google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode - */ -class SmartSizeMode -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum SMART_SIZE_MODE_UNSPECIFIED = 0; - */ - const SMART_SIZE_MODE_UNSPECIFIED = 0; - /** - * Fixed size mode (default). - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * The height is fixed for the request, the width is a range. - * - * Generated from protobuf enum SMART_BANNER = 2; - */ - const SMART_BANNER = 2; - /** - * Height and width are ranges. - * - * Generated from protobuf enum DYNAMIC_SIZE = 3; - */ - const DYNAMIC_SIZE = 3; - - private static $valueToName = [ - self::SMART_SIZE_MODE_UNSPECIFIED => 'SMART_SIZE_MODE_UNSPECIFIED', - self::NONE => 'NONE', - self::SMART_BANNER => 'SMART_BANNER', - self::DYNAMIC_SIZE => 'DYNAMIC_SIZE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SmartSizeMode::class, \Google\Ads\AdManager\V1\SmartSizeModeEnum_SmartSizeMode::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php deleted file mode 100644 index a8637484ab5b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.TargetWindowEnum - */ -class TargetWindowEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php deleted file mode 100644 index 34e9c34ea8c0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php +++ /dev/null @@ -1,65 +0,0 @@ -google.ads.admanager.v1.TargetWindowEnum.TargetWindow - */ -class TargetWindow -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TARGET_WINDOW_UNSPECIFIED = 0; - */ - const TARGET_WINDOW_UNSPECIFIED = 0; - /** - * Specifies that the link should open in the full body of the page. - * - * Generated from protobuf enum TOP = 1; - */ - const TOP = 1; - /** - * Specifies that the link should open in a new window. - * - * Generated from protobuf enum BLANK = 2; - */ - const BLANK = 2; - - private static $valueToName = [ - self::TARGET_WINDOW_UNSPECIFIED => 'TARGET_WINDOW_UNSPECIFIED', - self::TOP => 'TOP', - self::BLANK => 'BLANK', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TargetWindow::class, \Google\Ads\AdManager\V1\TargetWindowEnum_TargetWindow::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum.php deleted file mode 100644 index f504eceb4e4a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.TargetedVideoBumperTypeEnum - */ -class TargetedVideoBumperTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TargetedVideoBumperTypeEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum/TargetedVideoBumperType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum/TargetedVideoBumperType.php deleted file mode 100644 index 74713d2f3cd4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetedVideoBumperTypeEnum/TargetedVideoBumperType.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType - */ -class TargetedVideoBumperType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED = 0; - */ - const TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED = 0; - /** - * Represents the bumper position after the ad pod. - * - * Generated from protobuf enum AFTER = 1; - */ - const AFTER = 1; - /** - * Represents the bumper position before the ad pod. - * - * Generated from protobuf enum BEFORE = 2; - */ - const BEFORE = 2; - - private static $valueToName = [ - self::TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED => 'TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED', - self::AFTER => 'AFTER', - self::BEFORE => 'BEFORE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TargetedVideoBumperType::class, \Google\Ads\AdManager\V1\TargetedVideoBumperTypeEnum_TargetedVideoBumperType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Targeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Targeting.php deleted file mode 100644 index a748cbe66f7a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Targeting.php +++ /dev/null @@ -1,477 +0,0 @@ -google.ads.admanager.v1.Targeting - */ -class Targeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Used to target/exclude various geo targets. - * - * Generated from protobuf field .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $geo_targeting = null; - /** - * Optional. Used to target various technology targeting dimensions. - * - * Generated from protobuf field .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $technology_targeting = null; - /** - * Optional. Used to target/exclude various ad units and/or placements. - * - * Generated from protobuf field .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $inventory_targeting = null; - /** - * Optional. Used to target specific request platforms. - * - * Generated from protobuf field .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_platform_targeting = null; - /** - * Optional. Used to target key/values, audience segments, and/or CMS - * metadata. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $custom_targeting = null; - /** - * Optional. Used to target user domains. - * - * Generated from protobuf field .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $user_domain_targeting = null; - /** - * Optional. Used to target video positions. - * - * Generated from protobuf field .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $video_position_targeting = null; - /** - * Optional. Used to target data segments. - * - * Generated from protobuf field .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_segment_targeting = null; - /** - * Optional. Used to target content. - * - * Generated from protobuf field .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $content_targeting = null; - /** - * Optional. Used to target mobile applications. - * - * Generated from protobuf field .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $mobile_application_targeting = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\GeoTargeting $geo_targeting - * Optional. Used to target/exclude various geo targets. - * @type \Google\Ads\AdManager\V1\TechnologyTargeting $technology_targeting - * Optional. Used to target various technology targeting dimensions. - * @type \Google\Ads\AdManager\V1\InventoryTargeting $inventory_targeting - * Optional. Used to target/exclude various ad units and/or placements. - * @type \Google\Ads\AdManager\V1\RequestPlatformTargeting $request_platform_targeting - * Optional. Used to target specific request platforms. - * @type \Google\Ads\AdManager\V1\CustomTargeting $custom_targeting - * Optional. Used to target key/values, audience segments, and/or CMS - * metadata. - * @type \Google\Ads\AdManager\V1\UserDomainTargeting $user_domain_targeting - * Optional. Used to target user domains. - * @type \Google\Ads\AdManager\V1\VideoPositionTargeting $video_position_targeting - * Optional. Used to target video positions. - * @type \Google\Ads\AdManager\V1\DataSegmentTargeting $data_segment_targeting - * Optional. Used to target data segments. - * @type \Google\Ads\AdManager\V1\ContentTargeting $content_targeting - * Optional. Used to target content. - * @type \Google\Ads\AdManager\V1\MobileApplicationTargeting $mobile_application_targeting - * Optional. Used to target mobile applications. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Used to target/exclude various geo targets. - * - * Generated from protobuf field .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\GeoTargeting|null - */ - public function getGeoTargeting() - { - return $this->geo_targeting; - } - - public function hasGeoTargeting() - { - return isset($this->geo_targeting); - } - - public function clearGeoTargeting() - { - unset($this->geo_targeting); - } - - /** - * Optional. Used to target/exclude various geo targets. - * - * Generated from protobuf field .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\GeoTargeting $var - * @return $this - */ - public function setGeoTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\GeoTargeting::class); - $this->geo_targeting = $var; - - return $this; - } - - /** - * Optional. Used to target various technology targeting dimensions. - * - * Generated from protobuf field .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\TechnologyTargeting|null - */ - public function getTechnologyTargeting() - { - return $this->technology_targeting; - } - - public function hasTechnologyTargeting() - { - return isset($this->technology_targeting); - } - - public function clearTechnologyTargeting() - { - unset($this->technology_targeting); - } - - /** - * Optional. Used to target various technology targeting dimensions. - * - * Generated from protobuf field .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\TechnologyTargeting $var - * @return $this - */ - public function setTechnologyTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\TechnologyTargeting::class); - $this->technology_targeting = $var; - - return $this; - } - - /** - * Optional. Used to target/exclude various ad units and/or placements. - * - * Generated from protobuf field .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\InventoryTargeting|null - */ - public function getInventoryTargeting() - { - return $this->inventory_targeting; - } - - public function hasInventoryTargeting() - { - return isset($this->inventory_targeting); - } - - public function clearInventoryTargeting() - { - unset($this->inventory_targeting); - } - - /** - * Optional. Used to target/exclude various ad units and/or placements. - * - * Generated from protobuf field .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\InventoryTargeting $var - * @return $this - */ - public function setInventoryTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\InventoryTargeting::class); - $this->inventory_targeting = $var; - - return $this; - } - - /** - * Optional. Used to target specific request platforms. - * - * Generated from protobuf field .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\RequestPlatformTargeting|null - */ - public function getRequestPlatformTargeting() - { - return $this->request_platform_targeting; - } - - public function hasRequestPlatformTargeting() - { - return isset($this->request_platform_targeting); - } - - public function clearRequestPlatformTargeting() - { - unset($this->request_platform_targeting); - } - - /** - * Optional. Used to target specific request platforms. - * - * Generated from protobuf field .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\RequestPlatformTargeting $var - * @return $this - */ - public function setRequestPlatformTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\RequestPlatformTargeting::class); - $this->request_platform_targeting = $var; - - return $this; - } - - /** - * Optional. Used to target key/values, audience segments, and/or CMS - * metadata. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\CustomTargeting|null - */ - public function getCustomTargeting() - { - return $this->custom_targeting; - } - - public function hasCustomTargeting() - { - return isset($this->custom_targeting); - } - - public function clearCustomTargeting() - { - unset($this->custom_targeting); - } - - /** - * Optional. Used to target key/values, audience segments, and/or CMS - * metadata. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\CustomTargeting $var - * @return $this - */ - public function setCustomTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CustomTargeting::class); - $this->custom_targeting = $var; - - return $this; - } - - /** - * Optional. Used to target user domains. - * - * Generated from protobuf field .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\UserDomainTargeting|null - */ - public function getUserDomainTargeting() - { - return $this->user_domain_targeting; - } - - public function hasUserDomainTargeting() - { - return isset($this->user_domain_targeting); - } - - public function clearUserDomainTargeting() - { - unset($this->user_domain_targeting); - } - - /** - * Optional. Used to target user domains. - * - * Generated from protobuf field .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\UserDomainTargeting $var - * @return $this - */ - public function setUserDomainTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\UserDomainTargeting::class); - $this->user_domain_targeting = $var; - - return $this; - } - - /** - * Optional. Used to target video positions. - * - * Generated from protobuf field .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\VideoPositionTargeting|null - */ - public function getVideoPositionTargeting() - { - return $this->video_position_targeting; - } - - public function hasVideoPositionTargeting() - { - return isset($this->video_position_targeting); - } - - public function clearVideoPositionTargeting() - { - unset($this->video_position_targeting); - } - - /** - * Optional. Used to target video positions. - * - * Generated from protobuf field .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\VideoPositionTargeting $var - * @return $this - */ - public function setVideoPositionTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\VideoPositionTargeting::class); - $this->video_position_targeting = $var; - - return $this; - } - - /** - * Optional. Used to target data segments. - * - * Generated from protobuf field .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\DataSegmentTargeting|null - */ - public function getDataSegmentTargeting() - { - return $this->data_segment_targeting; - } - - public function hasDataSegmentTargeting() - { - return isset($this->data_segment_targeting); - } - - public function clearDataSegmentTargeting() - { - unset($this->data_segment_targeting); - } - - /** - * Optional. Used to target data segments. - * - * Generated from protobuf field .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\DataSegmentTargeting $var - * @return $this - */ - public function setDataSegmentTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DataSegmentTargeting::class); - $this->data_segment_targeting = $var; - - return $this; - } - - /** - * Optional. Used to target content. - * - * Generated from protobuf field .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\ContentTargeting|null - */ - public function getContentTargeting() - { - return $this->content_targeting; - } - - public function hasContentTargeting() - { - return isset($this->content_targeting); - } - - public function clearContentTargeting() - { - unset($this->content_targeting); - } - - /** - * Optional. Used to target content. - * - * Generated from protobuf field .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\ContentTargeting $var - * @return $this - */ - public function setContentTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ContentTargeting::class); - $this->content_targeting = $var; - - return $this; - } - - /** - * Optional. Used to target mobile applications. - * - * Generated from protobuf field .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\MobileApplicationTargeting|null - */ - public function getMobileApplicationTargeting() - { - return $this->mobile_application_targeting; - } - - public function hasMobileApplicationTargeting() - { - return isset($this->mobile_application_targeting); - } - - public function clearMobileApplicationTargeting() - { - unset($this->mobile_application_targeting); - } - - /** - * Optional. Used to target mobile applications. - * - * Generated from protobuf field .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\MobileApplicationTargeting $var - * @return $this - */ - public function setMobileApplicationTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\MobileApplicationTargeting::class); - $this->mobile_application_targeting = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php deleted file mode 100644 index 410e42520a61..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php +++ /dev/null @@ -1,367 +0,0 @@ -google.ads.admanager.v1.TaxonomyCategory - */ -class TaxonomyCategory extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `TaxonomyCategory`. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `TaxonomyCategory` ID. - * - * Generated from protobuf field optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $taxonomy_category_id = null; - /** - * Output only. Display name of the `TaxonomyCategory`. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = null; - /** - * Output only. Whether this `TaxonomyCategory` only serves to group its - * children. - * - * Generated from protobuf field optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $grouping_only = null; - /** - * Output only. The ID of the parent category this `TaxonomyCategory` descends - * from. - * - * Generated from protobuf field optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $parent_taxonomy_category_id = null; - /** - * Output only. The taxonomy that this `TaxonomyCategory` belongs to. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $taxonomy_type = null; - /** - * Output only. The list of names of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $ancestor_names; - /** - * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $ancestor_taxonomy_category_ids; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `TaxonomyCategory`. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * @type int|string $taxonomy_category_id - * Output only. `TaxonomyCategory` ID. - * @type string $display_name - * Output only. Display name of the `TaxonomyCategory`. - * @type bool $grouping_only - * Output only. Whether this `TaxonomyCategory` only serves to group its - * children. - * @type int|string $parent_taxonomy_category_id - * Output only. The ID of the parent category this `TaxonomyCategory` descends - * from. - * @type int $taxonomy_type - * Output only. The taxonomy that this `TaxonomyCategory` belongs to. - * @type array|\Google\Protobuf\Internal\RepeatedField $ancestor_names - * Output only. The list of names of the ancestors of this `TaxonomyCategory`. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $ancestor_taxonomy_category_ids - * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `TaxonomyCategory`. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `TaxonomyCategory`. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `TaxonomyCategory` ID. - * - * Generated from protobuf field optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTaxonomyCategoryId() - { - return isset($this->taxonomy_category_id) ? $this->taxonomy_category_id : 0; - } - - public function hasTaxonomyCategoryId() - { - return isset($this->taxonomy_category_id); - } - - public function clearTaxonomyCategoryId() - { - unset($this->taxonomy_category_id); - } - - /** - * Output only. `TaxonomyCategory` ID. - * - * Generated from protobuf field optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTaxonomyCategoryId($var) - { - GPBUtil::checkInt64($var); - $this->taxonomy_category_id = $var; - - return $this; - } - - /** - * Output only. Display name of the `TaxonomyCategory`. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Output only. Display name of the `TaxonomyCategory`. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Whether this `TaxonomyCategory` only serves to group its - * children. - * - * Generated from protobuf field optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getGroupingOnly() - { - return isset($this->grouping_only) ? $this->grouping_only : false; - } - - public function hasGroupingOnly() - { - return isset($this->grouping_only); - } - - public function clearGroupingOnly() - { - unset($this->grouping_only); - } - - /** - * Output only. Whether this `TaxonomyCategory` only serves to group its - * children. - * - * Generated from protobuf field optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setGroupingOnly($var) - { - GPBUtil::checkBool($var); - $this->grouping_only = $var; - - return $this; - } - - /** - * Output only. The ID of the parent category this `TaxonomyCategory` descends - * from. - * - * Generated from protobuf field optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getParentTaxonomyCategoryId() - { - return isset($this->parent_taxonomy_category_id) ? $this->parent_taxonomy_category_id : 0; - } - - public function hasParentTaxonomyCategoryId() - { - return isset($this->parent_taxonomy_category_id); - } - - public function clearParentTaxonomyCategoryId() - { - unset($this->parent_taxonomy_category_id); - } - - /** - * Output only. The ID of the parent category this `TaxonomyCategory` descends - * from. - * - * Generated from protobuf field optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setParentTaxonomyCategoryId($var) - { - GPBUtil::checkInt64($var); - $this->parent_taxonomy_category_id = $var; - - return $this; - } - - /** - * Output only. The taxonomy that this `TaxonomyCategory` belongs to. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTaxonomyType() - { - return isset($this->taxonomy_type) ? $this->taxonomy_type : 0; - } - - public function hasTaxonomyType() - { - return isset($this->taxonomy_type); - } - - public function clearTaxonomyType() - { - unset($this->taxonomy_type); - } - - /** - * Output only. The taxonomy that this `TaxonomyCategory` belongs to. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTaxonomyType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TaxonomyTypeEnum\TaxonomyType::class); - $this->taxonomy_type = $var; - - return $this; - } - - /** - * Output only. The list of names of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAncestorNames() - { - return $this->ancestor_names; - } - - /** - * Output only. The list of names of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAncestorNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ancestor_names = $arr; - - return $this; - } - - /** - * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAncestorTaxonomyCategoryIds() - { - return $this->ancestor_taxonomy_category_ids; - } - - /** - * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAncestorTaxonomyCategoryIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->ancestor_taxonomy_category_ids = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php deleted file mode 100644 index 0eb538bca072..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.TaxonomyTypeEnum - */ -class TaxonomyTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyTypeEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php deleted file mode 100644 index 22c497f2fc63..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php +++ /dev/null @@ -1,93 +0,0 @@ -google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType - */ -class TaxonomyType -{ - /** - * Unspecified/not present - * - * Generated from protobuf enum TAXONOMY_TYPE_UNSPECIFIED = 0; - */ - const TAXONOMY_TYPE_UNSPECIFIED = 0; - /** - * The IAB Audience Taxonomy v1.1. - * - * Generated from protobuf enum TAXONOMY_IAB_AUDIENCE_1_1 = 3; - */ - const TAXONOMY_IAB_AUDIENCE_1_1 = 3; - /** - * The IAB Content Taxonomy v1.0. - * - * Generated from protobuf enum TAXONOMY_IAB_CONTENT_1_0 = 8; - */ - const TAXONOMY_IAB_CONTENT_1_0 = 8; - /** - * The IAB Content Taxonomy v2.1. - * - * Generated from protobuf enum TAXONOMY_IAB_CONTENT_2_1 = 4; - */ - const TAXONOMY_IAB_CONTENT_2_1 = 4; - /** - * The IAB Content Taxonomy v2.2. - * - * Generated from protobuf enum TAXONOMY_IAB_CONTENT_2_2 = 6; - */ - const TAXONOMY_IAB_CONTENT_2_2 = 6; - /** - * The IAB Content Taxonomy v3.0. - * - * Generated from protobuf enum TAXONOMY_IAB_CONTENT_3_0 = 5; - */ - const TAXONOMY_IAB_CONTENT_3_0 = 5; - /** - * The PPS structured video signals taxonomy. - * - * Generated from protobuf enum TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0 = 7; - */ - const TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0 = 7; - - private static $valueToName = [ - self::TAXONOMY_TYPE_UNSPECIFIED => 'TAXONOMY_TYPE_UNSPECIFIED', - self::TAXONOMY_IAB_AUDIENCE_1_1 => 'TAXONOMY_IAB_AUDIENCE_1_1', - self::TAXONOMY_IAB_CONTENT_1_0 => 'TAXONOMY_IAB_CONTENT_1_0', - self::TAXONOMY_IAB_CONTENT_2_1 => 'TAXONOMY_IAB_CONTENT_2_1', - self::TAXONOMY_IAB_CONTENT_2_2 => 'TAXONOMY_IAB_CONTENT_2_2', - self::TAXONOMY_IAB_CONTENT_3_0 => 'TAXONOMY_IAB_CONTENT_3_0', - self::TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0 => 'TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TaxonomyType::class, \Google\Ads\AdManager\V1\TaxonomyTypeEnum_TaxonomyType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php deleted file mode 100644 index a40883cd942e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php +++ /dev/null @@ -1,363 +0,0 @@ -google.ads.admanager.v1.Team - */ -class Team extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Team`. - * Format: `networks/{network_code}/teams/{team_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The name of the Team. This value has a maximum length of 127 - * characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = null; - /** - * Optional. The description of the Team. This value has a maximum length of - * 255 characters. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = null; - /** - * Output only. The status of the Team. This value determines the visibility - * of the team in the UI. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - /** - * Optional. Whether or not users on this team have access to all companies. - * If this value is true, then an error will be thrown if an attempt is made - * to associate this team with a Company. - * - * Generated from protobuf field optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $all_companies_access = null; - /** - * Optional. Whether or not users on this team have access to all inventory. - * If this value is true, then an error will be thrown if an attempt is made - * to associate this team with an AdUnit. - * - * Generated from protobuf field optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $all_inventory_access = null; - /** - * Optional. The default access to orders for users on this team. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $access_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Team`. - * Format: `networks/{network_code}/teams/{team_id}` - * @type string $display_name - * Required. The name of the Team. This value has a maximum length of 127 - * characters. - * @type string $description - * Optional. The description of the Team. This value has a maximum length of - * 255 characters. - * @type int $status - * Output only. The status of the Team. This value determines the visibility - * of the team in the UI. - * @type bool $all_companies_access - * Optional. Whether or not users on this team have access to all companies. - * If this value is true, then an error will be thrown if an attempt is made - * to associate this team with a Company. - * @type bool $all_inventory_access - * Optional. Whether or not users on this team have access to all inventory. - * If this value is true, then an error will be thrown if an attempt is made - * to associate this team with an AdUnit. - * @type int $access_type - * Optional. The default access to orders for users on this team. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TeamMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Team`. - * Format: `networks/{network_code}/teams/{team_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Team`. - * Format: `networks/{network_code}/teams/{team_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The name of the Team. This value has a maximum length of 127 - * characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Required. The name of the Team. This value has a maximum length of 127 - * characters. - * - * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The description of the Team. This value has a maximum length of - * 255 characters. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Optional. The description of the Team. This value has a maximum length of - * 255 characters. - * - * Generated from protobuf field optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The status of the Team. This value determines the visibility - * of the team in the UI. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return isset($this->status) ? $this->status : 0; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. The status of the Team. This value determines the visibility - * of the team in the UI. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TeamStatusEnum\TeamStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Optional. Whether or not users on this team have access to all companies. - * If this value is true, then an error will be thrown if an attempt is made - * to associate this team with a Company. - * - * Generated from protobuf field optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllCompaniesAccess() - { - return isset($this->all_companies_access) ? $this->all_companies_access : false; - } - - public function hasAllCompaniesAccess() - { - return isset($this->all_companies_access); - } - - public function clearAllCompaniesAccess() - { - unset($this->all_companies_access); - } - - /** - * Optional. Whether or not users on this team have access to all companies. - * If this value is true, then an error will be thrown if an attempt is made - * to associate this team with a Company. - * - * Generated from protobuf field optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllCompaniesAccess($var) - { - GPBUtil::checkBool($var); - $this->all_companies_access = $var; - - return $this; - } - - /** - * Optional. Whether or not users on this team have access to all inventory. - * If this value is true, then an error will be thrown if an attempt is made - * to associate this team with an AdUnit. - * - * Generated from protobuf field optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllInventoryAccess() - { - return isset($this->all_inventory_access) ? $this->all_inventory_access : false; - } - - public function hasAllInventoryAccess() - { - return isset($this->all_inventory_access); - } - - public function clearAllInventoryAccess() - { - unset($this->all_inventory_access); - } - - /** - * Optional. Whether or not users on this team have access to all inventory. - * If this value is true, then an error will be thrown if an attempt is made - * to associate this team with an AdUnit. - * - * Generated from protobuf field optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllInventoryAccess($var) - { - GPBUtil::checkBool($var); - $this->all_inventory_access = $var; - - return $this; - } - - /** - * Optional. The default access to orders for users on this team. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getAccessType() - { - return isset($this->access_type) ? $this->access_type : 0; - } - - public function hasAccessType() - { - return isset($this->access_type); - } - - public function clearAccessType() - { - unset($this->access_type); - } - - /** - * Optional. The default access to orders for users on this team. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setAccessType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TeamAccessTypeEnum\TeamAccessType::class); - $this->access_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TechnologyTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TechnologyTargeting.php deleted file mode 100644 index fdb77af49595..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TechnologyTargeting.php +++ /dev/null @@ -1,386 +0,0 @@ -google.ads.admanager.v1.TechnologyTargeting - */ -class TechnologyTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Bandwidth targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bandwidth_targeting = null; - /** - * Optional. Browser targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $browser_targeting = null; - /** - * Optional. Browser language targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $browser_language_targeting = null; - /** - * Optional. Device capability targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $device_capability_targeting = null; - /** - * Optional. Device category targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $device_category_targeting = null; - /** - * Optional. Device manufacturer targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $device_manufacturer_targeting = null; - /** - * Optional. Mobile carrier targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $mobile_carrier_targeting = null; - /** - * Optional. Operating system targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $operating_system_targeting = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\BandwidthTargeting $bandwidth_targeting - * Optional. Bandwidth targeting dimension. - * @type \Google\Ads\AdManager\V1\BrowserTargeting $browser_targeting - * Optional. Browser targeting dimension. - * @type \Google\Ads\AdManager\V1\BrowserLanguageTargeting $browser_language_targeting - * Optional. Browser language targeting dimension. - * @type \Google\Ads\AdManager\V1\DeviceCapabilityTargeting $device_capability_targeting - * Optional. Device capability targeting dimension. - * @type \Google\Ads\AdManager\V1\DeviceCategoryTargeting $device_category_targeting - * Optional. Device category targeting dimension. - * @type \Google\Ads\AdManager\V1\DeviceManufacturerTargeting $device_manufacturer_targeting - * Optional. Device manufacturer targeting dimension. - * @type \Google\Ads\AdManager\V1\MobileCarrierTargeting $mobile_carrier_targeting - * Optional. Mobile carrier targeting dimension. - * @type \Google\Ads\AdManager\V1\OperatingSystemTargeting $operating_system_targeting - * Optional. Operating system targeting dimension. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Bandwidth targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\BandwidthTargeting|null - */ - public function getBandwidthTargeting() - { - return $this->bandwidth_targeting; - } - - public function hasBandwidthTargeting() - { - return isset($this->bandwidth_targeting); - } - - public function clearBandwidthTargeting() - { - unset($this->bandwidth_targeting); - } - - /** - * Optional. Bandwidth targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\BandwidthTargeting $var - * @return $this - */ - public function setBandwidthTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\BandwidthTargeting::class); - $this->bandwidth_targeting = $var; - - return $this; - } - - /** - * Optional. Browser targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\BrowserTargeting|null - */ - public function getBrowserTargeting() - { - return $this->browser_targeting; - } - - public function hasBrowserTargeting() - { - return isset($this->browser_targeting); - } - - public function clearBrowserTargeting() - { - unset($this->browser_targeting); - } - - /** - * Optional. Browser targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\BrowserTargeting $var - * @return $this - */ - public function setBrowserTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\BrowserTargeting::class); - $this->browser_targeting = $var; - - return $this; - } - - /** - * Optional. Browser language targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\BrowserLanguageTargeting|null - */ - public function getBrowserLanguageTargeting() - { - return $this->browser_language_targeting; - } - - public function hasBrowserLanguageTargeting() - { - return isset($this->browser_language_targeting); - } - - public function clearBrowserLanguageTargeting() - { - unset($this->browser_language_targeting); - } - - /** - * Optional. Browser language targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\BrowserLanguageTargeting $var - * @return $this - */ - public function setBrowserLanguageTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\BrowserLanguageTargeting::class); - $this->browser_language_targeting = $var; - - return $this; - } - - /** - * Optional. Device capability targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\DeviceCapabilityTargeting|null - */ - public function getDeviceCapabilityTargeting() - { - return $this->device_capability_targeting; - } - - public function hasDeviceCapabilityTargeting() - { - return isset($this->device_capability_targeting); - } - - public function clearDeviceCapabilityTargeting() - { - unset($this->device_capability_targeting); - } - - /** - * Optional. Device capability targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\DeviceCapabilityTargeting $var - * @return $this - */ - public function setDeviceCapabilityTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DeviceCapabilityTargeting::class); - $this->device_capability_targeting = $var; - - return $this; - } - - /** - * Optional. Device category targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\DeviceCategoryTargeting|null - */ - public function getDeviceCategoryTargeting() - { - return $this->device_category_targeting; - } - - public function hasDeviceCategoryTargeting() - { - return isset($this->device_category_targeting); - } - - public function clearDeviceCategoryTargeting() - { - unset($this->device_category_targeting); - } - - /** - * Optional. Device category targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\DeviceCategoryTargeting $var - * @return $this - */ - public function setDeviceCategoryTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DeviceCategoryTargeting::class); - $this->device_category_targeting = $var; - - return $this; - } - - /** - * Optional. Device manufacturer targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\DeviceManufacturerTargeting|null - */ - public function getDeviceManufacturerTargeting() - { - return $this->device_manufacturer_targeting; - } - - public function hasDeviceManufacturerTargeting() - { - return isset($this->device_manufacturer_targeting); - } - - public function clearDeviceManufacturerTargeting() - { - unset($this->device_manufacturer_targeting); - } - - /** - * Optional. Device manufacturer targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\DeviceManufacturerTargeting $var - * @return $this - */ - public function setDeviceManufacturerTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DeviceManufacturerTargeting::class); - $this->device_manufacturer_targeting = $var; - - return $this; - } - - /** - * Optional. Mobile carrier targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\MobileCarrierTargeting|null - */ - public function getMobileCarrierTargeting() - { - return $this->mobile_carrier_targeting; - } - - public function hasMobileCarrierTargeting() - { - return isset($this->mobile_carrier_targeting); - } - - public function clearMobileCarrierTargeting() - { - unset($this->mobile_carrier_targeting); - } - - /** - * Optional. Mobile carrier targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\MobileCarrierTargeting $var - * @return $this - */ - public function setMobileCarrierTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\MobileCarrierTargeting::class); - $this->mobile_carrier_targeting = $var; - - return $this; - } - - /** - * Optional. Operating system targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\OperatingSystemTargeting|null - */ - public function getOperatingSystemTargeting() - { - return $this->operating_system_targeting; - } - - public function hasOperatingSystemTargeting() - { - return isset($this->operating_system_targeting); - } - - public function clearOperatingSystemTargeting() - { - unset($this->operating_system_targeting); - } - - /** - * Optional. Operating system targeting dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\OperatingSystemTargeting $var - * @return $this - */ - public function setOperatingSystemTargeting($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\OperatingSystemTargeting::class); - $this->operating_system_targeting = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php deleted file mode 100644 index 22d5fc47f884..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php +++ /dev/null @@ -1,33 +0,0 @@ -google.ads.admanager.v1.TimeUnitEnum - */ -class TimeUnitEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TimeUnitEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php deleted file mode 100644 index 0572d6d0dd7e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php +++ /dev/null @@ -1,107 +0,0 @@ -google.ads.admanager.v1.TimeUnitEnum.TimeUnit - */ -class TimeUnit -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TIME_UNIT_UNSPECIFIED = 0; - */ - const TIME_UNIT_UNSPECIFIED = 0; - /** - * Minute - * - * Generated from protobuf enum MINUTE = 1; - */ - const MINUTE = 1; - /** - * Hour - * - * Generated from protobuf enum HOUR = 2; - */ - const HOUR = 2; - /** - * Day - * - * Generated from protobuf enum DAY = 3; - */ - const DAY = 3; - /** - * Week - * - * Generated from protobuf enum WEEK = 4; - */ - const WEEK = 4; - /** - * Month - * - * Generated from protobuf enum MONTH = 5; - */ - const MONTH = 5; - /** - * Lifetime - * - * Generated from protobuf enum LIFETIME = 6; - */ - const LIFETIME = 6; - /** - * Per pod of ads in a video stream. Only valid for entities in a - * VIDEO_PLAYER environment. - * - * Generated from protobuf enum POD = 7; - */ - const POD = 7; - /** - * Per video stream. Only valid for entities in a VIDEO_PLAYER environment. - * - * Generated from protobuf enum STREAM = 8; - */ - const STREAM = 8; - - private static $valueToName = [ - self::TIME_UNIT_UNSPECIFIED => 'TIME_UNIT_UNSPECIFIED', - self::MINUTE => 'MINUTE', - self::HOUR => 'HOUR', - self::DAY => 'DAY', - self::WEEK => 'WEEK', - self::MONTH => 'MONTH', - self::LIFETIME => 'LIFETIME', - self::POD => 'POD', - self::STREAM => 'STREAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TimeUnit::class, \Google\Ads\AdManager\V1\TimeUnitEnum_TimeUnit::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateAdBreakRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateAdBreakRequest.php deleted file mode 100644 index a68439e03955..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateAdBreakRequest.php +++ /dev/null @@ -1,142 +0,0 @@ -google.ads.admanager.v1.UpdateAdBreakRequest - */ -class UpdateAdBreakRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `AdBreak` to update. - * The `AdBreak`'s `name` is used to identify the `AdBreak` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ad_break = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Ads\AdManager\V1\AdBreak $adBreak Required. The `AdBreak` to update. - * - * The `AdBreak`'s `name` is used to identify the `AdBreak` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Ads\AdManager\V1\UpdateAdBreakRequest - * - * @experimental - */ - public static function build(\Google\Ads\AdManager\V1\AdBreak $adBreak, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAdBreak($adBreak) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\AdBreak $ad_break - * Required. The `AdBreak` to update. - * The `AdBreak`'s `name` is used to identify the `AdBreak` to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdBreakService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `AdBreak` to update. - * The `AdBreak`'s `name` is used to identify the `AdBreak` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\AdBreak|null - */ - public function getAdBreak() - { - return $this->ad_break; - } - - public function hasAdBreak() - { - return isset($this->ad_break); - } - - public function clearAdBreak() - { - unset($this->ad_break); - } - - /** - * Required. The `AdBreak` to update. - * The `AdBreak`'s `name` is used to identify the `AdBreak` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\AdBreak $var - * @return $this - */ - public function setAdBreak($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\AdBreak::class); - $this->ad_break = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php deleted file mode 100644 index 0a9d17a8a645..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php +++ /dev/null @@ -1,157 +0,0 @@ -google.ads.admanager.v1.UpdateEntitySignalsMappingRequest - */ -class UpdateEntitySignalsMappingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `EntitySignalsMapping` to update. - * The EntitySignalsMapping's name is used to identify the - * EntitySignalsMapping to update. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entity_signals_mapping = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping Required. The `EntitySignalsMapping` to update. - * - * The EntitySignalsMapping's name is used to identify the - * EntitySignalsMapping to update. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest - * - * @experimental - */ - public static function build(\Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEntitySignalsMapping($entitySignalsMapping) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\EntitySignalsMapping $entity_signals_mapping - * Required. The `EntitySignalsMapping` to update. - * The EntitySignalsMapping's name is used to identify the - * EntitySignalsMapping to update. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `EntitySignalsMapping` to update. - * The EntitySignalsMapping's name is used to identify the - * EntitySignalsMapping to update. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\EntitySignalsMapping|null - */ - public function getEntitySignalsMapping() - { - return $this->entity_signals_mapping; - } - - public function hasEntitySignalsMapping() - { - return isset($this->entity_signals_mapping); - } - - public function clearEntitySignalsMapping() - { - unset($this->entity_signals_mapping); - } - - /** - * Required. The `EntitySignalsMapping` to update. - * The EntitySignalsMapping's name is used to identify the - * EntitySignalsMapping to update. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $var - * @return $this - */ - public function setEntitySignalsMapping($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); - $this->entity_signals_mapping = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionDealRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionDealRequest.php deleted file mode 100644 index 4db3e56be421..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionDealRequest.php +++ /dev/null @@ -1,147 +0,0 @@ -google.ads.admanager.v1.UpdatePrivateAuctionDealRequest - */ -class UpdatePrivateAuctionDealRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `PrivateAuctionDeal` to update. - * The `PrivateAuctionDeal`'s `name` is used to identify the - * `PrivateAuctionDeal` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $private_auction_deal = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Ads\AdManager\V1\PrivateAuctionDeal $privateAuctionDeal Required. The `PrivateAuctionDeal` to update. - * - * The `PrivateAuctionDeal`'s `name` is used to identify the - * `PrivateAuctionDeal` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Ads\AdManager\V1\UpdatePrivateAuctionDealRequest - * - * @experimental - */ - public static function build(\Google\Ads\AdManager\V1\PrivateAuctionDeal $privateAuctionDeal, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setPrivateAuctionDeal($privateAuctionDeal) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\PrivateAuctionDeal $private_auction_deal - * Required. The `PrivateAuctionDeal` to update. - * The `PrivateAuctionDeal`'s `name` is used to identify the - * `PrivateAuctionDeal` to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionDealService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `PrivateAuctionDeal` to update. - * The `PrivateAuctionDeal`'s `name` is used to identify the - * `PrivateAuctionDeal` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\PrivateAuctionDeal|null - */ - public function getPrivateAuctionDeal() - { - return $this->private_auction_deal; - } - - public function hasPrivateAuctionDeal() - { - return isset($this->private_auction_deal); - } - - public function clearPrivateAuctionDeal() - { - unset($this->private_auction_deal); - } - - /** - * Required. The `PrivateAuctionDeal` to update. - * The `PrivateAuctionDeal`'s `name` is used to identify the - * `PrivateAuctionDeal` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\PrivateAuctionDeal $var - * @return $this - */ - public function setPrivateAuctionDeal($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\PrivateAuctionDeal::class); - $this->private_auction_deal = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionRequest.php deleted file mode 100644 index 78cb16a9634f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdatePrivateAuctionRequest.php +++ /dev/null @@ -1,147 +0,0 @@ -google.ads.admanager.v1.UpdatePrivateAuctionRequest - */ -class UpdatePrivateAuctionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `PrivateAuction` to update. - * The `PrivateAuction`'s `name` is used to identify the - * `PrivateAuction` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $private_auction = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Ads\AdManager\V1\PrivateAuction $privateAuction Required. The `PrivateAuction` to update. - * - * The `PrivateAuction`'s `name` is used to identify the - * `PrivateAuction` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Ads\AdManager\V1\UpdatePrivateAuctionRequest - * - * @experimental - */ - public static function build(\Google\Ads\AdManager\V1\PrivateAuction $privateAuction, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setPrivateAuction($privateAuction) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\PrivateAuction $private_auction - * Required. The `PrivateAuction` to update. - * The `PrivateAuction`'s `name` is used to identify the - * `PrivateAuction` to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PrivateAuctionService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `PrivateAuction` to update. - * The `PrivateAuction`'s `name` is used to identify the - * `PrivateAuction` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\PrivateAuction|null - */ - public function getPrivateAuction() - { - return $this->private_auction; - } - - public function hasPrivateAuction() - { - return isset($this->private_auction); - } - - public function clearPrivateAuction() - { - unset($this->private_auction); - } - - /** - * Required. The `PrivateAuction` to update. - * The `PrivateAuction`'s `name` is used to identify the - * `PrivateAuction` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\PrivateAuction $var - * @return $this - */ - public function setPrivateAuction($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\PrivateAuction::class); - $this->private_auction = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php deleted file mode 100644 index e34757d484ce..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.ads.admanager.v1.UpdateReportRequest - */ -class UpdateReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `Report` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $report = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Ads\AdManager\V1\Report $report Required. The `Report` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Ads\AdManager\V1\UpdateReportRequest - * - * @experimental - */ - public static function build(\Google\Ads\AdManager\V1\Report $report, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setReport($report) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\Report $report - * Required. The `Report` to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `Report` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Report|null - */ - public function getReport() - { - return $this->report; - } - - public function hasReport() - { - return isset($this->report); - } - - public function clearReport() - { - unset($this->report); - } - - /** - * Required. The `Report` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Report $var - * @return $this - */ - public function setReport($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report::class); - $this->report = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php deleted file mode 100644 index 76609c5200b1..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php +++ /dev/null @@ -1,459 +0,0 @@ -google.ads.admanager.v1.User - */ -class User extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `User` ID. - * - * Generated from protobuf field optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $user_id = null; - /** - * Required. The name of the User. It has a maximum length of 128 characters. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = null; - /** - * Required. The email or login of the User. In order to create a new user, - * you must already have a Google Account. - * - * Generated from protobuf field optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $email = null; - /** - * Required. The unique Role ID of the User. Roles that are created by Google - * will have negative IDs. - * - * Generated from protobuf field optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $role = null; - /** - * Output only. Specifies whether or not the User is active. An inactive user - * cannot log in to the system or perform any operations. - * - * Generated from protobuf field optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $active = null; - /** - * Optional. An identifier for the User that is meaningful to the publisher. - * This attribute has a maximum length of 255 characters. - * - * Generated from protobuf field optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_id = null; - /** - * Output only. Whether the user is an OAuth2 service account user. - * Service account users can only be added through the UI. - * - * Generated from protobuf field optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_account = null; - /** - * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", - * used in the orders and line items UI for this User. If not provided, the UI - * then defaults to using the Network's timezone. This setting only affects - * the UI for this user and does not affect the timezone of any dates and - * times returned in API responses. - * - * Generated from protobuf field optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $orders_ui_local_time_zone = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * @type int|string $user_id - * Output only. `User` ID. - * @type string $display_name - * Required. The name of the User. It has a maximum length of 128 characters. - * @type string $email - * Required. The email or login of the User. In order to create a new user, - * you must already have a Google Account. - * @type string $role - * Required. The unique Role ID of the User. Roles that are created by Google - * will have negative IDs. - * @type bool $active - * Output only. Specifies whether or not the User is active. An inactive user - * cannot log in to the system or perform any operations. - * @type string $external_id - * Optional. An identifier for the User that is meaningful to the publisher. - * This attribute has a maximum length of 255 characters. - * @type bool $service_account - * Output only. Whether the user is an OAuth2 service account user. - * Service account users can only be added through the UI. - * @type string $orders_ui_local_time_zone - * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", - * used in the orders and line items UI for this User. If not provided, the UI - * then defaults to using the Network's timezone. This setting only affects - * the UI for this user and does not affect the timezone of any dates and - * times returned in API responses. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\UserMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `User` ID. - * - * Generated from protobuf field optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getUserId() - { - return isset($this->user_id) ? $this->user_id : 0; - } - - public function hasUserId() - { - return isset($this->user_id); - } - - public function clearUserId() - { - unset($this->user_id); - } - - /** - * Output only. `User` ID. - * - * Generated from protobuf field optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkInt64($var); - $this->user_id = $var; - - return $this; - } - - /** - * Required. The name of the User. It has a maximum length of 128 characters. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return isset($this->display_name) ? $this->display_name : ''; - } - - public function hasDisplayName() - { - return isset($this->display_name); - } - - public function clearDisplayName() - { - unset($this->display_name); - } - - /** - * Required. The name of the User. It has a maximum length of 128 characters. - * - * Generated from protobuf field optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The email or login of the User. In order to create a new user, - * you must already have a Google Account. - * - * Generated from protobuf field optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEmail() - { - return isset($this->email) ? $this->email : ''; - } - - public function hasEmail() - { - return isset($this->email); - } - - public function clearEmail() - { - unset($this->email); - } - - /** - * Required. The email or login of the User. In order to create a new user, - * you must already have a Google Account. - * - * Generated from protobuf field optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Required. The unique Role ID of the User. Roles that are created by Google - * will have negative IDs. - * - * Generated from protobuf field optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRole() - { - return isset($this->role) ? $this->role : ''; - } - - public function hasRole() - { - return isset($this->role); - } - - public function clearRole() - { - unset($this->role); - } - - /** - * Required. The unique Role ID of the User. Roles that are created by Google - * will have negative IDs. - * - * Generated from protobuf field optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkString($var, True); - $this->role = $var; - - return $this; - } - - /** - * Output only. Specifies whether or not the User is active. An inactive user - * cannot log in to the system or perform any operations. - * - * Generated from protobuf field optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getActive() - { - return isset($this->active) ? $this->active : false; - } - - public function hasActive() - { - return isset($this->active); - } - - public function clearActive() - { - unset($this->active); - } - - /** - * Output only. Specifies whether or not the User is active. An inactive user - * cannot log in to the system or perform any operations. - * - * Generated from protobuf field optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setActive($var) - { - GPBUtil::checkBool($var); - $this->active = $var; - - return $this; - } - - /** - * Optional. An identifier for the User that is meaningful to the publisher. - * This attribute has a maximum length of 255 characters. - * - * Generated from protobuf field optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalId() - { - return isset($this->external_id) ? $this->external_id : ''; - } - - public function hasExternalId() - { - return isset($this->external_id); - } - - public function clearExternalId() - { - unset($this->external_id); - } - - /** - * Optional. An identifier for the User that is meaningful to the publisher. - * This attribute has a maximum length of 255 characters. - * - * Generated from protobuf field optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalId($var) - { - GPBUtil::checkString($var, True); - $this->external_id = $var; - - return $this; - } - - /** - * Output only. Whether the user is an OAuth2 service account user. - * Service account users can only be added through the UI. - * - * Generated from protobuf field optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getServiceAccount() - { - return isset($this->service_account) ? $this->service_account : false; - } - - public function hasServiceAccount() - { - return isset($this->service_account); - } - - public function clearServiceAccount() - { - unset($this->service_account); - } - - /** - * Output only. Whether the user is an OAuth2 service account user. - * Service account users can only be added through the UI. - * - * Generated from protobuf field optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkBool($var); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", - * used in the orders and line items UI for this User. If not provided, the UI - * then defaults to using the Network's timezone. This setting only affects - * the UI for this user and does not affect the timezone of any dates and - * times returned in API responses. - * - * Generated from protobuf field optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrdersUiLocalTimeZone() - { - return isset($this->orders_ui_local_time_zone) ? $this->orders_ui_local_time_zone : ''; - } - - public function hasOrdersUiLocalTimeZone() - { - return isset($this->orders_ui_local_time_zone); - } - - public function clearOrdersUiLocalTimeZone() - { - unset($this->orders_ui_local_time_zone); - } - - /** - * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", - * used in the orders and line items UI for this User. If not provided, the UI - * then defaults to using the Network's timezone. This setting only affects - * the UI for this user and does not affect the timezone of any dates and - * times returned in API responses. - * - * Generated from protobuf field optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrdersUiLocalTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->orders_ui_local_time_zone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UserDomainTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UserDomainTargeting.php deleted file mode 100644 index 212d743108b0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UserDomainTargeting.php +++ /dev/null @@ -1,101 +0,0 @@ -google.ads.admanager.v1.UserDomainTargeting - */ -class UserDomainTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A list of user domains that should be targeted/included. - * - * Generated from protobuf field repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $targeted_user_domains; - /** - * Optional. A list of user domains that should be excluded. - * - * Generated from protobuf field repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $excluded_user_domains; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_user_domains - * Optional. A list of user domains that should be targeted/included. - * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_user_domains - * Optional. A list of user domains that should be excluded. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A list of user domains that should be targeted/included. - * - * Generated from protobuf field repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetedUserDomains() - { - return $this->targeted_user_domains; - } - - /** - * Optional. A list of user domains that should be targeted/included. - * - * Generated from protobuf field repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetedUserDomains($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->targeted_user_domains = $arr; - - return $this; - } - - /** - * Optional. A list of user domains that should be excluded. - * - * Generated from protobuf field repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedUserDomains() - { - return $this->excluded_user_domains; - } - - /** - * Optional. A list of user domains that should be excluded. - * - * Generated from protobuf field repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedUserDomains($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->excluded_user_domains = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPosition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPosition.php deleted file mode 100644 index f9158ddc4499..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPosition.php +++ /dev/null @@ -1,293 +0,0 @@ -google.ads.admanager.v1.VideoPosition - */ -class VideoPosition extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The index of the mid-roll to target. This field is ignored when - * targeting any video position (e.g. position_type) other than MIDROLL. - * - * Generated from protobuf field optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $midroll_index = null; - /** - * Optional. The index from the back of the pod of the mid-roll to target. - * This field is ignored when targeting any video position (e.g. - * position_type) other than MIDROLL or if targeting a specific midroll index - * (e.g. midroll_index != 0). - * - * Generated from protobuf field optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $reverse_midroll_index = null; - /** - * Optional. The video position within a pod to target. This field must be - * unset in order to target a specific video position (e.g. position_type), - * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id). - * - * Generated from protobuf field optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $pod_position = null; - /** - * Optional. The position within a video to target. A video ad can target a - * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll - * index. - * - * Generated from protobuf field optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $position_type = null; - /** - * Optional. The video bumper type to target. This field must be unset in - * order to target a specific video position (e.g. position_type), pod - * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id). - * - * Generated from protobuf field optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bumper_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $midroll_index - * Optional. The index of the mid-roll to target. This field is ignored when - * targeting any video position (e.g. position_type) other than MIDROLL. - * @type int|string $reverse_midroll_index - * Optional. The index from the back of the pod of the mid-roll to target. - * This field is ignored when targeting any video position (e.g. - * position_type) other than MIDROLL or if targeting a specific midroll index - * (e.g. midroll_index != 0). - * @type int|string $pod_position - * Optional. The video position within a pod to target. This field must be - * unset in order to target a specific video position (e.g. position_type), - * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id). - * @type int $position_type - * Optional. The position within a video to target. A video ad can target a - * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll - * index. - * @type int $bumper_type - * Optional. The video bumper type to target. This field must be unset in - * order to target a specific video position (e.g. position_type), pod - * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The index of the mid-roll to target. This field is ignored when - * targeting any video position (e.g. position_type) other than MIDROLL. - * - * Generated from protobuf field optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMidrollIndex() - { - return isset($this->midroll_index) ? $this->midroll_index : 0; - } - - public function hasMidrollIndex() - { - return isset($this->midroll_index); - } - - public function clearMidrollIndex() - { - unset($this->midroll_index); - } - - /** - * Optional. The index of the mid-roll to target. This field is ignored when - * targeting any video position (e.g. position_type) other than MIDROLL. - * - * Generated from protobuf field optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMidrollIndex($var) - { - GPBUtil::checkInt64($var); - $this->midroll_index = $var; - - return $this; - } - - /** - * Optional. The index from the back of the pod of the mid-roll to target. - * This field is ignored when targeting any video position (e.g. - * position_type) other than MIDROLL or if targeting a specific midroll index - * (e.g. midroll_index != 0). - * - * Generated from protobuf field optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getReverseMidrollIndex() - { - return isset($this->reverse_midroll_index) ? $this->reverse_midroll_index : 0; - } - - public function hasReverseMidrollIndex() - { - return isset($this->reverse_midroll_index); - } - - public function clearReverseMidrollIndex() - { - unset($this->reverse_midroll_index); - } - - /** - * Optional. The index from the back of the pod of the mid-roll to target. - * This field is ignored when targeting any video position (e.g. - * position_type) other than MIDROLL or if targeting a specific midroll index - * (e.g. midroll_index != 0). - * - * Generated from protobuf field optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setReverseMidrollIndex($var) - { - GPBUtil::checkInt64($var); - $this->reverse_midroll_index = $var; - - return $this; - } - - /** - * Optional. The video position within a pod to target. This field must be - * unset in order to target a specific video position (e.g. position_type), - * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id). - * - * Generated from protobuf field optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getPodPosition() - { - return isset($this->pod_position) ? $this->pod_position : 0; - } - - public function hasPodPosition() - { - return isset($this->pod_position); - } - - public function clearPodPosition() - { - unset($this->pod_position); - } - - /** - * Optional. The video position within a pod to target. This field must be - * unset in order to target a specific video position (e.g. position_type), - * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id). - * - * Generated from protobuf field optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setPodPosition($var) - { - GPBUtil::checkInt64($var); - $this->pod_position = $var; - - return $this; - } - - /** - * Optional. The position within a video to target. A video ad can target a - * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll - * index. - * - * Generated from protobuf field optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPositionType() - { - return isset($this->position_type) ? $this->position_type : 0; - } - - public function hasPositionType() - { - return isset($this->position_type); - } - - public function clearPositionType() - { - unset($this->position_type); - } - - /** - * Optional. The position within a video to target. A video ad can target a - * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll - * index. - * - * Generated from protobuf field optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPositionType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\VideoPositionEnum\VideoPosition::class); - $this->position_type = $var; - - return $this; - } - - /** - * Optional. The video bumper type to target. This field must be unset in - * order to target a specific video position (e.g. position_type), pod - * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id). - * - * Generated from protobuf field optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getBumperType() - { - return isset($this->bumper_type) ? $this->bumper_type : 0; - } - - public function hasBumperType() - { - return isset($this->bumper_type); - } - - public function clearBumperType() - { - unset($this->bumper_type); - } - - /** - * Optional. The video bumper type to target. This field must be unset in - * order to target a specific video position (e.g. position_type), pod - * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id). - * - * Generated from protobuf field optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setBumperType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TargetedVideoBumperTypeEnum\TargetedVideoBumperType::class); - $this->bumper_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum.php deleted file mode 100644 index 47a715a657b4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.VideoPositionEnum - */ -class VideoPositionEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\VideoPositionEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum/VideoPosition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum/VideoPosition.php deleted file mode 100644 index f4a100255757..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionEnum/VideoPosition.php +++ /dev/null @@ -1,78 +0,0 @@ -google.ads.admanager.v1.VideoPositionEnum.VideoPosition - */ -class VideoPosition -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum VIDEO_POSITION_UNSPECIFIED = 0; - */ - const VIDEO_POSITION_UNSPECIFIED = 0; - /** - * Allow ad placement at any position within the video. - * - * Generated from protobuf enum ALL = 1; - */ - const ALL = 1; - /** - * Target ad placement during the video. - * - * Generated from protobuf enum MIDROLL = 2; - */ - const MIDROLL = 2; - /** - * Target ad placement after the video ends. - * - * Generated from protobuf enum POSTROLL = 3; - */ - const POSTROLL = 3; - /** - * Target ad placement before the video starts. - * - * Generated from protobuf enum PREROLL = 4; - */ - const PREROLL = 4; - - private static $valueToName = [ - self::VIDEO_POSITION_UNSPECIFIED => 'VIDEO_POSITION_UNSPECIFIED', - self::ALL => 'ALL', - self::MIDROLL => 'MIDROLL', - self::POSTROLL => 'POSTROLL', - self::PREROLL => 'PREROLL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VideoPosition::class, \Google\Ads\AdManager\V1\VideoPositionEnum_VideoPosition::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionTargeting.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionTargeting.php deleted file mode 100644 index 6e289d450687..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/VideoPositionTargeting.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.VideoPositionTargeting - */ -class VideoPositionTargeting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A list of video position targeting criterion (applied with a - * logical AND). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $video_positions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\VideoPosition>|\Google\Protobuf\Internal\RepeatedField $video_positions - * Optional. A list of video position targeting criterion (applied with a - * logical AND). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A list of video position targeting criterion (applied with a - * logical AND). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVideoPositions() - { - return $this->video_positions; - } - - /** - * Optional. A list of video position targeting criterion (applied with a - * logical AND). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\VideoPosition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVideoPositions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\VideoPosition::class); - $this->video_positions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/create_ad_break.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/create_ad_break.php deleted file mode 100644 index 8e1f7e834f31..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/create_ad_break.php +++ /dev/null @@ -1,106 +0,0 @@ -setDuration($adBreakDuration); - $request = (new CreateAdBreakRequest()) - ->setParent($formattedParent) - ->setAdBreak($adBreak); - - // Call the API and handle any network failures. - try { - /** @var AdBreak $response */ - $response = $adBreakServiceClient->createAdBreak($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AdBreakServiceClient::liveStreamEventName( - '[NETWORK_CODE]', - '[LIVE_STREAM_EVENT]' - ); - - create_ad_break_sample($formattedParent); -} -// [END admanager_v1_generated_AdBreakService_CreateAdBreak_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/delete_ad_break.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/delete_ad_break.php deleted file mode 100644 index 7bcb84e5e72a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/delete_ad_break.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $adBreakServiceClient->deleteAdBreak($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AdBreakServiceClient::adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); - - delete_ad_break_sample($formattedName); -} -// [END admanager_v1_generated_AdBreakService_DeleteAdBreak_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/get_ad_break.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/get_ad_break.php deleted file mode 100644 index 4ccb018d1afb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/get_ad_break.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AdBreak $response */ - $response = $adBreakServiceClient->getAdBreak($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AdBreakServiceClient::adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); - - get_ad_break_sample($formattedName); -} -// [END admanager_v1_generated_AdBreakService_GetAdBreak_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/list_ad_breaks.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/list_ad_breaks.php deleted file mode 100644 index a8af2bbffe39..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/list_ad_breaks.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $adBreakServiceClient->listAdBreaks($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AdBreakServiceClient::liveStreamEventName( - '[NETWORK_CODE]', - '[LIVE_STREAM_EVENT]' - ); - - list_ad_breaks_sample($formattedParent); -} -// [END admanager_v1_generated_AdBreakService_ListAdBreaks_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/update_ad_break.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/update_ad_break.php deleted file mode 100644 index d24c5dbe91b6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdBreakServiceClient/update_ad_break.php +++ /dev/null @@ -1,68 +0,0 @@ -setDuration($adBreakDuration); - $updateMask = new FieldMask(); - $request = (new UpdateAdBreakRequest()) - ->setAdBreak($adBreak) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var AdBreak $response */ - $response = $adBreakServiceClient->updateAdBreak($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END admanager_v1_generated_AdBreakService_UpdateAdBreak_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php deleted file mode 100644 index a4fb2cc07a50..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AdUnit $response */ - $response = $adUnitServiceClient->getAdUnit($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AdUnitServiceClient::adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); - - get_ad_unit_sample($formattedName); -} -// [END admanager_v1_generated_AdUnitService_GetAdUnit_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php deleted file mode 100644 index 5a45bf71d949..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $adUnitServiceClient->listAdUnitSizes($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AdUnitServiceClient::networkName('[NETWORK_CODE]'); - - list_ad_unit_sizes_sample($formattedParent); -} -// [END admanager_v1_generated_AdUnitService_ListAdUnitSizes_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php deleted file mode 100644 index d2a371377641..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $adUnitServiceClient->listAdUnits($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AdUnitServiceClient::networkName('[NETWORK_CODE]'); - - list_ad_units_sample($formattedParent); -} -// [END admanager_v1_generated_AdUnitService_ListAdUnits_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/get_bandwidth_group.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/get_bandwidth_group.php deleted file mode 100644 index 50ca52d71282..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/get_bandwidth_group.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var BandwidthGroup $response */ - $response = $bandwidthGroupServiceClient->getBandwidthGroup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BandwidthGroupServiceClient::bandwidthGroupName( - '[NETWORK_CODE]', - '[BANDWIDTH_GROUP]' - ); - - get_bandwidth_group_sample($formattedName); -} -// [END admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/list_bandwidth_groups.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/list_bandwidth_groups.php deleted file mode 100644 index 0e1d0ae7a4c7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/BandwidthGroupServiceClient/list_bandwidth_groups.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $bandwidthGroupServiceClient->listBandwidthGroups($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BandwidthGroupServiceClient::networkName('[NETWORK_CODE]'); - - list_bandwidth_groups_sample($formattedParent); -} -// [END admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php deleted file mode 100644 index 6ae94b3f9a4b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Company $response */ - $response = $companyServiceClient->getCompany($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CompanyServiceClient::companyName('[NETWORK_CODE]', '[COMPANY]'); - - get_company_sample($formattedName); -} -// [END admanager_v1_generated_CompanyService_GetCompany_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php deleted file mode 100644 index 253a20403f3e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $companyServiceClient->listCompanies($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CompanyServiceClient::networkName('[NETWORK_CODE]'); - - list_companies_sample($formattedParent); -} -// [END admanager_v1_generated_CompanyService_ListCompanies_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php deleted file mode 100644 index 8e9d590e0b03..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomField $response */ - $response = $customFieldServiceClient->getCustomField($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CustomFieldServiceClient::customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); - - get_custom_field_sample($formattedName); -} -// [END admanager_v1_generated_CustomFieldService_GetCustomField_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php deleted file mode 100644 index 678d92867331..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $customFieldServiceClient->listCustomFields($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CustomFieldServiceClient::networkName('[NETWORK_CODE]'); - - list_custom_fields_sample($formattedParent); -} -// [END admanager_v1_generated_CustomFieldService_ListCustomFields_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php deleted file mode 100644 index 34d335ca95f7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomTargetingKey $response */ - $response = $customTargetingKeyServiceClient->getCustomTargetingKey($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CustomTargetingKeyServiceClient::customTargetingKeyName( - '[NETWORK_CODE]', - '[CUSTOM_TARGETING_KEY]' - ); - - get_custom_targeting_key_sample($formattedName); -} -// [END admanager_v1_generated_CustomTargetingKeyService_GetCustomTargetingKey_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php deleted file mode 100644 index e8e1fd9e9ef7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $customTargetingKeyServiceClient->listCustomTargetingKeys($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CustomTargetingKeyServiceClient::networkName('[NETWORK_CODE]'); - - list_custom_targeting_keys_sample($formattedParent); -} -// [END admanager_v1_generated_CustomTargetingKeyService_ListCustomTargetingKeys_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php deleted file mode 100644 index dfe2d94bcee6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomTargetingValue $response */ - $response = $customTargetingValueServiceClient->getCustomTargetingValue($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CustomTargetingValueServiceClient::customTargetingValueName( - '[NETWORK_CODE]', - '[CUSTOM_TARGETING_VALUE]' - ); - - get_custom_targeting_value_sample($formattedName); -} -// [END admanager_v1_generated_CustomTargetingValueService_GetCustomTargetingValue_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php deleted file mode 100644 index 66974a9b1bca..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $customTargetingValueServiceClient->listCustomTargetingValues($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CustomTargetingValueServiceClient::networkName('[NETWORK_CODE]'); - - list_custom_targeting_values_sample($formattedParent); -} -// [END admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/get_device_category.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/get_device_category.php deleted file mode 100644 index de71d3642ee3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/get_device_category.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DeviceCategory $response */ - $response = $deviceCategoryServiceClient->getDeviceCategory($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DeviceCategoryServiceClient::deviceCategoryName( - '[NETWORK_CODE]', - '[DEVICE_CATEGORY]' - ); - - get_device_category_sample($formattedName); -} -// [END admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/list_device_categories.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/list_device_categories.php deleted file mode 100644 index f436c287bf7c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/DeviceCategoryServiceClient/list_device_categories.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $deviceCategoryServiceClient->listDeviceCategories($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DeviceCategoryServiceClient::networkName('[NETWORK_CODE]'); - - list_device_categories_sample($formattedParent); -} -// [END admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php deleted file mode 100644 index 9dd762245173..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php +++ /dev/null @@ -1,87 +0,0 @@ -setParent($formattedRequestsParent) - ->setEntitySignalsMapping($requestsEntitySignalsMapping); - $requests = [$createEntitySignalsMappingRequest,]; - $request = (new BatchCreateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BatchCreateEntitySignalsMappingsResponse $response */ - $response = $entitySignalsMappingServiceClient->batchCreateEntitySignalsMappings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); - $formattedRequestsParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); - - batch_create_entity_signals_mappings_sample($formattedParent, $formattedRequestsParent); -} -// [END admanager_v1_generated_EntitySignalsMappingService_BatchCreateEntitySignalsMappings_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php deleted file mode 100644 index b7397611ba50..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php +++ /dev/null @@ -1,83 +0,0 @@ -setEntitySignalsMapping($requestsEntitySignalsMapping) - ->setUpdateMask($requestsUpdateMask); - $requests = [$updateEntitySignalsMappingRequest,]; - $request = (new BatchUpdateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BatchUpdateEntitySignalsMappingsResponse $response */ - $response = $entitySignalsMappingServiceClient->batchUpdateEntitySignalsMappings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); - - batch_update_entity_signals_mappings_sample($formattedParent); -} -// [END admanager_v1_generated_EntitySignalsMappingService_BatchUpdateEntitySignalsMappings_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php deleted file mode 100644 index 8db78bfc2418..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent) - ->setEntitySignalsMapping($entitySignalsMapping); - - // Call the API and handle any network failures. - try { - /** @var EntitySignalsMapping $response */ - $response = $entitySignalsMappingServiceClient->createEntitySignalsMapping($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); - - create_entity_signals_mapping_sample($formattedParent); -} -// [END admanager_v1_generated_EntitySignalsMappingService_CreateEntitySignalsMapping_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php deleted file mode 100644 index ca430d56c2ec..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EntitySignalsMapping $response */ - $response = $entitySignalsMappingServiceClient->getEntitySignalsMapping($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EntitySignalsMappingServiceClient::entitySignalsMappingName( - '[NETWORK_CODE]', - '[ENTITY_SIGNALS_MAPPING]' - ); - - get_entity_signals_mapping_sample($formattedName); -} -// [END admanager_v1_generated_EntitySignalsMappingService_GetEntitySignalsMapping_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php deleted file mode 100644 index e531966f2de3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $entitySignalsMappingServiceClient->listEntitySignalsMappings($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); - - list_entity_signals_mappings_sample($formattedParent); -} -// [END admanager_v1_generated_EntitySignalsMappingService_ListEntitySignalsMappings_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php deleted file mode 100644 index b408ce04bab7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php +++ /dev/null @@ -1,62 +0,0 @@ -setEntitySignalsMapping($entitySignalsMapping) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var EntitySignalsMapping $response */ - $response = $entitySignalsMappingServiceClient->updateEntitySignalsMapping($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END admanager_v1_generated_EntitySignalsMappingService_UpdateEntitySignalsMapping_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/get_geo_target.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/get_geo_target.php deleted file mode 100644 index 7a748ca4c2eb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/get_geo_target.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GeoTarget $response */ - $response = $geoTargetServiceClient->getGeoTarget($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GeoTargetServiceClient::geoTargetName('[NETWORK_CODE]', '[GEO_TARGET]'); - - get_geo_target_sample($formattedName); -} -// [END admanager_v1_generated_GeoTargetService_GetGeoTarget_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/list_geo_targets.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/list_geo_targets.php deleted file mode 100644 index bce9ace9b419..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/GeoTargetServiceClient/list_geo_targets.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $geoTargetServiceClient->listGeoTargets($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = GeoTargetServiceClient::networkName('[NETWORK_CODE]'); - - list_geo_targets_sample($formattedParent); -} -// [END admanager_v1_generated_GeoTargetService_ListGeoTargets_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php deleted file mode 100644 index f167972be97e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Network $response */ - $response = $networkServiceClient->getNetwork($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = NetworkServiceClient::networkName('[NETWORK_CODE]'); - - get_network_sample($formattedName); -} -// [END admanager_v1_generated_NetworkService_GetNetwork_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php deleted file mode 100644 index c52ae03e7d7d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php +++ /dev/null @@ -1,57 +0,0 @@ -listNetworks($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END admanager_v1_generated_NetworkService_ListNetworks_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/get_operating_system.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/get_operating_system.php deleted file mode 100644 index decd3841a5be..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/get_operating_system.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperatingSystem $response */ - $response = $operatingSystemServiceClient->getOperatingSystem($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = OperatingSystemServiceClient::operatingSystemName( - '[NETWORK_CODE]', - '[OPERATING_SYSTEM]' - ); - - get_operating_system_sample($formattedName); -} -// [END admanager_v1_generated_OperatingSystemService_GetOperatingSystem_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/list_operating_systems.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/list_operating_systems.php deleted file mode 100644 index 9c845a0c2a28..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemServiceClient/list_operating_systems.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $operatingSystemServiceClient->listOperatingSystems($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = OperatingSystemServiceClient::networkName('[NETWORK_CODE]'); - - list_operating_systems_sample($formattedParent); -} -// [END admanager_v1_generated_OperatingSystemService_ListOperatingSystems_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/get_operating_system_version.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/get_operating_system_version.php deleted file mode 100644 index 48880b58eb6c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/get_operating_system_version.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperatingSystemVersion $response */ - $response = $operatingSystemVersionServiceClient->getOperatingSystemVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = OperatingSystemVersionServiceClient::operatingSystemVersionName( - '[NETWORK_CODE]', - '[OPERATING_SYSTEM_VERSION]' - ); - - get_operating_system_version_sample($formattedName); -} -// [END admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/list_operating_system_versions.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/list_operating_system_versions.php deleted file mode 100644 index 07d8fbf7b264..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/OperatingSystemVersionServiceClient/list_operating_system_versions.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $operatingSystemVersionServiceClient->listOperatingSystemVersions($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = OperatingSystemVersionServiceClient::networkName('[NETWORK_CODE]'); - - list_operating_system_versions_sample($formattedParent); -} -// [END admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php deleted file mode 100644 index 1dfc30c7689d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Order $response */ - $response = $orderServiceClient->getOrder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = OrderServiceClient::orderName('[NETWORK_CODE]', '[ORDER]'); - - get_order_sample($formattedName); -} -// [END admanager_v1_generated_OrderService_GetOrder_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php deleted file mode 100644 index 8d4d9726ed99..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $orderServiceClient->listOrders($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = OrderServiceClient::networkName('[NETWORK_CODE]'); - - list_orders_sample($formattedParent); -} -// [END admanager_v1_generated_OrderService_ListOrders_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php deleted file mode 100644 index dfed470aa663..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Placement $response */ - $response = $placementServiceClient->getPlacement($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = PlacementServiceClient::placementName('[NETWORK_CODE]', '[PLACEMENT]'); - - get_placement_sample($formattedName); -} -// [END admanager_v1_generated_PlacementService_GetPlacement_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php deleted file mode 100644 index 51a2d36a2700..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $placementServiceClient->listPlacements($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = PlacementServiceClient::networkName('[NETWORK_CODE]'); - - list_placements_sample($formattedParent); -} -// [END admanager_v1_generated_PlacementService_ListPlacements_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/create_private_auction_deal.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/create_private_auction_deal.php deleted file mode 100644 index e1025105da9e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/create_private_auction_deal.php +++ /dev/null @@ -1,77 +0,0 @@ -setFloorPrice($privateAuctionDealFloorPrice); - $request = (new CreatePrivateAuctionDealRequest()) - ->setParent($formattedParent) - ->setPrivateAuctionDeal($privateAuctionDeal); - - // Call the API and handle any network failures. - try { - /** @var PrivateAuctionDeal $response */ - $response = $privateAuctionDealServiceClient->createPrivateAuctionDeal($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = PrivateAuctionDealServiceClient::networkName('[NETWORK_CODE]'); - - create_private_auction_deal_sample($formattedParent); -} -// [END admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/get_private_auction_deal.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/get_private_auction_deal.php deleted file mode 100644 index 5b03ce151c45..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/get_private_auction_deal.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PrivateAuctionDeal $response */ - $response = $privateAuctionDealServiceClient->getPrivateAuctionDeal($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = PrivateAuctionDealServiceClient::privateAuctionDealName( - '[NETWORK_CODE]', - '[PRIVATE_AUCTION_DEAL]' - ); - - get_private_auction_deal_sample($formattedName); -} -// [END admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/list_private_auction_deals.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/list_private_auction_deals.php deleted file mode 100644 index a87f0873fa2c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/list_private_auction_deals.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $privateAuctionDealServiceClient->listPrivateAuctionDeals($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = PrivateAuctionDealServiceClient::networkName('[NETWORK_CODE]'); - - list_private_auction_deals_sample($formattedParent); -} -// [END admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/update_private_auction_deal.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/update_private_auction_deal.php deleted file mode 100644 index b0cc6cd18fbd..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionDealServiceClient/update_private_auction_deal.php +++ /dev/null @@ -1,65 +0,0 @@ -setFloorPrice($privateAuctionDealFloorPrice); - $updateMask = new FieldMask(); - $request = (new UpdatePrivateAuctionDealRequest()) - ->setPrivateAuctionDeal($privateAuctionDeal) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var PrivateAuctionDeal $response */ - $response = $privateAuctionDealServiceClient->updatePrivateAuctionDeal($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END admanager_v1_generated_PrivateAuctionDealService_UpdatePrivateAuctionDeal_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/create_private_auction.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/create_private_auction.php deleted file mode 100644 index 7ca343e333b5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/create_private_auction.php +++ /dev/null @@ -1,80 +0,0 @@ -setDisplayName($privateAuctionDisplayName); - $request = (new CreatePrivateAuctionRequest()) - ->setParent($formattedParent) - ->setPrivateAuction($privateAuction); - - // Call the API and handle any network failures. - try { - /** @var PrivateAuction $response */ - $response = $privateAuctionServiceClient->createPrivateAuction($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = PrivateAuctionServiceClient::networkName('[NETWORK_CODE]'); - $privateAuctionDisplayName = '[DISPLAY_NAME]'; - - create_private_auction_sample($formattedParent, $privateAuctionDisplayName); -} -// [END admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/get_private_auction.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/get_private_auction.php deleted file mode 100644 index 19633d01a55a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/get_private_auction.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PrivateAuction $response */ - $response = $privateAuctionServiceClient->getPrivateAuction($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = PrivateAuctionServiceClient::privateAuctionName( - '[NETWORK_CODE]', - '[PRIVATE_AUCTION]' - ); - - get_private_auction_sample($formattedName); -} -// [END admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/list_private_auctions.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/list_private_auctions.php deleted file mode 100644 index a01af83e5165..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/list_private_auctions.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $privateAuctionServiceClient->listPrivateAuctions($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = PrivateAuctionServiceClient::networkName('[NETWORK_CODE]'); - - list_private_auctions_sample($formattedParent); -} -// [END admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/update_private_auction.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/update_private_auction.php deleted file mode 100644 index 7a6e7440c766..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PrivateAuctionServiceClient/update_private_auction.php +++ /dev/null @@ -1,76 +0,0 @@ -setDisplayName($privateAuctionDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdatePrivateAuctionRequest()) - ->setPrivateAuction($privateAuction) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var PrivateAuction $response */ - $response = $privateAuctionServiceClient->updatePrivateAuction($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $privateAuctionDisplayName = '[DISPLAY_NAME]'; - - update_private_auction_sample($privateAuctionDisplayName); -} -// [END admanager_v1_generated_PrivateAuctionService_UpdatePrivateAuction_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/get_programmatic_buyer.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/get_programmatic_buyer.php deleted file mode 100644 index a74e8a80ff57..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/get_programmatic_buyer.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ProgrammaticBuyer $response */ - $response = $programmaticBuyerServiceClient->getProgrammaticBuyer($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ProgrammaticBuyerServiceClient::programmaticBuyerName( - '[NETWORK_CODE]', - '[PROGRAMMATIC_BUYER]' - ); - - get_programmatic_buyer_sample($formattedName); -} -// [END admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/list_programmatic_buyers.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/list_programmatic_buyers.php deleted file mode 100644 index fc6f1fd020c6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ProgrammaticBuyerServiceClient/list_programmatic_buyers.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $programmaticBuyerServiceClient->listProgrammaticBuyers($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ProgrammaticBuyerServiceClient::networkName('[NETWORK_CODE]'); - - list_programmatic_buyers_sample($formattedParent); -} -// [END admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php deleted file mode 100644 index 51fe7657f73e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php +++ /dev/null @@ -1,105 +0,0 @@ -setDimensions($reportReportDefinitionDimensions) - ->setMetrics($reportReportDefinitionMetrics) - ->setDateRange($reportReportDefinitionDateRange) - ->setReportType($reportReportDefinitionReportType); - $report = (new Report()) - ->setReportDefinition($reportReportDefinition); - $request = (new CreateReportRequest()) - ->setParent($formattedParent) - ->setReport($report); - - // Call the API and handle any network failures. - try { - /** @var Report $response */ - $response = $reportServiceClient->createReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ReportServiceClient::networkName('[NETWORK_CODE]'); - $reportReportDefinitionDimensionsElement = Dimension::DIMENSION_UNSPECIFIED; - $reportReportDefinitionMetricsElement = Metric::METRIC_UNSPECIFIED; - $reportReportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - - create_report_sample( - $formattedParent, - $reportReportDefinitionDimensionsElement, - $reportReportDefinitionMetricsElement, - $reportReportDefinitionReportType - ); -} -// [END admanager_v1_generated_ReportService_CreateReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php deleted file mode 100644 index c26575c18c05..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php +++ /dev/null @@ -1,60 +0,0 @@ -fetchReportResultRows($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END admanager_v1_generated_ReportService_FetchReportResultRows_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php deleted file mode 100644 index 00f44ba6e72e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Report $response */ - $response = $reportServiceClient->getReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ReportServiceClient::reportName('[NETWORK_CODE]', '[REPORT]'); - - get_report_sample($formattedName); -} -// [END admanager_v1_generated_ReportService_GetReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php deleted file mode 100644 index e222727eac51..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $reportServiceClient->listReports($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ReportServiceClient::networkName('[NETWORK_CODE]'); - - list_reports_sample($formattedParent); -} -// [END admanager_v1_generated_ReportService_ListReports_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php deleted file mode 100644 index 0177f6b826bd..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $reportServiceClient->runReport($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var RunReportResponse $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ReportServiceClient::reportName('[NETWORK_CODE]', '[REPORT]'); - - run_report_sample($formattedName); -} -// [END admanager_v1_generated_ReportService_RunReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php deleted file mode 100644 index 662d7eb805e8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php +++ /dev/null @@ -1,101 +0,0 @@ -setDimensions($reportReportDefinitionDimensions) - ->setMetrics($reportReportDefinitionMetrics) - ->setDateRange($reportReportDefinitionDateRange) - ->setReportType($reportReportDefinitionReportType); - $report = (new Report()) - ->setReportDefinition($reportReportDefinition); - $updateMask = new FieldMask(); - $request = (new UpdateReportRequest()) - ->setReport($report) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Report $response */ - $response = $reportServiceClient->updateReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $reportReportDefinitionDimensionsElement = Dimension::DIMENSION_UNSPECIFIED; - $reportReportDefinitionMetricsElement = Metric::METRIC_UNSPECIFIED; - $reportReportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - - update_report_sample( - $reportReportDefinitionDimensionsElement, - $reportReportDefinitionMetricsElement, - $reportReportDefinitionReportType - ); -} -// [END admanager_v1_generated_ReportService_UpdateReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php deleted file mode 100644 index 41c4df415b21..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Role $response */ - $response = $roleServiceClient->getRole($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RoleServiceClient::roleName('[NETWORK_CODE]', '[ROLE]'); - - get_role_sample($formattedName); -} -// [END admanager_v1_generated_RoleService_GetRole_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php deleted file mode 100644 index 834817ae3fb3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $roleServiceClient->listRoles($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RoleServiceClient::networkName('[NETWORK_CODE]'); - - list_roles_sample($formattedParent); -} -// [END admanager_v1_generated_RoleService_ListRoles_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php deleted file mode 100644 index 8b33e12264f7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var TaxonomyCategory $response */ - $response = $taxonomyCategoryServiceClient->getTaxonomyCategory($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = TaxonomyCategoryServiceClient::taxonomyCategoryName( - '[NETWORK_CODE]', - '[TAXONOMY_CATEGORY]' - ); - - get_taxonomy_category_sample($formattedName); -} -// [END admanager_v1_generated_TaxonomyCategoryService_GetTaxonomyCategory_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php deleted file mode 100644 index 9dd400d86e8d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $taxonomyCategoryServiceClient->listTaxonomyCategories($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = TaxonomyCategoryServiceClient::networkName('[NETWORK_CODE]'); - - list_taxonomy_categories_sample($formattedParent); -} -// [END admanager_v1_generated_TaxonomyCategoryService_ListTaxonomyCategories_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php deleted file mode 100644 index 2ba3b53ca6a9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var User $response */ - $response = $userServiceClient->getUser($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = UserServiceClient::userName('[NETWORK_CODE]', '[USER]'); - - get_user_sample($formattedName); -} -// [END admanager_v1_generated_UserService_GetUser_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdBreakServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdBreakServiceClient.php deleted file mode 100644 index 00c55b5e896a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdBreakServiceClient.php +++ /dev/null @@ -1,435 +0,0 @@ - createAdBreakAsync(CreateAdBreakRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAdBreakAsync(DeleteAdBreakRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAdBreakAsync(GetAdBreakRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAdBreaksAsync(ListAdBreaksRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAdBreakAsync(UpdateAdBreakRequest $request, array $optionalArgs = []) - */ -final class AdBreakServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.AdBreakService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/ad_break_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/ad_break_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/ad_break_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a ad_break - * resource. - * - * @param string $networkCode - * @param string $assetKey - * @param string $adBreak - * - * @return string The formatted ad_break resource. - */ - public static function adBreakName(string $networkCode, string $assetKey, string $adBreak): string - { - return self::getPathTemplate('adBreak')->render([ - 'network_code' => $networkCode, - 'asset_key' => $assetKey, - 'ad_break' => $adBreak, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * live_stream_event resource. - * - * @param string $networkCode - * @param string $liveStreamEvent - * - * @return string The formatted live_stream_event resource. - */ - public static function liveStreamEventName(string $networkCode, string $liveStreamEvent): string - { - return self::getPathTemplate('liveStreamEvent')->render([ - 'network_code' => $networkCode, - 'live_stream_event' => $liveStreamEvent, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - adBreak: networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break} - * - liveStreamEvent: networks/{network_code}/liveStreamEvents/{live_stream_event} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\AdBreakServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new AdBreakServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to create an `AdBreak` object. - * - * Informs DAI of an upcoming ad break for a live stream event, with an - * optional expected start time. DAI will begin decisioning ads for the break - * shortly before the expected start time, if provided. Each live stream - * event can only have one incomplete ad break at any given time. The next ad - * break can be scheduled after the previous ad break has started serving, - * indicated by its state being - * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], - * or it has been deleted. - * - * This method cannot be used if the `LiveStreamEvent` has - * [prefetching ad breaks - * enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) - * or the event is not active. If a `LiveStreamEvent` is deactivated after - * creating an ad break and before the ad break is complete, the ad break - * is discarded. - * - * An ad break's state is complete when the following occurs: - * - Full service DAI: after a matching ad break shows in the - * `LiveStreamEvent` manifest only when the ad break has started decisioning. - * - Pod Serving: after the ad break is requested using the ad break ID or - * break sequence. - * - * The async variant is {@see AdBreakServiceClient::createAdBreakAsync()} . - * - * @example samples/V1/AdBreakServiceClient/create_ad_break.php - * - * @param CreateAdBreakRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AdBreak - * - * @throws ApiException Thrown if the API call fails. - */ - public function createAdBreak(CreateAdBreakRequest $request, array $callOptions = []): AdBreak - { - return $this->startApiCall('CreateAdBreak', $request, $callOptions)->wait(); - } - - /** - * API to delete an `AdBreak` object. - * - * Deletes and cancels an incomplete ad break, mitigating the need to wait - * for the current break to serve before recreating an ad break. You can - * delete an ad break that has not started serving or seen in manifests, - * indicated by its state being - * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] - * or - * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. - * - * The async variant is {@see AdBreakServiceClient::deleteAdBreakAsync()} . - * - * @example samples/V1/AdBreakServiceClient/delete_ad_break.php - * - * @param DeleteAdBreakRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteAdBreak(DeleteAdBreakRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAdBreak', $request, $callOptions)->wait(); - } - - /** - * API to retrieve an `AdBreak` object. - * - * Query an ad break by its resource name or custom asset key. Check the - * resource's `breakState` field to determine its state. - * - * The async variant is {@see AdBreakServiceClient::getAdBreakAsync()} . - * - * @example samples/V1/AdBreakServiceClient/get_ad_break.php - * - * @param GetAdBreakRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AdBreak - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAdBreak(GetAdBreakRequest $request, array $callOptions = []): AdBreak - { - return $this->startApiCall('GetAdBreak', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `AdBreak` objects. - * - * By default, when no `orderBy` query parameter is specified, ad breaks are - * ordered reverse chronologically. However, ad breaks with a 'breakState' of - * 'SCHEDULED' or 'DECISIONED' are prioritized and appear first. - * - * The async variant is {@see AdBreakServiceClient::listAdBreaksAsync()} . - * - * @example samples/V1/AdBreakServiceClient/list_ad_breaks.php - * - * @param ListAdBreaksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAdBreaks(ListAdBreaksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAdBreaks', $request, $callOptions); - } - - /** - * API to update an `AdBreak` object. - * - * Modify an ad break when its state is - * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED]. - * - * The async variant is {@see AdBreakServiceClient::updateAdBreakAsync()} . - * - * @example samples/V1/AdBreakServiceClient/update_ad_break.php - * - * @param UpdateAdBreakRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AdBreak - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateAdBreak(UpdateAdBreakRequest $request, array $callOptions = []): AdBreak - { - return $this->startApiCall('UpdateAdBreak', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php deleted file mode 100644 index 2344bf4c6012..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php +++ /dev/null @@ -1,337 +0,0 @@ - getAdUnitAsync(GetAdUnitRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAdUnitSizesAsync(ListAdUnitSizesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAdUnitsAsync(ListAdUnitsRequest $request, array $optionalArgs = []) - */ -final class AdUnitServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.AdUnitService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/ad_unit_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/ad_unit_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/ad_unit_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a ad_unit - * resource. - * - * @param string $networkCode - * @param string $adUnit - * - * @return string The formatted ad_unit resource. - */ - public static function adUnitName(string $networkCode, string $adUnit): string - { - return self::getPathTemplate('adUnit')->render([ - 'network_code' => $networkCode, - 'ad_unit' => $adUnit, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - adUnit: networks/{network_code}/adUnits/{ad_unit} - * - network: networks/{network_code} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\AdUnitServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new AdUnitServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve an AdUnit object. - * - * The async variant is {@see AdUnitServiceClient::getAdUnitAsync()} . - * - * @example samples/V1/AdUnitServiceClient/get_ad_unit.php - * - * @param GetAdUnitRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AdUnit - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAdUnit(GetAdUnitRequest $request, array $callOptions = []): AdUnit - { - return $this->startApiCall('GetAdUnit', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of AdUnitSize objects. - * - * The async variant is {@see AdUnitServiceClient::listAdUnitSizesAsync()} . - * - * @example samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php - * - * @param ListAdUnitSizesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAdUnitSizes(ListAdUnitSizesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAdUnitSizes', $request, $callOptions); - } - - /** - * API to retrieve a list of AdUnit objects. - * - * The async variant is {@see AdUnitServiceClient::listAdUnitsAsync()} . - * - * @example samples/V1/AdUnitServiceClient/list_ad_units.php - * - * @param ListAdUnitsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAdUnits(ListAdUnitsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAdUnits', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BandwidthGroupServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BandwidthGroupServiceClient.php deleted file mode 100644 index 57bbd0ebc78d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/BandwidthGroupServiceClient.php +++ /dev/null @@ -1,311 +0,0 @@ - getBandwidthGroupAsync(GetBandwidthGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBandwidthGroupsAsync(ListBandwidthGroupsRequest $request, array $optionalArgs = []) - */ -final class BandwidthGroupServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.BandwidthGroupService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/bandwidth_group_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/bandwidth_group_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/bandwidth_group_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * bandwidth_group resource. - * - * @param string $networkCode - * @param string $bandwidthGroup - * - * @return string The formatted bandwidth_group resource. - */ - public static function bandwidthGroupName(string $networkCode, string $bandwidthGroup): string - { - return self::getPathTemplate('bandwidthGroup')->render([ - 'network_code' => $networkCode, - 'bandwidth_group' => $bandwidthGroup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - bandwidthGroup: networks/{network_code}/bandwidthGroups/{bandwidth_group} - * - network: networks/{network_code} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\BandwidthGroupServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new BandwidthGroupServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `BandwidthGroup` object. - * - * The async variant is - * {@see BandwidthGroupServiceClient::getBandwidthGroupAsync()} . - * - * @example samples/V1/BandwidthGroupServiceClient/get_bandwidth_group.php - * - * @param GetBandwidthGroupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BandwidthGroup - * - * @throws ApiException Thrown if the API call fails. - */ - public function getBandwidthGroup(GetBandwidthGroupRequest $request, array $callOptions = []): BandwidthGroup - { - return $this->startApiCall('GetBandwidthGroup', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `BandwidthGroup` objects. - * - * The async variant is - * {@see BandwidthGroupServiceClient::listBandwidthGroupsAsync()} . - * - * @example samples/V1/BandwidthGroupServiceClient/list_bandwidth_groups.php - * - * @param ListBandwidthGroupsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listBandwidthGroups(ListBandwidthGroupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBandwidthGroups', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php deleted file mode 100644 index eb536b95549c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php +++ /dev/null @@ -1,309 +0,0 @@ - getCompanyAsync(GetCompanyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCompaniesAsync(ListCompaniesRequest $request, array $optionalArgs = []) - */ -final class CompanyServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.CompanyService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/company_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/company_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/company_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a company - * resource. - * - * @param string $networkCode - * @param string $company - * - * @return string The formatted company resource. - */ - public static function companyName(string $networkCode, string $company): string - { - return self::getPathTemplate('company')->render([ - 'network_code' => $networkCode, - 'company' => $company, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - company: networks/{network_code}/companies/{company} - * - network: networks/{network_code} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\CompanyServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new CompanyServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `Company` object. - * - * The async variant is {@see CompanyServiceClient::getCompanyAsync()} . - * - * @example samples/V1/CompanyServiceClient/get_company.php - * - * @param GetCompanyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Company - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCompany(GetCompanyRequest $request, array $callOptions = []): Company - { - return $this->startApiCall('GetCompany', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `Company` objects. - * - * The async variant is {@see CompanyServiceClient::listCompaniesAsync()} . - * - * @example samples/V1/CompanyServiceClient/list_companies.php - * - * @param ListCompaniesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCompanies(ListCompaniesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCompanies', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php deleted file mode 100644 index 64ebc3671e68..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php +++ /dev/null @@ -1,485 +0,0 @@ - batchActivateCustomFieldsAsync(BatchActivateCustomFieldsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchCreateCustomFieldsAsync(BatchCreateCustomFieldsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchDeactivateCustomFieldsAsync(BatchDeactivateCustomFieldsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchUpdateCustomFieldsAsync(BatchUpdateCustomFieldsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomFieldAsync(CreateCustomFieldRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomFieldAsync(GetCustomFieldRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomFieldsAsync(ListCustomFieldsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCustomFieldAsync(UpdateCustomFieldRequest $request, array $optionalArgs = []) - */ -final class CustomFieldServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.CustomFieldService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/custom_field_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/custom_field_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/custom_field_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a custom_field - * resource. - * - * @param string $networkCode - * @param string $customField - * - * @return string The formatted custom_field resource. - */ - public static function customFieldName(string $networkCode, string $customField): string - { - return self::getPathTemplate('customField')->render([ - 'network_code' => $networkCode, - 'custom_field' => $customField, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - customField: networks/{network_code}/customFields/{custom_field} - * - network: networks/{network_code} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\CustomFieldServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new CustomFieldServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Activates a list of `CustomField` objects. - * - * The async variant is - * {@see CustomFieldServiceClient::batchActivateCustomFieldsAsync()} . - * - * @example samples/V1/CustomFieldServiceClient/batch_activate_custom_fields.php - * - * @param BatchActivateCustomFieldsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchActivateCustomFieldsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchActivateCustomFields(BatchActivateCustomFieldsRequest $request, array $callOptions = []): BatchActivateCustomFieldsResponse - { - return $this->startApiCall('BatchActivateCustomFields', $request, $callOptions)->wait(); - } - - /** - * API to batch create `CustomField` objects. - * - * The async variant is - * {@see CustomFieldServiceClient::batchCreateCustomFieldsAsync()} . - * - * @example samples/V1/CustomFieldServiceClient/batch_create_custom_fields.php - * - * @param BatchCreateCustomFieldsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchCreateCustomFieldsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchCreateCustomFields(BatchCreateCustomFieldsRequest $request, array $callOptions = []): BatchCreateCustomFieldsResponse - { - return $this->startApiCall('BatchCreateCustomFields', $request, $callOptions)->wait(); - } - - /** - * Deactivates a list of `CustomField` objects. - * - * The async variant is - * {@see CustomFieldServiceClient::batchDeactivateCustomFieldsAsync()} . - * - * @example samples/V1/CustomFieldServiceClient/batch_deactivate_custom_fields.php - * - * @param BatchDeactivateCustomFieldsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchDeactivateCustomFieldsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchDeactivateCustomFields(BatchDeactivateCustomFieldsRequest $request, array $callOptions = []): BatchDeactivateCustomFieldsResponse - { - return $this->startApiCall('BatchDeactivateCustomFields', $request, $callOptions)->wait(); - } - - /** - * API to batch update `CustomField` objects. - * - * The async variant is - * {@see CustomFieldServiceClient::batchUpdateCustomFieldsAsync()} . - * - * @example samples/V1/CustomFieldServiceClient/batch_update_custom_fields.php - * - * @param BatchUpdateCustomFieldsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchUpdateCustomFieldsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchUpdateCustomFields(BatchUpdateCustomFieldsRequest $request, array $callOptions = []): BatchUpdateCustomFieldsResponse - { - return $this->startApiCall('BatchUpdateCustomFields', $request, $callOptions)->wait(); - } - - /** - * API to create a `CustomField` object. - * - * The async variant is {@see CustomFieldServiceClient::createCustomFieldAsync()} . - * - * @example samples/V1/CustomFieldServiceClient/create_custom_field.php - * - * @param CreateCustomFieldRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomField - * - * @throws ApiException Thrown if the API call fails. - */ - public function createCustomField(CreateCustomFieldRequest $request, array $callOptions = []): CustomField - { - return $this->startApiCall('CreateCustomField', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a `CustomField` object. - * - * The async variant is {@see CustomFieldServiceClient::getCustomFieldAsync()} . - * - * @example samples/V1/CustomFieldServiceClient/get_custom_field.php - * - * @param GetCustomFieldRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomField - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCustomField(GetCustomFieldRequest $request, array $callOptions = []): CustomField - { - return $this->startApiCall('GetCustomField', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `CustomField` objects. - * - * The async variant is {@see CustomFieldServiceClient::listCustomFieldsAsync()} . - * - * @example samples/V1/CustomFieldServiceClient/list_custom_fields.php - * - * @param ListCustomFieldsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCustomFields(ListCustomFieldsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomFields', $request, $callOptions); - } - - /** - * API to update a `CustomField` object. - * - * The async variant is {@see CustomFieldServiceClient::updateCustomFieldAsync()} . - * - * @example samples/V1/CustomFieldServiceClient/update_custom_field.php - * - * @param UpdateCustomFieldRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomField - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateCustomField(UpdateCustomFieldRequest $request, array $callOptions = []): CustomField - { - return $this->startApiCall('UpdateCustomField', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php deleted file mode 100644 index 79c9df7eb220..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php +++ /dev/null @@ -1,311 +0,0 @@ - getCustomTargetingKeyAsync(GetCustomTargetingKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomTargetingKeysAsync(ListCustomTargetingKeysRequest $request, array $optionalArgs = []) - */ -final class CustomTargetingKeyServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.CustomTargetingKeyService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/custom_targeting_key_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/custom_targeting_key_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/custom_targeting_key_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_targeting_key resource. - * - * @param string $networkCode - * @param string $customTargetingKey - * - * @return string The formatted custom_targeting_key resource. - */ - public static function customTargetingKeyName(string $networkCode, string $customTargetingKey): string - { - return self::getPathTemplate('customTargetingKey')->render([ - 'network_code' => $networkCode, - 'custom_targeting_key' => $customTargetingKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - customTargetingKey: networks/{network_code}/customTargetingKeys/{custom_targeting_key} - * - network: networks/{network_code} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\CustomTargetingKeyServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new CustomTargetingKeyServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `CustomTargetingKey` object. - * - * The async variant is - * {@see CustomTargetingKeyServiceClient::getCustomTargetingKeyAsync()} . - * - * @example samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php - * - * @param GetCustomTargetingKeyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomTargetingKey - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCustomTargetingKey(GetCustomTargetingKeyRequest $request, array $callOptions = []): CustomTargetingKey - { - return $this->startApiCall('GetCustomTargetingKey', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `CustomTargetingKey` objects. - * - * The async variant is - * {@see CustomTargetingKeyServiceClient::listCustomTargetingKeysAsync()} . - * - * @example samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php - * - * @param ListCustomTargetingKeysRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCustomTargetingKeys(ListCustomTargetingKeysRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomTargetingKeys', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php deleted file mode 100644 index f26f8c1d7a4a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php +++ /dev/null @@ -1,311 +0,0 @@ - getCustomTargetingValueAsync(GetCustomTargetingValueRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomTargetingValuesAsync(ListCustomTargetingValuesRequest $request, array $optionalArgs = []) - */ -final class CustomTargetingValueServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.CustomTargetingValueService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/custom_targeting_value_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/custom_targeting_value_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/custom_targeting_value_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_targeting_value resource. - * - * @param string $networkCode - * @param string $customTargetingValue - * - * @return string The formatted custom_targeting_value resource. - */ - public static function customTargetingValueName(string $networkCode, string $customTargetingValue): string - { - return self::getPathTemplate('customTargetingValue')->render([ - 'network_code' => $networkCode, - 'custom_targeting_value' => $customTargetingValue, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - customTargetingValue: networks/{network_code}/customTargetingValues/{custom_targeting_value} - * - network: networks/{network_code} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\CustomTargetingValueServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new CustomTargetingValueServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `CustomTargetingValue` object. - * - * The async variant is - * {@see CustomTargetingValueServiceClient::getCustomTargetingValueAsync()} . - * - * @example samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php - * - * @param GetCustomTargetingValueRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomTargetingValue - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCustomTargetingValue(GetCustomTargetingValueRequest $request, array $callOptions = []): CustomTargetingValue - { - return $this->startApiCall('GetCustomTargetingValue', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `CustomTargetingValue` objects. - * - * The async variant is - * {@see CustomTargetingValueServiceClient::listCustomTargetingValuesAsync()} . - * - * @example samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php - * - * @param ListCustomTargetingValuesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCustomTargetingValues(ListCustomTargetingValuesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomTargetingValues', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCategoryServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCategoryServiceClient.php deleted file mode 100644 index 5ca8845393d8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/DeviceCategoryServiceClient.php +++ /dev/null @@ -1,311 +0,0 @@ - getDeviceCategoryAsync(GetDeviceCategoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDeviceCategoriesAsync(ListDeviceCategoriesRequest $request, array $optionalArgs = []) - */ -final class DeviceCategoryServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.DeviceCategoryService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/device_category_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/device_category_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/device_category_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * device_category resource. - * - * @param string $networkCode - * @param string $deviceCategory - * - * @return string The formatted device_category resource. - */ - public static function deviceCategoryName(string $networkCode, string $deviceCategory): string - { - return self::getPathTemplate('deviceCategory')->render([ - 'network_code' => $networkCode, - 'device_category' => $deviceCategory, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - deviceCategory: networks/{network_code}/deviceCategories/{device_category} - * - network: networks/{network_code} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\DeviceCategoryServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DeviceCategoryServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `DeviceCategory` object. - * - * The async variant is - * {@see DeviceCategoryServiceClient::getDeviceCategoryAsync()} . - * - * @example samples/V1/DeviceCategoryServiceClient/get_device_category.php - * - * @param GetDeviceCategoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeviceCategory - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDeviceCategory(GetDeviceCategoryRequest $request, array $callOptions = []): DeviceCategory - { - return $this->startApiCall('GetDeviceCategory', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `DeviceCategory` objects. - * - * The async variant is - * {@see DeviceCategoryServiceClient::listDeviceCategoriesAsync()} . - * - * @example samples/V1/DeviceCategoryServiceClient/list_device_categories.php - * - * @param ListDeviceCategoriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDeviceCategories(ListDeviceCategoriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDeviceCategories', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php deleted file mode 100644 index c050851a2420..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php +++ /dev/null @@ -1,431 +0,0 @@ - batchCreateEntitySignalsMappingsAsync(BatchCreateEntitySignalsMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchUpdateEntitySignalsMappingsAsync(BatchUpdateEntitySignalsMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEntitySignalsMappingAsync(CreateEntitySignalsMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEntitySignalsMappingAsync(GetEntitySignalsMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEntitySignalsMappingsAsync(ListEntitySignalsMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEntitySignalsMappingAsync(UpdateEntitySignalsMappingRequest $request, array $optionalArgs = []) - */ -final class EntitySignalsMappingServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.EntitySignalsMappingService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/entity_signals_mapping_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/entity_signals_mapping_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/entity_signals_mapping_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * entity_signals_mapping resource. - * - * @param string $networkCode - * @param string $entitySignalsMapping - * - * @return string The formatted entity_signals_mapping resource. - */ - public static function entitySignalsMappingName(string $networkCode, string $entitySignalsMapping): string - { - return self::getPathTemplate('entitySignalsMapping')->render([ - 'network_code' => $networkCode, - 'entity_signals_mapping' => $entitySignalsMapping, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - entitySignalsMapping: networks/{network_code}/entitySignalsMappings/{entity_signals_mapping} - * - network: networks/{network_code} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\EntitySignalsMappingServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new EntitySignalsMappingServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to batch create `EntitySignalsMapping` objects. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::batchCreateEntitySignalsMappingsAsync()} - * . - * - * @example samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php - * - * @param BatchCreateEntitySignalsMappingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchCreateEntitySignalsMappingsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchCreateEntitySignalsMappings(BatchCreateEntitySignalsMappingsRequest $request, array $callOptions = []): BatchCreateEntitySignalsMappingsResponse - { - return $this->startApiCall('BatchCreateEntitySignalsMappings', $request, $callOptions)->wait(); - } - - /** - * API to batch update `EntitySignalsMapping` objects. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::batchUpdateEntitySignalsMappingsAsync()} - * . - * - * @example samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php - * - * @param BatchUpdateEntitySignalsMappingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchUpdateEntitySignalsMappingsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchUpdateEntitySignalsMappings(BatchUpdateEntitySignalsMappingsRequest $request, array $callOptions = []): BatchUpdateEntitySignalsMappingsResponse - { - return $this->startApiCall('BatchUpdateEntitySignalsMappings', $request, $callOptions)->wait(); - } - - /** - * API to create an `EntitySignalsMapping` object. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::createEntitySignalsMappingAsync()} . - * - * @example samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php - * - * @param CreateEntitySignalsMappingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EntitySignalsMapping - * - * @throws ApiException Thrown if the API call fails. - */ - public function createEntitySignalsMapping(CreateEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping - { - return $this->startApiCall('CreateEntitySignalsMapping', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a `EntitySignalsMapping` object. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::getEntitySignalsMappingAsync()} . - * - * @example samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php - * - * @param GetEntitySignalsMappingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EntitySignalsMapping - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEntitySignalsMapping(GetEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping - { - return $this->startApiCall('GetEntitySignalsMapping', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `EntitySignalsMapping` objects. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::listEntitySignalsMappingsAsync()} . - * - * @example samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php - * - * @param ListEntitySignalsMappingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listEntitySignalsMappings(ListEntitySignalsMappingsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEntitySignalsMappings', $request, $callOptions); - } - - /** - * API to update an `EntitySignalsMapping` object. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::updateEntitySignalsMappingAsync()} . - * - * @example samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php - * - * @param UpdateEntitySignalsMappingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EntitySignalsMapping - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateEntitySignalsMapping(UpdateEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping - { - return $this->startApiCall('UpdateEntitySignalsMapping', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/GeoTargetServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/GeoTargetServiceClient.php deleted file mode 100644 index 850c8a4033d6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/GeoTargetServiceClient.php +++ /dev/null @@ -1,309 +0,0 @@ - getGeoTargetAsync(GetGeoTargetRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGeoTargetsAsync(ListGeoTargetsRequest $request, array $optionalArgs = []) - */ -final class GeoTargetServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.GeoTargetService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/geo_target_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/geo_target_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/geo_target_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a geo_target - * resource. - * - * @param string $networkCode - * @param string $geoTarget - * - * @return string The formatted geo_target resource. - */ - public static function geoTargetName(string $networkCode, string $geoTarget): string - { - return self::getPathTemplate('geoTarget')->render([ - 'network_code' => $networkCode, - 'geo_target' => $geoTarget, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - geoTarget: networks/{network_code}/geoTargets/{geo_target} - * - network: networks/{network_code} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\GeoTargetServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new GeoTargetServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `GeoTarget` object. - * - * The async variant is {@see GeoTargetServiceClient::getGeoTargetAsync()} . - * - * @example samples/V1/GeoTargetServiceClient/get_geo_target.php - * - * @param GetGeoTargetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GeoTarget - * - * @throws ApiException Thrown if the API call fails. - */ - public function getGeoTarget(GetGeoTargetRequest $request, array $callOptions = []): GeoTarget - { - return $this->startApiCall('GetGeoTarget', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `GeoTarget` objects. - * - * The async variant is {@see GeoTargetServiceClient::listGeoTargetsAsync()} . - * - * @example samples/V1/GeoTargetServiceClient/list_geo_targets.php - * - * @param ListGeoTargetsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listGeoTargets(ListGeoTargetsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGeoTargets', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php deleted file mode 100644 index 37b944c91f1a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php +++ /dev/null @@ -1,291 +0,0 @@ - getNetworkAsync(GetNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNetworksAsync(ListNetworksRequest $request, array $optionalArgs = []) - */ -final class NetworkServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.NetworkService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/network_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/network_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/network_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\NetworkServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new NetworkServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a Network object. - * - * The async variant is {@see NetworkServiceClient::getNetworkAsync()} . - * - * @example samples/V1/NetworkServiceClient/get_network.php - * - * @param GetNetworkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Network - * - * @throws ApiException Thrown if the API call fails. - */ - public function getNetwork(GetNetworkRequest $request, array $callOptions = []): Network - { - return $this->startApiCall('GetNetwork', $request, $callOptions)->wait(); - } - - /** - * API to retrieve all the networks the current user has access to. - * - * The async variant is {@see NetworkServiceClient::listNetworksAsync()} . - * - * @example samples/V1/NetworkServiceClient/list_networks.php - * - * @param ListNetworksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListNetworksResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listNetworks(ListNetworksRequest $request, array $callOptions = []): ListNetworksResponse - { - return $this->startApiCall('ListNetworks', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemServiceClient.php deleted file mode 100644 index c0b0788b994c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemServiceClient.php +++ /dev/null @@ -1,311 +0,0 @@ - getOperatingSystemAsync(GetOperatingSystemRequest $request, array $optionalArgs = []) - * @method PromiseInterface listOperatingSystemsAsync(ListOperatingSystemsRequest $request, array $optionalArgs = []) - */ -final class OperatingSystemServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.OperatingSystemService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/operating_system_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/operating_system_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/operating_system_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * operating_system resource. - * - * @param string $networkCode - * @param string $operatingSystem - * - * @return string The formatted operating_system resource. - */ - public static function operatingSystemName(string $networkCode, string $operatingSystem): string - { - return self::getPathTemplate('operatingSystem')->render([ - 'network_code' => $networkCode, - 'operating_system' => $operatingSystem, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - operatingSystem: networks/{network_code}/operatingSystems/{operating_system} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\OperatingSystemServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new OperatingSystemServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `OperatingSystem` object. - * - * The async variant is - * {@see OperatingSystemServiceClient::getOperatingSystemAsync()} . - * - * @example samples/V1/OperatingSystemServiceClient/get_operating_system.php - * - * @param GetOperatingSystemRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperatingSystem - * - * @throws ApiException Thrown if the API call fails. - */ - public function getOperatingSystem(GetOperatingSystemRequest $request, array $callOptions = []): OperatingSystem - { - return $this->startApiCall('GetOperatingSystem', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `OperatingSystem` objects. - * - * The async variant is - * {@see OperatingSystemServiceClient::listOperatingSystemsAsync()} . - * - * @example samples/V1/OperatingSystemServiceClient/list_operating_systems.php - * - * @param ListOperatingSystemsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listOperatingSystems(ListOperatingSystemsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListOperatingSystems', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemVersionServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemVersionServiceClient.php deleted file mode 100644 index a66fc723e37c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OperatingSystemVersionServiceClient.php +++ /dev/null @@ -1,311 +0,0 @@ - getOperatingSystemVersionAsync(GetOperatingSystemVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listOperatingSystemVersionsAsync(ListOperatingSystemVersionsRequest $request, array $optionalArgs = []) - */ -final class OperatingSystemVersionServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.OperatingSystemVersionService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/operating_system_version_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/operating_system_version_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/operating_system_version_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * operating_system_version resource. - * - * @param string $networkCode - * @param string $operatingSystemVersion - * - * @return string The formatted operating_system_version resource. - */ - public static function operatingSystemVersionName(string $networkCode, string $operatingSystemVersion): string - { - return self::getPathTemplate('operatingSystemVersion')->render([ - 'network_code' => $networkCode, - 'operating_system_version' => $operatingSystemVersion, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - operatingSystemVersion: networks/{network_code}/operatingSystemVersions/{operating_system_version} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\OperatingSystemVersionServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new OperatingSystemVersionServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `OperatingSystemVersion` object. - * - * The async variant is - * {@see OperatingSystemVersionServiceClient::getOperatingSystemVersionAsync()} . - * - * @example samples/V1/OperatingSystemVersionServiceClient/get_operating_system_version.php - * - * @param GetOperatingSystemVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperatingSystemVersion - * - * @throws ApiException Thrown if the API call fails. - */ - public function getOperatingSystemVersion(GetOperatingSystemVersionRequest $request, array $callOptions = []): OperatingSystemVersion - { - return $this->startApiCall('GetOperatingSystemVersion', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `OperatingSystemVersion` objects. - * - * The async variant is - * {@see OperatingSystemVersionServiceClient::listOperatingSystemVersionsAsync()} . - * - * @example samples/V1/OperatingSystemVersionServiceClient/list_operating_system_versions.php - * - * @param ListOperatingSystemVersionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listOperatingSystemVersions(ListOperatingSystemVersionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListOperatingSystemVersions', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php deleted file mode 100644 index 8a888b0fbfe6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php +++ /dev/null @@ -1,314 +0,0 @@ - getOrderAsync(GetOrderRequest $request, array $optionalArgs = []) - * @method PromiseInterface listOrdersAsync(ListOrdersRequest $request, array $optionalArgs = []) - */ -final class OrderServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.OrderService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/order_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/order_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/order_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a order - * resource. - * - * @param string $networkCode - * @param string $order - * - * @return string The formatted order resource. - */ - public static function orderName(string $networkCode, string $order): string - { - return self::getPathTemplate('order')->render([ - 'network_code' => $networkCode, - 'order' => $order, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - order: networks/{network_code}/orders/{order} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\OrderServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new OrderServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve an Order object. - * - * The async variant is {@see OrderServiceClient::getOrderAsync()} . - * - * @example samples/V1/OrderServiceClient/get_order.php - * - * @param GetOrderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Order - * - * @throws ApiException Thrown if the API call fails. - */ - public function getOrder(GetOrderRequest $request, array $callOptions = []): Order - { - return $this->startApiCall('GetOrder', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `Order` objects. - * - * Fields used for literal matching in filter string: - * * `order_id` - * * `display_name` - * * `external_order_id` - * - * The async variant is {@see OrderServiceClient::listOrdersAsync()} . - * - * @example samples/V1/OrderServiceClient/list_orders.php - * - * @param ListOrdersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listOrders(ListOrdersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListOrders', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php deleted file mode 100644 index 2142d9bb22e3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php +++ /dev/null @@ -1,533 +0,0 @@ - batchActivatePlacementsAsync(BatchActivatePlacementsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchArchivePlacementsAsync(BatchArchivePlacementsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchCreatePlacementsAsync(BatchCreatePlacementsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchDeactivatePlacementsAsync(BatchDeactivatePlacementsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchUpdatePlacementsAsync(BatchUpdatePlacementsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createPlacementAsync(CreatePlacementRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPlacementAsync(GetPlacementRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPlacementsAsync(ListPlacementsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePlacementAsync(UpdatePlacementRequest $request, array $optionalArgs = []) - */ -final class PlacementServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.PlacementService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/placement_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/placement_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/placement_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a ad_unit - * resource. - * - * @param string $networkCode - * @param string $adUnit - * - * @return string The formatted ad_unit resource. - */ - public static function adUnitName(string $networkCode, string $adUnit): string - { - return self::getPathTemplate('adUnit')->render([ - 'network_code' => $networkCode, - 'ad_unit' => $adUnit, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a placement - * resource. - * - * @param string $networkCode - * @param string $placement - * - * @return string The formatted placement resource. - */ - public static function placementName(string $networkCode, string $placement): string - { - return self::getPathTemplate('placement')->render([ - 'network_code' => $networkCode, - 'placement' => $placement, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - adUnit: networks/{network_code}/adUnits/{ad_unit} - * - network: networks/{network_code} - * - placement: networks/{network_code}/placements/{placement} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\PlacementServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new PlacementServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Activates a list of `Placement` objects. - * - * The async variant is - * {@see PlacementServiceClient::batchActivatePlacementsAsync()} . - * - * @example samples/V1/PlacementServiceClient/batch_activate_placements.php - * - * @param BatchActivatePlacementsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchActivatePlacementsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchActivatePlacements(BatchActivatePlacementsRequest $request, array $callOptions = []): BatchActivatePlacementsResponse - { - return $this->startApiCall('BatchActivatePlacements', $request, $callOptions)->wait(); - } - - /** - * Archives a list of `Placement` objects. - * - * The async variant is - * {@see PlacementServiceClient::batchArchivePlacementsAsync()} . - * - * @example samples/V1/PlacementServiceClient/batch_archive_placements.php - * - * @param BatchArchivePlacementsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchArchivePlacementsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchArchivePlacements(BatchArchivePlacementsRequest $request, array $callOptions = []): BatchArchivePlacementsResponse - { - return $this->startApiCall('BatchArchivePlacements', $request, $callOptions)->wait(); - } - - /** - * API to batch create `Placement` objects. - * - * The async variant is {@see PlacementServiceClient::batchCreatePlacementsAsync()} - * . - * - * @example samples/V1/PlacementServiceClient/batch_create_placements.php - * - * @param BatchCreatePlacementsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchCreatePlacementsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchCreatePlacements(BatchCreatePlacementsRequest $request, array $callOptions = []): BatchCreatePlacementsResponse - { - return $this->startApiCall('BatchCreatePlacements', $request, $callOptions)->wait(); - } - - /** - * Deactivates a list of `Placement` objects. - * - * The async variant is - * {@see PlacementServiceClient::batchDeactivatePlacementsAsync()} . - * - * @example samples/V1/PlacementServiceClient/batch_deactivate_placements.php - * - * @param BatchDeactivatePlacementsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchDeactivatePlacementsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchDeactivatePlacements(BatchDeactivatePlacementsRequest $request, array $callOptions = []): BatchDeactivatePlacementsResponse - { - return $this->startApiCall('BatchDeactivatePlacements', $request, $callOptions)->wait(); - } - - /** - * API to batch update `Placement` objects. - * - * The async variant is {@see PlacementServiceClient::batchUpdatePlacementsAsync()} - * . - * - * @example samples/V1/PlacementServiceClient/batch_update_placements.php - * - * @param BatchUpdatePlacementsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchUpdatePlacementsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchUpdatePlacements(BatchUpdatePlacementsRequest $request, array $callOptions = []): BatchUpdatePlacementsResponse - { - return $this->startApiCall('BatchUpdatePlacements', $request, $callOptions)->wait(); - } - - /** - * API to create an `Placement` object. - * - * The async variant is {@see PlacementServiceClient::createPlacementAsync()} . - * - * @example samples/V1/PlacementServiceClient/create_placement.php - * - * @param CreatePlacementRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Placement - * - * @throws ApiException Thrown if the API call fails. - */ - public function createPlacement(CreatePlacementRequest $request, array $callOptions = []): Placement - { - return $this->startApiCall('CreatePlacement', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a `Placement` object. - * - * The async variant is {@see PlacementServiceClient::getPlacementAsync()} . - * - * @example samples/V1/PlacementServiceClient/get_placement.php - * - * @param GetPlacementRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Placement - * - * @throws ApiException Thrown if the API call fails. - */ - public function getPlacement(GetPlacementRequest $request, array $callOptions = []): Placement - { - return $this->startApiCall('GetPlacement', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `Placement` objects. - * - * The async variant is {@see PlacementServiceClient::listPlacementsAsync()} . - * - * @example samples/V1/PlacementServiceClient/list_placements.php - * - * @param ListPlacementsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listPlacements(ListPlacementsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListPlacements', $request, $callOptions); - } - - /** - * API to update an `Placement` object. - * - * The async variant is {@see PlacementServiceClient::updatePlacementAsync()} . - * - * @example samples/V1/PlacementServiceClient/update_placement.php - * - * @param UpdatePlacementRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Placement - * - * @throws ApiException Thrown if the API call fails. - */ - public function updatePlacement(UpdatePlacementRequest $request, array $callOptions = []): Placement - { - return $this->startApiCall('UpdatePlacement', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionDealServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionDealServiceClient.php deleted file mode 100644 index a79e1e9e0cca..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionDealServiceClient.php +++ /dev/null @@ -1,747 +0,0 @@ - createPrivateAuctionDealAsync(CreatePrivateAuctionDealRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPrivateAuctionDealAsync(GetPrivateAuctionDealRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPrivateAuctionDealsAsync(ListPrivateAuctionDealsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePrivateAuctionDealAsync(UpdatePrivateAuctionDealRequest $request, array $optionalArgs = []) - */ -final class PrivateAuctionDealServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.PrivateAuctionDealService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/private_auction_deal_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/private_auction_deal_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/private_auction_deal_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a ad_unit - * resource. - * - * @param string $networkCode - * @param string $adUnit - * - * @return string The formatted ad_unit resource. - */ - public static function adUnitName(string $networkCode, string $adUnit): string - { - return self::getPathTemplate('adUnit')->render([ - 'network_code' => $networkCode, - 'ad_unit' => $adUnit, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a application - * resource. - * - * @param string $networkCode - * @param string $application - * - * @return string The formatted application resource. - */ - public static function applicationName(string $networkCode, string $application): string - { - return self::getPathTemplate('application')->render([ - 'network_code' => $networkCode, - 'application' => $application, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * audience_segment resource. - * - * @param string $networkCode - * @param string $audienceSegment - * - * @return string The formatted audience_segment resource. - */ - public static function audienceSegmentName(string $networkCode, string $audienceSegment): string - { - return self::getPathTemplate('audienceSegment')->render([ - 'network_code' => $networkCode, - 'audience_segment' => $audienceSegment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * bandwidth_group resource. - * - * @param string $networkCode - * @param string $bandwidthGroup - * - * @return string The formatted bandwidth_group resource. - */ - public static function bandwidthGroupName(string $networkCode, string $bandwidthGroup): string - { - return self::getPathTemplate('bandwidthGroup')->render([ - 'network_code' => $networkCode, - 'bandwidth_group' => $bandwidthGroup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a browser - * resource. - * - * @param string $networkCode - * @param string $browser - * - * @return string The formatted browser resource. - */ - public static function browserName(string $networkCode, string $browser): string - { - return self::getPathTemplate('browser')->render([ - 'network_code' => $networkCode, - 'browser' => $browser, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * browser_language resource. - * - * @param string $networkCode - * @param string $browserLanguage - * - * @return string The formatted browser_language resource. - */ - public static function browserLanguageName(string $networkCode, string $browserLanguage): string - { - return self::getPathTemplate('browserLanguage')->render([ - 'network_code' => $networkCode, - 'browser_language' => $browserLanguage, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * cms_metadata_value resource. - * - * @param string $networkCode - * @param string $cmsMetadataValue - * - * @return string The formatted cms_metadata_value resource. - */ - public static function cmsMetadataValueName(string $networkCode, string $cmsMetadataValue): string - { - return self::getPathTemplate('cmsMetadataValue')->render([ - 'network_code' => $networkCode, - 'cms_metadata_value' => $cmsMetadataValue, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a content - * resource. - * - * @param string $networkCode - * @param string $content - * - * @return string The formatted content resource. - */ - public static function contentName(string $networkCode, string $content): string - { - return self::getPathTemplate('content')->render([ - 'network_code' => $networkCode, - 'content' => $content, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * content_bundle resource. - * - * @param string $networkCode - * @param string $contentBundle - * - * @return string The formatted content_bundle resource. - */ - public static function contentBundleName(string $networkCode, string $contentBundle): string - { - return self::getPathTemplate('contentBundle')->render([ - 'network_code' => $networkCode, - 'content_bundle' => $contentBundle, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_targeting_key resource. - * - * @param string $networkCode - * @param string $customTargetingKey - * - * @return string The formatted custom_targeting_key resource. - */ - public static function customTargetingKeyName(string $networkCode, string $customTargetingKey): string - { - return self::getPathTemplate('customTargetingKey')->render([ - 'network_code' => $networkCode, - 'custom_targeting_key' => $customTargetingKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_targeting_value resource. - * - * @param string $networkCode - * @param string $customTargetingValue - * - * @return string The formatted custom_targeting_value resource. - */ - public static function customTargetingValueName(string $networkCode, string $customTargetingValue): string - { - return self::getPathTemplate('customTargetingValue')->render([ - 'network_code' => $networkCode, - 'custom_targeting_value' => $customTargetingValue, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * device_capability resource. - * - * @param string $networkCode - * @param string $deviceCapability - * - * @return string The formatted device_capability resource. - */ - public static function deviceCapabilityName(string $networkCode, string $deviceCapability): string - { - return self::getPathTemplate('deviceCapability')->render([ - 'network_code' => $networkCode, - 'device_capability' => $deviceCapability, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * device_category resource. - * - * @param string $networkCode - * @param string $deviceCategory - * - * @return string The formatted device_category resource. - */ - public static function deviceCategoryName(string $networkCode, string $deviceCategory): string - { - return self::getPathTemplate('deviceCategory')->render([ - 'network_code' => $networkCode, - 'device_category' => $deviceCategory, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * device_manufacturer resource. - * - * @param string $networkCode - * @param string $deviceManufacturer - * - * @return string The formatted device_manufacturer resource. - */ - public static function deviceManufacturerName(string $networkCode, string $deviceManufacturer): string - { - return self::getPathTemplate('deviceManufacturer')->render([ - 'network_code' => $networkCode, - 'device_manufacturer' => $deviceManufacturer, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a geo_target - * resource. - * - * @param string $networkCode - * @param string $geoTarget - * - * @return string The formatted geo_target resource. - */ - public static function geoTargetName(string $networkCode, string $geoTarget): string - { - return self::getPathTemplate('geoTarget')->render([ - 'network_code' => $networkCode, - 'geo_target' => $geoTarget, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * mobile_carrier resource. - * - * @param string $networkCode - * @param string $mobileCarrier - * - * @return string The formatted mobile_carrier resource. - */ - public static function mobileCarrierName(string $networkCode, string $mobileCarrier): string - { - return self::getPathTemplate('mobileCarrier')->render([ - 'network_code' => $networkCode, - 'mobile_carrier' => $mobileCarrier, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * mobile_device resource. - * - * @param string $networkCode - * @param string $mobileDevice - * - * @return string The formatted mobile_device resource. - */ - public static function mobileDeviceName(string $networkCode, string $mobileDevice): string - { - return self::getPathTemplate('mobileDevice')->render([ - 'network_code' => $networkCode, - 'mobile_device' => $mobileDevice, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * mobile_device_submodel resource. - * - * @param string $networkCode - * @param string $mobileDeviceSubmodel - * - * @return string The formatted mobile_device_submodel resource. - */ - public static function mobileDeviceSubmodelName(string $networkCode, string $mobileDeviceSubmodel): string - { - return self::getPathTemplate('mobileDeviceSubmodel')->render([ - 'network_code' => $networkCode, - 'mobile_device_submodel' => $mobileDeviceSubmodel, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * operating_system resource. - * - * @param string $networkCode - * @param string $operatingSystem - * - * @return string The formatted operating_system resource. - */ - public static function operatingSystemName(string $networkCode, string $operatingSystem): string - { - return self::getPathTemplate('operatingSystem')->render([ - 'network_code' => $networkCode, - 'operating_system' => $operatingSystem, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * operating_system_version resource. - * - * @param string $networkCode - * @param string $operatingSystemVersion - * - * @return string The formatted operating_system_version resource. - */ - public static function operatingSystemVersionName(string $networkCode, string $operatingSystemVersion): string - { - return self::getPathTemplate('operatingSystemVersion')->render([ - 'network_code' => $networkCode, - 'operating_system_version' => $operatingSystemVersion, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a placement - * resource. - * - * @param string $networkCode - * @param string $placement - * - * @return string The formatted placement resource. - */ - public static function placementName(string $networkCode, string $placement): string - { - return self::getPathTemplate('placement')->render([ - 'network_code' => $networkCode, - 'placement' => $placement, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * private_auction_deal resource. - * - * @param string $networkCode - * @param string $privateAuctionDeal - * - * @return string The formatted private_auction_deal resource. - */ - public static function privateAuctionDealName(string $networkCode, string $privateAuctionDeal): string - { - return self::getPathTemplate('privateAuctionDeal')->render([ - 'network_code' => $networkCode, - 'private_auction_deal' => $privateAuctionDeal, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - adUnit: networks/{network_code}/adUnits/{ad_unit} - * - application: networks/{network_code}/applications/{application} - * - audienceSegment: networks/{network_code}/audienceSegments/{audience_segment} - * - bandwidthGroup: networks/{network_code}/bandwidthGroups/{bandwidth_group} - * - browser: networks/{network_code}/browsers/{browser} - * - browserLanguage: networks/{network_code}/browserLanguages/{browser_language} - * - cmsMetadataValue: networks/{network_code}/cmsMetadataValues/{cms_metadata_value} - * - content: networks/{network_code}/content/{content} - * - contentBundle: networks/{network_code}/contentBundles/{content_bundle} - * - customTargetingKey: networks/{network_code}/customTargetingKeys/{custom_targeting_key} - * - customTargetingValue: networks/{network_code}/customTargetingValues/{custom_targeting_value} - * - deviceCapability: networks/{network_code}/deviceCapabilities/{device_capability} - * - deviceCategory: networks/{network_code}/deviceCategories/{device_category} - * - deviceManufacturer: networks/{network_code}/deviceManufacturers/{device_manufacturer} - * - geoTarget: networks/{network_code}/geoTargets/{geo_target} - * - mobileCarrier: networks/{network_code}/mobileCarriers/{mobile_carrier} - * - mobileDevice: networks/{network_code}/mobileDevices/{mobile_device} - * - mobileDeviceSubmodel: networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel} - * - network: networks/{network_code} - * - operatingSystem: networks/{network_code}/operatingSystems/{operating_system} - * - operatingSystemVersion: networks/{network_code}/operatingSystemVersions/{operating_system_version} - * - placement: networks/{network_code}/placements/{placement} - * - privateAuctionDeal: networks/{network_code}/privateAuctionDeals/{private_auction_deal} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\PrivateAuctionDealServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new PrivateAuctionDealServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to create a `PrivateAuctionDeal` object. - * - * The async variant is - * {@see PrivateAuctionDealServiceClient::createPrivateAuctionDealAsync()} . - * - * @example samples/V1/PrivateAuctionDealServiceClient/create_private_auction_deal.php - * - * @param CreatePrivateAuctionDealRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PrivateAuctionDeal - * - * @throws ApiException Thrown if the API call fails. - */ - public function createPrivateAuctionDeal(CreatePrivateAuctionDealRequest $request, array $callOptions = []): PrivateAuctionDeal - { - return $this->startApiCall('CreatePrivateAuctionDeal', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a `PrivateAuctionDeal` object. - * - * The async variant is - * {@see PrivateAuctionDealServiceClient::getPrivateAuctionDealAsync()} . - * - * @example samples/V1/PrivateAuctionDealServiceClient/get_private_auction_deal.php - * - * @param GetPrivateAuctionDealRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PrivateAuctionDeal - * - * @throws ApiException Thrown if the API call fails. - */ - public function getPrivateAuctionDeal(GetPrivateAuctionDealRequest $request, array $callOptions = []): PrivateAuctionDeal - { - return $this->startApiCall('GetPrivateAuctionDeal', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `PrivateAuctionDeal` objects. - * - * The async variant is - * {@see PrivateAuctionDealServiceClient::listPrivateAuctionDealsAsync()} . - * - * @example samples/V1/PrivateAuctionDealServiceClient/list_private_auction_deals.php - * - * @param ListPrivateAuctionDealsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listPrivateAuctionDeals(ListPrivateAuctionDealsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListPrivateAuctionDeals', $request, $callOptions); - } - - /** - * API to update a `PrivateAuctionDeal` object. - * - * The async variant is - * {@see PrivateAuctionDealServiceClient::updatePrivateAuctionDealAsync()} . - * - * @example samples/V1/PrivateAuctionDealServiceClient/update_private_auction_deal.php - * - * @param UpdatePrivateAuctionDealRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PrivateAuctionDeal - * - * @throws ApiException Thrown if the API call fails. - */ - public function updatePrivateAuctionDeal(UpdatePrivateAuctionDealRequest $request, array $callOptions = []): PrivateAuctionDeal - { - return $this->startApiCall('UpdatePrivateAuctionDeal', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionServiceClient.php deleted file mode 100644 index 6fab10876050..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PrivateAuctionServiceClient.php +++ /dev/null @@ -1,387 +0,0 @@ - createPrivateAuctionAsync(CreatePrivateAuctionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPrivateAuctionAsync(GetPrivateAuctionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPrivateAuctionsAsync(ListPrivateAuctionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePrivateAuctionAsync(UpdatePrivateAuctionRequest $request, array $optionalArgs = []) - */ -final class PrivateAuctionServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.PrivateAuctionService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/private_auction_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/private_auction_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/private_auction_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * private_auction resource. - * - * @param string $networkCode - * @param string $privateAuction - * - * @return string The formatted private_auction resource. - */ - public static function privateAuctionName(string $networkCode, string $privateAuction): string - { - return self::getPathTemplate('privateAuction')->render([ - 'network_code' => $networkCode, - 'private_auction' => $privateAuction, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a user - * resource. - * - * @param string $networkCode - * @param string $user - * - * @return string The formatted user resource. - */ - public static function userName(string $networkCode, string $user): string - { - return self::getPathTemplate('user')->render([ - 'network_code' => $networkCode, - 'user' => $user, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - privateAuction: networks/{network_code}/privateAuctions/{private_auction} - * - user: networks/{network_code}/users/{user} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\PrivateAuctionServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new PrivateAuctionServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to create a `PrivateAuction` object. - * - * The async variant is - * {@see PrivateAuctionServiceClient::createPrivateAuctionAsync()} . - * - * @example samples/V1/PrivateAuctionServiceClient/create_private_auction.php - * - * @param CreatePrivateAuctionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PrivateAuction - * - * @throws ApiException Thrown if the API call fails. - */ - public function createPrivateAuction(CreatePrivateAuctionRequest $request, array $callOptions = []): PrivateAuction - { - return $this->startApiCall('CreatePrivateAuction', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a `PrivateAuction` object. - * - * The async variant is - * {@see PrivateAuctionServiceClient::getPrivateAuctionAsync()} . - * - * @example samples/V1/PrivateAuctionServiceClient/get_private_auction.php - * - * @param GetPrivateAuctionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PrivateAuction - * - * @throws ApiException Thrown if the API call fails. - */ - public function getPrivateAuction(GetPrivateAuctionRequest $request, array $callOptions = []): PrivateAuction - { - return $this->startApiCall('GetPrivateAuction', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `PrivateAuction` objects. - * - * The async variant is - * {@see PrivateAuctionServiceClient::listPrivateAuctionsAsync()} . - * - * @example samples/V1/PrivateAuctionServiceClient/list_private_auctions.php - * - * @param ListPrivateAuctionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listPrivateAuctions(ListPrivateAuctionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListPrivateAuctions', $request, $callOptions); - } - - /** - * API to update a `PrivateAuction` object. - * - * The async variant is - * {@see PrivateAuctionServiceClient::updatePrivateAuctionAsync()} . - * - * @example samples/V1/PrivateAuctionServiceClient/update_private_auction.php - * - * @param UpdatePrivateAuctionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PrivateAuction - * - * @throws ApiException Thrown if the API call fails. - */ - public function updatePrivateAuction(UpdatePrivateAuctionRequest $request, array $callOptions = []): PrivateAuction - { - return $this->startApiCall('UpdatePrivateAuction', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ProgrammaticBuyerServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ProgrammaticBuyerServiceClient.php deleted file mode 100644 index 900f29aa16b8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ProgrammaticBuyerServiceClient.php +++ /dev/null @@ -1,311 +0,0 @@ - getProgrammaticBuyerAsync(GetProgrammaticBuyerRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProgrammaticBuyersAsync(ListProgrammaticBuyersRequest $request, array $optionalArgs = []) - */ -final class ProgrammaticBuyerServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.ProgrammaticBuyerService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/programmatic_buyer_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/programmatic_buyer_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/programmatic_buyer_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * programmatic_buyer resource. - * - * @param string $networkCode - * @param string $programmaticBuyer - * - * @return string The formatted programmatic_buyer resource. - */ - public static function programmaticBuyerName(string $networkCode, string $programmaticBuyer): string - { - return self::getPathTemplate('programmaticBuyer')->render([ - 'network_code' => $networkCode, - 'programmatic_buyer' => $programmaticBuyer, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - programmaticBuyer: networks/{network_code}/programmaticBuyers/{programmatic_buyer} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\ProgrammaticBuyerServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new ProgrammaticBuyerServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `ProgrammaticBuyer` object. - * - * The async variant is - * {@see ProgrammaticBuyerServiceClient::getProgrammaticBuyerAsync()} . - * - * @example samples/V1/ProgrammaticBuyerServiceClient/get_programmatic_buyer.php - * - * @param GetProgrammaticBuyerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProgrammaticBuyer - * - * @throws ApiException Thrown if the API call fails. - */ - public function getProgrammaticBuyer(GetProgrammaticBuyerRequest $request, array $callOptions = []): ProgrammaticBuyer - { - return $this->startApiCall('GetProgrammaticBuyer', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `ProgrammaticBuyer` objects. - * - * The async variant is - * {@see ProgrammaticBuyerServiceClient::listProgrammaticBuyersAsync()} . - * - * @example samples/V1/ProgrammaticBuyerServiceClient/list_programmatic_buyers.php - * - * @param ListProgrammaticBuyersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listProgrammaticBuyers(ListProgrammaticBuyersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProgrammaticBuyers', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php deleted file mode 100644 index 10b79a77b41d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php +++ /dev/null @@ -1,487 +0,0 @@ - createReportAsync(CreateReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchReportResultRowsAsync(FetchReportResultRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getReportAsync(GetReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReportsAsync(ListReportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface runReportAsync(RunReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateReportAsync(UpdateReportRequest $request, array $optionalArgs = []) - */ -final class ReportServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.ReportService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/report_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/report_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/report_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a report - * resource. - * - * @param string $networkCode - * @param string $report - * - * @return string The formatted report resource. - */ - public static function reportName(string $networkCode, string $report): string - { - return self::getPathTemplate('report')->render([ - 'network_code' => $networkCode, - 'report' => $report, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - report: networks/{network_code}/reports/{report} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\ReportServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new ReportServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to create a `Report` object. - * - * The async variant is {@see ReportServiceClient::createReportAsync()} . - * - * @example samples/V1/ReportServiceClient/create_report.php - * - * @param CreateReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Report - * - * @throws ApiException Thrown if the API call fails. - */ - public function createReport(CreateReportRequest $request, array $callOptions = []): Report - { - return $this->startApiCall('CreateReport', $request, $callOptions)->wait(); - } - - /** - * Returns the result rows from a completed report. - * The caller must have previously called `RunReport` and waited for that - * operation to complete. The rows will be returned according to the order - * specified by the `sorts` member of the report definition. - * - * The async variant is {@see ReportServiceClient::fetchReportResultRowsAsync()} . - * - * @example samples/V1/ReportServiceClient/fetch_report_result_rows.php - * - * @param FetchReportResultRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchReportResultRowsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchReportResultRows(FetchReportResultRowsRequest $request, array $callOptions = []): FetchReportResultRowsResponse - { - return $this->startApiCall('FetchReportResultRows', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a `Report` object. - * - * The async variant is {@see ReportServiceClient::getReportAsync()} . - * - * @example samples/V1/ReportServiceClient/get_report.php - * - * @param GetReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Report - * - * @throws ApiException Thrown if the API call fails. - */ - public function getReport(GetReportRequest $request, array $callOptions = []): Report - { - return $this->startApiCall('GetReport', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `Report` objects. - * - * The async variant is {@see ReportServiceClient::listReportsAsync()} . - * - * @example samples/V1/ReportServiceClient/list_reports.php - * - * @param ListReportsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listReports(ListReportsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListReports', $request, $callOptions); - } - - /** - * Initiates the execution of an existing report asynchronously. Users can - * get the report by polling this operation using - * `OperationsService.GetOperation`. - * Poll every 5 seconds initially, with an exponential - * backoff. Once a report is complete, the operation will contain a - * `RunReportResponse` in its response field containing a report_result that - * can be passed to the `FetchReportResultRows` method to retrieve the report - * data. - * - * The async variant is {@see ReportServiceClient::runReportAsync()} . - * - * @example samples/V1/ReportServiceClient/run_report.php - * - * @param RunReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function runReport(RunReportRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RunReport', $request, $callOptions)->wait(); - } - - /** - * API to update a `Report` object. - * - * The async variant is {@see ReportServiceClient::updateReportAsync()} . - * - * @example samples/V1/ReportServiceClient/update_report.php - * - * @param UpdateReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Report - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateReport(UpdateReportRequest $request, array $callOptions = []): Report - { - return $this->startApiCall('UpdateReport', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php deleted file mode 100644 index 07d15dd063ea..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php +++ /dev/null @@ -1,309 +0,0 @@ - getRoleAsync(GetRoleRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRolesAsync(ListRolesRequest $request, array $optionalArgs = []) - */ -final class RoleServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.RoleService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/role_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/role_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/role_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a role - * resource. - * - * @param string $networkCode - * @param string $role - * - * @return string The formatted role resource. - */ - public static function roleName(string $networkCode, string $role): string - { - return self::getPathTemplate('role')->render([ - 'network_code' => $networkCode, - 'role' => $role, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - role: networks/{network_code}/roles/{role} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\RoleServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new RoleServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `Role` object. - * - * The async variant is {@see RoleServiceClient::getRoleAsync()} . - * - * @example samples/V1/RoleServiceClient/get_role.php - * - * @param GetRoleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Role - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRole(GetRoleRequest $request, array $callOptions = []): Role - { - return $this->startApiCall('GetRole', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `Role` objects. - * - * The async variant is {@see RoleServiceClient::listRolesAsync()} . - * - * @example samples/V1/RoleServiceClient/list_roles.php - * - * @param ListRolesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRoles(ListRolesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRoles', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php deleted file mode 100644 index 9d715c573f42..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php +++ /dev/null @@ -1,311 +0,0 @@ - getTaxonomyCategoryAsync(GetTaxonomyCategoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTaxonomyCategoriesAsync(ListTaxonomyCategoriesRequest $request, array $optionalArgs = []) - */ -final class TaxonomyCategoryServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.TaxonomyCategoryService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/taxonomy_category_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/taxonomy_category_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/taxonomy_category_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * taxonomy_category resource. - * - * @param string $networkCode - * @param string $taxonomyCategory - * - * @return string The formatted taxonomy_category resource. - */ - public static function taxonomyCategoryName(string $networkCode, string $taxonomyCategory): string - { - return self::getPathTemplate('taxonomyCategory')->render([ - 'network_code' => $networkCode, - 'taxonomy_category' => $taxonomyCategory, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - taxonomyCategory: networks/{network_code}/taxonomyCategories/{taxonomy_category} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\TaxonomyCategoryServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new TaxonomyCategoryServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `TaxonomyCategory` object. - * - * The async variant is - * {@see TaxonomyCategoryServiceClient::getTaxonomyCategoryAsync()} . - * - * @example samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php - * - * @param GetTaxonomyCategoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TaxonomyCategory - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTaxonomyCategory(GetTaxonomyCategoryRequest $request, array $callOptions = []): TaxonomyCategory - { - return $this->startApiCall('GetTaxonomyCategory', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `TaxonomyCategory` objects. - * - * The async variant is - * {@see TaxonomyCategoryServiceClient::listTaxonomyCategoriesAsync()} . - * - * @example samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php - * - * @param ListTaxonomyCategoriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listTaxonomyCategories(ListTaxonomyCategoriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTaxonomyCategories', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php deleted file mode 100644 index 53550171e95f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php +++ /dev/null @@ -1,267 +0,0 @@ - getUserAsync(GetUserRequest $request, array $optionalArgs = []) - */ -final class UserServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.UserService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/admanager', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/user_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/user_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/user_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a user - * resource. - * - * @param string $networkCode - * @param string $user - * - * @return string The formatted user resource. - */ - public static function userName(string $networkCode, string $user): string - { - return self::getPathTemplate('user')->render([ - 'network_code' => $networkCode, - 'user' => $user, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - user: networks/{network_code}/users/{user} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Ads\AdManager\V1\UserServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new UserServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a User object. - * - * To get the current user, the resource name - * `networks/{networkCode}/users/me` can be used. - * - * The async variant is {@see UserServiceClient::getUserAsync()} . - * - * @example samples/V1/UserServiceClient/get_user.php - * - * @param GetUserRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return User - * - * @throws ApiException Thrown if the API call fails. - */ - public function getUser(GetUserRequest $request, array $callOptions = []): User - { - return $this->startApiCall('GetUser', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json deleted file mode 100644 index d1e0f2196cde..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,1013 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.ads.admanager.v1", - "libraryPackage": "Google\\Ads\\AdManager\\V1", - "services": { - "AdBreakService": { - "clients": { - "grpc": { - "libraryClient": "AdBreakServiceGapicClient", - "rpcs": { - "CreateAdBreak": { - "methods": [ - "createAdBreak" - ] - }, - "DeleteAdBreak": { - "methods": [ - "deleteAdBreak" - ] - }, - "GetAdBreak": { - "methods": [ - "getAdBreak" - ] - }, - "ListAdBreaks": { - "methods": [ - "listAdBreaks" - ] - }, - "UpdateAdBreak": { - "methods": [ - "updateAdBreak" - ] - } - } - } - } - }, - "AdReviewCenterAdService": { - "clients": { - "grpc": { - "libraryClient": "AdReviewCenterAdServiceGapicClient", - "rpcs": { - "BatchAllowAdReviewCenterAds": { - "methods": [ - "batchAllowAdReviewCenterAds" - ] - }, - "BatchBlockAdReviewCenterAds": { - "methods": [ - "batchBlockAdReviewCenterAds" - ] - }, - "SearchAdReviewCenterAds": { - "methods": [ - "searchAdReviewCenterAds" - ] - } - } - } - } - }, - "AdUnitService": { - "clients": { - "grpc": { - "libraryClient": "AdUnitServiceGapicClient", - "rpcs": { - "GetAdUnit": { - "methods": [ - "getAdUnit" - ] - }, - "ListAdUnitSizes": { - "methods": [ - "listAdUnitSizes" - ] - }, - "ListAdUnits": { - "methods": [ - "listAdUnits" - ] - } - } - } - } - }, - "ApplicationService": { - "clients": { - "grpc": { - "libraryClient": "ApplicationServiceGapicClient", - "rpcs": { - "GetApplication": { - "methods": [ - "getApplication" - ] - }, - "ListApplications": { - "methods": [ - "listApplications" - ] - } - } - } - } - }, - "AudienceSegmentService": { - "clients": { - "grpc": { - "libraryClient": "AudienceSegmentServiceGapicClient", - "rpcs": { - "GetAudienceSegment": { - "methods": [ - "getAudienceSegment" - ] - }, - "ListAudienceSegments": { - "methods": [ - "listAudienceSegments" - ] - } - } - } - } - }, - "BandwidthGroupService": { - "clients": { - "grpc": { - "libraryClient": "BandwidthGroupServiceGapicClient", - "rpcs": { - "GetBandwidthGroup": { - "methods": [ - "getBandwidthGroup" - ] - }, - "ListBandwidthGroups": { - "methods": [ - "listBandwidthGroups" - ] - } - } - } - } - }, - "BrowserLanguageService": { - "clients": { - "grpc": { - "libraryClient": "BrowserLanguageServiceGapicClient", - "rpcs": { - "GetBrowserLanguage": { - "methods": [ - "getBrowserLanguage" - ] - }, - "ListBrowserLanguages": { - "methods": [ - "listBrowserLanguages" - ] - } - } - } - } - }, - "BrowserService": { - "clients": { - "grpc": { - "libraryClient": "BrowserServiceGapicClient", - "rpcs": { - "GetBrowser": { - "methods": [ - "getBrowser" - ] - }, - "ListBrowsers": { - "methods": [ - "listBrowsers" - ] - } - } - } - } - }, - "CmsMetadataKeyService": { - "clients": { - "grpc": { - "libraryClient": "CmsMetadataKeyServiceGapicClient", - "rpcs": { - "GetCmsMetadataKey": { - "methods": [ - "getCmsMetadataKey" - ] - }, - "ListCmsMetadataKeys": { - "methods": [ - "listCmsMetadataKeys" - ] - } - } - } - } - }, - "CmsMetadataValueService": { - "clients": { - "grpc": { - "libraryClient": "CmsMetadataValueServiceGapicClient", - "rpcs": { - "GetCmsMetadataValue": { - "methods": [ - "getCmsMetadataValue" - ] - }, - "ListCmsMetadataValues": { - "methods": [ - "listCmsMetadataValues" - ] - } - } - } - } - }, - "CompanyService": { - "clients": { - "grpc": { - "libraryClient": "CompanyServiceGapicClient", - "rpcs": { - "GetCompany": { - "methods": [ - "getCompany" - ] - }, - "ListCompanies": { - "methods": [ - "listCompanies" - ] - } - } - } - } - }, - "ContactService": { - "clients": { - "grpc": { - "libraryClient": "ContactServiceGapicClient", - "rpcs": { - "BatchCreateContacts": { - "methods": [ - "batchCreateContacts" - ] - }, - "BatchUpdateContacts": { - "methods": [ - "batchUpdateContacts" - ] - }, - "CreateContact": { - "methods": [ - "createContact" - ] - }, - "GetContact": { - "methods": [ - "getContact" - ] - }, - "ListContacts": { - "methods": [ - "listContacts" - ] - }, - "UpdateContact": { - "methods": [ - "updateContact" - ] - } - } - } - } - }, - "ContentBundleService": { - "clients": { - "grpc": { - "libraryClient": "ContentBundleServiceGapicClient", - "rpcs": { - "GetContentBundle": { - "methods": [ - "getContentBundle" - ] - }, - "ListContentBundles": { - "methods": [ - "listContentBundles" - ] - } - } - } - } - }, - "ContentLabelService": { - "clients": { - "grpc": { - "libraryClient": "ContentLabelServiceGapicClient", - "rpcs": { - "GetContentLabel": { - "methods": [ - "getContentLabel" - ] - }, - "ListContentLabels": { - "methods": [ - "listContentLabels" - ] - } - } - } - } - }, - "ContentService": { - "clients": { - "grpc": { - "libraryClient": "ContentServiceGapicClient", - "rpcs": { - "GetContent": { - "methods": [ - "getContent" - ] - }, - "ListContent": { - "methods": [ - "listContent" - ] - } - } - } - } - }, - "CreativeTemplateService": { - "clients": { - "grpc": { - "libraryClient": "CreativeTemplateServiceGapicClient", - "rpcs": { - "GetCreativeTemplate": { - "methods": [ - "getCreativeTemplate" - ] - }, - "ListCreativeTemplates": { - "methods": [ - "listCreativeTemplates" - ] - } - } - } - } - }, - "CustomFieldService": { - "clients": { - "grpc": { - "libraryClient": "CustomFieldServiceGapicClient", - "rpcs": { - "BatchActivateCustomFields": { - "methods": [ - "batchActivateCustomFields" - ] - }, - "BatchCreateCustomFields": { - "methods": [ - "batchCreateCustomFields" - ] - }, - "BatchDeactivateCustomFields": { - "methods": [ - "batchDeactivateCustomFields" - ] - }, - "BatchUpdateCustomFields": { - "methods": [ - "batchUpdateCustomFields" - ] - }, - "CreateCustomField": { - "methods": [ - "createCustomField" - ] - }, - "GetCustomField": { - "methods": [ - "getCustomField" - ] - }, - "ListCustomFields": { - "methods": [ - "listCustomFields" - ] - }, - "UpdateCustomField": { - "methods": [ - "updateCustomField" - ] - } - } - } - } - }, - "CustomTargetingKeyService": { - "clients": { - "grpc": { - "libraryClient": "CustomTargetingKeyServiceGapicClient", - "rpcs": { - "GetCustomTargetingKey": { - "methods": [ - "getCustomTargetingKey" - ] - }, - "ListCustomTargetingKeys": { - "methods": [ - "listCustomTargetingKeys" - ] - } - } - } - } - }, - "CustomTargetingValueService": { - "clients": { - "grpc": { - "libraryClient": "CustomTargetingValueServiceGapicClient", - "rpcs": { - "GetCustomTargetingValue": { - "methods": [ - "getCustomTargetingValue" - ] - }, - "ListCustomTargetingValues": { - "methods": [ - "listCustomTargetingValues" - ] - } - } - } - } - }, - "DeviceCapabilityService": { - "clients": { - "grpc": { - "libraryClient": "DeviceCapabilityServiceGapicClient", - "rpcs": { - "GetDeviceCapability": { - "methods": [ - "getDeviceCapability" - ] - }, - "ListDeviceCapabilities": { - "methods": [ - "listDeviceCapabilities" - ] - } - } - } - } - }, - "DeviceCategoryService": { - "clients": { - "grpc": { - "libraryClient": "DeviceCategoryServiceGapicClient", - "rpcs": { - "GetDeviceCategory": { - "methods": [ - "getDeviceCategory" - ] - }, - "ListDeviceCategories": { - "methods": [ - "listDeviceCategories" - ] - } - } - } - } - }, - "DeviceManufacturerService": { - "clients": { - "grpc": { - "libraryClient": "DeviceManufacturerServiceGapicClient", - "rpcs": { - "GetDeviceManufacturer": { - "methods": [ - "getDeviceManufacturer" - ] - }, - "ListDeviceManufacturers": { - "methods": [ - "listDeviceManufacturers" - ] - } - } - } - } - }, - "EntitySignalsMappingService": { - "clients": { - "grpc": { - "libraryClient": "EntitySignalsMappingServiceGapicClient", - "rpcs": { - "BatchCreateEntitySignalsMappings": { - "methods": [ - "batchCreateEntitySignalsMappings" - ] - }, - "BatchUpdateEntitySignalsMappings": { - "methods": [ - "batchUpdateEntitySignalsMappings" - ] - }, - "CreateEntitySignalsMapping": { - "methods": [ - "createEntitySignalsMapping" - ] - }, - "GetEntitySignalsMapping": { - "methods": [ - "getEntitySignalsMapping" - ] - }, - "ListEntitySignalsMappings": { - "methods": [ - "listEntitySignalsMappings" - ] - }, - "UpdateEntitySignalsMapping": { - "methods": [ - "updateEntitySignalsMapping" - ] - } - } - } - } - }, - "GeoTargetService": { - "clients": { - "grpc": { - "libraryClient": "GeoTargetServiceGapicClient", - "rpcs": { - "GetGeoTarget": { - "methods": [ - "getGeoTarget" - ] - }, - "ListGeoTargets": { - "methods": [ - "listGeoTargets" - ] - } - } - } - } - }, - "MobileCarrierService": { - "clients": { - "grpc": { - "libraryClient": "MobileCarrierServiceGapicClient", - "rpcs": { - "GetMobileCarrier": { - "methods": [ - "getMobileCarrier" - ] - }, - "ListMobileCarriers": { - "methods": [ - "listMobileCarriers" - ] - } - } - } - } - }, - "MobileDeviceService": { - "clients": { - "grpc": { - "libraryClient": "MobileDeviceServiceGapicClient", - "rpcs": { - "GetMobileDevice": { - "methods": [ - "getMobileDevice" - ] - }, - "ListMobileDevices": { - "methods": [ - "listMobileDevices" - ] - } - } - } - } - }, - "MobileDeviceSubmodelService": { - "clients": { - "grpc": { - "libraryClient": "MobileDeviceSubmodelServiceGapicClient", - "rpcs": { - "GetMobileDeviceSubmodel": { - "methods": [ - "getMobileDeviceSubmodel" - ] - }, - "ListMobileDeviceSubmodels": { - "methods": [ - "listMobileDeviceSubmodels" - ] - } - } - } - } - }, - "NetworkService": { - "clients": { - "grpc": { - "libraryClient": "NetworkServiceGapicClient", - "rpcs": { - "GetNetwork": { - "methods": [ - "getNetwork" - ] - }, - "ListNetworks": { - "methods": [ - "listNetworks" - ] - } - } - } - } - }, - "OperatingSystemService": { - "clients": { - "grpc": { - "libraryClient": "OperatingSystemServiceGapicClient", - "rpcs": { - "GetOperatingSystem": { - "methods": [ - "getOperatingSystem" - ] - }, - "ListOperatingSystems": { - "methods": [ - "listOperatingSystems" - ] - } - } - } - } - }, - "OperatingSystemVersionService": { - "clients": { - "grpc": { - "libraryClient": "OperatingSystemVersionServiceGapicClient", - "rpcs": { - "GetOperatingSystemVersion": { - "methods": [ - "getOperatingSystemVersion" - ] - }, - "ListOperatingSystemVersions": { - "methods": [ - "listOperatingSystemVersions" - ] - } - } - } - } - }, - "OrderService": { - "clients": { - "grpc": { - "libraryClient": "OrderServiceGapicClient", - "rpcs": { - "GetOrder": { - "methods": [ - "getOrder" - ] - }, - "ListOrders": { - "methods": [ - "listOrders" - ] - } - } - } - } - }, - "PlacementService": { - "clients": { - "grpc": { - "libraryClient": "PlacementServiceGapicClient", - "rpcs": { - "BatchActivatePlacements": { - "methods": [ - "batchActivatePlacements" - ] - }, - "BatchArchivePlacements": { - "methods": [ - "batchArchivePlacements" - ] - }, - "BatchCreatePlacements": { - "methods": [ - "batchCreatePlacements" - ] - }, - "BatchDeactivatePlacements": { - "methods": [ - "batchDeactivatePlacements" - ] - }, - "BatchUpdatePlacements": { - "methods": [ - "batchUpdatePlacements" - ] - }, - "CreatePlacement": { - "methods": [ - "createPlacement" - ] - }, - "GetPlacement": { - "methods": [ - "getPlacement" - ] - }, - "ListPlacements": { - "methods": [ - "listPlacements" - ] - }, - "UpdatePlacement": { - "methods": [ - "updatePlacement" - ] - } - } - } - } - }, - "PrivateAuctionDealService": { - "clients": { - "grpc": { - "libraryClient": "PrivateAuctionDealServiceGapicClient", - "rpcs": { - "CreatePrivateAuctionDeal": { - "methods": [ - "createPrivateAuctionDeal" - ] - }, - "GetPrivateAuctionDeal": { - "methods": [ - "getPrivateAuctionDeal" - ] - }, - "ListPrivateAuctionDeals": { - "methods": [ - "listPrivateAuctionDeals" - ] - }, - "UpdatePrivateAuctionDeal": { - "methods": [ - "updatePrivateAuctionDeal" - ] - } - } - } - } - }, - "PrivateAuctionService": { - "clients": { - "grpc": { - "libraryClient": "PrivateAuctionServiceGapicClient", - "rpcs": { - "CreatePrivateAuction": { - "methods": [ - "createPrivateAuction" - ] - }, - "GetPrivateAuction": { - "methods": [ - "getPrivateAuction" - ] - }, - "ListPrivateAuctions": { - "methods": [ - "listPrivateAuctions" - ] - }, - "UpdatePrivateAuction": { - "methods": [ - "updatePrivateAuction" - ] - } - } - } - } - }, - "ProgrammaticBuyerService": { - "clients": { - "grpc": { - "libraryClient": "ProgrammaticBuyerServiceGapicClient", - "rpcs": { - "GetProgrammaticBuyer": { - "methods": [ - "getProgrammaticBuyer" - ] - }, - "ListProgrammaticBuyers": { - "methods": [ - "listProgrammaticBuyers" - ] - } - } - } - } - }, - "ReportService": { - "clients": { - "grpc": { - "libraryClient": "ReportServiceGapicClient", - "rpcs": { - "CreateReport": { - "methods": [ - "createReport" - ] - }, - "FetchReportResultRows": { - "methods": [ - "fetchReportResultRows" - ] - }, - "GetReport": { - "methods": [ - "getReport" - ] - }, - "ListReports": { - "methods": [ - "listReports" - ] - }, - "RunReport": { - "methods": [ - "runReport" - ] - }, - "UpdateReport": { - "methods": [ - "updateReport" - ] - } - } - } - } - }, - "RoleService": { - "clients": { - "grpc": { - "libraryClient": "RoleServiceGapicClient", - "rpcs": { - "GetRole": { - "methods": [ - "getRole" - ] - }, - "ListRoles": { - "methods": [ - "listRoles" - ] - } - } - } - } - }, - "SiteService": { - "clients": { - "grpc": { - "libraryClient": "SiteServiceGapicClient", - "rpcs": { - "BatchCreateSites": { - "methods": [ - "batchCreateSites" - ] - }, - "BatchDeactivateSites": { - "methods": [ - "batchDeactivateSites" - ] - }, - "BatchSubmitSitesForApproval": { - "methods": [ - "batchSubmitSitesForApproval" - ] - }, - "BatchUpdateSites": { - "methods": [ - "batchUpdateSites" - ] - }, - "CreateSite": { - "methods": [ - "createSite" - ] - }, - "GetSite": { - "methods": [ - "getSite" - ] - }, - "ListSites": { - "methods": [ - "listSites" - ] - }, - "UpdateSite": { - "methods": [ - "updateSite" - ] - } - } - } - } - }, - "TaxonomyCategoryService": { - "clients": { - "grpc": { - "libraryClient": "TaxonomyCategoryServiceGapicClient", - "rpcs": { - "GetTaxonomyCategory": { - "methods": [ - "getTaxonomyCategory" - ] - }, - "ListTaxonomyCategories": { - "methods": [ - "listTaxonomyCategories" - ] - } - } - } - } - }, - "TeamService": { - "clients": { - "grpc": { - "libraryClient": "TeamServiceGapicClient", - "rpcs": { - "BatchActivateTeams": { - "methods": [ - "batchActivateTeams" - ] - }, - "BatchCreateTeams": { - "methods": [ - "batchCreateTeams" - ] - }, - "BatchDeactivateTeams": { - "methods": [ - "batchDeactivateTeams" - ] - }, - "BatchUpdateTeams": { - "methods": [ - "batchUpdateTeams" - ] - }, - "CreateTeam": { - "methods": [ - "createTeam" - ] - }, - "GetTeam": { - "methods": [ - "getTeam" - ] - }, - "ListTeams": { - "methods": [ - "listTeams" - ] - }, - "UpdateTeam": { - "methods": [ - "updateTeam" - ] - } - } - } - } - }, - "UserService": { - "clients": { - "grpc": { - "libraryClient": "UserServiceGapicClient", - "rpcs": { - "GetUser": { - "methods": [ - "getUser" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_client_config.json deleted file mode 100644 index 5847adceb5d9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_client_config.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.AdBreakService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "CreateAdBreak": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteAdBreak": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetAdBreak": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListAdBreaks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateAdBreak": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_descriptor_config.php deleted file mode 100644 index 3ece9e4c9dd2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_descriptor_config.php +++ /dev/null @@ -1,101 +0,0 @@ - [ - 'google.ads.admanager.v1.AdBreakService' => [ - 'CreateAdBreak' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\AdBreak', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAdBreak' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAdBreak' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\AdBreak', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAdBreaks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAdBreaks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListAdBreaksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAdBreak' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\AdBreak', - 'headerParams' => [ - [ - 'keyName' => 'ad_break.name', - 'fieldAccessors' => [ - 'getAdBreak', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'adBreak' => 'networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}', - 'liveStreamEvent' => 'networks/{network_code}/liveStreamEvents/{live_stream_event}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_rest_client_config.php deleted file mode 100644 index 9d689c07198b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_break_service_rest_client_config.php +++ /dev/null @@ -1,135 +0,0 @@ - [ - 'google.ads.admanager.v1.AdBreakService' => [ - 'CreateAdBreak' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaks', - 'body' => 'ad_break', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaks', - 'body' => 'ad_break', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks', - 'body' => 'ad_break', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAdBreak' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAdBreak' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/liveStreamEventsByCustomAssetKey/*/adBreaks/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/liveStreamEvents/*/adBreaks/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAdBreaks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaks', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaks', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAdBreak' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{ad_break.name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}', - 'body' => 'ad_break', - 'placeholders' => [ - 'ad_break.name' => [ - 'getters' => [ - 'getAdBreak', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json deleted file mode 100644 index 5fdf2cea857b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.AdUnitService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetAdUnit": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListAdUnitSizes": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListAdUnits": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php deleted file mode 100644 index 9c643cc808b5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php +++ /dev/null @@ -1,84 +0,0 @@ - [ - 'google.ads.admanager.v1.AdUnitService' => [ - 'GetAdUnit' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\AdUnit', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAdUnitSizes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAdUnitSizes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListAdUnitSizesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListAdUnits' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAdUnits', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListAdUnitsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'adUnit' => 'networks/{network_code}/adUnits/{ad_unit}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php deleted file mode 100644 index 3ee1205f4bbe..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php +++ /dev/null @@ -1,75 +0,0 @@ - [ - 'google.ads.admanager.v1.AdUnitService' => [ - 'GetAdUnit' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/adUnits/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAdUnitSizes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/adUnitSizes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAdUnits' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/adUnits', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_client_config.json deleted file mode 100644 index 6ba24954bd35..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.BandwidthGroupService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetBandwidthGroup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListBandwidthGroups": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_descriptor_config.php deleted file mode 100644 index 32362f113a4a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.BandwidthGroupService' => [ - 'GetBandwidthGroup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BandwidthGroup', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListBandwidthGroups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBandwidthGroups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListBandwidthGroupsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'bandwidthGroup' => 'networks/{network_code}/bandwidthGroups/{bandwidth_group}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_rest_client_config.php deleted file mode 100644 index daf651c72f56..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/bandwidth_group_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.BandwidthGroupService' => [ - 'GetBandwidthGroup' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/bandwidthGroups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListBandwidthGroups' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/bandwidthGroups', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json deleted file mode 100644 index 00bdee6fd628..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.CompanyService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetCompany": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListCompanies": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php deleted file mode 100644 index 0de84ef423b8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.CompanyService' => [ - 'GetCompany' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Company', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCompanies' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCompanies', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListCompaniesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'company' => 'networks/{network_code}/companies/{company}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php deleted file mode 100644 index e38e4a6c1fb6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.CompanyService' => [ - 'GetCompany' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/companies/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCompanies' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/companies', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json deleted file mode 100644 index 2e9f9e2ab6dc..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.CustomFieldService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "BatchActivateCustomFields": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "BatchCreateCustomFields": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "BatchDeactivateCustomFields": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "BatchUpdateCustomFields": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateCustomField": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetCustomField": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListCustomFields": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateCustomField": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php deleted file mode 100644 index 1baa51a829ba..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php +++ /dev/null @@ -1,137 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomFieldService' => [ - 'BatchActivateCustomFields' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchActivateCustomFieldsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchCreateCustomFields' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateCustomFieldsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchDeactivateCustomFields' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchDeactivateCustomFieldsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdateCustomFields' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateCustomFieldsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomField' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\CustomField', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetCustomField' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\CustomField', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomFields' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomFields', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListCustomFieldsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateCustomField' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\CustomField', - 'headerParams' => [ - [ - 'keyName' => 'custom_field.name', - 'fieldAccessors' => [ - 'getCustomField', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'customField' => 'networks/{network_code}/customFields/{custom_field}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php deleted file mode 100644 index 57c58c335acf..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php +++ /dev/null @@ -1,140 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomFieldService' => [ - 'BatchActivateCustomFields' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchActivate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchCreateCustomFields' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchCreate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchDeactivateCustomFields' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchDeactivate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdateCustomFields' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/customFields:batchUpdate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomField' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/customFields', - 'body' => 'custom_field', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetCustomField' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/customFields/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomFields' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/customFields', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateCustomField' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{custom_field.name=networks/*/customFields/*}', - 'body' => 'custom_field', - 'placeholders' => [ - 'custom_field.name' => [ - 'getters' => [ - 'getCustomField', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json deleted file mode 100644 index 031df8f440ba..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.CustomTargetingKeyService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetCustomTargetingKey": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListCustomTargetingKeys": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php deleted file mode 100644 index e812151e40bd..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomTargetingKeyService' => [ - 'GetCustomTargetingKey' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\CustomTargetingKey', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomTargetingKeys' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomTargetingKeys', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListCustomTargetingKeysResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'customTargetingKey' => 'networks/{network_code}/customTargetingKeys/{custom_targeting_key}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php deleted file mode 100644 index c6345179cd9a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomTargetingKeyService' => [ - 'GetCustomTargetingKey' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/customTargetingKeys/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomTargetingKeys' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/customTargetingKeys', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json deleted file mode 100644 index e2444ae9ce7b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.CustomTargetingValueService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetCustomTargetingValue": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListCustomTargetingValues": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php deleted file mode 100644 index ccb4b68598a7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomTargetingValueService' => [ - 'GetCustomTargetingValue' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\CustomTargetingValue', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomTargetingValues' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomTargetingValues', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListCustomTargetingValuesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'customTargetingValue' => 'networks/{network_code}/customTargetingValues/{custom_targeting_value}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php deleted file mode 100644 index 0c905b342b08..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php +++ /dev/null @@ -1,76 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomTargetingValueService' => [ - 'GetCustomTargetingValue' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/customTargetingValues/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/customTargetingKeys/*/customTargetingValues/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomTargetingValues' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/customTargetingValues', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*/customTargetingKeys/*}/customTargetingValues', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_client_config.json deleted file mode 100644 index 237c2407312a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.DeviceCategoryService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetDeviceCategory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDeviceCategories": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_descriptor_config.php deleted file mode 100644 index bff023e7424a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.DeviceCategoryService' => [ - 'GetDeviceCategory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\DeviceCategory', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDeviceCategories' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDeviceCategories', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListDeviceCategoriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'deviceCategory' => 'networks/{network_code}/deviceCategories/{device_category}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_rest_client_config.php deleted file mode 100644 index a8b6129c4494..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/device_category_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.DeviceCategoryService' => [ - 'GetDeviceCategory' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/deviceCategories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDeviceCategories' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/deviceCategories', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json deleted file mode 100644 index 22fd1b90d729..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.EntitySignalsMappingService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "BatchCreateEntitySignalsMappings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "BatchUpdateEntitySignalsMappings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateEntitySignalsMapping": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetEntitySignalsMapping": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListEntitySignalsMappings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateEntitySignalsMapping": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php deleted file mode 100644 index 1becab7b8e54..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php +++ /dev/null @@ -1,113 +0,0 @@ - [ - 'google.ads.admanager.v1.EntitySignalsMappingService' => [ - 'BatchCreateEntitySignalsMappings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateEntitySignalsMappingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdateEntitySignalsMappings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateEntitySignalsMappingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEntitySignalsMapping' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\EntitySignalsMapping', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetEntitySignalsMapping' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\EntitySignalsMapping', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListEntitySignalsMappings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntitySignalsMappings', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListEntitySignalsMappingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateEntitySignalsMapping' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\EntitySignalsMapping', - 'headerParams' => [ - [ - 'keyName' => 'entity_signals_mapping.name', - 'fieldAccessors' => [ - 'getEntitySignalsMapping', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'entitySignalsMapping' => 'networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php deleted file mode 100644 index ae23b997470e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php +++ /dev/null @@ -1,116 +0,0 @@ - [ - 'google.ads.admanager.v1.EntitySignalsMappingService' => [ - 'BatchCreateEntitySignalsMappings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings:batchCreate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdateEntitySignalsMappings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings:batchUpdate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEntitySignalsMapping' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings', - 'body' => 'entity_signals_mapping', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetEntitySignalsMapping' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/entitySignalsMappings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListEntitySignalsMappings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateEntitySignalsMapping' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{entity_signals_mapping.name=networks/*/entitySignalsMappings/*}', - 'body' => 'entity_signals_mapping', - 'placeholders' => [ - 'entity_signals_mapping.name' => [ - 'getters' => [ - 'getEntitySignalsMapping', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_client_config.json deleted file mode 100644 index a0eabfcdb67a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.GeoTargetService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetGeoTarget": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListGeoTargets": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_descriptor_config.php deleted file mode 100644 index 849d00c5ecc3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.GeoTargetService' => [ - 'GetGeoTarget' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\GeoTarget', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListGeoTargets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGeoTargets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListGeoTargetsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'geoTarget' => 'networks/{network_code}/geoTargets/{geo_target}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_rest_client_config.php deleted file mode 100644 index ab9ae7fb7ea2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/geo_target_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.GeoTargetService' => [ - 'GetGeoTarget' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/geoTargets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListGeoTargets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/geoTargets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json deleted file mode 100644 index aec7ab1f074c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.NetworkService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetNetwork": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListNetworks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php deleted file mode 100644 index 069e325fe37c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php +++ /dev/null @@ -1,47 +0,0 @@ - [ - 'google.ads.admanager.v1.NetworkService' => [ - 'GetNetwork' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Network', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListNetworks' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListNetworksResponse', - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php deleted file mode 100644 index 04d5e848d9b0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php +++ /dev/null @@ -1,57 +0,0 @@ - [ - 'google.ads.admanager.v1.NetworkService' => [ - 'GetNetwork' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListNetworks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/networks', - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_client_config.json deleted file mode 100644 index dcda85481f3b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.OperatingSystemService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetOperatingSystem": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListOperatingSystems": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_descriptor_config.php deleted file mode 100644 index fb3f27945838..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.OperatingSystemService' => [ - 'GetOperatingSystem' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\OperatingSystem', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListOperatingSystems' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getOperatingSystems', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListOperatingSystemsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'operatingSystem' => 'networks/{network_code}/operatingSystems/{operating_system}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_rest_client_config.php deleted file mode 100644 index 08ad6366f641..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.OperatingSystemService' => [ - 'GetOperatingSystem' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operatingSystems/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperatingSystems' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/operatingSystems', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_client_config.json deleted file mode 100644 index 2f54e88b4d22..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.OperatingSystemVersionService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetOperatingSystemVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListOperatingSystemVersions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_descriptor_config.php deleted file mode 100644 index b4ee7c06e592..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.OperatingSystemVersionService' => [ - 'GetOperatingSystemVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\OperatingSystemVersion', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListOperatingSystemVersions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getOperatingSystemVersions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListOperatingSystemVersionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'operatingSystemVersion' => 'networks/{network_code}/operatingSystemVersions/{operating_system_version}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_rest_client_config.php deleted file mode 100644 index 86355344d010..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/operating_system_version_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.OperatingSystemVersionService' => [ - 'GetOperatingSystemVersion' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operatingSystemVersions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperatingSystemVersions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/operatingSystemVersions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json deleted file mode 100644 index de7c27588915..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.OrderService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "GetOrder": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListOrders": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php deleted file mode 100644 index b1df1fc01747..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.OrderService' => [ - 'GetOrder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Order', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListOrders' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getOrders', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListOrdersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'order' => 'networks/{network_code}/orders/{order}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php deleted file mode 100644 index 25fa03967a20..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.OrderService' => [ - 'GetOrder' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/orders/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOrders' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/orders', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json deleted file mode 100644 index 5c98f37c18ed..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.PlacementService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "BatchActivatePlacements": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "BatchArchivePlacements": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "BatchCreatePlacements": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "BatchDeactivatePlacements": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "BatchUpdatePlacements": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreatePlacement": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetPlacement": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListPlacements": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdatePlacement": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php deleted file mode 100644 index c7d746ba9837..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php +++ /dev/null @@ -1,150 +0,0 @@ - [ - 'google.ads.admanager.v1.PlacementService' => [ - 'BatchActivatePlacements' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchActivatePlacementsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchArchivePlacements' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchArchivePlacementsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchCreatePlacements' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchCreatePlacementsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchDeactivatePlacements' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchDeactivatePlacementsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdatePlacements' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdatePlacementsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreatePlacement' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Placement', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetPlacement' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Placement', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListPlacements' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getPlacements', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListPlacementsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdatePlacement' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Placement', - 'headerParams' => [ - [ - 'keyName' => 'placement.name', - 'fieldAccessors' => [ - 'getPlacement', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'adUnit' => 'networks/{network_code}/adUnits/{ad_unit}', - 'network' => 'networks/{network_code}', - 'placement' => 'networks/{network_code}/placements/{placement}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php deleted file mode 100644 index f1db13666f62..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php +++ /dev/null @@ -1,152 +0,0 @@ - [ - 'google.ads.admanager.v1.PlacementService' => [ - 'BatchActivatePlacements' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchActivate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchArchivePlacements' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchArchive', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchCreatePlacements' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchCreate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchDeactivatePlacements' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchDeactivate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdatePlacements' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/placements:batchUpdate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreatePlacement' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/placements', - 'body' => 'placement', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetPlacement' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/placements/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListPlacements' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/placements', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdatePlacement' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{placement.name=networks/*/placements/*}', - 'body' => 'placement', - 'placeholders' => [ - 'placement.name' => [ - 'getters' => [ - 'getPlacement', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_client_config.json deleted file mode 100644 index 484e9fe1324f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_client_config.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.PrivateAuctionDealService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "CreatePrivateAuctionDeal": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetPrivateAuctionDeal": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListPrivateAuctionDeals": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdatePrivateAuctionDeal": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_descriptor_config.php deleted file mode 100644 index 8fee83088d12..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_descriptor_config.php +++ /dev/null @@ -1,110 +0,0 @@ - [ - 'google.ads.admanager.v1.PrivateAuctionDealService' => [ - 'CreatePrivateAuctionDeal' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuctionDeal', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetPrivateAuctionDeal' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuctionDeal', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListPrivateAuctionDeals' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getPrivateAuctionDeals', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListPrivateAuctionDealsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdatePrivateAuctionDeal' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuctionDeal', - 'headerParams' => [ - [ - 'keyName' => 'private_auction_deal.name', - 'fieldAccessors' => [ - 'getPrivateAuctionDeal', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'adUnit' => 'networks/{network_code}/adUnits/{ad_unit}', - 'application' => 'networks/{network_code}/applications/{application}', - 'audienceSegment' => 'networks/{network_code}/audienceSegments/{audience_segment}', - 'bandwidthGroup' => 'networks/{network_code}/bandwidthGroups/{bandwidth_group}', - 'browser' => 'networks/{network_code}/browsers/{browser}', - 'browserLanguage' => 'networks/{network_code}/browserLanguages/{browser_language}', - 'cmsMetadataValue' => 'networks/{network_code}/cmsMetadataValues/{cms_metadata_value}', - 'content' => 'networks/{network_code}/content/{content}', - 'contentBundle' => 'networks/{network_code}/contentBundles/{content_bundle}', - 'customTargetingKey' => 'networks/{network_code}/customTargetingKeys/{custom_targeting_key}', - 'customTargetingValue' => 'networks/{network_code}/customTargetingValues/{custom_targeting_value}', - 'deviceCapability' => 'networks/{network_code}/deviceCapabilities/{device_capability}', - 'deviceCategory' => 'networks/{network_code}/deviceCategories/{device_category}', - 'deviceManufacturer' => 'networks/{network_code}/deviceManufacturers/{device_manufacturer}', - 'geoTarget' => 'networks/{network_code}/geoTargets/{geo_target}', - 'mobileCarrier' => 'networks/{network_code}/mobileCarriers/{mobile_carrier}', - 'mobileDevice' => 'networks/{network_code}/mobileDevices/{mobile_device}', - 'mobileDeviceSubmodel' => 'networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}', - 'network' => 'networks/{network_code}', - 'operatingSystem' => 'networks/{network_code}/operatingSystems/{operating_system}', - 'operatingSystemVersion' => 'networks/{network_code}/operatingSystemVersions/{operating_system_version}', - 'placement' => 'networks/{network_code}/placements/{placement}', - 'privateAuctionDeal' => 'networks/{network_code}/privateAuctionDeals/{private_auction_deal}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_rest_client_config.php deleted file mode 100644 index 7b78da5b2b4d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_deal_service_rest_client_config.php +++ /dev/null @@ -1,92 +0,0 @@ - [ - 'google.ads.admanager.v1.PrivateAuctionDealService' => [ - 'CreatePrivateAuctionDeal' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/privateAuctionDeals', - 'body' => 'private_auction_deal', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetPrivateAuctionDeal' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/privateAuctionDeals/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListPrivateAuctionDeals' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/privateAuctionDeals', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdatePrivateAuctionDeal' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{private_auction_deal.name=networks/*/privateAuctionDeals/*}', - 'body' => 'private_auction_deal', - 'placeholders' => [ - 'private_auction_deal.name' => [ - 'getters' => [ - 'getPrivateAuctionDeal', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_client_config.json deleted file mode 100644 index 481c20204110..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_client_config.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.PrivateAuctionService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "CreatePrivateAuction": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetPrivateAuction": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListPrivateAuctions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdatePrivateAuction": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_descriptor_config.php deleted file mode 100644 index ee1c1cb6536e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_descriptor_config.php +++ /dev/null @@ -1,90 +0,0 @@ - [ - 'google.ads.admanager.v1.PrivateAuctionService' => [ - 'CreatePrivateAuction' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuction', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetPrivateAuction' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuction', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListPrivateAuctions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getPrivateAuctions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListPrivateAuctionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdatePrivateAuction' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\PrivateAuction', - 'headerParams' => [ - [ - 'keyName' => 'private_auction.name', - 'fieldAccessors' => [ - 'getPrivateAuction', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'privateAuction' => 'networks/{network_code}/privateAuctions/{private_auction}', - 'user' => 'networks/{network_code}/users/{user}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_rest_client_config.php deleted file mode 100644 index ad70f205ecc4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/private_auction_service_rest_client_config.php +++ /dev/null @@ -1,92 +0,0 @@ - [ - 'google.ads.admanager.v1.PrivateAuctionService' => [ - 'CreatePrivateAuction' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/privateAuctions', - 'body' => 'private_auction', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetPrivateAuction' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/privateAuctions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListPrivateAuctions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/privateAuctions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdatePrivateAuction' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{private_auction.name=networks/*/privateAuctions/*}', - 'body' => 'private_auction', - 'placeholders' => [ - 'private_auction.name' => [ - 'getters' => [ - 'getPrivateAuction', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_client_config.json deleted file mode 100644 index 8a0cf3d381e5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.ProgrammaticBuyerService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetProgrammaticBuyer": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListProgrammaticBuyers": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_descriptor_config.php deleted file mode 100644 index 107ae4c9ad22..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.ProgrammaticBuyerService' => [ - 'GetProgrammaticBuyer' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ProgrammaticBuyer', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListProgrammaticBuyers' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProgrammaticBuyers', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListProgrammaticBuyersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'programmaticBuyer' => 'networks/{network_code}/programmaticBuyers/{programmatic_buyer}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_rest_client_config.php deleted file mode 100644 index 3ca8989bfae2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/programmatic_buyer_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.ProgrammaticBuyerService' => [ - 'GetProgrammaticBuyer' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/programmaticBuyers/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListProgrammaticBuyers' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/programmaticBuyers', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json deleted file mode 100644 index 30eac575d3c6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.ReportService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "CreateReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchReportResultRows": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListReports": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RunReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php deleted file mode 100644 index 168a811a5a8a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php +++ /dev/null @@ -1,120 +0,0 @@ - [ - 'google.ads.admanager.v1.ReportService' => [ - 'RunReport' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Ads\AdManager\V1\RunReportResponse', - 'metadataReturnType' => '\Google\Ads\AdManager\V1\RunReportMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Report', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'FetchReportResultRows' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\FetchReportResultRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Report', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListReports' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getReports', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListReportsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Report', - 'headerParams' => [ - [ - 'keyName' => 'report.name', - 'fieldAccessors' => [ - 'getReport', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'report' => 'networks/{network_code}/reports/{report}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php deleted file mode 100644 index c1b90844f554..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php +++ /dev/null @@ -1,115 +0,0 @@ - [ - 'google.ads.admanager.v1.ReportService' => [ - 'CreateReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/reports', - 'body' => 'report', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'FetchReportResultRows' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/reports/*/results/*}:fetchRows', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetReport' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/reports/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListReports' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/reports', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RunReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=networks/*/reports/*}:run', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateReport' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{report.name=networks/*/reports/*}', - 'body' => 'report', - 'placeholders' => [ - 'report.name' => [ - 'getters' => [ - 'getReport', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json deleted file mode 100644 index ac76997d5641..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.RoleService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetRole": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListRoles": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php deleted file mode 100644 index e5fccde6c68c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.RoleService' => [ - 'GetRole' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Role', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListRoles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRoles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListRolesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'role' => 'networks/{network_code}/roles/{role}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php deleted file mode 100644 index 56dad0661bb7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.RoleService' => [ - 'GetRole' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/roles/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListRoles' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/roles', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json deleted file mode 100644 index 2de30370c2f5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.TaxonomyCategoryService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetTaxonomyCategory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListTaxonomyCategories": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php deleted file mode 100644 index 42d63f9f16d4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.TaxonomyCategoryService' => [ - 'GetTaxonomyCategory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\TaxonomyCategory', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListTaxonomyCategories' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTaxonomyCategories', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListTaxonomyCategoriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'taxonomyCategory' => 'networks/{network_code}/taxonomyCategories/{taxonomy_category}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php deleted file mode 100644 index 3298420fd056..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.TaxonomyCategoryService' => [ - 'GetTaxonomyCategory' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/taxonomyCategories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListTaxonomyCategories' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/taxonomyCategories', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json deleted file mode 100644 index 34a4b4903db2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.UserService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "GetUser": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php deleted file mode 100644 index bbaf933b1efc..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php +++ /dev/null @@ -1,43 +0,0 @@ - [ - 'google.ads.admanager.v1.UserService' => [ - 'GetUser' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\User', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'user' => 'networks/{network_code}/users/{user}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php deleted file mode 100644 index acb09ac7480b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php +++ /dev/null @@ -1,53 +0,0 @@ - [ - 'google.ads.admanager.v1.UserService' => [ - 'GetUser' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/users/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdBreakServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdBreakServiceClientTest.php deleted file mode 100644 index 985787ae2478..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdBreakServiceClientTest.php +++ /dev/null @@ -1,508 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AdBreakServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AdBreakServiceClient($options); - } - - /** @test */ - public function createAdBreakTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $adBreakId = 'adBreakId-514252553'; - $assetKey = 'assetKey1315618960'; - $customAssetKey = 'customAssetKey-2017235646'; - $breakSequence = 1853489407; - $podTemplateName = 'podTemplateName-120206666'; - $customParams = 'customParams1065802260'; - $scte35CueOut = 'scte35CueOut1064400035'; - $expectedResponse = new AdBreak(); - $expectedResponse->setName($name); - $expectedResponse->setAdBreakId($adBreakId); - $expectedResponse->setAssetKey($assetKey); - $expectedResponse->setCustomAssetKey($customAssetKey); - $expectedResponse->setBreakSequence($breakSequence); - $expectedResponse->setPodTemplateName($podTemplateName); - $expectedResponse->setCustomParams($customParams); - $expectedResponse->setScte35CueOut($scte35CueOut); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->liveStreamEventName('[NETWORK_CODE]', '[LIVE_STREAM_EVENT]'); - $adBreak = new AdBreak(); - $adBreakDuration = new Duration(); - $adBreak->setDuration($adBreakDuration); - $request = (new CreateAdBreakRequest()) - ->setParent($formattedParent) - ->setAdBreak($adBreak); - $response = $gapicClient->createAdBreak($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdBreakService/CreateAdBreak', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAdBreak(); - $this->assertProtobufEquals($adBreak, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAdBreakExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->liveStreamEventName('[NETWORK_CODE]', '[LIVE_STREAM_EVENT]'); - $adBreak = new AdBreak(); - $adBreakDuration = new Duration(); - $adBreak->setDuration($adBreakDuration); - $request = (new CreateAdBreakRequest()) - ->setParent($formattedParent) - ->setAdBreak($adBreak); - try { - $gapicClient->createAdBreak($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAdBreakTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); - $request = (new DeleteAdBreakRequest()) - ->setName($formattedName); - $gapicClient->deleteAdBreak($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdBreakService/DeleteAdBreak', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAdBreakExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); - $request = (new DeleteAdBreakRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteAdBreak($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdBreakTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $adBreakId = 'adBreakId-514252553'; - $assetKey = 'assetKey1315618960'; - $customAssetKey = 'customAssetKey-2017235646'; - $breakSequence = 1853489407; - $podTemplateName = 'podTemplateName-120206666'; - $customParams = 'customParams1065802260'; - $scte35CueOut = 'scte35CueOut1064400035'; - $expectedResponse = new AdBreak(); - $expectedResponse->setName($name2); - $expectedResponse->setAdBreakId($adBreakId); - $expectedResponse->setAssetKey($assetKey); - $expectedResponse->setCustomAssetKey($customAssetKey); - $expectedResponse->setBreakSequence($breakSequence); - $expectedResponse->setPodTemplateName($podTemplateName); - $expectedResponse->setCustomParams($customParams); - $expectedResponse->setScte35CueOut($scte35CueOut); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); - $request = (new GetAdBreakRequest()) - ->setName($formattedName); - $response = $gapicClient->getAdBreak($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdBreakService/GetAdBreak', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdBreakExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->adBreakName('[NETWORK_CODE]', '[ASSET_KEY]', '[AD_BREAK]'); - $request = (new GetAdBreakRequest()) - ->setName($formattedName); - try { - $gapicClient->getAdBreak($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdBreaksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $adBreaksElement = new AdBreak(); - $adBreaks = [ - $adBreaksElement, - ]; - $expectedResponse = new ListAdBreaksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setAdBreaks($adBreaks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->liveStreamEventName('[NETWORK_CODE]', '[LIVE_STREAM_EVENT]'); - $request = (new ListAdBreaksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAdBreaks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAdBreaks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdBreakService/ListAdBreaks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdBreaksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->liveStreamEventName('[NETWORK_CODE]', '[LIVE_STREAM_EVENT]'); - $request = (new ListAdBreaksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAdBreaks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAdBreakTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $adBreakId = 'adBreakId-514252553'; - $assetKey = 'assetKey1315618960'; - $customAssetKey = 'customAssetKey-2017235646'; - $breakSequence = 1853489407; - $podTemplateName = 'podTemplateName-120206666'; - $customParams = 'customParams1065802260'; - $scte35CueOut = 'scte35CueOut1064400035'; - $expectedResponse = new AdBreak(); - $expectedResponse->setName($name); - $expectedResponse->setAdBreakId($adBreakId); - $expectedResponse->setAssetKey($assetKey); - $expectedResponse->setCustomAssetKey($customAssetKey); - $expectedResponse->setBreakSequence($breakSequence); - $expectedResponse->setPodTemplateName($podTemplateName); - $expectedResponse->setCustomParams($customParams); - $expectedResponse->setScte35CueOut($scte35CueOut); - $transport->addResponse($expectedResponse); - // Mock request - $adBreak = new AdBreak(); - $adBreakDuration = new Duration(); - $adBreak->setDuration($adBreakDuration); - $updateMask = new FieldMask(); - $request = (new UpdateAdBreakRequest()) - ->setAdBreak($adBreak) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAdBreak($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdBreakService/UpdateAdBreak', $actualFuncCall); - $actualValue = $actualRequestObject->getAdBreak(); - $this->assertProtobufEquals($adBreak, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAdBreakExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $adBreak = new AdBreak(); - $adBreakDuration = new Duration(); - $adBreak->setDuration($adBreakDuration); - $updateMask = new FieldMask(); - $request = (new UpdateAdBreakRequest()) - ->setAdBreak($adBreak) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateAdBreak($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAdBreakAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $adBreakId = 'adBreakId-514252553'; - $assetKey = 'assetKey1315618960'; - $customAssetKey = 'customAssetKey-2017235646'; - $breakSequence = 1853489407; - $podTemplateName = 'podTemplateName-120206666'; - $customParams = 'customParams1065802260'; - $scte35CueOut = 'scte35CueOut1064400035'; - $expectedResponse = new AdBreak(); - $expectedResponse->setName($name); - $expectedResponse->setAdBreakId($adBreakId); - $expectedResponse->setAssetKey($assetKey); - $expectedResponse->setCustomAssetKey($customAssetKey); - $expectedResponse->setBreakSequence($breakSequence); - $expectedResponse->setPodTemplateName($podTemplateName); - $expectedResponse->setCustomParams($customParams); - $expectedResponse->setScte35CueOut($scte35CueOut); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->liveStreamEventName('[NETWORK_CODE]', '[LIVE_STREAM_EVENT]'); - $adBreak = new AdBreak(); - $adBreakDuration = new Duration(); - $adBreak->setDuration($adBreakDuration); - $request = (new CreateAdBreakRequest()) - ->setParent($formattedParent) - ->setAdBreak($adBreak); - $response = $gapicClient->createAdBreakAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdBreakService/CreateAdBreak', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAdBreak(); - $this->assertProtobufEquals($adBreak, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php deleted file mode 100644 index e33c98ce4fa2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php +++ /dev/null @@ -1,348 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AdUnitServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AdUnitServiceClient($options); - } - - /** @test */ - public function getAdUnitTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $adUnitId = 167061094; - $parentAdUnit = 'parentAdUnit-898168437'; - $displayName = 'displayName1615086568'; - $adUnitCode = 'adUnitCode-1632086356'; - $description = 'description-1724546052'; - $explicitlyTargeted = true; - $hasChildren = true; - $externalSetTopBoxChannelId = 'externalSetTopBoxChannelId-1727346970'; - $appliedAdsenseEnabled = false; - $effectiveAdsenseEnabled = false; - $expectedResponse = new AdUnit(); - $expectedResponse->setName($name2); - $expectedResponse->setAdUnitId($adUnitId); - $expectedResponse->setParentAdUnit($parentAdUnit); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAdUnitCode($adUnitCode); - $expectedResponse->setDescription($description); - $expectedResponse->setExplicitlyTargeted($explicitlyTargeted); - $expectedResponse->setHasChildren($hasChildren); - $expectedResponse->setExternalSetTopBoxChannelId($externalSetTopBoxChannelId); - $expectedResponse->setAppliedAdsenseEnabled($appliedAdsenseEnabled); - $expectedResponse->setEffectiveAdsenseEnabled($effectiveAdsenseEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); - $request = (new GetAdUnitRequest()) - ->setName($formattedName); - $response = $gapicClient->getAdUnit($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdUnitService/GetAdUnit', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdUnitExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); - $request = (new GetAdUnitRequest()) - ->setName($formattedName); - try { - $gapicClient->getAdUnit($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdUnitSizesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $adUnitSizesElement = new AdUnitSize(); - $adUnitSizes = [ - $adUnitSizesElement, - ]; - $expectedResponse = new ListAdUnitSizesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setAdUnitSizes($adUnitSizes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListAdUnitSizesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAdUnitSizes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAdUnitSizes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdUnitService/ListAdUnitSizes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdUnitSizesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListAdUnitSizesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAdUnitSizes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdUnitsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $adUnitsElement = new AdUnit(); - $adUnits = [ - $adUnitsElement, - ]; - $expectedResponse = new ListAdUnitsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setAdUnits($adUnits); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListAdUnitsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAdUnits($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAdUnits()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdUnitService/ListAdUnits', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdUnitsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListAdUnitsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAdUnits($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdUnitAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $adUnitId = 167061094; - $parentAdUnit = 'parentAdUnit-898168437'; - $displayName = 'displayName1615086568'; - $adUnitCode = 'adUnitCode-1632086356'; - $description = 'description-1724546052'; - $explicitlyTargeted = true; - $hasChildren = true; - $externalSetTopBoxChannelId = 'externalSetTopBoxChannelId-1727346970'; - $appliedAdsenseEnabled = false; - $effectiveAdsenseEnabled = false; - $expectedResponse = new AdUnit(); - $expectedResponse->setName($name2); - $expectedResponse->setAdUnitId($adUnitId); - $expectedResponse->setParentAdUnit($parentAdUnit); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAdUnitCode($adUnitCode); - $expectedResponse->setDescription($description); - $expectedResponse->setExplicitlyTargeted($explicitlyTargeted); - $expectedResponse->setHasChildren($hasChildren); - $expectedResponse->setExternalSetTopBoxChannelId($externalSetTopBoxChannelId); - $expectedResponse->setAppliedAdsenseEnabled($appliedAdsenseEnabled); - $expectedResponse->setEffectiveAdsenseEnabled($effectiveAdsenseEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); - $request = (new GetAdUnitRequest()) - ->setName($formattedName); - $response = $gapicClient->getAdUnitAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdUnitService/GetAdUnit', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BandwidthGroupServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BandwidthGroupServiceClientTest.php deleted file mode 100644 index 4c2bc8bb2486..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/BandwidthGroupServiceClientTest.php +++ /dev/null @@ -1,235 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return BandwidthGroupServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new BandwidthGroupServiceClient($options); - } - - /** @test */ - public function getBandwidthGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new BandwidthGroup(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->bandwidthGroupName('[NETWORK_CODE]', '[BANDWIDTH_GROUP]'); - $request = (new GetBandwidthGroupRequest()) - ->setName($formattedName); - $response = $gapicClient->getBandwidthGroup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.BandwidthGroupService/GetBandwidthGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBandwidthGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->bandwidthGroupName('[NETWORK_CODE]', '[BANDWIDTH_GROUP]'); - $request = (new GetBandwidthGroupRequest()) - ->setName($formattedName); - try { - $gapicClient->getBandwidthGroup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBandwidthGroupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $bandwidthGroupsElement = new BandwidthGroup(); - $bandwidthGroups = [ - $bandwidthGroupsElement, - ]; - $expectedResponse = new ListBandwidthGroupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setBandwidthGroups($bandwidthGroups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListBandwidthGroupsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBandwidthGroups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBandwidthGroups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.BandwidthGroupService/ListBandwidthGroups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBandwidthGroupsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListBandwidthGroupsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBandwidthGroups($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBandwidthGroupAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new BandwidthGroup(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->bandwidthGroupName('[NETWORK_CODE]', '[BANDWIDTH_GROUP]'); - $request = (new GetBandwidthGroupRequest()) - ->setName($formattedName); - $response = $gapicClient->getBandwidthGroupAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.BandwidthGroupService/GetBandwidthGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php deleted file mode 100644 index f0aad61c261f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php +++ /dev/null @@ -1,271 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CompanyServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CompanyServiceClient($options); - } - - /** @test */ - public function getCompanyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $companyId = 847673315; - $displayName = 'displayName1615086568'; - $address = 'address-1147692044'; - $email = 'email96619420'; - $fax = 'fax101149'; - $phone = 'phone106642798'; - $externalId = 'externalId-1153075697'; - $comment = 'comment950398559'; - $primaryContact = 'primaryContact203339491'; - $thirdPartyCompanyId = 2003341038; - $expectedResponse = new Company(); - $expectedResponse->setName($name2); - $expectedResponse->setCompanyId($companyId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAddress($address); - $expectedResponse->setEmail($email); - $expectedResponse->setFax($fax); - $expectedResponse->setPhone($phone); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setComment($comment); - $expectedResponse->setPrimaryContact($primaryContact); - $expectedResponse->setThirdPartyCompanyId($thirdPartyCompanyId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); - $request = (new GetCompanyRequest()) - ->setName($formattedName); - $response = $gapicClient->getCompany($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CompanyService/GetCompany', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCompanyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); - $request = (new GetCompanyRequest()) - ->setName($formattedName); - try { - $gapicClient->getCompany($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCompaniesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $companiesElement = new Company(); - $companies = [ - $companiesElement, - ]; - $expectedResponse = new ListCompaniesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setCompanies($companies); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCompaniesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCompanies($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCompanies()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CompanyService/ListCompanies', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCompaniesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCompaniesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCompanies($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCompanyAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $companyId = 847673315; - $displayName = 'displayName1615086568'; - $address = 'address-1147692044'; - $email = 'email96619420'; - $fax = 'fax101149'; - $phone = 'phone106642798'; - $externalId = 'externalId-1153075697'; - $comment = 'comment950398559'; - $primaryContact = 'primaryContact203339491'; - $thirdPartyCompanyId = 2003341038; - $expectedResponse = new Company(); - $expectedResponse->setName($name2); - $expectedResponse->setCompanyId($companyId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAddress($address); - $expectedResponse->setEmail($email); - $expectedResponse->setFax($fax); - $expectedResponse->setPhone($phone); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setComment($comment); - $expectedResponse->setPrimaryContact($primaryContact); - $expectedResponse->setThirdPartyCompanyId($thirdPartyCompanyId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); - $request = (new GetCompanyRequest()) - ->setName($formattedName); - $response = $gapicClient->getCompanyAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CompanyService/GetCompany', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php deleted file mode 100644 index befe9af7b0cc..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php +++ /dev/null @@ -1,719 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CustomFieldServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CustomFieldServiceClient($options); - } - - /** @test */ - public function batchActivateCustomFieldsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchActivateCustomFieldsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'), - ]; - $request = (new BatchActivateCustomFieldsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - $response = $gapicClient->batchActivateCustomFields($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchActivateCustomFields', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchActivateCustomFieldsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'), - ]; - $request = (new BatchActivateCustomFieldsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - try { - $gapicClient->batchActivateCustomFields($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateCustomFieldsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateCustomFieldsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchCreateCustomFieldsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateCustomFields($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchCreateCustomFields', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateCustomFieldsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchCreateCustomFieldsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchCreateCustomFields($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeactivateCustomFieldsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchDeactivateCustomFieldsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'), - ]; - $request = (new BatchDeactivateCustomFieldsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - $response = $gapicClient->batchDeactivateCustomFields($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchDeactivateCustomFields', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeactivateCustomFieldsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'), - ]; - $request = (new BatchDeactivateCustomFieldsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - try { - $gapicClient->batchDeactivateCustomFields($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateCustomFieldsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateCustomFieldsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchUpdateCustomFieldsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchUpdateCustomFields($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchUpdateCustomFields', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateCustomFieldsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchUpdateCustomFieldsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchUpdateCustomFields($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomFieldTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customFieldId = 66688114; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomField(); - $expectedResponse->setName($name); - $expectedResponse->setCustomFieldId($customFieldId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $customField = new CustomField(); - $customFieldDisplayName = 'customFieldDisplayName-1447155036'; - $customField->setDisplayName($customFieldDisplayName); - $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; - $customField->setEntityType($customFieldEntityType); - $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; - $customField->setDataType($customFieldDataType); - $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; - $customField->setVisibility($customFieldVisibility); - $request = (new CreateCustomFieldRequest()) - ->setParent($formattedParent) - ->setCustomField($customField); - $response = $gapicClient->createCustomField($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/CreateCustomField', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomField(); - $this->assertProtobufEquals($customField, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomFieldExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $customField = new CustomField(); - $customFieldDisplayName = 'customFieldDisplayName-1447155036'; - $customField->setDisplayName($customFieldDisplayName); - $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; - $customField->setEntityType($customFieldEntityType); - $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; - $customField->setDataType($customFieldDataType); - $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; - $customField->setVisibility($customFieldVisibility); - $request = (new CreateCustomFieldRequest()) - ->setParent($formattedParent) - ->setCustomField($customField); - try { - $gapicClient->createCustomField($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomFieldTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $customFieldId = 66688114; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomField(); - $expectedResponse->setName($name2); - $expectedResponse->setCustomFieldId($customFieldId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); - $request = (new GetCustomFieldRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomField($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/GetCustomField', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomFieldExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); - $request = (new GetCustomFieldRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomField($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomFieldsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $customFieldsElement = new CustomField(); - $customFields = [ - $customFieldsElement, - ]; - $expectedResponse = new ListCustomFieldsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setCustomFields($customFields); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCustomFieldsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomFields($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomFields()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/ListCustomFields', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomFieldsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCustomFieldsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomFields($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomFieldTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customFieldId = 66688114; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomField(); - $expectedResponse->setName($name); - $expectedResponse->setCustomFieldId($customFieldId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $customField = new CustomField(); - $customFieldDisplayName = 'customFieldDisplayName-1447155036'; - $customField->setDisplayName($customFieldDisplayName); - $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; - $customField->setEntityType($customFieldEntityType); - $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; - $customField->setDataType($customFieldDataType); - $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; - $customField->setVisibility($customFieldVisibility); - $updateMask = new FieldMask(); - $request = (new UpdateCustomFieldRequest()) - ->setCustomField($customField) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateCustomField($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/UpdateCustomField', $actualFuncCall); - $actualValue = $actualRequestObject->getCustomField(); - $this->assertProtobufEquals($customField, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomFieldExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $customField = new CustomField(); - $customFieldDisplayName = 'customFieldDisplayName-1447155036'; - $customField->setDisplayName($customFieldDisplayName); - $customFieldEntityType = CustomFieldEntityType::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED; - $customField->setEntityType($customFieldEntityType); - $customFieldDataType = CustomFieldDataType::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED; - $customField->setDataType($customFieldDataType); - $customFieldVisibility = CustomFieldVisibility::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED; - $customField->setVisibility($customFieldVisibility); - $updateMask = new FieldMask(); - $request = (new UpdateCustomFieldRequest()) - ->setCustomField($customField) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateCustomField($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchActivateCustomFieldsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchActivateCustomFieldsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'), - ]; - $request = (new BatchActivateCustomFieldsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - $response = $gapicClient->batchActivateCustomFieldsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/BatchActivateCustomFields', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php deleted file mode 100644 index 04fdd9c3caad..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php +++ /dev/null @@ -1,243 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CustomTargetingKeyServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CustomTargetingKeyServiceClient($options); - } - - /** @test */ - public function getCustomTargetingKeyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $customTargetingKeyId = 138683049; - $adTagName = 'adTagName-1355595604'; - $displayName = 'displayName1615086568'; - $expectedResponse = new CustomTargetingKey(); - $expectedResponse->setName($name2); - $expectedResponse->setCustomTargetingKeyId($customTargetingKeyId); - $expectedResponse->setAdTagName($adTagName); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); - $request = (new GetCustomTargetingKeyRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomTargetingKey($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingKeyService/GetCustomTargetingKey', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomTargetingKeyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); - $request = (new GetCustomTargetingKeyRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomTargetingKey($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomTargetingKeysTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $customTargetingKeysElement = new CustomTargetingKey(); - $customTargetingKeys = [ - $customTargetingKeysElement, - ]; - $expectedResponse = new ListCustomTargetingKeysResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setCustomTargetingKeys($customTargetingKeys); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCustomTargetingKeysRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomTargetingKeys($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomTargetingKeys()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingKeyService/ListCustomTargetingKeys', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomTargetingKeysExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCustomTargetingKeysRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomTargetingKeys($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomTargetingKeyAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $customTargetingKeyId = 138683049; - $adTagName = 'adTagName-1355595604'; - $displayName = 'displayName1615086568'; - $expectedResponse = new CustomTargetingKey(); - $expectedResponse->setName($name2); - $expectedResponse->setCustomTargetingKeyId($customTargetingKeyId); - $expectedResponse->setAdTagName($adTagName); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); - $request = (new GetCustomTargetingKeyRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomTargetingKeyAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingKeyService/GetCustomTargetingKey', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php deleted file mode 100644 index 05682e0ffe31..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php +++ /dev/null @@ -1,243 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CustomTargetingValueServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CustomTargetingValueServiceClient($options); - } - - /** @test */ - public function getCustomTargetingValueTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $customTargetingKey = 'customTargetingKey-385515133'; - $adTagName = 'adTagName-1355595604'; - $displayName = 'displayName1615086568'; - $expectedResponse = new CustomTargetingValue(); - $expectedResponse->setName($name2); - $expectedResponse->setCustomTargetingKey($customTargetingKey); - $expectedResponse->setAdTagName($adTagName); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customTargetingValueName('[NETWORK_CODE]', '[CUSTOM_TARGETING_VALUE]'); - $request = (new GetCustomTargetingValueRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomTargetingValue($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingValueService/GetCustomTargetingValue', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomTargetingValueExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customTargetingValueName('[NETWORK_CODE]', '[CUSTOM_TARGETING_VALUE]'); - $request = (new GetCustomTargetingValueRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomTargetingValue($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomTargetingValuesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $customTargetingValuesElement = new CustomTargetingValue(); - $customTargetingValues = [ - $customTargetingValuesElement, - ]; - $expectedResponse = new ListCustomTargetingValuesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setCustomTargetingValues($customTargetingValues); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCustomTargetingValuesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomTargetingValues($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomTargetingValues()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingValueService/ListCustomTargetingValues', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomTargetingValuesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCustomTargetingValuesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomTargetingValues($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomTargetingValueAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $customTargetingKey = 'customTargetingKey-385515133'; - $adTagName = 'adTagName-1355595604'; - $displayName = 'displayName1615086568'; - $expectedResponse = new CustomTargetingValue(); - $expectedResponse->setName($name2); - $expectedResponse->setCustomTargetingKey($customTargetingKey); - $expectedResponse->setAdTagName($adTagName); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customTargetingValueName('[NETWORK_CODE]', '[CUSTOM_TARGETING_VALUE]'); - $request = (new GetCustomTargetingValueRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomTargetingValueAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingValueService/GetCustomTargetingValue', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCategoryServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCategoryServiceClientTest.php deleted file mode 100644 index 1718a56855e9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/DeviceCategoryServiceClientTest.php +++ /dev/null @@ -1,235 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DeviceCategoryServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DeviceCategoryServiceClient($options); - } - - /** @test */ - public function getDeviceCategoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DeviceCategory(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deviceCategoryName('[NETWORK_CODE]', '[DEVICE_CATEGORY]'); - $request = (new GetDeviceCategoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getDeviceCategory($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.DeviceCategoryService/GetDeviceCategory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeviceCategoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deviceCategoryName('[NETWORK_CODE]', '[DEVICE_CATEGORY]'); - $request = (new GetDeviceCategoryRequest()) - ->setName($formattedName); - try { - $gapicClient->getDeviceCategory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeviceCategoriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $deviceCategoriesElement = new DeviceCategory(); - $deviceCategories = [ - $deviceCategoriesElement, - ]; - $expectedResponse = new ListDeviceCategoriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setDeviceCategories($deviceCategories); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListDeviceCategoriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDeviceCategories($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDeviceCategories()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.DeviceCategoryService/ListDeviceCategories', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeviceCategoriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListDeviceCategoriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDeviceCategories($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeviceCategoryAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DeviceCategory(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deviceCategoryName('[NETWORK_CODE]', '[DEVICE_CATEGORY]'); - $request = (new GetDeviceCategoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getDeviceCategoryAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.DeviceCategoryService/GetDeviceCategory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php deleted file mode 100644 index d9533cd81884..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php +++ /dev/null @@ -1,528 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return EntitySignalsMappingServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new EntitySignalsMappingServiceClient($options); - } - - /** @test */ - public function batchCreateEntitySignalsMappingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateEntitySignalsMappingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchCreateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateEntitySignalsMappings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/BatchCreateEntitySignalsMappings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateEntitySignalsMappingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchCreateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchCreateEntitySignalsMappings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateEntitySignalsMappingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateEntitySignalsMappingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchUpdateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchUpdateEntitySignalsMappings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/BatchUpdateEntitySignalsMappings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateEntitySignalsMappingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchUpdateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchUpdateEntitySignalsMappings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEntitySignalsMappingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $audienceSegmentId = 321086146; - $name = 'name3373707'; - $entitySignalsMappingId = 350688772; - $expectedResponse = new EntitySignalsMapping(); - $expectedResponse->setAudienceSegmentId($audienceSegmentId); - $expectedResponse->setName($name); - $expectedResponse->setEntitySignalsMappingId($entitySignalsMappingId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $entitySignalsMapping = new EntitySignalsMapping(); - $request = (new CreateEntitySignalsMappingRequest()) - ->setParent($formattedParent) - ->setEntitySignalsMapping($entitySignalsMapping); - $response = $gapicClient->createEntitySignalsMapping($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/CreateEntitySignalsMapping', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEntitySignalsMapping(); - $this->assertProtobufEquals($entitySignalsMapping, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEntitySignalsMappingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $entitySignalsMapping = new EntitySignalsMapping(); - $request = (new CreateEntitySignalsMappingRequest()) - ->setParent($formattedParent) - ->setEntitySignalsMapping($entitySignalsMapping); - try { - $gapicClient->createEntitySignalsMapping($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEntitySignalsMappingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $audienceSegmentId = 321086146; - $name2 = 'name2-1052831874'; - $entitySignalsMappingId = 350688772; - $expectedResponse = new EntitySignalsMapping(); - $expectedResponse->setAudienceSegmentId($audienceSegmentId); - $expectedResponse->setName($name2); - $expectedResponse->setEntitySignalsMappingId($entitySignalsMappingId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->entitySignalsMappingName('[NETWORK_CODE]', '[ENTITY_SIGNALS_MAPPING]'); - $request = (new GetEntitySignalsMappingRequest()) - ->setName($formattedName); - $response = $gapicClient->getEntitySignalsMapping($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/GetEntitySignalsMapping', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEntitySignalsMappingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->entitySignalsMappingName('[NETWORK_CODE]', '[ENTITY_SIGNALS_MAPPING]'); - $request = (new GetEntitySignalsMappingRequest()) - ->setName($formattedName); - try { - $gapicClient->getEntitySignalsMapping($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEntitySignalsMappingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $entitySignalsMappingsElement = new EntitySignalsMapping(); - $entitySignalsMappings = [ - $entitySignalsMappingsElement, - ]; - $expectedResponse = new ListEntitySignalsMappingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setEntitySignalsMappings($entitySignalsMappings); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListEntitySignalsMappingsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEntitySignalsMappings($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntitySignalsMappings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/ListEntitySignalsMappings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEntitySignalsMappingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListEntitySignalsMappingsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEntitySignalsMappings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEntitySignalsMappingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $audienceSegmentId = 321086146; - $name = 'name3373707'; - $entitySignalsMappingId = 350688772; - $expectedResponse = new EntitySignalsMapping(); - $expectedResponse->setAudienceSegmentId($audienceSegmentId); - $expectedResponse->setName($name); - $expectedResponse->setEntitySignalsMappingId($entitySignalsMappingId); - $transport->addResponse($expectedResponse); - // Mock request - $entitySignalsMapping = new EntitySignalsMapping(); - $updateMask = new FieldMask(); - $request = (new UpdateEntitySignalsMappingRequest()) - ->setEntitySignalsMapping($entitySignalsMapping) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateEntitySignalsMapping($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/UpdateEntitySignalsMapping', $actualFuncCall); - $actualValue = $actualRequestObject->getEntitySignalsMapping(); - $this->assertProtobufEquals($entitySignalsMapping, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEntitySignalsMappingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $entitySignalsMapping = new EntitySignalsMapping(); - $updateMask = new FieldMask(); - $request = (new UpdateEntitySignalsMappingRequest()) - ->setEntitySignalsMapping($entitySignalsMapping) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateEntitySignalsMapping($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateEntitySignalsMappingsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateEntitySignalsMappingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchCreateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateEntitySignalsMappingsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/BatchCreateEntitySignalsMappings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/GeoTargetServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/GeoTargetServiceClientTest.php deleted file mode 100644 index d20e826a3fb6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/GeoTargetServiceClientTest.php +++ /dev/null @@ -1,251 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return GeoTargetServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new GeoTargetServiceClient($options); - } - - /** @test */ - public function getGeoTargetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $canonicalParent = 'canonicalParent-12999083'; - $regionCode = 'regionCode-1566082984'; - $type = 'type3575610'; - $targetable = false; - $expectedResponse = new GeoTarget(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCanonicalParent($canonicalParent); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setType($type); - $expectedResponse->setTargetable($targetable); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->geoTargetName('[NETWORK_CODE]', '[GEO_TARGET]'); - $request = (new GetGeoTargetRequest()) - ->setName($formattedName); - $response = $gapicClient->getGeoTarget($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.GeoTargetService/GetGeoTarget', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGeoTargetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->geoTargetName('[NETWORK_CODE]', '[GEO_TARGET]'); - $request = (new GetGeoTargetRequest()) - ->setName($formattedName); - try { - $gapicClient->getGeoTarget($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGeoTargetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $geoTargetsElement = new GeoTarget(); - $geoTargets = [ - $geoTargetsElement, - ]; - $expectedResponse = new ListGeoTargetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setGeoTargets($geoTargets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListGeoTargetsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listGeoTargets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGeoTargets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.GeoTargetService/ListGeoTargets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGeoTargetsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListGeoTargetsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listGeoTargets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGeoTargetAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $canonicalParent = 'canonicalParent-12999083'; - $regionCode = 'regionCode-1566082984'; - $type = 'type3575610'; - $targetable = false; - $expectedResponse = new GeoTarget(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCanonicalParent($canonicalParent); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setType($type); - $expectedResponse->setTargetable($targetable); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->geoTargetName('[NETWORK_CODE]', '[GEO_TARGET]'); - $request = (new GetGeoTargetRequest()) - ->setName($formattedName); - $response = $gapicClient->getGeoTargetAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.GeoTargetService/GetGeoTarget', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php deleted file mode 100644 index bb4b433e702e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php +++ /dev/null @@ -1,243 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return NetworkServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new NetworkServiceClient($options); - } - - /** @test */ - public function getNetworkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $networkCode = 'networkCode-19973794'; - $propertyCode = 'propertyCode-1019877865'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $effectiveRootAdUnit = 'effectiveRootAdUnit98840923'; - $testNetwork = false; - $networkId = 478232372; - $expectedResponse = new Network(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNetworkCode($networkCode); - $expectedResponse->setPropertyCode($propertyCode); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setEffectiveRootAdUnit($effectiveRootAdUnit); - $expectedResponse->setTestNetwork($testNetwork); - $expectedResponse->setNetworkId($networkId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new GetNetworkRequest()) - ->setName($formattedName); - $response = $gapicClient->getNetwork($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.NetworkService/GetNetwork', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNetworkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new GetNetworkRequest()) - ->setName($formattedName); - try { - $gapicClient->getNetwork($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNetworksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListNetworksResponse(); - $transport->addResponse($expectedResponse); - $request = new ListNetworksRequest(); - $response = $gapicClient->listNetworks($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.NetworkService/ListNetworks', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNetworksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListNetworksRequest(); - try { - $gapicClient->listNetworks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNetworkAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $networkCode = 'networkCode-19973794'; - $propertyCode = 'propertyCode-1019877865'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $effectiveRootAdUnit = 'effectiveRootAdUnit98840923'; - $testNetwork = false; - $networkId = 478232372; - $expectedResponse = new Network(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNetworkCode($networkCode); - $expectedResponse->setPropertyCode($propertyCode); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setEffectiveRootAdUnit($effectiveRootAdUnit); - $expectedResponse->setTestNetwork($testNetwork); - $expectedResponse->setNetworkId($networkId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new GetNetworkRequest()) - ->setName($formattedName); - $response = $gapicClient->getNetworkAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.NetworkService/GetNetwork', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemServiceClientTest.php deleted file mode 100644 index 301574b0fa5e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemServiceClientTest.php +++ /dev/null @@ -1,235 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return OperatingSystemServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new OperatingSystemServiceClient($options); - } - - /** @test */ - public function getOperatingSystemTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new OperatingSystem(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->operatingSystemName('[NETWORK_CODE]', '[OPERATING_SYSTEM]'); - $request = (new GetOperatingSystemRequest()) - ->setName($formattedName); - $response = $gapicClient->getOperatingSystem($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OperatingSystemService/GetOperatingSystem', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperatingSystemExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->operatingSystemName('[NETWORK_CODE]', '[OPERATING_SYSTEM]'); - $request = (new GetOperatingSystemRequest()) - ->setName($formattedName); - try { - $gapicClient->getOperatingSystem($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperatingSystemsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $operatingSystemsElement = new OperatingSystem(); - $operatingSystems = [ - $operatingSystemsElement, - ]; - $expectedResponse = new ListOperatingSystemsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setOperatingSystems($operatingSystems); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListOperatingSystemsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listOperatingSystems($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getOperatingSystems()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OperatingSystemService/ListOperatingSystems', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperatingSystemsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListOperatingSystemsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listOperatingSystems($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperatingSystemAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new OperatingSystem(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->operatingSystemName('[NETWORK_CODE]', '[OPERATING_SYSTEM]'); - $request = (new GetOperatingSystemRequest()) - ->setName($formattedName); - $response = $gapicClient->getOperatingSystemAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OperatingSystemService/GetOperatingSystem', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemVersionServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemVersionServiceClientTest.php deleted file mode 100644 index c8585ab9563d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OperatingSystemVersionServiceClientTest.php +++ /dev/null @@ -1,243 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return OperatingSystemVersionServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new OperatingSystemVersionServiceClient($options); - } - - /** @test */ - public function getOperatingSystemVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $majorVersion = 1298026414; - $minorVersion = 1136764494; - $microVersion = 33751459; - $expectedResponse = new OperatingSystemVersion(); - $expectedResponse->setName($name2); - $expectedResponse->setMajorVersion($majorVersion); - $expectedResponse->setMinorVersion($minorVersion); - $expectedResponse->setMicroVersion($microVersion); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->operatingSystemVersionName('[NETWORK_CODE]', '[OPERATING_SYSTEM_VERSION]'); - $request = (new GetOperatingSystemVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->getOperatingSystemVersion($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OperatingSystemVersionService/GetOperatingSystemVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperatingSystemVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->operatingSystemVersionName('[NETWORK_CODE]', '[OPERATING_SYSTEM_VERSION]'); - $request = (new GetOperatingSystemVersionRequest()) - ->setName($formattedName); - try { - $gapicClient->getOperatingSystemVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperatingSystemVersionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $operatingSystemVersionsElement = new OperatingSystemVersion(); - $operatingSystemVersions = [ - $operatingSystemVersionsElement, - ]; - $expectedResponse = new ListOperatingSystemVersionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setOperatingSystemVersions($operatingSystemVersions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListOperatingSystemVersionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listOperatingSystemVersions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getOperatingSystemVersions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OperatingSystemVersionService/ListOperatingSystemVersions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperatingSystemVersionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListOperatingSystemVersionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listOperatingSystemVersions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperatingSystemVersionAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $majorVersion = 1298026414; - $minorVersion = 1136764494; - $microVersion = 33751459; - $expectedResponse = new OperatingSystemVersion(); - $expectedResponse->setName($name2); - $expectedResponse->setMajorVersion($majorVersion); - $expectedResponse->setMinorVersion($minorVersion); - $expectedResponse->setMicroVersion($microVersion); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->operatingSystemVersionName('[NETWORK_CODE]', '[OPERATING_SYSTEM_VERSION]'); - $request = (new GetOperatingSystemVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->getOperatingSystemVersionAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OperatingSystemVersionService/GetOperatingSystemVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php deleted file mode 100644 index 20d613b3ae1c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php +++ /dev/null @@ -1,291 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return OrderServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new OrderServiceClient($options); - } - - /** @test */ - public function getOrderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $orderId = 1234304940; - $displayName = 'displayName1615086568'; - $programmatic = true; - $trafficker = 'trafficker-606937285'; - $advertiser = 'advertiser72080683'; - $agency = 'agency-1419699195'; - $creator = 'creator1028554796'; - $currencyCode = 'currencyCode1108728155'; - $unlimitedEndTime = false; - $externalOrderId = 1332092512; - $archived = true; - $lastModifiedByApp = 'lastModifiedByApp-1580292922'; - $notes = 'notes105008833'; - $poNumber = 'poNumber1281088905'; - $salesperson = 'salesperson-2087326879'; - $expectedResponse = new Order(); - $expectedResponse->setName($name2); - $expectedResponse->setOrderId($orderId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setProgrammatic($programmatic); - $expectedResponse->setTrafficker($trafficker); - $expectedResponse->setAdvertiser($advertiser); - $expectedResponse->setAgency($agency); - $expectedResponse->setCreator($creator); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setUnlimitedEndTime($unlimitedEndTime); - $expectedResponse->setExternalOrderId($externalOrderId); - $expectedResponse->setArchived($archived); - $expectedResponse->setLastModifiedByApp($lastModifiedByApp); - $expectedResponse->setNotes($notes); - $expectedResponse->setPoNumber($poNumber); - $expectedResponse->setSalesperson($salesperson); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->orderName('[NETWORK_CODE]', '[ORDER]'); - $request = (new GetOrderRequest()) - ->setName($formattedName); - $response = $gapicClient->getOrder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OrderService/GetOrder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOrderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->orderName('[NETWORK_CODE]', '[ORDER]'); - $request = (new GetOrderRequest()) - ->setName($formattedName); - try { - $gapicClient->getOrder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOrdersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $ordersElement = new Order(); - $orders = [ - $ordersElement, - ]; - $expectedResponse = new ListOrdersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setOrders($orders); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListOrdersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listOrders($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getOrders()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OrderService/ListOrders', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOrdersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListOrdersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listOrders($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOrderAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $orderId = 1234304940; - $displayName = 'displayName1615086568'; - $programmatic = true; - $trafficker = 'trafficker-606937285'; - $advertiser = 'advertiser72080683'; - $agency = 'agency-1419699195'; - $creator = 'creator1028554796'; - $currencyCode = 'currencyCode1108728155'; - $unlimitedEndTime = false; - $externalOrderId = 1332092512; - $archived = true; - $lastModifiedByApp = 'lastModifiedByApp-1580292922'; - $notes = 'notes105008833'; - $poNumber = 'poNumber1281088905'; - $salesperson = 'salesperson-2087326879'; - $expectedResponse = new Order(); - $expectedResponse->setName($name2); - $expectedResponse->setOrderId($orderId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setProgrammatic($programmatic); - $expectedResponse->setTrafficker($trafficker); - $expectedResponse->setAdvertiser($advertiser); - $expectedResponse->setAgency($agency); - $expectedResponse->setCreator($creator); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setUnlimitedEndTime($unlimitedEndTime); - $expectedResponse->setExternalOrderId($externalOrderId); - $expectedResponse->setArchived($archived); - $expectedResponse->setLastModifiedByApp($lastModifiedByApp); - $expectedResponse->setNotes($notes); - $expectedResponse->setPoNumber($poNumber); - $expectedResponse->setSalesperson($salesperson); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->orderName('[NETWORK_CODE]', '[ORDER]'); - $request = (new GetOrderRequest()) - ->setName($formattedName); - $response = $gapicClient->getOrderAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OrderService/GetOrder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php deleted file mode 100644 index 4b7433e5bc70..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php +++ /dev/null @@ -1,772 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return PlacementServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new PlacementServiceClient($options); - } - - /** @test */ - public function batchActivatePlacementsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchActivatePlacementsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), - ]; - $request = (new BatchActivatePlacementsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - $response = $gapicClient->batchActivatePlacements($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchActivatePlacements', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchActivatePlacementsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), - ]; - $request = (new BatchActivatePlacementsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - try { - $gapicClient->batchActivatePlacements($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchArchivePlacementsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchArchivePlacementsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), - ]; - $request = (new BatchArchivePlacementsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - $response = $gapicClient->batchArchivePlacements($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchArchivePlacements', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchArchivePlacementsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), - ]; - $request = (new BatchArchivePlacementsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - try { - $gapicClient->batchArchivePlacements($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreatePlacementsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreatePlacementsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchCreatePlacementsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreatePlacements($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchCreatePlacements', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreatePlacementsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchCreatePlacementsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchCreatePlacements($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeactivatePlacementsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchDeactivatePlacementsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), - ]; - $request = (new BatchDeactivatePlacementsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - $response = $gapicClient->batchDeactivatePlacements($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchDeactivatePlacements', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeactivatePlacementsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), - ]; - $request = (new BatchDeactivatePlacementsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - try { - $gapicClient->batchDeactivatePlacements($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdatePlacementsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdatePlacementsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchUpdatePlacementsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchUpdatePlacements($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchUpdatePlacements', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdatePlacementsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchUpdatePlacementsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchUpdatePlacements($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPlacementTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $placementId = 1224358069; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $placementCode = 'placementCode-213099769'; - $expectedResponse = new Placement(); - $expectedResponse->setName($name); - $expectedResponse->setPlacementId($placementId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setPlacementCode($placementCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $placement = new Placement(); - $placementDisplayName = 'placementDisplayName-410969528'; - $placement->setDisplayName($placementDisplayName); - $request = (new CreatePlacementRequest()) - ->setParent($formattedParent) - ->setPlacement($placement); - $response = $gapicClient->createPlacement($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/CreatePlacement', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getPlacement(); - $this->assertProtobufEquals($placement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPlacementExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $placement = new Placement(); - $placementDisplayName = 'placementDisplayName-410969528'; - $placement->setDisplayName($placementDisplayName); - $request = (new CreatePlacementRequest()) - ->setParent($formattedParent) - ->setPlacement($placement); - try { - $gapicClient->createPlacement($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPlacementTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $placementId = 1224358069; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $placementCode = 'placementCode-213099769'; - $expectedResponse = new Placement(); - $expectedResponse->setName($name2); - $expectedResponse->setPlacementId($placementId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setPlacementCode($placementCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'); - $request = (new GetPlacementRequest()) - ->setName($formattedName); - $response = $gapicClient->getPlacement($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/GetPlacement', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPlacementExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'); - $request = (new GetPlacementRequest()) - ->setName($formattedName); - try { - $gapicClient->getPlacement($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPlacementsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $placementsElement = new Placement(); - $placements = [ - $placementsElement, - ]; - $expectedResponse = new ListPlacementsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setPlacements($placements); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListPlacementsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listPlacements($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getPlacements()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/ListPlacements', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPlacementsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListPlacementsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listPlacements($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePlacementTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $placementId = 1224358069; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $placementCode = 'placementCode-213099769'; - $expectedResponse = new Placement(); - $expectedResponse->setName($name); - $expectedResponse->setPlacementId($placementId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setPlacementCode($placementCode); - $transport->addResponse($expectedResponse); - // Mock request - $placement = new Placement(); - $placementDisplayName = 'placementDisplayName-410969528'; - $placement->setDisplayName($placementDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdatePlacementRequest()) - ->setPlacement($placement) - ->setUpdateMask($updateMask); - $response = $gapicClient->updatePlacement($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/UpdatePlacement', $actualFuncCall); - $actualValue = $actualRequestObject->getPlacement(); - $this->assertProtobufEquals($placement, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePlacementExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $placement = new Placement(); - $placementDisplayName = 'placementDisplayName-410969528'; - $placement->setDisplayName($placementDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdatePlacementRequest()) - ->setPlacement($placement) - ->setUpdateMask($updateMask); - try { - $gapicClient->updatePlacement($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchActivatePlacementsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchActivatePlacementsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $formattedNames = [ - $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'), - ]; - $request = (new BatchActivatePlacementsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - $response = $gapicClient->batchActivatePlacementsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/BatchActivatePlacements', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionDealServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionDealServiceClientTest.php deleted file mode 100644 index c500af3f8332..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionDealServiceClientTest.php +++ /dev/null @@ -1,445 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return PrivateAuctionDealServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new PrivateAuctionDealServiceClient($options); - } - - /** @test */ - public function createPrivateAuctionDealTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $privateAuctionDealId = 1870574870; - $privateAuctionId = 20317997; - $privateAuctionDisplayName = 'privateAuctionDisplayName742713760'; - $buyerAccountId = 994282887; - $externalDealId = 66314918; - $auctionPriorityEnabled = true; - $blockOverrideEnabled = true; - $expectedResponse = new PrivateAuctionDeal(); - $expectedResponse->setName($name); - $expectedResponse->setPrivateAuctionDealId($privateAuctionDealId); - $expectedResponse->setPrivateAuctionId($privateAuctionId); - $expectedResponse->setPrivateAuctionDisplayName($privateAuctionDisplayName); - $expectedResponse->setBuyerAccountId($buyerAccountId); - $expectedResponse->setExternalDealId($externalDealId); - $expectedResponse->setAuctionPriorityEnabled($auctionPriorityEnabled); - $expectedResponse->setBlockOverrideEnabled($blockOverrideEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $privateAuctionDeal = new PrivateAuctionDeal(); - $privateAuctionDealFloorPrice = new Money(); - $privateAuctionDeal->setFloorPrice($privateAuctionDealFloorPrice); - $request = (new CreatePrivateAuctionDealRequest()) - ->setParent($formattedParent) - ->setPrivateAuctionDeal($privateAuctionDeal); - $response = $gapicClient->createPrivateAuctionDeal($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PrivateAuctionDealService/CreatePrivateAuctionDeal', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getPrivateAuctionDeal(); - $this->assertProtobufEquals($privateAuctionDeal, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPrivateAuctionDealExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $privateAuctionDeal = new PrivateAuctionDeal(); - $privateAuctionDealFloorPrice = new Money(); - $privateAuctionDeal->setFloorPrice($privateAuctionDealFloorPrice); - $request = (new CreatePrivateAuctionDealRequest()) - ->setParent($formattedParent) - ->setPrivateAuctionDeal($privateAuctionDeal); - try { - $gapicClient->createPrivateAuctionDeal($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPrivateAuctionDealTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $privateAuctionDealId = 1870574870; - $privateAuctionId = 20317997; - $privateAuctionDisplayName = 'privateAuctionDisplayName742713760'; - $buyerAccountId = 994282887; - $externalDealId = 66314918; - $auctionPriorityEnabled = true; - $blockOverrideEnabled = true; - $expectedResponse = new PrivateAuctionDeal(); - $expectedResponse->setName($name2); - $expectedResponse->setPrivateAuctionDealId($privateAuctionDealId); - $expectedResponse->setPrivateAuctionId($privateAuctionId); - $expectedResponse->setPrivateAuctionDisplayName($privateAuctionDisplayName); - $expectedResponse->setBuyerAccountId($buyerAccountId); - $expectedResponse->setExternalDealId($externalDealId); - $expectedResponse->setAuctionPriorityEnabled($auctionPriorityEnabled); - $expectedResponse->setBlockOverrideEnabled($blockOverrideEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->privateAuctionDealName('[NETWORK_CODE]', '[PRIVATE_AUCTION_DEAL]'); - $request = (new GetPrivateAuctionDealRequest()) - ->setName($formattedName); - $response = $gapicClient->getPrivateAuctionDeal($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PrivateAuctionDealService/GetPrivateAuctionDeal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPrivateAuctionDealExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->privateAuctionDealName('[NETWORK_CODE]', '[PRIVATE_AUCTION_DEAL]'); - $request = (new GetPrivateAuctionDealRequest()) - ->setName($formattedName); - try { - $gapicClient->getPrivateAuctionDeal($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPrivateAuctionDealsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $privateAuctionDealsElement = new PrivateAuctionDeal(); - $privateAuctionDeals = [ - $privateAuctionDealsElement, - ]; - $expectedResponse = new ListPrivateAuctionDealsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setPrivateAuctionDeals($privateAuctionDeals); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListPrivateAuctionDealsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listPrivateAuctionDeals($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getPrivateAuctionDeals()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PrivateAuctionDealService/ListPrivateAuctionDeals', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPrivateAuctionDealsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListPrivateAuctionDealsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listPrivateAuctionDeals($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePrivateAuctionDealTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $privateAuctionDealId = 1870574870; - $privateAuctionId = 20317997; - $privateAuctionDisplayName = 'privateAuctionDisplayName742713760'; - $buyerAccountId = 994282887; - $externalDealId = 66314918; - $auctionPriorityEnabled = true; - $blockOverrideEnabled = true; - $expectedResponse = new PrivateAuctionDeal(); - $expectedResponse->setName($name); - $expectedResponse->setPrivateAuctionDealId($privateAuctionDealId); - $expectedResponse->setPrivateAuctionId($privateAuctionId); - $expectedResponse->setPrivateAuctionDisplayName($privateAuctionDisplayName); - $expectedResponse->setBuyerAccountId($buyerAccountId); - $expectedResponse->setExternalDealId($externalDealId); - $expectedResponse->setAuctionPriorityEnabled($auctionPriorityEnabled); - $expectedResponse->setBlockOverrideEnabled($blockOverrideEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $privateAuctionDeal = new PrivateAuctionDeal(); - $privateAuctionDealFloorPrice = new Money(); - $privateAuctionDeal->setFloorPrice($privateAuctionDealFloorPrice); - $updateMask = new FieldMask(); - $request = (new UpdatePrivateAuctionDealRequest()) - ->setPrivateAuctionDeal($privateAuctionDeal) - ->setUpdateMask($updateMask); - $response = $gapicClient->updatePrivateAuctionDeal($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PrivateAuctionDealService/UpdatePrivateAuctionDeal', $actualFuncCall); - $actualValue = $actualRequestObject->getPrivateAuctionDeal(); - $this->assertProtobufEquals($privateAuctionDeal, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePrivateAuctionDealExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $privateAuctionDeal = new PrivateAuctionDeal(); - $privateAuctionDealFloorPrice = new Money(); - $privateAuctionDeal->setFloorPrice($privateAuctionDealFloorPrice); - $updateMask = new FieldMask(); - $request = (new UpdatePrivateAuctionDealRequest()) - ->setPrivateAuctionDeal($privateAuctionDeal) - ->setUpdateMask($updateMask); - try { - $gapicClient->updatePrivateAuctionDeal($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPrivateAuctionDealAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $privateAuctionDealId = 1870574870; - $privateAuctionId = 20317997; - $privateAuctionDisplayName = 'privateAuctionDisplayName742713760'; - $buyerAccountId = 994282887; - $externalDealId = 66314918; - $auctionPriorityEnabled = true; - $blockOverrideEnabled = true; - $expectedResponse = new PrivateAuctionDeal(); - $expectedResponse->setName($name); - $expectedResponse->setPrivateAuctionDealId($privateAuctionDealId); - $expectedResponse->setPrivateAuctionId($privateAuctionId); - $expectedResponse->setPrivateAuctionDisplayName($privateAuctionDisplayName); - $expectedResponse->setBuyerAccountId($buyerAccountId); - $expectedResponse->setExternalDealId($externalDealId); - $expectedResponse->setAuctionPriorityEnabled($auctionPriorityEnabled); - $expectedResponse->setBlockOverrideEnabled($blockOverrideEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $privateAuctionDeal = new PrivateAuctionDeal(); - $privateAuctionDealFloorPrice = new Money(); - $privateAuctionDeal->setFloorPrice($privateAuctionDealFloorPrice); - $request = (new CreatePrivateAuctionDealRequest()) - ->setParent($formattedParent) - ->setPrivateAuctionDeal($privateAuctionDeal); - $response = $gapicClient->createPrivateAuctionDealAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PrivateAuctionDealService/CreatePrivateAuctionDeal', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getPrivateAuctionDeal(); - $this->assertProtobufEquals($privateAuctionDeal, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionServiceClientTest.php deleted file mode 100644 index 89ac668d8a21..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PrivateAuctionServiceClientTest.php +++ /dev/null @@ -1,420 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return PrivateAuctionServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new PrivateAuctionServiceClient($options); - } - - /** @test */ - public function createPrivateAuctionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $privateAuctionId = 20317997; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $archived = true; - $expectedResponse = new PrivateAuction(); - $expectedResponse->setName($name); - $expectedResponse->setPrivateAuctionId($privateAuctionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setArchived($archived); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $privateAuction = new PrivateAuction(); - $privateAuctionDisplayName = 'privateAuctionDisplayName1032179469'; - $privateAuction->setDisplayName($privateAuctionDisplayName); - $request = (new CreatePrivateAuctionRequest()) - ->setParent($formattedParent) - ->setPrivateAuction($privateAuction); - $response = $gapicClient->createPrivateAuction($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PrivateAuctionService/CreatePrivateAuction', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getPrivateAuction(); - $this->assertProtobufEquals($privateAuction, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPrivateAuctionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $privateAuction = new PrivateAuction(); - $privateAuctionDisplayName = 'privateAuctionDisplayName1032179469'; - $privateAuction->setDisplayName($privateAuctionDisplayName); - $request = (new CreatePrivateAuctionRequest()) - ->setParent($formattedParent) - ->setPrivateAuction($privateAuction); - try { - $gapicClient->createPrivateAuction($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPrivateAuctionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $privateAuctionId = 20317997; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $archived = true; - $expectedResponse = new PrivateAuction(); - $expectedResponse->setName($name2); - $expectedResponse->setPrivateAuctionId($privateAuctionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setArchived($archived); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->privateAuctionName('[NETWORK_CODE]', '[PRIVATE_AUCTION]'); - $request = (new GetPrivateAuctionRequest()) - ->setName($formattedName); - $response = $gapicClient->getPrivateAuction($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PrivateAuctionService/GetPrivateAuction', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPrivateAuctionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->privateAuctionName('[NETWORK_CODE]', '[PRIVATE_AUCTION]'); - $request = (new GetPrivateAuctionRequest()) - ->setName($formattedName); - try { - $gapicClient->getPrivateAuction($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPrivateAuctionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $privateAuctionsElement = new PrivateAuction(); - $privateAuctions = [ - $privateAuctionsElement, - ]; - $expectedResponse = new ListPrivateAuctionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setPrivateAuctions($privateAuctions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListPrivateAuctionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listPrivateAuctions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getPrivateAuctions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PrivateAuctionService/ListPrivateAuctions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPrivateAuctionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListPrivateAuctionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listPrivateAuctions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePrivateAuctionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $privateAuctionId = 20317997; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $archived = true; - $expectedResponse = new PrivateAuction(); - $expectedResponse->setName($name); - $expectedResponse->setPrivateAuctionId($privateAuctionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setArchived($archived); - $transport->addResponse($expectedResponse); - // Mock request - $privateAuction = new PrivateAuction(); - $privateAuctionDisplayName = 'privateAuctionDisplayName1032179469'; - $privateAuction->setDisplayName($privateAuctionDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdatePrivateAuctionRequest()) - ->setPrivateAuction($privateAuction) - ->setUpdateMask($updateMask); - $response = $gapicClient->updatePrivateAuction($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PrivateAuctionService/UpdatePrivateAuction', $actualFuncCall); - $actualValue = $actualRequestObject->getPrivateAuction(); - $this->assertProtobufEquals($privateAuction, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePrivateAuctionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $privateAuction = new PrivateAuction(); - $privateAuctionDisplayName = 'privateAuctionDisplayName1032179469'; - $privateAuction->setDisplayName($privateAuctionDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdatePrivateAuctionRequest()) - ->setPrivateAuction($privateAuction) - ->setUpdateMask($updateMask); - try { - $gapicClient->updatePrivateAuction($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPrivateAuctionAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $privateAuctionId = 20317997; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $archived = true; - $expectedResponse = new PrivateAuction(); - $expectedResponse->setName($name); - $expectedResponse->setPrivateAuctionId($privateAuctionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setArchived($archived); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $privateAuction = new PrivateAuction(); - $privateAuctionDisplayName = 'privateAuctionDisplayName1032179469'; - $privateAuction->setDisplayName($privateAuctionDisplayName); - $request = (new CreatePrivateAuctionRequest()) - ->setParent($formattedParent) - ->setPrivateAuction($privateAuction); - $response = $gapicClient->createPrivateAuctionAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PrivateAuctionService/CreatePrivateAuction', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getPrivateAuction(); - $this->assertProtobufEquals($privateAuction, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ProgrammaticBuyerServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ProgrammaticBuyerServiceClientTest.php deleted file mode 100644 index c1c744810084..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ProgrammaticBuyerServiceClientTest.php +++ /dev/null @@ -1,259 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ProgrammaticBuyerServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ProgrammaticBuyerServiceClient($options); - } - - /** @test */ - public function getProgrammaticBuyerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $buyerAccountId = 994282887; - $displayName = 'displayName1615086568'; - $parentAccountId = 325829854; - $partnerClientId = 'partnerClientId667444056'; - $agency = false; - $preferredDealsEnabled = false; - $programmaticGuaranteedEnabled = false; - $expectedResponse = new ProgrammaticBuyer(); - $expectedResponse->setName($name2); - $expectedResponse->setBuyerAccountId($buyerAccountId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setParentAccountId($parentAccountId); - $expectedResponse->setPartnerClientId($partnerClientId); - $expectedResponse->setAgency($agency); - $expectedResponse->setPreferredDealsEnabled($preferredDealsEnabled); - $expectedResponse->setProgrammaticGuaranteedEnabled($programmaticGuaranteedEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->programmaticBuyerName('[NETWORK_CODE]', '[PROGRAMMATIC_BUYER]'); - $request = (new GetProgrammaticBuyerRequest()) - ->setName($formattedName); - $response = $gapicClient->getProgrammaticBuyer($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ProgrammaticBuyerService/GetProgrammaticBuyer', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProgrammaticBuyerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->programmaticBuyerName('[NETWORK_CODE]', '[PROGRAMMATIC_BUYER]'); - $request = (new GetProgrammaticBuyerRequest()) - ->setName($formattedName); - try { - $gapicClient->getProgrammaticBuyer($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProgrammaticBuyersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $programmaticBuyersElement = new ProgrammaticBuyer(); - $programmaticBuyers = [ - $programmaticBuyersElement, - ]; - $expectedResponse = new ListProgrammaticBuyersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setProgrammaticBuyers($programmaticBuyers); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListProgrammaticBuyersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listProgrammaticBuyers($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProgrammaticBuyers()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ProgrammaticBuyerService/ListProgrammaticBuyers', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProgrammaticBuyersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListProgrammaticBuyersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listProgrammaticBuyers($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProgrammaticBuyerAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $buyerAccountId = 994282887; - $displayName = 'displayName1615086568'; - $parentAccountId = 325829854; - $partnerClientId = 'partnerClientId667444056'; - $agency = false; - $preferredDealsEnabled = false; - $programmaticGuaranteedEnabled = false; - $expectedResponse = new ProgrammaticBuyer(); - $expectedResponse->setName($name2); - $expectedResponse->setBuyerAccountId($buyerAccountId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setParentAccountId($parentAccountId); - $expectedResponse->setPartnerClientId($partnerClientId); - $expectedResponse->setAgency($agency); - $expectedResponse->setPreferredDealsEnabled($preferredDealsEnabled); - $expectedResponse->setProgrammaticGuaranteedEnabled($programmaticGuaranteedEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->programmaticBuyerName('[NETWORK_CODE]', '[PROGRAMMATIC_BUYER]'); - $request = (new GetProgrammaticBuyerRequest()) - ->setName($formattedName); - $response = $gapicClient->getProgrammaticBuyerAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ProgrammaticBuyerService/GetProgrammaticBuyer', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php deleted file mode 100644 index 2efa66f5e6b6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php +++ /dev/null @@ -1,644 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ReportServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ReportServiceClient($options); - } - - /** @test */ - public function createReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $reportId = 353329146; - $displayName = 'displayName1615086568'; - $locale = 'locale-1097462182'; - $expectedResponse = new Report(); - $expectedResponse->setName($name); - $expectedResponse->setReportId($reportId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setLocale($locale); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $report = new Report(); - $reportReportDefinition = new ReportDefinition(); - $reportDefinitionDimensions = []; - $reportReportDefinition->setDimensions($reportDefinitionDimensions); - $reportDefinitionMetrics = []; - $reportReportDefinition->setMetrics($reportDefinitionMetrics); - $reportDefinitionDateRange = new DateRange(); - $reportReportDefinition->setDateRange($reportDefinitionDateRange); - $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - $reportReportDefinition->setReportType($reportDefinitionReportType); - $report->setReportDefinition($reportReportDefinition); - $request = (new CreateReportRequest()) - ->setParent($formattedParent) - ->setReport($report); - $response = $gapicClient->createReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/CreateReport', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReport(); - $this->assertProtobufEquals($report, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $report = new Report(); - $reportReportDefinition = new ReportDefinition(); - $reportDefinitionDimensions = []; - $reportReportDefinition->setDimensions($reportDefinitionDimensions); - $reportDefinitionMetrics = []; - $reportReportDefinition->setMetrics($reportDefinitionMetrics); - $reportDefinitionDateRange = new DateRange(); - $reportReportDefinition->setDateRange($reportDefinitionDateRange); - $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - $reportReportDefinition->setReportType($reportDefinitionReportType); - $report->setReportDefinition($reportReportDefinition); - $request = (new CreateReportRequest()) - ->setParent($formattedParent) - ->setReport($report); - try { - $gapicClient->createReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchReportResultRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $totalRowCount = 1810281263; - $nextPageToken = 'nextPageToken-1530815211'; - $expectedResponse = new FetchReportResultRowsResponse(); - $expectedResponse->setTotalRowCount($totalRowCount); - $expectedResponse->setNextPageToken($nextPageToken); - $transport->addResponse($expectedResponse); - $request = new FetchReportResultRowsRequest(); - $response = $gapicClient->fetchReportResultRows($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/FetchReportResultRows', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchReportResultRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new FetchReportResultRowsRequest(); - try { - $gapicClient->fetchReportResultRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $reportId = 353329146; - $displayName = 'displayName1615086568'; - $locale = 'locale-1097462182'; - $expectedResponse = new Report(); - $expectedResponse->setName($name2); - $expectedResponse->setReportId($reportId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setLocale($locale); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); - $request = (new GetReportRequest()) - ->setName($formattedName); - $response = $gapicClient->getReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/GetReport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); - $request = (new GetReportRequest()) - ->setName($formattedName); - try { - $gapicClient->getReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $reportsElement = new Report(); - $reports = [ - $reportsElement, - ]; - $expectedResponse = new ListReportsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setReports($reports); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListReportsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listReports($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReports()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/ListReports', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListReportsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listReports($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runReportTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/runReportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $reportResult = 'reportResult-778769016'; - $expectedResponse = new RunReportResponse(); - $expectedResponse->setReportResult($reportResult); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/runReportTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); - $request = (new RunReportRequest()) - ->setName($formattedName); - $response = $gapicClient->runReport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/RunReport', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/runReportTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function runReportExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/runReportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); - $request = (new RunReportRequest()) - ->setName($formattedName); - $response = $gapicClient->runReport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/runReportTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $reportId = 353329146; - $displayName = 'displayName1615086568'; - $locale = 'locale-1097462182'; - $expectedResponse = new Report(); - $expectedResponse->setName($name); - $expectedResponse->setReportId($reportId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setLocale($locale); - $transport->addResponse($expectedResponse); - // Mock request - $report = new Report(); - $reportReportDefinition = new ReportDefinition(); - $reportDefinitionDimensions = []; - $reportReportDefinition->setDimensions($reportDefinitionDimensions); - $reportDefinitionMetrics = []; - $reportReportDefinition->setMetrics($reportDefinitionMetrics); - $reportDefinitionDateRange = new DateRange(); - $reportReportDefinition->setDateRange($reportDefinitionDateRange); - $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - $reportReportDefinition->setReportType($reportDefinitionReportType); - $report->setReportDefinition($reportReportDefinition); - $updateMask = new FieldMask(); - $request = (new UpdateReportRequest()) - ->setReport($report) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/UpdateReport', $actualFuncCall); - $actualValue = $actualRequestObject->getReport(); - $this->assertProtobufEquals($report, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $report = new Report(); - $reportReportDefinition = new ReportDefinition(); - $reportDefinitionDimensions = []; - $reportReportDefinition->setDimensions($reportDefinitionDimensions); - $reportDefinitionMetrics = []; - $reportReportDefinition->setMetrics($reportDefinitionMetrics); - $reportDefinitionDateRange = new DateRange(); - $reportReportDefinition->setDateRange($reportDefinitionDateRange); - $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - $reportReportDefinition->setReportType($reportDefinitionReportType); - $report->setReportDefinition($reportReportDefinition); - $updateMask = new FieldMask(); - $request = (new UpdateReportRequest()) - ->setReport($report) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReportAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $reportId = 353329146; - $displayName = 'displayName1615086568'; - $locale = 'locale-1097462182'; - $expectedResponse = new Report(); - $expectedResponse->setName($name); - $expectedResponse->setReportId($reportId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setLocale($locale); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $report = new Report(); - $reportReportDefinition = new ReportDefinition(); - $reportDefinitionDimensions = []; - $reportReportDefinition->setDimensions($reportDefinitionDimensions); - $reportDefinitionMetrics = []; - $reportReportDefinition->setMetrics($reportDefinitionMetrics); - $reportDefinitionDateRange = new DateRange(); - $reportReportDefinition->setDateRange($reportDefinitionDateRange); - $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - $reportReportDefinition->setReportType($reportDefinitionReportType); - $report->setReportDefinition($reportReportDefinition); - $request = (new CreateReportRequest()) - ->setParent($formattedParent) - ->setReport($report); - $response = $gapicClient->createReportAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/CreateReport', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReport(); - $this->assertProtobufEquals($report, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php deleted file mode 100644 index 30da5e27662d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php +++ /dev/null @@ -1,247 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return RoleServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new RoleServiceClient($options); - } - - /** @test */ - public function getRoleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $roleId = 1376884100; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $builtIn = true; - $expectedResponse = new Role(); - $expectedResponse->setName($name2); - $expectedResponse->setRoleId($roleId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setBuiltIn($builtIn); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->roleName('[NETWORK_CODE]', '[ROLE]'); - $request = (new GetRoleRequest()) - ->setName($formattedName); - $response = $gapicClient->getRole($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.RoleService/GetRole', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRoleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->roleName('[NETWORK_CODE]', '[ROLE]'); - $request = (new GetRoleRequest()) - ->setName($formattedName); - try { - $gapicClient->getRole($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRolesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $rolesElement = new Role(); - $roles = [ - $rolesElement, - ]; - $expectedResponse = new ListRolesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setRoles($roles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListRolesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRoles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRoles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.RoleService/ListRoles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRolesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListRolesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRoles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRoleAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $roleId = 1376884100; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $builtIn = true; - $expectedResponse = new Role(); - $expectedResponse->setName($name2); - $expectedResponse->setRoleId($roleId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setBuiltIn($builtIn); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->roleName('[NETWORK_CODE]', '[ROLE]'); - $request = (new GetRoleRequest()) - ->setName($formattedName); - $response = $gapicClient->getRoleAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.RoleService/GetRole', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php deleted file mode 100644 index 73b1b6371cd8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php +++ /dev/null @@ -1,247 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return TaxonomyCategoryServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new TaxonomyCategoryServiceClient($options); - } - - /** @test */ - public function getTaxonomyCategoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $taxonomyCategoryId = 28298254; - $displayName = 'displayName1615086568'; - $groupingOnly = true; - $parentTaxonomyCategoryId = 1790260093; - $expectedResponse = new TaxonomyCategory(); - $expectedResponse->setName($name2); - $expectedResponse->setTaxonomyCategoryId($taxonomyCategoryId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setGroupingOnly($groupingOnly); - $expectedResponse->setParentTaxonomyCategoryId($parentTaxonomyCategoryId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->taxonomyCategoryName('[NETWORK_CODE]', '[TAXONOMY_CATEGORY]'); - $request = (new GetTaxonomyCategoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getTaxonomyCategory($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.TaxonomyCategoryService/GetTaxonomyCategory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTaxonomyCategoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->taxonomyCategoryName('[NETWORK_CODE]', '[TAXONOMY_CATEGORY]'); - $request = (new GetTaxonomyCategoryRequest()) - ->setName($formattedName); - try { - $gapicClient->getTaxonomyCategory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTaxonomyCategoriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $taxonomyCategoriesElement = new TaxonomyCategory(); - $taxonomyCategories = [ - $taxonomyCategoriesElement, - ]; - $expectedResponse = new ListTaxonomyCategoriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setTaxonomyCategories($taxonomyCategories); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListTaxonomyCategoriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTaxonomyCategories($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTaxonomyCategories()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.TaxonomyCategoryService/ListTaxonomyCategories', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTaxonomyCategoriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListTaxonomyCategoriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTaxonomyCategories($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTaxonomyCategoryAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $taxonomyCategoryId = 28298254; - $displayName = 'displayName1615086568'; - $groupingOnly = true; - $parentTaxonomyCategoryId = 1790260093; - $expectedResponse = new TaxonomyCategory(); - $expectedResponse->setName($name2); - $expectedResponse->setTaxonomyCategoryId($taxonomyCategoryId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setGroupingOnly($groupingOnly); - $expectedResponse->setParentTaxonomyCategoryId($parentTaxonomyCategoryId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->taxonomyCategoryName('[NETWORK_CODE]', '[TAXONOMY_CATEGORY]'); - $request = (new GetTaxonomyCategoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getTaxonomyCategoryAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.TaxonomyCategoryService/GetTaxonomyCategory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php deleted file mode 100644 index 5b0d54c26a20..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php +++ /dev/null @@ -1,187 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return UserServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new UserServiceClient($options); - } - - /** @test */ - public function getUserTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $userId = 147132913; - $displayName = 'displayName1615086568'; - $email = 'email96619420'; - $role = 'role3506294'; - $active = true; - $externalId = 'externalId-1153075697'; - $serviceAccount = false; - $ordersUiLocalTimeZone = 'ordersUiLocalTimeZone-1376832007'; - $expectedResponse = new User(); - $expectedResponse->setName($name2); - $expectedResponse->setUserId($userId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEmail($email); - $expectedResponse->setRole($role); - $expectedResponse->setActive($active); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setOrdersUiLocalTimeZone($ordersUiLocalTimeZone); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->userName('[NETWORK_CODE]', '[USER]'); - $request = (new GetUserRequest()) - ->setName($formattedName); - $response = $gapicClient->getUser($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.UserService/GetUser', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getUserExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->userName('[NETWORK_CODE]', '[USER]'); - $request = (new GetUserRequest()) - ->setName($formattedName); - try { - $gapicClient->getUser($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getUserAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $userId = 147132913; - $displayName = 'displayName1615086568'; - $email = 'email96619420'; - $role = 'role3506294'; - $active = true; - $externalId = 'externalId-1153075697'; - $serviceAccount = false; - $ordersUiLocalTimeZone = 'ordersUiLocalTimeZone-1376832007'; - $expectedResponse = new User(); - $expectedResponse->setName($name2); - $expectedResponse->setUserId($userId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEmail($email); - $expectedResponse->setRole($role); - $expectedResponse->setActive($active); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setOrdersUiLocalTimeZone($ordersUiLocalTimeZone); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->userName('[NETWORK_CODE]', '[USER]'); - $request = (new GetUserRequest()) - ->setName($formattedName); - $response = $gapicClient->getUserAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.UserService/GetUser', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}