Skip to content
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions src/Google/AdsApi/AdManager/AdManagerServices.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/Google/AdsApi/AdManager/AdManagerSessionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/Google/AdsApi/AdManager/v202411/AdBreak.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AdBreak
* @param boolean $decisionedAds
* @param \Google\AdsApi\AdManager\v202411\TrackingEvent[] $trackingEvents
*/
public function __construct(array $rootAdResponses = null, array $adDecisionCreatives = null, $podNum = null, $linearAbsolutePodNum = null, $adBreakDurationMillis = null, $filledDurationMillis = null, $servedDurationMillis = null, $startDateTime = null, $startTimeOffsetMillis = null, $samError = null, $midrollIndex = null, $decisionedAds = null, array $trackingEvents = null)
public function __construct(?array $rootAdResponses = null, ?array $adDecisionCreatives = null, $podNum = null, $linearAbsolutePodNum = null, $adBreakDurationMillis = null, $filledDurationMillis = null, $servedDurationMillis = null, $startDateTime = null, $startTimeOffsetMillis = null, $samError = null, $midrollIndex = null, $decisionedAds = null, ?array $trackingEvents = null)
{
$this->rootAdResponses = $rootAdResponses;
$this->adDecisionCreatives = $adDecisionCreatives;
Expand Down Expand Up @@ -118,7 +118,7 @@ public function getRootAdResponses()
* @param \Google\AdsApi\AdManager\v202411\AdResponse[]|null $rootAdResponses
* @return \Google\AdsApi\AdManager\v202411\AdBreak
*/
public function setRootAdResponses(array $rootAdResponses = null)
public function setRootAdResponses(?array $rootAdResponses = null)
{
$this->rootAdResponses = $rootAdResponses;
return $this;
Expand All @@ -136,7 +136,7 @@ public function getAdDecisionCreatives()
* @param \Google\AdsApi\AdManager\v202411\AdDecisionCreative[]|null $adDecisionCreatives
* @return \Google\AdsApi\AdManager\v202411\AdBreak
*/
public function setAdDecisionCreatives(array $adDecisionCreatives = null)
public function setAdDecisionCreatives(?array $adDecisionCreatives = null)
{
$this->adDecisionCreatives = $adDecisionCreatives;
return $this;
Expand Down Expand Up @@ -338,7 +338,7 @@ public function getTrackingEvents()
* @param \Google\AdsApi\AdManager\v202411\TrackingEvent[]|null $trackingEvents
* @return \Google\AdsApi\AdManager\v202411\AdBreak
*/
public function setTrackingEvents(array $trackingEvents = null)
public function setTrackingEvents(?array $trackingEvents = null)
{
$this->trackingEvents = $trackingEvents;
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/Google/AdsApi/AdManager/v202411/AdBreakMarkupError.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AdBreakMarkupError extends \Google\AdsApi\AdManager\v202411\ApiError
* @param string $errorString
* @param string $reason
*/
public function __construct($fieldPath = null, array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
public function __construct($fieldPath = null, ?array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
{
parent::__construct($fieldPath, $fieldPathElements, $trigger, $errorString);
$this->reason = $reason;
Expand Down
2 changes: 1 addition & 1 deletion src/Google/AdsApi/AdManager/v202411/AdExchangeCreative.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AdExchangeCreative extends \Google\AdsApi\AdManager\v202411\HasHtmlSnippet
* @param boolean $isInterstitial
* @param boolean $isAllowsAllRequestedSizes
*/
public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, array $policyLabels = null, array $appliedLabels = null, $lastModifiedDateTime = null, array $customFieldValues = null, $thirdPartyDataDeclaration = null, $adBadgingEnabled = null, $codeSnippet = null, $isNativeEligible = null, $isInterstitial = null, $isAllowsAllRequestedSizes = null)
public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, ?array $policyLabels = null, ?array $appliedLabels = null, $lastModifiedDateTime = null, ?array $customFieldValues = null, $thirdPartyDataDeclaration = null, $adBadgingEnabled = null, $codeSnippet = null, $isNativeEligible = null, $isInterstitial = null, $isAllowsAllRequestedSizes = null)
{
parent::__construct($advertiserId, $id, $name, $size, $previewUrl, $policyLabels, $appliedLabels, $lastModifiedDateTime, $customFieldValues, $thirdPartyDataDeclaration, $adBadgingEnabled, $codeSnippet);
$this->isNativeEligible = $isNativeEligible;
Expand Down
6 changes: 3 additions & 3 deletions src/Google/AdsApi/AdManager/v202411/AdResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AdResponse
* @param \Google\AdsApi\AdManager\v202411\SamError $samError
* @param \Google\AdsApi\AdManager\v202411\SamError[] $adErrors
*/
public function __construct($requestUrl = null, $isVmapRequest = null, $responseBody = null, array $redirectResponses = null, $samError = null, array $adErrors = null)
public function __construct($requestUrl = null, $isVmapRequest = null, $responseBody = null, ?array $redirectResponses = null, $samError = null, ?array $adErrors = null)
{
$this->requestUrl = $requestUrl;
$this->isVmapRequest = $isVmapRequest;
Expand Down Expand Up @@ -123,7 +123,7 @@ public function getRedirectResponses()
* @param \Google\AdsApi\AdManager\v202411\AdResponse[]|null $redirectResponses
* @return \Google\AdsApi\AdManager\v202411\AdResponse
*/
public function setRedirectResponses(array $redirectResponses = null)
public function setRedirectResponses(?array $redirectResponses = null)
{
$this->redirectResponses = $redirectResponses;
return $this;
Expand Down Expand Up @@ -159,7 +159,7 @@ public function getAdErrors()
* @param \Google\AdsApi\AdManager\v202411\SamError[]|null $adErrors
* @return \Google\AdsApi\AdManager\v202411\AdResponse
*/
public function setAdErrors(array $adErrors = null)
public function setAdErrors(?array $adErrors = null)
{
$this->adErrors = $adErrors;
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/Google/AdsApi/AdManager/v202411/AdRuleDateError.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AdRuleDateError extends \Google\AdsApi\AdManager\v202411\ApiError
* @param string $errorString
* @param string $reason
*/
public function __construct($fieldPath = null, array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
public function __construct($fieldPath = null, ?array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
{
parent::__construct($fieldPath, $fieldPathElements, $trigger, $errorString);
$this->reason = $reason;
Expand Down
2 changes: 1 addition & 1 deletion src/Google/AdsApi/AdManager/v202411/AdRuleError.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AdRuleError extends \Google\AdsApi\AdManager\v202411\ApiError
* @param string $errorString
* @param string $reason
*/
public function __construct($fieldPath = null, array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
public function __construct($fieldPath = null, ?array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
{
parent::__construct($fieldPath, $fieldPathElements, $trigger, $errorString);
$this->reason = $reason;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AdRuleFrequencyCapError extends \Google\AdsApi\AdManager\v202411\ApiError
* @param string $errorString
* @param string $reason
*/
public function __construct($fieldPath = null, array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
public function __construct($fieldPath = null, ?array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
{
parent::__construct($fieldPath, $fieldPathElements, $trigger, $errorString);
$this->reason = $reason;
Expand Down
4 changes: 2 additions & 2 deletions src/Google/AdsApi/AdManager/v202411/AdRulePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AdRulePage
* @param int $startIndex
* @param \Google\AdsApi\AdManager\v202411\AdRule[] $results
*/
public function __construct($totalResultSetSize = null, $startIndex = null, array $results = null)
public function __construct($totalResultSetSize = null, $startIndex = null, ?array $results = null)
{
$this->totalResultSetSize = $totalResultSetSize;
$this->startIndex = $startIndex;
Expand Down Expand Up @@ -84,7 +84,7 @@ public function getResults()
* @param \Google\AdsApi\AdManager\v202411\AdRule[]|null $results
* @return \Google\AdsApi\AdManager\v202411\AdRulePage
*/
public function setResults(array $results = null)
public function setResults(?array $results = null)
{
$this->results = $results;
return $this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AdRulePriorityError extends \Google\AdsApi\AdManager\v202411\ApiError
* @param string $errorString
* @param string $reason
*/
public function __construct($fieldPath = null, array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
public function __construct($fieldPath = null, ?array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
{
parent::__construct($fieldPath, $fieldPathElements, $trigger, $errorString);
$this->reason = $reason;
Expand Down
2 changes: 1 addition & 1 deletion src/Google/AdsApi/AdManager/v202411/AdRuleSlotError.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AdRuleSlotError extends \Google\AdsApi\AdManager\v202411\ApiError
* @param string $errorString
* @param string $reason
*/
public function __construct($fieldPath = null, array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
public function __construct($fieldPath = null, ?array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
{
parent::__construct($fieldPath, $fieldPathElements, $trigger, $errorString);
$this->reason = $reason;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AdRuleTargetingError extends \Google\AdsApi\AdManager\v202411\ApiError
* @param string $errorString
* @param string $reason
*/
public function __construct($fieldPath = null, array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
public function __construct($fieldPath = null, ?array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
{
parent::__construct($fieldPath, $fieldPathElements, $trigger, $errorString);
$this->reason = $reason;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AdSenseAccountError extends \Google\AdsApi\AdManager\v202411\ApiError
* @param string $errorString
* @param string $reason
*/
public function __construct($fieldPath = null, array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
public function __construct($fieldPath = null, ?array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
{
parent::__construct($fieldPath, $fieldPathElements, $trigger, $errorString);
$this->reason = $reason;
Expand Down
2 changes: 1 addition & 1 deletion src/Google/AdsApi/AdManager/v202411/AdSenseCreative.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class AdSenseCreative extends \Google\AdsApi\AdManager\v202411\HasHtmlSnippetDyn
* @param boolean $adBadgingEnabled
* @param string $codeSnippet
*/
public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, array $policyLabels = null, array $appliedLabels = null, $lastModifiedDateTime = null, array $customFieldValues = null, $thirdPartyDataDeclaration = null, $adBadgingEnabled = null, $codeSnippet = null)
public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, ?array $policyLabels = null, ?array $appliedLabels = null, $lastModifiedDateTime = null, ?array $customFieldValues = null, $thirdPartyDataDeclaration = null, $adBadgingEnabled = null, $codeSnippet = null)
{
parent::__construct($advertiserId, $id, $name, $size, $previewUrl, $policyLabels, $appliedLabels, $lastModifiedDateTime, $customFieldValues, $thirdPartyDataDeclaration, $adBadgingEnabled, $codeSnippet);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Google/AdsApi/AdManager/v202411/AdSpot.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class AdSpot
* @param string[] $allowedLineItemTypes
* @param boolean $inventorySharingBlocked
*/
public function __construct($id = null, $name = null, $displayName = null, $customSpot = null, $flexible = null, $maxDurationMillis = null, $maxNumberOfAds = null, $targetingType = null, $backfillBlocked = null, array $allowedLineItemTypes = null, $inventorySharingBlocked = null)
public function __construct($id = null, $name = null, $displayName = null, $customSpot = null, $flexible = null, $maxDurationMillis = null, $maxNumberOfAds = null, $targetingType = null, $backfillBlocked = null, ?array $allowedLineItemTypes = null, $inventorySharingBlocked = null)
{
$this->id = $id;
$this->name = $name;
Expand Down Expand Up @@ -268,7 +268,7 @@ public function getAllowedLineItemTypes()
* @param string[]|null $allowedLineItemTypes
* @return \Google\AdsApi\AdManager\v202411\AdSpot
*/
public function setAllowedLineItemTypes(array $allowedLineItemTypes = null)
public function setAllowedLineItemTypes(?array $allowedLineItemTypes = null)
{
$this->allowedLineItemTypes = $allowedLineItemTypes;
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/Google/AdsApi/AdManager/v202411/AdSpotPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AdSpotPage
* @param int $startIndex
* @param \Google\AdsApi\AdManager\v202411\AdSpot[] $results
*/
public function __construct($totalResultSetSize = null, $startIndex = null, array $results = null)
public function __construct($totalResultSetSize = null, $startIndex = null, ?array $results = null)
{
$this->totalResultSetSize = $totalResultSetSize;
$this->startIndex = $startIndex;
Expand Down Expand Up @@ -84,7 +84,7 @@ public function getResults()
* @param \Google\AdsApi\AdManager\v202411\AdSpot[]|null $results
* @return \Google\AdsApi\AdManager\v202411\AdSpotPage
*/
public function setResults(array $results = null)
public function setResults(?array $results = null)
{
$this->results = $results;
return $this;
Expand Down
18 changes: 9 additions & 9 deletions src/Google/AdsApi/AdManager/v202411/AdUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class AdUnit
* @param boolean $isSetTopBoxEnabled
* @param int $applicationId
*/
public function __construct($id = null, $parentId = null, $hasChildren = null, array $parentPath = null, $name = null, $description = null, $targetWindow = null, $status = null, $adUnitCode = null, array $adUnitSizes = null, $isInterstitial = null, $isNative = null, $isFluid = null, $explicitlyTargeted = null, $adSenseSettings = null, $adSenseSettingsSource = null, array $appliedLabelFrequencyCaps = null, array $effectiveLabelFrequencyCaps = null, array $appliedLabels = null, array $effectiveAppliedLabels = null, array $effectiveTeamIds = null, array $appliedTeamIds = null, $lastModifiedDateTime = null, $smartSizeMode = null, $refreshRate = null, $externalSetTopBoxChannelId = null, $isSetTopBoxEnabled = null, $applicationId = null)
public function __construct($id = null, $parentId = null, $hasChildren = null, ?array $parentPath = null, $name = null, $description = null, $targetWindow = null, $status = null, $adUnitCode = null, ?array $adUnitSizes = null, $isInterstitial = null, $isNative = null, $isFluid = null, $explicitlyTargeted = null, $adSenseSettings = null, $adSenseSettingsSource = null, ?array $appliedLabelFrequencyCaps = null, ?array $effectiveLabelFrequencyCaps = null, ?array $appliedLabels = null, ?array $effectiveAppliedLabels = null, ?array $effectiveTeamIds = null, ?array $appliedTeamIds = null, $lastModifiedDateTime = null, $smartSizeMode = null, $refreshRate = null, $externalSetTopBoxChannelId = null, $isSetTopBoxEnabled = null, $applicationId = null)
{
$this->id = $id;
$this->parentId = $parentId;
Expand Down Expand Up @@ -277,7 +277,7 @@ public function getParentPath()
* @param \Google\AdsApi\AdManager\v202411\AdUnitParent[]|null $parentPath
* @return \Google\AdsApi\AdManager\v202411\AdUnit
*/
public function setParentPath(array $parentPath = null)
public function setParentPath(?array $parentPath = null)
{
$this->parentPath = $parentPath;
return $this;
Expand Down Expand Up @@ -385,7 +385,7 @@ public function getAdUnitSizes()
* @param \Google\AdsApi\AdManager\v202411\AdUnitSize[]|null $adUnitSizes
* @return \Google\AdsApi\AdManager\v202411\AdUnit
*/
public function setAdUnitSizes(array $adUnitSizes = null)
public function setAdUnitSizes(?array $adUnitSizes = null)
{
$this->adUnitSizes = $adUnitSizes;
return $this;
Expand Down Expand Up @@ -511,7 +511,7 @@ public function getAppliedLabelFrequencyCaps()
* @param \Google\AdsApi\AdManager\v202411\LabelFrequencyCap[]|null $appliedLabelFrequencyCaps
* @return \Google\AdsApi\AdManager\v202411\AdUnit
*/
public function setAppliedLabelFrequencyCaps(array $appliedLabelFrequencyCaps = null)
public function setAppliedLabelFrequencyCaps(?array $appliedLabelFrequencyCaps = null)
{
$this->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps;
return $this;
Expand All @@ -529,7 +529,7 @@ public function getEffectiveLabelFrequencyCaps()
* @param \Google\AdsApi\AdManager\v202411\LabelFrequencyCap[]|null $effectiveLabelFrequencyCaps
* @return \Google\AdsApi\AdManager\v202411\AdUnit
*/
public function setEffectiveLabelFrequencyCaps(array $effectiveLabelFrequencyCaps = null)
public function setEffectiveLabelFrequencyCaps(?array $effectiveLabelFrequencyCaps = null)
{
$this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps;
return $this;
Expand All @@ -547,7 +547,7 @@ public function getAppliedLabels()
* @param \Google\AdsApi\AdManager\v202411\AppliedLabel[]|null $appliedLabels
* @return \Google\AdsApi\AdManager\v202411\AdUnit
*/
public function setAppliedLabels(array $appliedLabels = null)
public function setAppliedLabels(?array $appliedLabels = null)
{
$this->appliedLabels = $appliedLabels;
return $this;
Expand All @@ -565,7 +565,7 @@ public function getEffectiveAppliedLabels()
* @param \Google\AdsApi\AdManager\v202411\AppliedLabel[]|null $effectiveAppliedLabels
* @return \Google\AdsApi\AdManager\v202411\AdUnit
*/
public function setEffectiveAppliedLabels(array $effectiveAppliedLabels = null)
public function setEffectiveAppliedLabels(?array $effectiveAppliedLabels = null)
{
$this->effectiveAppliedLabels = $effectiveAppliedLabels;
return $this;
Expand All @@ -583,7 +583,7 @@ public function getEffectiveTeamIds()
* @param int[]|null $effectiveTeamIds
* @return \Google\AdsApi\AdManager\v202411\AdUnit
*/
public function setEffectiveTeamIds(array $effectiveTeamIds = null)
public function setEffectiveTeamIds(?array $effectiveTeamIds = null)
{
$this->effectiveTeamIds = $effectiveTeamIds;
return $this;
Expand All @@ -601,7 +601,7 @@ public function getAppliedTeamIds()
* @param int[]|null $appliedTeamIds
* @return \Google\AdsApi\AdManager\v202411\AdUnit
*/
public function setAppliedTeamIds(array $appliedTeamIds = null)
public function setAppliedTeamIds(?array $appliedTeamIds = null)
{
$this->appliedTeamIds = $appliedTeamIds;
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/Google/AdsApi/AdManager/v202411/AdUnitCodeError.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AdUnitCodeError extends \Google\AdsApi\AdManager\v202411\ApiError
* @param string $errorString
* @param string $reason
*/
public function __construct($fieldPath = null, array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
public function __construct($fieldPath = null, ?array $fieldPathElements = null, $trigger = null, $errorString = null, $reason = null)
{
parent::__construct($fieldPath, $fieldPathElements, $trigger, $errorString);
$this->reason = $reason;
Expand Down
Loading