From f0a7bba4c7911f966392451b33d279a14c52e0c4 Mon Sep 17 00:00:00 2001 From: Spirit-act <16631523+Spirit-act@users.noreply.github.com> Date: Wed, 23 Apr 2025 13:42:52 +0200 Subject: [PATCH 1/2] change from deprecated ...set_option to set_options In php8.4 stream_context_set_option no longer supports the signature with two arguments. Therefor the alternative function stream_context_set_options needs to be used. source: https://www.php.net/manual/en/function.stream-context-set-option.php Also implicitly marking parameters as nullable is deprecated. Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com> --- src/Google/AdsApi/Common/AdsSoapClient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/AdsApi/Common/AdsSoapClient.php b/src/Google/AdsApi/Common/AdsSoapClient.php index 1e07b20f9..18b440964 100644 --- a/src/Google/AdsApi/Common/AdsSoapClient.php +++ b/src/Google/AdsApi/Common/AdsSoapClient.php @@ -64,7 +64,7 @@ class AdsSoapClient extends SoapClient * mode * @param array|null $options the SOAP client options */ - public function __construct($wsdl, array $options = null) + public function __construct($wsdl, ?array $options = null) { $this->wsdlUri = $wsdl; if (array_key_exists('classmap', $options)) { @@ -133,7 +133,7 @@ function ($headerName, $headerValue) { $httpHeaders ) ); - stream_context_set_option( + stream_context_set_options( $this->streamContext, $existingStreamContextOptions ); @@ -241,7 +241,7 @@ private function processResponse($methodName, $soapFault = null) $this->logSoapCall($methodName, $soapFault); } - private function logSoapCall($methodName, SoapFault $soapFault = null) + private function logSoapCall($methodName, ?SoapFault $soapFault = null) { $summary = $this->soapLogMessageFormatter->formatSummary( $this->serviceDescriptor->getServiceName(), From 220a5a5162133c9e5e891417fb08a5600be9ef6e Mon Sep 17 00:00:00 2001 From: Spirit-act <16631523+Spirit-act@users.noreply.github.com> Date: Wed, 23 Apr 2025 16:29:24 +0200 Subject: [PATCH 2/2] add missing nullable typehint Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com> --- .../AdsApi/AdManager/AdManagerServices.php | 4 ++-- .../AdManager/AdManagerSessionBuilder.php | 2 +- .../v202405/AvailabilityForecast.php | 10 +++++----- .../AdManager/v202405/CreativePlaceholder.php | 8 ++++---- .../AdManager/v202405/InventoryTargeting.php | 8 ++++---- .../AdsApi/AdManager/v202405/LineItem.php | 4 ++-- .../AdManager/v202405/LineItemSummary.php | 20 +++++++++---------- .../AdManager/v202405/ServiceFactory.php | 2 +- .../v202408/AvailabilityForecast.php | 10 +++++----- .../AdManager/v202408/CreativePlaceholder.php | 8 ++++---- .../AdManager/v202408/InventoryTargeting.php | 8 ++++---- .../AdsApi/AdManager/v202408/LineItem.php | 4 ++-- .../AdManager/v202408/LineItemSummary.php | 20 +++++++++---------- .../AdManager/v202408/ServiceFactory.php | 2 +- .../v202411/AvailabilityForecast.php | 10 +++++----- .../AdManager/v202411/CreativePlaceholder.php | 8 ++++---- .../AdManager/v202411/InventoryTargeting.php | 8 ++++---- .../AdsApi/AdManager/v202411/LineItem.php | 4 ++-- .../AdManager/v202411/LineItemSummary.php | 20 +++++++++---------- .../AdManager/v202411/ServiceFactory.php | 2 +- .../v202502/AvailabilityForecast.php | 10 +++++----- .../AdManager/v202502/CreativePlaceholder.php | 8 ++++---- .../AdManager/v202502/InventoryTargeting.php | 8 ++++---- .../AdsApi/AdManager/v202502/LineItem.php | 4 ++-- .../AdManager/v202502/LineItemSummary.php | 20 +++++++++---------- .../AdManager/v202502/ServiceFactory.php | 2 +- .../Common/AdsGuzzleProxyHttpHandler.php | 2 +- .../AdsApi/Common/AdsHeaderFormatter.php | 4 ++-- .../AdsApi/Common/AdsSoapClientFactory.php | 4 ++-- .../AdsApi/Common/ConfigurationLoader.php | 2 +- .../AdsApi/Common/SoapLogMessageFormatter.php | 10 +++++----- .../Common/Util/OAuth2TokenRefresher.php | 2 +- 32 files changed, 119 insertions(+), 119 deletions(-) diff --git a/src/Google/AdsApi/AdManager/AdManagerServices.php b/src/Google/AdsApi/AdManager/AdManagerServices.php index 616def389..422d0cbab 100644 --- a/src/Google/AdsApi/AdManager/AdManagerServices.php +++ b/src/Google/AdsApi/AdManager/AdManagerServices.php @@ -35,8 +35,8 @@ final class AdManagerServices implements AdsServices * @param AdManagerHeaderHandler|null $adManagerHeaderHandler */ public function __construct( - AdsSoapClientFactory $adsSoapClientFactory = null, - AdManagerHeaderHandler $adManagerHeaderHandler = null + ?AdsSoapClientFactory $adsSoapClientFactory = null, + ?AdManagerHeaderHandler $adManagerHeaderHandler = null ) { $this->adsSoapClientFactory = ($adsSoapClientFactory === null) ? new AdsSoapClientFactory( diff --git a/src/Google/AdsApi/AdManager/AdManagerSessionBuilder.php b/src/Google/AdsApi/AdManager/AdManagerSessionBuilder.php index b28273748..21fc67bf2 100644 --- a/src/Google/AdsApi/AdManager/AdManagerSessionBuilder.php +++ b/src/Google/AdsApi/AdManager/AdManagerSessionBuilder.php @@ -92,7 +92,7 @@ public function __construct() * @throws InvalidArgumentException if the configuration file could not be * found */ - public function fromFile(string $path = null) + public function fromFile(?string $path = null) { if ($path === null) { $path = self::DEFAULT_CONFIGURATION_FILENAME; diff --git a/src/Google/AdsApi/AdManager/v202405/AvailabilityForecast.php b/src/Google/AdsApi/AdManager/v202405/AvailabilityForecast.php index 55c6ffb8a..fd8e24a73 100644 --- a/src/Google/AdsApi/AdManager/v202405/AvailabilityForecast.php +++ b/src/Google/AdsApi/AdManager/v202405/AvailabilityForecast.php @@ -83,7 +83,7 @@ class AvailabilityForecast * @param \Google\AdsApi\AdManager\v202405\ContendingLineItem[] $contendingLineItems * @param \Google\AdsApi\AdManager\v202405\AlternativeUnitTypeForecast[] $alternativeUnitTypeForecasts */ - public function __construct($lineItemId = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, array $breakdowns = null, array $targetingCriteriaBreakdowns = null, array $contendingLineItems = null, array $alternativeUnitTypeForecasts = null) + public function __construct($lineItemId = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, ?array $breakdowns = null, ?array $targetingCriteriaBreakdowns = null, ?array $contendingLineItems = null, ?array $alternativeUnitTypeForecasts = null) { $this->lineItemId = $lineItemId; $this->orderId = $orderId; @@ -262,7 +262,7 @@ public function getBreakdowns() * @param \Google\AdsApi\AdManager\v202405\ForecastBreakdown[]|null $breakdowns * @return \Google\AdsApi\AdManager\v202405\AvailabilityForecast */ - public function setBreakdowns(array $breakdowns = null) + public function setBreakdowns(?array $breakdowns = null) { $this->breakdowns = $breakdowns; return $this; @@ -280,7 +280,7 @@ public function getTargetingCriteriaBreakdowns() * @param \Google\AdsApi\AdManager\v202405\TargetingCriteriaBreakdown[]|null $targetingCriteriaBreakdowns * @return \Google\AdsApi\AdManager\v202405\AvailabilityForecast */ - public function setTargetingCriteriaBreakdowns(array $targetingCriteriaBreakdowns = null) + public function setTargetingCriteriaBreakdowns(?array $targetingCriteriaBreakdowns = null) { $this->targetingCriteriaBreakdowns = $targetingCriteriaBreakdowns; return $this; @@ -298,7 +298,7 @@ public function getContendingLineItems() * @param \Google\AdsApi\AdManager\v202405\ContendingLineItem[]|null $contendingLineItems * @return \Google\AdsApi\AdManager\v202405\AvailabilityForecast */ - public function setContendingLineItems(array $contendingLineItems = null) + public function setContendingLineItems(?array $contendingLineItems = null) { $this->contendingLineItems = $contendingLineItems; return $this; @@ -316,7 +316,7 @@ public function getAlternativeUnitTypeForecasts() * @param \Google\AdsApi\AdManager\v202405\AlternativeUnitTypeForecast[]|null $alternativeUnitTypeForecasts * @return \Google\AdsApi\AdManager\v202405\AvailabilityForecast */ - public function setAlternativeUnitTypeForecasts(array $alternativeUnitTypeForecasts = null) + public function setAlternativeUnitTypeForecasts(?array $alternativeUnitTypeForecasts = null) { $this->alternativeUnitTypeForecasts = $alternativeUnitTypeForecasts; return $this; diff --git a/src/Google/AdsApi/AdManager/v202405/CreativePlaceholder.php b/src/Google/AdsApi/AdManager/v202405/CreativePlaceholder.php index 8a7367e4d..5f817c757 100644 --- a/src/Google/AdsApi/AdManager/v202405/CreativePlaceholder.php +++ b/src/Google/AdsApi/AdManager/v202405/CreativePlaceholder.php @@ -65,7 +65,7 @@ class CreativePlaceholder * @param string $targetingName * @param boolean $isAmpOnly */ - public function __construct($size = null, $creativeTemplateId = null, array $companions = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $expectedCreativeCount = null, $creativeSizeType = null, $targetingName = null, $isAmpOnly = null) + public function __construct($size = null, $creativeTemplateId = null, ?array $companions = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $expectedCreativeCount = null, $creativeSizeType = null, $targetingName = null, $isAmpOnly = null) { $this->size = $size; $this->creativeTemplateId = $creativeTemplateId; @@ -127,7 +127,7 @@ public function getCompanions() * @param \Google\AdsApi\AdManager\v202405\CreativePlaceholder[]|null $companions * @return \Google\AdsApi\AdManager\v202405\CreativePlaceholder */ - public function setCompanions(array $companions = null) + public function setCompanions(?array $companions = null) { $this->companions = $companions; return $this; @@ -145,7 +145,7 @@ public function getAppliedLabels() * @param \Google\AdsApi\AdManager\v202405\AppliedLabel[]|null $appliedLabels * @return \Google\AdsApi\AdManager\v202405\CreativePlaceholder */ - public function setAppliedLabels(array $appliedLabels = null) + public function setAppliedLabels(?array $appliedLabels = null) { $this->appliedLabels = $appliedLabels; return $this; @@ -163,7 +163,7 @@ public function getEffectiveAppliedLabels() * @param \Google\AdsApi\AdManager\v202405\AppliedLabel[]|null $effectiveAppliedLabels * @return \Google\AdsApi\AdManager\v202405\CreativePlaceholder */ - public function setEffectiveAppliedLabels(array $effectiveAppliedLabels = null) + public function setEffectiveAppliedLabels(?array $effectiveAppliedLabels = null) { $this->effectiveAppliedLabels = $effectiveAppliedLabels; return $this; diff --git a/src/Google/AdsApi/AdManager/v202405/InventoryTargeting.php b/src/Google/AdsApi/AdManager/v202405/InventoryTargeting.php index d9583eee2..996c45780 100644 --- a/src/Google/AdsApi/AdManager/v202405/InventoryTargeting.php +++ b/src/Google/AdsApi/AdManager/v202405/InventoryTargeting.php @@ -29,7 +29,7 @@ class InventoryTargeting * @param \Google\AdsApi\AdManager\v202405\AdUnitTargeting[] $excludedAdUnits * @param int[] $targetedPlacementIds */ - public function __construct(array $targetedAdUnits = null, array $excludedAdUnits = null, array $targetedPlacementIds = null) + public function __construct(?array $targetedAdUnits = null, ?array $excludedAdUnits = null, ?array $targetedPlacementIds = null) { $this->targetedAdUnits = $targetedAdUnits; $this->excludedAdUnits = $excludedAdUnits; @@ -48,7 +48,7 @@ public function getTargetedAdUnits() * @param \Google\AdsApi\AdManager\v202405\AdUnitTargeting[]|null $targetedAdUnits * @return \Google\AdsApi\AdManager\v202405\InventoryTargeting */ - public function setTargetedAdUnits(array $targetedAdUnits = null) + public function setTargetedAdUnits(?array $targetedAdUnits = null) { $this->targetedAdUnits = $targetedAdUnits; return $this; @@ -66,7 +66,7 @@ public function getExcludedAdUnits() * @param \Google\AdsApi\AdManager\v202405\AdUnitTargeting[]|null $excludedAdUnits * @return \Google\AdsApi\AdManager\v202405\InventoryTargeting */ - public function setExcludedAdUnits(array $excludedAdUnits = null) + public function setExcludedAdUnits(?array $excludedAdUnits = null) { $this->excludedAdUnits = $excludedAdUnits; return $this; @@ -84,7 +84,7 @@ public function getTargetedPlacementIds() * @param int[]|null $targetedPlacementIds * @return \Google\AdsApi\AdManager\v202405\InventoryTargeting */ - public function setTargetedPlacementIds(array $targetedPlacementIds = null) + public function setTargetedPlacementIds(?array $targetedPlacementIds = null) { $this->targetedPlacementIds = $targetedPlacementIds; return $this; diff --git a/src/Google/AdsApi/AdManager/v202405/LineItem.php b/src/Google/AdsApi/AdManager/v202405/LineItem.php index 4794ca638..386140148 100644 --- a/src/Google/AdsApi/AdManager/v202405/LineItem.php +++ b/src/Google/AdsApi/AdManager/v202405/LineItem.php @@ -86,7 +86,7 @@ class LineItem extends \Google\AdsApi\AdManager\v202405\LineItemSummary * @param \Google\AdsApi\AdManager\v202405\Targeting $targeting * @param \Google\AdsApi\AdManager\v202405\CreativeTargeting[] $creativeTargetings */ - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, array $creativePlaceholders = null, array $activityAssociations = null, $environmentType = null, array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null, $targeting = null, array $creativeTargetings = null) + public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, ?array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, ?array $creativePlaceholders = null, ?array $activityAssociations = null, $environmentType = null, ?array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, ?array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, ?array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, ?array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null, $targeting = null, ?array $creativeTargetings = null) { parent::__construct($orderId, $id, $name, $externalId, $orderName, $startDateTime, $startDateTimeType, $endDateTime, $autoExtensionDays, $unlimitedEndDateTime, $creativeRotationType, $deliveryRateType, $deliveryForecastSource, $customPacingCurve, $roadblockingType, $skippableAdType, $frequencyCaps, $lineItemType, $priority, $costPerUnit, $valueCostPerUnit, $costType, $discountType, $discount, $contractedUnitsBought, $creativePlaceholders, $activityAssociations, $environmentType, $allowedFormats, $companionDeliveryOption, $allowOverbook, $skipInventoryCheck, $skipCrossSellingRuleWarningChecks, $reserveAtCreation, $stats, $deliveryIndicator, $deliveryData, $budget, $status, $reservationStatus, $isArchived, $webPropertyCode, $appliedLabels, $effectiveAppliedLabels, $disableSameAdvertiserCompetitiveExclusion, $lastModifiedByApp, $notes, $competitiveConstraintScope, $lastModifiedDateTime, $creationDateTime, $customFieldValues, $isMissingCreatives, $programmaticCreativeSource, $thirdPartyMeasurementSettings, $youtubeKidsRestricted, $videoMaxDuration, $primaryGoal, $secondaryGoals, $grpSettings, $dealInfo, $viewabilityProviderCompanyIds, $childContentEligibility, $customVastExtension); $this->targeting = $targeting; @@ -123,7 +123,7 @@ public function getCreativeTargetings() * @param \Google\AdsApi\AdManager\v202405\CreativeTargeting[]|null $creativeTargetings * @return \Google\AdsApi\AdManager\v202405\LineItem */ - public function setCreativeTargetings(array $creativeTargetings = null) + public function setCreativeTargetings(?array $creativeTargetings = null) { $this->creativeTargetings = $creativeTargetings; return $this; diff --git a/src/Google/AdsApi/AdManager/v202405/LineItemSummary.php b/src/Google/AdsApi/AdManager/v202405/LineItemSummary.php index 33c367db2..c4743fa55 100644 --- a/src/Google/AdsApi/AdManager/v202405/LineItemSummary.php +++ b/src/Google/AdsApi/AdManager/v202405/LineItemSummary.php @@ -389,7 +389,7 @@ class LineItemSummary * @param string $childContentEligibility * @param string $customVastExtension */ - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, array $creativePlaceholders = null, array $activityAssociations = null, $environmentType = null, array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null) + public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, ?array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, ?array $creativePlaceholders = null, ?array $activityAssociations = null, $environmentType = null, ?array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, ?array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, ?array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, ?array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null) { $this->orderId = $orderId; $this->id = $id; @@ -758,7 +758,7 @@ public function getFrequencyCaps() * @param \Google\AdsApi\AdManager\v202405\FrequencyCap[]|null $frequencyCaps * @return \Google\AdsApi\AdManager\v202405\LineItemSummary */ - public function setFrequencyCaps(array $frequencyCaps = null) + public function setFrequencyCaps(?array $frequencyCaps = null) { $this->frequencyCaps = $frequencyCaps; return $this; @@ -921,7 +921,7 @@ public function getCreativePlaceholders() * @param \Google\AdsApi\AdManager\v202405\CreativePlaceholder[]|null $creativePlaceholders * @return \Google\AdsApi\AdManager\v202405\LineItemSummary */ - public function setCreativePlaceholders(array $creativePlaceholders = null) + public function setCreativePlaceholders(?array $creativePlaceholders = null) { $this->creativePlaceholders = $creativePlaceholders; return $this; @@ -939,7 +939,7 @@ public function getActivityAssociations() * @param \Google\AdsApi\AdManager\v202405\LineItemActivityAssociation[]|null $activityAssociations * @return \Google\AdsApi\AdManager\v202405\LineItemSummary */ - public function setActivityAssociations(array $activityAssociations = null) + public function setActivityAssociations(?array $activityAssociations = null) { $this->activityAssociations = $activityAssociations; return $this; @@ -975,7 +975,7 @@ public function getAllowedFormats() * @param string[]|null $allowedFormats * @return \Google\AdsApi\AdManager\v202405\LineItemSummary */ - public function setAllowedFormats(array $allowedFormats = null) + public function setAllowedFormats(?array $allowedFormats = null) { $this->allowedFormats = $allowedFormats; return $this; @@ -1227,7 +1227,7 @@ public function getAppliedLabels() * @param \Google\AdsApi\AdManager\v202405\AppliedLabel[]|null $appliedLabels * @return \Google\AdsApi\AdManager\v202405\LineItemSummary */ - public function setAppliedLabels(array $appliedLabels = null) + public function setAppliedLabels(?array $appliedLabels = null) { $this->appliedLabels = $appliedLabels; return $this; @@ -1245,7 +1245,7 @@ public function getEffectiveAppliedLabels() * @param \Google\AdsApi\AdManager\v202405\AppliedLabel[]|null $effectiveAppliedLabels * @return \Google\AdsApi\AdManager\v202405\LineItemSummary */ - public function setEffectiveAppliedLabels(array $effectiveAppliedLabels = null) + public function setEffectiveAppliedLabels(?array $effectiveAppliedLabels = null) { $this->effectiveAppliedLabels = $effectiveAppliedLabels; return $this; @@ -1371,7 +1371,7 @@ public function getCustomFieldValues() * @param \Google\AdsApi\AdManager\v202405\BaseCustomFieldValue[]|null $customFieldValues * @return \Google\AdsApi\AdManager\v202405\LineItemSummary */ - public function setCustomFieldValues(array $customFieldValues = null) + public function setCustomFieldValues(?array $customFieldValues = null) { $this->customFieldValues = $customFieldValues; return $this; @@ -1498,7 +1498,7 @@ public function getSecondaryGoals() * @param \Google\AdsApi\AdManager\v202405\Goal[]|null $secondaryGoals * @return \Google\AdsApi\AdManager\v202405\LineItemSummary */ - public function setSecondaryGoals(array $secondaryGoals = null) + public function setSecondaryGoals(?array $secondaryGoals = null) { $this->secondaryGoals = $secondaryGoals; return $this; @@ -1552,7 +1552,7 @@ public function getViewabilityProviderCompanyIds() * @param int[]|null $viewabilityProviderCompanyIds * @return \Google\AdsApi\AdManager\v202405\LineItemSummary */ - public function setViewabilityProviderCompanyIds(array $viewabilityProviderCompanyIds = null) + public function setViewabilityProviderCompanyIds(?array $viewabilityProviderCompanyIds = null) { $this->viewabilityProviderCompanyIds = $viewabilityProviderCompanyIds; return $this; diff --git a/src/Google/AdsApi/AdManager/v202405/ServiceFactory.php b/src/Google/AdsApi/AdManager/v202405/ServiceFactory.php index ad6622487..8e220f01f 100644 --- a/src/Google/AdsApi/AdManager/v202405/ServiceFactory.php +++ b/src/Google/AdsApi/AdManager/v202405/ServiceFactory.php @@ -16,7 +16,7 @@ final class ServiceFactory { private $services; - public function __construct(AdManagerServices $services = null) + public function __construct(?AdManagerServices $services = null) { $this->services = is_null($services) ? new AdManagerServices() : $services; } diff --git a/src/Google/AdsApi/AdManager/v202408/AvailabilityForecast.php b/src/Google/AdsApi/AdManager/v202408/AvailabilityForecast.php index 8418efc38..b3d18c874 100644 --- a/src/Google/AdsApi/AdManager/v202408/AvailabilityForecast.php +++ b/src/Google/AdsApi/AdManager/v202408/AvailabilityForecast.php @@ -83,7 +83,7 @@ class AvailabilityForecast * @param \Google\AdsApi\AdManager\v202408\ContendingLineItem[] $contendingLineItems * @param \Google\AdsApi\AdManager\v202408\AlternativeUnitTypeForecast[] $alternativeUnitTypeForecasts */ - public function __construct($lineItemId = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, array $breakdowns = null, array $targetingCriteriaBreakdowns = null, array $contendingLineItems = null, array $alternativeUnitTypeForecasts = null) + public function __construct($lineItemId = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, ?array $breakdowns = null, ?array $targetingCriteriaBreakdowns = null, ?array $contendingLineItems = null, ?array $alternativeUnitTypeForecasts = null) { $this->lineItemId = $lineItemId; $this->orderId = $orderId; @@ -262,7 +262,7 @@ public function getBreakdowns() * @param \Google\AdsApi\AdManager\v202408\ForecastBreakdown[]|null $breakdowns * @return \Google\AdsApi\AdManager\v202408\AvailabilityForecast */ - public function setBreakdowns(array $breakdowns = null) + public function setBreakdowns(?array $breakdowns = null) { $this->breakdowns = $breakdowns; return $this; @@ -280,7 +280,7 @@ public function getTargetingCriteriaBreakdowns() * @param \Google\AdsApi\AdManager\v202408\TargetingCriteriaBreakdown[]|null $targetingCriteriaBreakdowns * @return \Google\AdsApi\AdManager\v202408\AvailabilityForecast */ - public function setTargetingCriteriaBreakdowns(array $targetingCriteriaBreakdowns = null) + public function setTargetingCriteriaBreakdowns(?array $targetingCriteriaBreakdowns = null) { $this->targetingCriteriaBreakdowns = $targetingCriteriaBreakdowns; return $this; @@ -298,7 +298,7 @@ public function getContendingLineItems() * @param \Google\AdsApi\AdManager\v202408\ContendingLineItem[]|null $contendingLineItems * @return \Google\AdsApi\AdManager\v202408\AvailabilityForecast */ - public function setContendingLineItems(array $contendingLineItems = null) + public function setContendingLineItems(?array $contendingLineItems = null) { $this->contendingLineItems = $contendingLineItems; return $this; @@ -316,7 +316,7 @@ public function getAlternativeUnitTypeForecasts() * @param \Google\AdsApi\AdManager\v202408\AlternativeUnitTypeForecast[]|null $alternativeUnitTypeForecasts * @return \Google\AdsApi\AdManager\v202408\AvailabilityForecast */ - public function setAlternativeUnitTypeForecasts(array $alternativeUnitTypeForecasts = null) + public function setAlternativeUnitTypeForecasts(?array $alternativeUnitTypeForecasts = null) { $this->alternativeUnitTypeForecasts = $alternativeUnitTypeForecasts; return $this; diff --git a/src/Google/AdsApi/AdManager/v202408/CreativePlaceholder.php b/src/Google/AdsApi/AdManager/v202408/CreativePlaceholder.php index 3d1e89583..58979ed99 100644 --- a/src/Google/AdsApi/AdManager/v202408/CreativePlaceholder.php +++ b/src/Google/AdsApi/AdManager/v202408/CreativePlaceholder.php @@ -65,7 +65,7 @@ class CreativePlaceholder * @param string $targetingName * @param boolean $isAmpOnly */ - public function __construct($size = null, $creativeTemplateId = null, array $companions = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $expectedCreativeCount = null, $creativeSizeType = null, $targetingName = null, $isAmpOnly = null) + public function __construct($size = null, $creativeTemplateId = null, ?array $companions = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $expectedCreativeCount = null, $creativeSizeType = null, $targetingName = null, $isAmpOnly = null) { $this->size = $size; $this->creativeTemplateId = $creativeTemplateId; @@ -127,7 +127,7 @@ public function getCompanions() * @param \Google\AdsApi\AdManager\v202408\CreativePlaceholder[]|null $companions * @return \Google\AdsApi\AdManager\v202408\CreativePlaceholder */ - public function setCompanions(array $companions = null) + public function setCompanions(?array $companions = null) { $this->companions = $companions; return $this; @@ -145,7 +145,7 @@ public function getAppliedLabels() * @param \Google\AdsApi\AdManager\v202408\AppliedLabel[]|null $appliedLabels * @return \Google\AdsApi\AdManager\v202408\CreativePlaceholder */ - public function setAppliedLabels(array $appliedLabels = null) + public function setAppliedLabels(?array $appliedLabels = null) { $this->appliedLabels = $appliedLabels; return $this; @@ -163,7 +163,7 @@ public function getEffectiveAppliedLabels() * @param \Google\AdsApi\AdManager\v202408\AppliedLabel[]|null $effectiveAppliedLabels * @return \Google\AdsApi\AdManager\v202408\CreativePlaceholder */ - public function setEffectiveAppliedLabels(array $effectiveAppliedLabels = null) + public function setEffectiveAppliedLabels(?array $effectiveAppliedLabels = null) { $this->effectiveAppliedLabels = $effectiveAppliedLabels; return $this; diff --git a/src/Google/AdsApi/AdManager/v202408/InventoryTargeting.php b/src/Google/AdsApi/AdManager/v202408/InventoryTargeting.php index 08c0a4e75..5f28d3ebe 100644 --- a/src/Google/AdsApi/AdManager/v202408/InventoryTargeting.php +++ b/src/Google/AdsApi/AdManager/v202408/InventoryTargeting.php @@ -29,7 +29,7 @@ class InventoryTargeting * @param \Google\AdsApi\AdManager\v202408\AdUnitTargeting[] $excludedAdUnits * @param int[] $targetedPlacementIds */ - public function __construct(array $targetedAdUnits = null, array $excludedAdUnits = null, array $targetedPlacementIds = null) + public function __construct(?array $targetedAdUnits = null, ?array $excludedAdUnits = null, ?array $targetedPlacementIds = null) { $this->targetedAdUnits = $targetedAdUnits; $this->excludedAdUnits = $excludedAdUnits; @@ -48,7 +48,7 @@ public function getTargetedAdUnits() * @param \Google\AdsApi\AdManager\v202408\AdUnitTargeting[]|null $targetedAdUnits * @return \Google\AdsApi\AdManager\v202408\InventoryTargeting */ - public function setTargetedAdUnits(array $targetedAdUnits = null) + public function setTargetedAdUnits(?array $targetedAdUnits = null) { $this->targetedAdUnits = $targetedAdUnits; return $this; @@ -66,7 +66,7 @@ public function getExcludedAdUnits() * @param \Google\AdsApi\AdManager\v202408\AdUnitTargeting[]|null $excludedAdUnits * @return \Google\AdsApi\AdManager\v202408\InventoryTargeting */ - public function setExcludedAdUnits(array $excludedAdUnits = null) + public function setExcludedAdUnits(?array $excludedAdUnits = null) { $this->excludedAdUnits = $excludedAdUnits; return $this; @@ -84,7 +84,7 @@ public function getTargetedPlacementIds() * @param int[]|null $targetedPlacementIds * @return \Google\AdsApi\AdManager\v202408\InventoryTargeting */ - public function setTargetedPlacementIds(array $targetedPlacementIds = null) + public function setTargetedPlacementIds(?array $targetedPlacementIds = null) { $this->targetedPlacementIds = $targetedPlacementIds; return $this; diff --git a/src/Google/AdsApi/AdManager/v202408/LineItem.php b/src/Google/AdsApi/AdManager/v202408/LineItem.php index 814339ed8..7fdd426aa 100644 --- a/src/Google/AdsApi/AdManager/v202408/LineItem.php +++ b/src/Google/AdsApi/AdManager/v202408/LineItem.php @@ -86,7 +86,7 @@ class LineItem extends \Google\AdsApi\AdManager\v202408\LineItemSummary * @param \Google\AdsApi\AdManager\v202408\Targeting $targeting * @param \Google\AdsApi\AdManager\v202408\CreativeTargeting[] $creativeTargetings */ - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, array $creativePlaceholders = null, array $activityAssociations = null, $environmentType = null, array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null, $targeting = null, array $creativeTargetings = null) + public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, ?array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, ?array $creativePlaceholders = null, ?array $activityAssociations = null, $environmentType = null, ?array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, ?array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, ?array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, ?array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null, $targeting = null, ?array $creativeTargetings = null) { parent::__construct($orderId, $id, $name, $externalId, $orderName, $startDateTime, $startDateTimeType, $endDateTime, $autoExtensionDays, $unlimitedEndDateTime, $creativeRotationType, $deliveryRateType, $deliveryForecastSource, $customPacingCurve, $roadblockingType, $skippableAdType, $frequencyCaps, $lineItemType, $priority, $costPerUnit, $valueCostPerUnit, $costType, $discountType, $discount, $contractedUnitsBought, $creativePlaceholders, $activityAssociations, $environmentType, $allowedFormats, $companionDeliveryOption, $allowOverbook, $skipInventoryCheck, $skipCrossSellingRuleWarningChecks, $reserveAtCreation, $stats, $deliveryIndicator, $deliveryData, $budget, $status, $reservationStatus, $isArchived, $webPropertyCode, $appliedLabels, $effectiveAppliedLabels, $disableSameAdvertiserCompetitiveExclusion, $lastModifiedByApp, $notes, $competitiveConstraintScope, $lastModifiedDateTime, $creationDateTime, $customFieldValues, $isMissingCreatives, $programmaticCreativeSource, $thirdPartyMeasurementSettings, $youtubeKidsRestricted, $videoMaxDuration, $primaryGoal, $secondaryGoals, $grpSettings, $dealInfo, $viewabilityProviderCompanyIds, $childContentEligibility, $customVastExtension); $this->targeting = $targeting; @@ -123,7 +123,7 @@ public function getCreativeTargetings() * @param \Google\AdsApi\AdManager\v202408\CreativeTargeting[]|null $creativeTargetings * @return \Google\AdsApi\AdManager\v202408\LineItem */ - public function setCreativeTargetings(array $creativeTargetings = null) + public function setCreativeTargetings(?array $creativeTargetings = null) { $this->creativeTargetings = $creativeTargetings; return $this; diff --git a/src/Google/AdsApi/AdManager/v202408/LineItemSummary.php b/src/Google/AdsApi/AdManager/v202408/LineItemSummary.php index 2050ac9c5..5fc4b5472 100644 --- a/src/Google/AdsApi/AdManager/v202408/LineItemSummary.php +++ b/src/Google/AdsApi/AdManager/v202408/LineItemSummary.php @@ -389,7 +389,7 @@ class LineItemSummary * @param string $childContentEligibility * @param string $customVastExtension */ - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, array $creativePlaceholders = null, array $activityAssociations = null, $environmentType = null, array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null) + public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, ?array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, ?array $creativePlaceholders = null, ?array $activityAssociations = null, $environmentType = null, ?array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, ?array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, ?array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, ?array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null) { $this->orderId = $orderId; $this->id = $id; @@ -758,7 +758,7 @@ public function getFrequencyCaps() * @param \Google\AdsApi\AdManager\v202408\FrequencyCap[]|null $frequencyCaps * @return \Google\AdsApi\AdManager\v202408\LineItemSummary */ - public function setFrequencyCaps(array $frequencyCaps = null) + public function setFrequencyCaps(?array $frequencyCaps = null) { $this->frequencyCaps = $frequencyCaps; return $this; @@ -921,7 +921,7 @@ public function getCreativePlaceholders() * @param \Google\AdsApi\AdManager\v202408\CreativePlaceholder[]|null $creativePlaceholders * @return \Google\AdsApi\AdManager\v202408\LineItemSummary */ - public function setCreativePlaceholders(array $creativePlaceholders = null) + public function setCreativePlaceholders(?array $creativePlaceholders = null) { $this->creativePlaceholders = $creativePlaceholders; return $this; @@ -939,7 +939,7 @@ public function getActivityAssociations() * @param \Google\AdsApi\AdManager\v202408\LineItemActivityAssociation[]|null $activityAssociations * @return \Google\AdsApi\AdManager\v202408\LineItemSummary */ - public function setActivityAssociations(array $activityAssociations = null) + public function setActivityAssociations(?array $activityAssociations = null) { $this->activityAssociations = $activityAssociations; return $this; @@ -975,7 +975,7 @@ public function getAllowedFormats() * @param string[]|null $allowedFormats * @return \Google\AdsApi\AdManager\v202408\LineItemSummary */ - public function setAllowedFormats(array $allowedFormats = null) + public function setAllowedFormats(?array $allowedFormats = null) { $this->allowedFormats = $allowedFormats; return $this; @@ -1227,7 +1227,7 @@ public function getAppliedLabels() * @param \Google\AdsApi\AdManager\v202408\AppliedLabel[]|null $appliedLabels * @return \Google\AdsApi\AdManager\v202408\LineItemSummary */ - public function setAppliedLabels(array $appliedLabels = null) + public function setAppliedLabels(?array $appliedLabels = null) { $this->appliedLabels = $appliedLabels; return $this; @@ -1245,7 +1245,7 @@ public function getEffectiveAppliedLabels() * @param \Google\AdsApi\AdManager\v202408\AppliedLabel[]|null $effectiveAppliedLabels * @return \Google\AdsApi\AdManager\v202408\LineItemSummary */ - public function setEffectiveAppliedLabels(array $effectiveAppliedLabels = null) + public function setEffectiveAppliedLabels(?array $effectiveAppliedLabels = null) { $this->effectiveAppliedLabels = $effectiveAppliedLabels; return $this; @@ -1371,7 +1371,7 @@ public function getCustomFieldValues() * @param \Google\AdsApi\AdManager\v202408\BaseCustomFieldValue[]|null $customFieldValues * @return \Google\AdsApi\AdManager\v202408\LineItemSummary */ - public function setCustomFieldValues(array $customFieldValues = null) + public function setCustomFieldValues(?array $customFieldValues = null) { $this->customFieldValues = $customFieldValues; return $this; @@ -1498,7 +1498,7 @@ public function getSecondaryGoals() * @param \Google\AdsApi\AdManager\v202408\Goal[]|null $secondaryGoals * @return \Google\AdsApi\AdManager\v202408\LineItemSummary */ - public function setSecondaryGoals(array $secondaryGoals = null) + public function setSecondaryGoals(?array $secondaryGoals = null) { $this->secondaryGoals = $secondaryGoals; return $this; @@ -1552,7 +1552,7 @@ public function getViewabilityProviderCompanyIds() * @param int[]|null $viewabilityProviderCompanyIds * @return \Google\AdsApi\AdManager\v202408\LineItemSummary */ - public function setViewabilityProviderCompanyIds(array $viewabilityProviderCompanyIds = null) + public function setViewabilityProviderCompanyIds(?array $viewabilityProviderCompanyIds = null) { $this->viewabilityProviderCompanyIds = $viewabilityProviderCompanyIds; return $this; diff --git a/src/Google/AdsApi/AdManager/v202408/ServiceFactory.php b/src/Google/AdsApi/AdManager/v202408/ServiceFactory.php index b80a236b7..a7f84b9db 100644 --- a/src/Google/AdsApi/AdManager/v202408/ServiceFactory.php +++ b/src/Google/AdsApi/AdManager/v202408/ServiceFactory.php @@ -16,7 +16,7 @@ final class ServiceFactory { private $services; - public function __construct(AdManagerServices $services = null) + public function __construct(?AdManagerServices $services = null) { $this->services = is_null($services) ? new AdManagerServices() : $services; } diff --git a/src/Google/AdsApi/AdManager/v202411/AvailabilityForecast.php b/src/Google/AdsApi/AdManager/v202411/AvailabilityForecast.php index 41dea0380..bfbfae1a1 100644 --- a/src/Google/AdsApi/AdManager/v202411/AvailabilityForecast.php +++ b/src/Google/AdsApi/AdManager/v202411/AvailabilityForecast.php @@ -83,7 +83,7 @@ class AvailabilityForecast * @param \Google\AdsApi\AdManager\v202411\ContendingLineItem[] $contendingLineItems * @param \Google\AdsApi\AdManager\v202411\AlternativeUnitTypeForecast[] $alternativeUnitTypeForecasts */ - public function __construct($lineItemId = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, array $breakdowns = null, array $targetingCriteriaBreakdowns = null, array $contendingLineItems = null, array $alternativeUnitTypeForecasts = null) + public function __construct($lineItemId = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, ?array $breakdowns = null, ?array $targetingCriteriaBreakdowns = null, ?array $contendingLineItems = null, ?array $alternativeUnitTypeForecasts = null) { $this->lineItemId = $lineItemId; $this->orderId = $orderId; @@ -262,7 +262,7 @@ public function getBreakdowns() * @param \Google\AdsApi\AdManager\v202411\ForecastBreakdown[]|null $breakdowns * @return \Google\AdsApi\AdManager\v202411\AvailabilityForecast */ - public function setBreakdowns(array $breakdowns = null) + public function setBreakdowns(?array $breakdowns = null) { $this->breakdowns = $breakdowns; return $this; @@ -280,7 +280,7 @@ public function getTargetingCriteriaBreakdowns() * @param \Google\AdsApi\AdManager\v202411\TargetingCriteriaBreakdown[]|null $targetingCriteriaBreakdowns * @return \Google\AdsApi\AdManager\v202411\AvailabilityForecast */ - public function setTargetingCriteriaBreakdowns(array $targetingCriteriaBreakdowns = null) + public function setTargetingCriteriaBreakdowns(?array $targetingCriteriaBreakdowns = null) { $this->targetingCriteriaBreakdowns = $targetingCriteriaBreakdowns; return $this; @@ -298,7 +298,7 @@ public function getContendingLineItems() * @param \Google\AdsApi\AdManager\v202411\ContendingLineItem[]|null $contendingLineItems * @return \Google\AdsApi\AdManager\v202411\AvailabilityForecast */ - public function setContendingLineItems(array $contendingLineItems = null) + public function setContendingLineItems(?array $contendingLineItems = null) { $this->contendingLineItems = $contendingLineItems; return $this; @@ -316,7 +316,7 @@ public function getAlternativeUnitTypeForecasts() * @param \Google\AdsApi\AdManager\v202411\AlternativeUnitTypeForecast[]|null $alternativeUnitTypeForecasts * @return \Google\AdsApi\AdManager\v202411\AvailabilityForecast */ - public function setAlternativeUnitTypeForecasts(array $alternativeUnitTypeForecasts = null) + public function setAlternativeUnitTypeForecasts(?array $alternativeUnitTypeForecasts = null) { $this->alternativeUnitTypeForecasts = $alternativeUnitTypeForecasts; return $this; diff --git a/src/Google/AdsApi/AdManager/v202411/CreativePlaceholder.php b/src/Google/AdsApi/AdManager/v202411/CreativePlaceholder.php index ad4629831..04987afd0 100644 --- a/src/Google/AdsApi/AdManager/v202411/CreativePlaceholder.php +++ b/src/Google/AdsApi/AdManager/v202411/CreativePlaceholder.php @@ -65,7 +65,7 @@ class CreativePlaceholder * @param string $targetingName * @param boolean $isAmpOnly */ - public function __construct($size = null, $creativeTemplateId = null, array $companions = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $expectedCreativeCount = null, $creativeSizeType = null, $targetingName = null, $isAmpOnly = null) + public function __construct($size = null, $creativeTemplateId = null, ?array $companions = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $expectedCreativeCount = null, $creativeSizeType = null, $targetingName = null, $isAmpOnly = null) { $this->size = $size; $this->creativeTemplateId = $creativeTemplateId; @@ -127,7 +127,7 @@ public function getCompanions() * @param \Google\AdsApi\AdManager\v202411\CreativePlaceholder[]|null $companions * @return \Google\AdsApi\AdManager\v202411\CreativePlaceholder */ - public function setCompanions(array $companions = null) + public function setCompanions(?array $companions = null) { $this->companions = $companions; return $this; @@ -145,7 +145,7 @@ public function getAppliedLabels() * @param \Google\AdsApi\AdManager\v202411\AppliedLabel[]|null $appliedLabels * @return \Google\AdsApi\AdManager\v202411\CreativePlaceholder */ - public function setAppliedLabels(array $appliedLabels = null) + public function setAppliedLabels(?array $appliedLabels = null) { $this->appliedLabels = $appliedLabels; return $this; @@ -163,7 +163,7 @@ public function getEffectiveAppliedLabels() * @param \Google\AdsApi\AdManager\v202411\AppliedLabel[]|null $effectiveAppliedLabels * @return \Google\AdsApi\AdManager\v202411\CreativePlaceholder */ - public function setEffectiveAppliedLabels(array $effectiveAppliedLabels = null) + public function setEffectiveAppliedLabels(?array $effectiveAppliedLabels = null) { $this->effectiveAppliedLabels = $effectiveAppliedLabels; return $this; diff --git a/src/Google/AdsApi/AdManager/v202411/InventoryTargeting.php b/src/Google/AdsApi/AdManager/v202411/InventoryTargeting.php index c2bc19c99..775ef20d8 100644 --- a/src/Google/AdsApi/AdManager/v202411/InventoryTargeting.php +++ b/src/Google/AdsApi/AdManager/v202411/InventoryTargeting.php @@ -29,7 +29,7 @@ class InventoryTargeting * @param \Google\AdsApi\AdManager\v202411\AdUnitTargeting[] $excludedAdUnits * @param int[] $targetedPlacementIds */ - public function __construct(array $targetedAdUnits = null, array $excludedAdUnits = null, array $targetedPlacementIds = null) + public function __construct(?array $targetedAdUnits = null, ?array $excludedAdUnits = null, ?array $targetedPlacementIds = null) { $this->targetedAdUnits = $targetedAdUnits; $this->excludedAdUnits = $excludedAdUnits; @@ -48,7 +48,7 @@ public function getTargetedAdUnits() * @param \Google\AdsApi\AdManager\v202411\AdUnitTargeting[]|null $targetedAdUnits * @return \Google\AdsApi\AdManager\v202411\InventoryTargeting */ - public function setTargetedAdUnits(array $targetedAdUnits = null) + public function setTargetedAdUnits(?array $targetedAdUnits = null) { $this->targetedAdUnits = $targetedAdUnits; return $this; @@ -66,7 +66,7 @@ public function getExcludedAdUnits() * @param \Google\AdsApi\AdManager\v202411\AdUnitTargeting[]|null $excludedAdUnits * @return \Google\AdsApi\AdManager\v202411\InventoryTargeting */ - public function setExcludedAdUnits(array $excludedAdUnits = null) + public function setExcludedAdUnits(?array $excludedAdUnits = null) { $this->excludedAdUnits = $excludedAdUnits; return $this; @@ -84,7 +84,7 @@ public function getTargetedPlacementIds() * @param int[]|null $targetedPlacementIds * @return \Google\AdsApi\AdManager\v202411\InventoryTargeting */ - public function setTargetedPlacementIds(array $targetedPlacementIds = null) + public function setTargetedPlacementIds(?array $targetedPlacementIds = null) { $this->targetedPlacementIds = $targetedPlacementIds; return $this; diff --git a/src/Google/AdsApi/AdManager/v202411/LineItem.php b/src/Google/AdsApi/AdManager/v202411/LineItem.php index c83027f10..d77641ce2 100644 --- a/src/Google/AdsApi/AdManager/v202411/LineItem.php +++ b/src/Google/AdsApi/AdManager/v202411/LineItem.php @@ -86,7 +86,7 @@ class LineItem extends \Google\AdsApi\AdManager\v202411\LineItemSummary * @param \Google\AdsApi\AdManager\v202411\Targeting $targeting * @param \Google\AdsApi\AdManager\v202411\CreativeTargeting[] $creativeTargetings */ - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, array $creativePlaceholders = null, array $activityAssociations = null, $environmentType = null, array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null, $targeting = null, array $creativeTargetings = null) + public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, ?array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, ?array $creativePlaceholders = null, ?array $activityAssociations = null, $environmentType = null, ?array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, ?array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, ?array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, ?array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null, $targeting = null, ?array $creativeTargetings = null) { parent::__construct($orderId, $id, $name, $externalId, $orderName, $startDateTime, $startDateTimeType, $endDateTime, $autoExtensionDays, $unlimitedEndDateTime, $creativeRotationType, $deliveryRateType, $deliveryForecastSource, $customPacingCurve, $roadblockingType, $skippableAdType, $frequencyCaps, $lineItemType, $priority, $costPerUnit, $valueCostPerUnit, $costType, $discountType, $discount, $contractedUnitsBought, $creativePlaceholders, $activityAssociations, $environmentType, $allowedFormats, $companionDeliveryOption, $allowOverbook, $skipInventoryCheck, $skipCrossSellingRuleWarningChecks, $reserveAtCreation, $stats, $deliveryIndicator, $deliveryData, $budget, $status, $reservationStatus, $isArchived, $webPropertyCode, $appliedLabels, $effectiveAppliedLabels, $disableSameAdvertiserCompetitiveExclusion, $lastModifiedByApp, $notes, $competitiveConstraintScope, $lastModifiedDateTime, $creationDateTime, $customFieldValues, $isMissingCreatives, $programmaticCreativeSource, $thirdPartyMeasurementSettings, $youtubeKidsRestricted, $videoMaxDuration, $primaryGoal, $secondaryGoals, $grpSettings, $dealInfo, $viewabilityProviderCompanyIds, $childContentEligibility, $customVastExtension); $this->targeting = $targeting; @@ -123,7 +123,7 @@ public function getCreativeTargetings() * @param \Google\AdsApi\AdManager\v202411\CreativeTargeting[]|null $creativeTargetings * @return \Google\AdsApi\AdManager\v202411\LineItem */ - public function setCreativeTargetings(array $creativeTargetings = null) + public function setCreativeTargetings(?array $creativeTargetings = null) { $this->creativeTargetings = $creativeTargetings; return $this; diff --git a/src/Google/AdsApi/AdManager/v202411/LineItemSummary.php b/src/Google/AdsApi/AdManager/v202411/LineItemSummary.php index 0102ba241..77b1f610d 100644 --- a/src/Google/AdsApi/AdManager/v202411/LineItemSummary.php +++ b/src/Google/AdsApi/AdManager/v202411/LineItemSummary.php @@ -389,7 +389,7 @@ class LineItemSummary * @param string $childContentEligibility * @param string $customVastExtension */ - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, array $creativePlaceholders = null, array $activityAssociations = null, $environmentType = null, array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null) + public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, ?array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, ?array $creativePlaceholders = null, ?array $activityAssociations = null, $environmentType = null, ?array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, ?array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, ?array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, ?array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null) { $this->orderId = $orderId; $this->id = $id; @@ -758,7 +758,7 @@ public function getFrequencyCaps() * @param \Google\AdsApi\AdManager\v202411\FrequencyCap[]|null $frequencyCaps * @return \Google\AdsApi\AdManager\v202411\LineItemSummary */ - public function setFrequencyCaps(array $frequencyCaps = null) + public function setFrequencyCaps(?array $frequencyCaps = null) { $this->frequencyCaps = $frequencyCaps; return $this; @@ -921,7 +921,7 @@ public function getCreativePlaceholders() * @param \Google\AdsApi\AdManager\v202411\CreativePlaceholder[]|null $creativePlaceholders * @return \Google\AdsApi\AdManager\v202411\LineItemSummary */ - public function setCreativePlaceholders(array $creativePlaceholders = null) + public function setCreativePlaceholders(?array $creativePlaceholders = null) { $this->creativePlaceholders = $creativePlaceholders; return $this; @@ -939,7 +939,7 @@ public function getActivityAssociations() * @param \Google\AdsApi\AdManager\v202411\LineItemActivityAssociation[]|null $activityAssociations * @return \Google\AdsApi\AdManager\v202411\LineItemSummary */ - public function setActivityAssociations(array $activityAssociations = null) + public function setActivityAssociations(?array $activityAssociations = null) { $this->activityAssociations = $activityAssociations; return $this; @@ -975,7 +975,7 @@ public function getAllowedFormats() * @param string[]|null $allowedFormats * @return \Google\AdsApi\AdManager\v202411\LineItemSummary */ - public function setAllowedFormats(array $allowedFormats = null) + public function setAllowedFormats(?array $allowedFormats = null) { $this->allowedFormats = $allowedFormats; return $this; @@ -1227,7 +1227,7 @@ public function getAppliedLabels() * @param \Google\AdsApi\AdManager\v202411\AppliedLabel[]|null $appliedLabels * @return \Google\AdsApi\AdManager\v202411\LineItemSummary */ - public function setAppliedLabels(array $appliedLabels = null) + public function setAppliedLabels(?array $appliedLabels = null) { $this->appliedLabels = $appliedLabels; return $this; @@ -1245,7 +1245,7 @@ public function getEffectiveAppliedLabels() * @param \Google\AdsApi\AdManager\v202411\AppliedLabel[]|null $effectiveAppliedLabels * @return \Google\AdsApi\AdManager\v202411\LineItemSummary */ - public function setEffectiveAppliedLabels(array $effectiveAppliedLabels = null) + public function setEffectiveAppliedLabels(?array $effectiveAppliedLabels = null) { $this->effectiveAppliedLabels = $effectiveAppliedLabels; return $this; @@ -1371,7 +1371,7 @@ public function getCustomFieldValues() * @param \Google\AdsApi\AdManager\v202411\BaseCustomFieldValue[]|null $customFieldValues * @return \Google\AdsApi\AdManager\v202411\LineItemSummary */ - public function setCustomFieldValues(array $customFieldValues = null) + public function setCustomFieldValues(?array $customFieldValues = null) { $this->customFieldValues = $customFieldValues; return $this; @@ -1498,7 +1498,7 @@ public function getSecondaryGoals() * @param \Google\AdsApi\AdManager\v202411\Goal[]|null $secondaryGoals * @return \Google\AdsApi\AdManager\v202411\LineItemSummary */ - public function setSecondaryGoals(array $secondaryGoals = null) + public function setSecondaryGoals(?array $secondaryGoals = null) { $this->secondaryGoals = $secondaryGoals; return $this; @@ -1552,7 +1552,7 @@ public function getViewabilityProviderCompanyIds() * @param int[]|null $viewabilityProviderCompanyIds * @return \Google\AdsApi\AdManager\v202411\LineItemSummary */ - public function setViewabilityProviderCompanyIds(array $viewabilityProviderCompanyIds = null) + public function setViewabilityProviderCompanyIds(?array $viewabilityProviderCompanyIds = null) { $this->viewabilityProviderCompanyIds = $viewabilityProviderCompanyIds; return $this; diff --git a/src/Google/AdsApi/AdManager/v202411/ServiceFactory.php b/src/Google/AdsApi/AdManager/v202411/ServiceFactory.php index accf7e50c..9b30b4245 100644 --- a/src/Google/AdsApi/AdManager/v202411/ServiceFactory.php +++ b/src/Google/AdsApi/AdManager/v202411/ServiceFactory.php @@ -16,7 +16,7 @@ final class ServiceFactory { private $services; - public function __construct(AdManagerServices $services = null) + public function __construct(?AdManagerServices $services = null) { $this->services = is_null($services) ? new AdManagerServices() : $services; } diff --git a/src/Google/AdsApi/AdManager/v202502/AvailabilityForecast.php b/src/Google/AdsApi/AdManager/v202502/AvailabilityForecast.php index d63b220a3..396eb2cb4 100644 --- a/src/Google/AdsApi/AdManager/v202502/AvailabilityForecast.php +++ b/src/Google/AdsApi/AdManager/v202502/AvailabilityForecast.php @@ -83,7 +83,7 @@ class AvailabilityForecast * @param \Google\AdsApi\AdManager\v202502\ContendingLineItem[] $contendingLineItems * @param \Google\AdsApi\AdManager\v202502\AlternativeUnitTypeForecast[] $alternativeUnitTypeForecasts */ - public function __construct($lineItemId = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, array $breakdowns = null, array $targetingCriteriaBreakdowns = null, array $contendingLineItems = null, array $alternativeUnitTypeForecasts = null) + public function __construct($lineItemId = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, ?array $breakdowns = null, ?array $targetingCriteriaBreakdowns = null, ?array $contendingLineItems = null, ?array $alternativeUnitTypeForecasts = null) { $this->lineItemId = $lineItemId; $this->orderId = $orderId; @@ -262,7 +262,7 @@ public function getBreakdowns() * @param \Google\AdsApi\AdManager\v202502\ForecastBreakdown[]|null $breakdowns * @return \Google\AdsApi\AdManager\v202502\AvailabilityForecast */ - public function setBreakdowns(array $breakdowns = null) + public function setBreakdowns(?array $breakdowns = null) { $this->breakdowns = $breakdowns; return $this; @@ -280,7 +280,7 @@ public function getTargetingCriteriaBreakdowns() * @param \Google\AdsApi\AdManager\v202502\TargetingCriteriaBreakdown[]|null $targetingCriteriaBreakdowns * @return \Google\AdsApi\AdManager\v202502\AvailabilityForecast */ - public function setTargetingCriteriaBreakdowns(array $targetingCriteriaBreakdowns = null) + public function setTargetingCriteriaBreakdowns(?array $targetingCriteriaBreakdowns = null) { $this->targetingCriteriaBreakdowns = $targetingCriteriaBreakdowns; return $this; @@ -298,7 +298,7 @@ public function getContendingLineItems() * @param \Google\AdsApi\AdManager\v202502\ContendingLineItem[]|null $contendingLineItems * @return \Google\AdsApi\AdManager\v202502\AvailabilityForecast */ - public function setContendingLineItems(array $contendingLineItems = null) + public function setContendingLineItems(?array $contendingLineItems = null) { $this->contendingLineItems = $contendingLineItems; return $this; @@ -316,7 +316,7 @@ public function getAlternativeUnitTypeForecasts() * @param \Google\AdsApi\AdManager\v202502\AlternativeUnitTypeForecast[]|null $alternativeUnitTypeForecasts * @return \Google\AdsApi\AdManager\v202502\AvailabilityForecast */ - public function setAlternativeUnitTypeForecasts(array $alternativeUnitTypeForecasts = null) + public function setAlternativeUnitTypeForecasts(?array $alternativeUnitTypeForecasts = null) { $this->alternativeUnitTypeForecasts = $alternativeUnitTypeForecasts; return $this; diff --git a/src/Google/AdsApi/AdManager/v202502/CreativePlaceholder.php b/src/Google/AdsApi/AdManager/v202502/CreativePlaceholder.php index 923120f4b..c381b6321 100644 --- a/src/Google/AdsApi/AdManager/v202502/CreativePlaceholder.php +++ b/src/Google/AdsApi/AdManager/v202502/CreativePlaceholder.php @@ -65,7 +65,7 @@ class CreativePlaceholder * @param string $targetingName * @param boolean $isAmpOnly */ - public function __construct($size = null, $creativeTemplateId = null, array $companions = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $expectedCreativeCount = null, $creativeSizeType = null, $targetingName = null, $isAmpOnly = null) + public function __construct($size = null, $creativeTemplateId = null, ?array $companions = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $expectedCreativeCount = null, $creativeSizeType = null, $targetingName = null, $isAmpOnly = null) { $this->size = $size; $this->creativeTemplateId = $creativeTemplateId; @@ -127,7 +127,7 @@ public function getCompanions() * @param \Google\AdsApi\AdManager\v202502\CreativePlaceholder[]|null $companions * @return \Google\AdsApi\AdManager\v202502\CreativePlaceholder */ - public function setCompanions(array $companions = null) + public function setCompanions(?array $companions = null) { $this->companions = $companions; return $this; @@ -145,7 +145,7 @@ public function getAppliedLabels() * @param \Google\AdsApi\AdManager\v202502\AppliedLabel[]|null $appliedLabels * @return \Google\AdsApi\AdManager\v202502\CreativePlaceholder */ - public function setAppliedLabels(array $appliedLabels = null) + public function setAppliedLabels(?array $appliedLabels = null) { $this->appliedLabels = $appliedLabels; return $this; @@ -163,7 +163,7 @@ public function getEffectiveAppliedLabels() * @param \Google\AdsApi\AdManager\v202502\AppliedLabel[]|null $effectiveAppliedLabels * @return \Google\AdsApi\AdManager\v202502\CreativePlaceholder */ - public function setEffectiveAppliedLabels(array $effectiveAppliedLabels = null) + public function setEffectiveAppliedLabels(?array $effectiveAppliedLabels = null) { $this->effectiveAppliedLabels = $effectiveAppliedLabels; return $this; diff --git a/src/Google/AdsApi/AdManager/v202502/InventoryTargeting.php b/src/Google/AdsApi/AdManager/v202502/InventoryTargeting.php index f8fc8f4db..c5127e18d 100644 --- a/src/Google/AdsApi/AdManager/v202502/InventoryTargeting.php +++ b/src/Google/AdsApi/AdManager/v202502/InventoryTargeting.php @@ -29,7 +29,7 @@ class InventoryTargeting * @param \Google\AdsApi\AdManager\v202502\AdUnitTargeting[] $excludedAdUnits * @param int[] $targetedPlacementIds */ - public function __construct(array $targetedAdUnits = null, array $excludedAdUnits = null, array $targetedPlacementIds = null) + public function __construct(?array $targetedAdUnits = null, ?array $excludedAdUnits = null, ?array $targetedPlacementIds = null) { $this->targetedAdUnits = $targetedAdUnits; $this->excludedAdUnits = $excludedAdUnits; @@ -48,7 +48,7 @@ public function getTargetedAdUnits() * @param \Google\AdsApi\AdManager\v202502\AdUnitTargeting[]|null $targetedAdUnits * @return \Google\AdsApi\AdManager\v202502\InventoryTargeting */ - public function setTargetedAdUnits(array $targetedAdUnits = null) + public function setTargetedAdUnits(?array $targetedAdUnits = null) { $this->targetedAdUnits = $targetedAdUnits; return $this; @@ -66,7 +66,7 @@ public function getExcludedAdUnits() * @param \Google\AdsApi\AdManager\v202502\AdUnitTargeting[]|null $excludedAdUnits * @return \Google\AdsApi\AdManager\v202502\InventoryTargeting */ - public function setExcludedAdUnits(array $excludedAdUnits = null) + public function setExcludedAdUnits(?array $excludedAdUnits = null) { $this->excludedAdUnits = $excludedAdUnits; return $this; @@ -84,7 +84,7 @@ public function getTargetedPlacementIds() * @param int[]|null $targetedPlacementIds * @return \Google\AdsApi\AdManager\v202502\InventoryTargeting */ - public function setTargetedPlacementIds(array $targetedPlacementIds = null) + public function setTargetedPlacementIds(?array $targetedPlacementIds = null) { $this->targetedPlacementIds = $targetedPlacementIds; return $this; diff --git a/src/Google/AdsApi/AdManager/v202502/LineItem.php b/src/Google/AdsApi/AdManager/v202502/LineItem.php index 53b91b2ec..36caead1d 100644 --- a/src/Google/AdsApi/AdManager/v202502/LineItem.php +++ b/src/Google/AdsApi/AdManager/v202502/LineItem.php @@ -86,7 +86,7 @@ class LineItem extends \Google\AdsApi\AdManager\v202502\LineItemSummary * @param \Google\AdsApi\AdManager\v202502\Targeting $targeting * @param \Google\AdsApi\AdManager\v202502\CreativeTargeting[] $creativeTargetings */ - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, array $creativePlaceholders = null, array $activityAssociations = null, $environmentType = null, array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null, $targeting = null, array $creativeTargetings = null) + public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, ?array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, ?array $creativePlaceholders = null, ?array $activityAssociations = null, $environmentType = null, ?array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, ?array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, ?array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, ?array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null, $targeting = null, ?array $creativeTargetings = null) { parent::__construct($orderId, $id, $name, $externalId, $orderName, $startDateTime, $startDateTimeType, $endDateTime, $autoExtensionDays, $unlimitedEndDateTime, $creativeRotationType, $deliveryRateType, $deliveryForecastSource, $customPacingCurve, $roadblockingType, $skippableAdType, $frequencyCaps, $lineItemType, $priority, $costPerUnit, $valueCostPerUnit, $costType, $discountType, $discount, $contractedUnitsBought, $creativePlaceholders, $activityAssociations, $environmentType, $allowedFormats, $companionDeliveryOption, $allowOverbook, $skipInventoryCheck, $skipCrossSellingRuleWarningChecks, $reserveAtCreation, $stats, $deliveryIndicator, $deliveryData, $budget, $status, $reservationStatus, $isArchived, $webPropertyCode, $appliedLabels, $effectiveAppliedLabels, $disableSameAdvertiserCompetitiveExclusion, $lastModifiedByApp, $notes, $competitiveConstraintScope, $lastModifiedDateTime, $creationDateTime, $customFieldValues, $isMissingCreatives, $programmaticCreativeSource, $thirdPartyMeasurementSettings, $youtubeKidsRestricted, $videoMaxDuration, $primaryGoal, $secondaryGoals, $grpSettings, $dealInfo, $viewabilityProviderCompanyIds, $childContentEligibility, $customVastExtension); $this->targeting = $targeting; @@ -123,7 +123,7 @@ public function getCreativeTargetings() * @param \Google\AdsApi\AdManager\v202502\CreativeTargeting[]|null $creativeTargetings * @return \Google\AdsApi\AdManager\v202502\LineItem */ - public function setCreativeTargetings(array $creativeTargetings = null) + public function setCreativeTargetings(?array $creativeTargetings = null) { $this->creativeTargetings = $creativeTargetings; return $this; diff --git a/src/Google/AdsApi/AdManager/v202502/LineItemSummary.php b/src/Google/AdsApi/AdManager/v202502/LineItemSummary.php index 04695fcfb..71bd956cf 100644 --- a/src/Google/AdsApi/AdManager/v202502/LineItemSummary.php +++ b/src/Google/AdsApi/AdManager/v202502/LineItemSummary.php @@ -389,7 +389,7 @@ class LineItemSummary * @param string $childContentEligibility * @param string $customVastExtension */ - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, array $creativePlaceholders = null, array $activityAssociations = null, $environmentType = null, array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null) + public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $deliveryForecastSource = null, $customPacingCurve = null, $roadblockingType = null, $skippableAdType = null, ?array $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, ?array $creativePlaceholders = null, ?array $activityAssociations = null, $environmentType = null, ?array $allowedFormats = null, $companionDeliveryOption = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $competitiveConstraintScope = null, $lastModifiedDateTime = null, $creationDateTime = null, ?array $customFieldValues = null, $isMissingCreatives = null, $programmaticCreativeSource = null, $thirdPartyMeasurementSettings = null, $youtubeKidsRestricted = null, $videoMaxDuration = null, $primaryGoal = null, ?array $secondaryGoals = null, $grpSettings = null, $dealInfo = null, ?array $viewabilityProviderCompanyIds = null, $childContentEligibility = null, $customVastExtension = null) { $this->orderId = $orderId; $this->id = $id; @@ -758,7 +758,7 @@ public function getFrequencyCaps() * @param \Google\AdsApi\AdManager\v202502\FrequencyCap[]|null $frequencyCaps * @return \Google\AdsApi\AdManager\v202502\LineItemSummary */ - public function setFrequencyCaps(array $frequencyCaps = null) + public function setFrequencyCaps(?array $frequencyCaps = null) { $this->frequencyCaps = $frequencyCaps; return $this; @@ -921,7 +921,7 @@ public function getCreativePlaceholders() * @param \Google\AdsApi\AdManager\v202502\CreativePlaceholder[]|null $creativePlaceholders * @return \Google\AdsApi\AdManager\v202502\LineItemSummary */ - public function setCreativePlaceholders(array $creativePlaceholders = null) + public function setCreativePlaceholders(?array $creativePlaceholders = null) { $this->creativePlaceholders = $creativePlaceholders; return $this; @@ -939,7 +939,7 @@ public function getActivityAssociations() * @param \Google\AdsApi\AdManager\v202502\LineItemActivityAssociation[]|null $activityAssociations * @return \Google\AdsApi\AdManager\v202502\LineItemSummary */ - public function setActivityAssociations(array $activityAssociations = null) + public function setActivityAssociations(?array $activityAssociations = null) { $this->activityAssociations = $activityAssociations; return $this; @@ -975,7 +975,7 @@ public function getAllowedFormats() * @param string[]|null $allowedFormats * @return \Google\AdsApi\AdManager\v202502\LineItemSummary */ - public function setAllowedFormats(array $allowedFormats = null) + public function setAllowedFormats(?array $allowedFormats = null) { $this->allowedFormats = $allowedFormats; return $this; @@ -1227,7 +1227,7 @@ public function getAppliedLabels() * @param \Google\AdsApi\AdManager\v202502\AppliedLabel[]|null $appliedLabels * @return \Google\AdsApi\AdManager\v202502\LineItemSummary */ - public function setAppliedLabels(array $appliedLabels = null) + public function setAppliedLabels(?array $appliedLabels = null) { $this->appliedLabels = $appliedLabels; return $this; @@ -1245,7 +1245,7 @@ public function getEffectiveAppliedLabels() * @param \Google\AdsApi\AdManager\v202502\AppliedLabel[]|null $effectiveAppliedLabels * @return \Google\AdsApi\AdManager\v202502\LineItemSummary */ - public function setEffectiveAppliedLabels(array $effectiveAppliedLabels = null) + public function setEffectiveAppliedLabels(?array $effectiveAppliedLabels = null) { $this->effectiveAppliedLabels = $effectiveAppliedLabels; return $this; @@ -1371,7 +1371,7 @@ public function getCustomFieldValues() * @param \Google\AdsApi\AdManager\v202502\BaseCustomFieldValue[]|null $customFieldValues * @return \Google\AdsApi\AdManager\v202502\LineItemSummary */ - public function setCustomFieldValues(array $customFieldValues = null) + public function setCustomFieldValues(?array $customFieldValues = null) { $this->customFieldValues = $customFieldValues; return $this; @@ -1498,7 +1498,7 @@ public function getSecondaryGoals() * @param \Google\AdsApi\AdManager\v202502\Goal[]|null $secondaryGoals * @return \Google\AdsApi\AdManager\v202502\LineItemSummary */ - public function setSecondaryGoals(array $secondaryGoals = null) + public function setSecondaryGoals(?array $secondaryGoals = null) { $this->secondaryGoals = $secondaryGoals; return $this; @@ -1552,7 +1552,7 @@ public function getViewabilityProviderCompanyIds() * @param int[]|null $viewabilityProviderCompanyIds * @return \Google\AdsApi\AdManager\v202502\LineItemSummary */ - public function setViewabilityProviderCompanyIds(array $viewabilityProviderCompanyIds = null) + public function setViewabilityProviderCompanyIds(?array $viewabilityProviderCompanyIds = null) { $this->viewabilityProviderCompanyIds = $viewabilityProviderCompanyIds; return $this; diff --git a/src/Google/AdsApi/AdManager/v202502/ServiceFactory.php b/src/Google/AdsApi/AdManager/v202502/ServiceFactory.php index 3d7e16230..1e0229f72 100644 --- a/src/Google/AdsApi/AdManager/v202502/ServiceFactory.php +++ b/src/Google/AdsApi/AdManager/v202502/ServiceFactory.php @@ -16,7 +16,7 @@ final class ServiceFactory { private $services; - public function __construct(AdManagerServices $services = null) + public function __construct(?AdManagerServices $services = null) { $this->services = is_null($services) ? new AdManagerServices() : $services; } diff --git a/src/Google/AdsApi/Common/AdsGuzzleProxyHttpHandler.php b/src/Google/AdsApi/Common/AdsGuzzleProxyHttpHandler.php index 965de1e7d..b8ece7b0b 100644 --- a/src/Google/AdsApi/Common/AdsGuzzleProxyHttpHandler.php +++ b/src/Google/AdsApi/Common/AdsGuzzleProxyHttpHandler.php @@ -42,7 +42,7 @@ final class AdsGuzzleProxyHttpHandler */ public function __construct( AdsSession $session, - ClientInterface $httpClient = null + ?ClientInterface $httpClient = null ) { $this->proxyUrl = $session->getConnectionSettings() ->getProxyUrl(); diff --git a/src/Google/AdsApi/Common/AdsHeaderFormatter.php b/src/Google/AdsApi/Common/AdsHeaderFormatter.php index f8976b993..6a98e728d 100644 --- a/src/Google/AdsApi/Common/AdsHeaderFormatter.php +++ b/src/Google/AdsApi/Common/AdsHeaderFormatter.php @@ -34,8 +34,8 @@ final class AdsHeaderFormatter * metadata provider */ public function __construct( - AdsUtilityRegistry $adsUtilityRegistry = null, - LibraryMetadataProvider $libraryMetadataProvider = null + ?AdsUtilityRegistry $adsUtilityRegistry = null, + ?LibraryMetadataProvider $libraryMetadataProvider = null ) { $this->adsUtilityRegistry = ($adsUtilityRegistry === null) ? AdsUtilityRegistry::getInstance() diff --git a/src/Google/AdsApi/Common/AdsSoapClientFactory.php b/src/Google/AdsApi/Common/AdsSoapClientFactory.php index cea454542..bf0ad2729 100644 --- a/src/Google/AdsApi/Common/AdsSoapClientFactory.php +++ b/src/Google/AdsApi/Common/AdsSoapClientFactory.php @@ -46,7 +46,7 @@ final class AdsSoapClientFactory */ public function __construct( SoapLogMessageFormatter $soapLogMessageFormatter, - Reflection $reflection = null, + ?Reflection $reflection = null, $soapCallTimeout = null ) { $this->soapLogMessageFormatter = $soapLogMessageFormatter; @@ -111,7 +111,7 @@ public function generateSoapClient( private function populateOptions( AdsSession $session, array $options, - SoapSettings $soapSettings = null + ?SoapSettings $soapSettings = null ) { $contextOptions = []; if ($soapSettings !== null) { diff --git a/src/Google/AdsApi/Common/ConfigurationLoader.php b/src/Google/AdsApi/Common/ConfigurationLoader.php index 98a9691f5..3847232f6 100644 --- a/src/Google/AdsApi/Common/ConfigurationLoader.php +++ b/src/Google/AdsApi/Common/ConfigurationLoader.php @@ -35,7 +35,7 @@ final class ConfigurationLoader * @param EnvironmentalVariables $environmentalVariables */ public function __construct( - EnvironmentalVariables $environmentalVariables = null + ?EnvironmentalVariables $environmentalVariables = null ) { $this->environmentalVariables = $environmentalVariables === null ? new EnvironmentalVariables() diff --git a/src/Google/AdsApi/Common/SoapLogMessageFormatter.php b/src/Google/AdsApi/Common/SoapLogMessageFormatter.php index 3837bd306..a02c74e28 100644 --- a/src/Google/AdsApi/Common/SoapLogMessageFormatter.php +++ b/src/Google/AdsApi/Common/SoapLogMessageFormatter.php @@ -55,11 +55,11 @@ final class SoapLogMessageFormatter * fault messages to in the info log */ public function __construct( - array $requestHttpHeadersToScrub = null, - array $requestSoapHeadersToScrub = null, - array $requestSoapBodyTagsToScrub = null, - array $additionalRequestSummaryHeaders = null, - array $additionalResponseSummaryHeaders = null, + ?array $requestHttpHeadersToScrub = null, + ?array $requestSoapHeadersToScrub = null, + ?array $requestSoapBodyTagsToScrub = null, + ?array $additionalRequestSummaryHeaders = null, + ?array $additionalResponseSummaryHeaders = null, $faultMsgMaxLength = null ) { $this->requestHttpHeadersToScrub = diff --git a/src/Google/AdsApi/Common/Util/OAuth2TokenRefresher.php b/src/Google/AdsApi/Common/Util/OAuth2TokenRefresher.php index d3e6bf294..71e8498d9 100644 --- a/src/Google/AdsApi/Common/Util/OAuth2TokenRefresher.php +++ b/src/Google/AdsApi/Common/Util/OAuth2TokenRefresher.php @@ -60,7 +60,7 @@ public function __construct($refreshWindowSeconds = null) */ public function getOrFetchAccessToken( FetchAuthTokenInterface $fetchAuthTokenInterface, - callable $httpHandler = null + ?callable $httpHandler = null ) { if ($this->shouldFetchAccessToken($fetchAuthTokenInterface)) { $authToken = $fetchAuthTokenInterface->fetchAuthToken($httpHandler);