Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate changes for supporting PHP 8.4 and removing non PHP 7.4 to legacy-v25.0.0 #1061

Draft
wants to merge 2 commits into
base: legacy-v25.0.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ language: php
php:
- 8.1
- 8.2
- 8.3
- 8.4
- nightly

matrix:
allow_failures:
- php: 8.4
- php: nightly

branches:
Expand Down
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/AdAsset.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/AdTypeInfos.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/AssetPolicy.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/AssetSetTypes.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/AssetTypes.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/Criteria.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/Extensions.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/FrequencyCap.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/KeywordPlanCommon.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/Policy.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/PolicySummary.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/Segments.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/TagSnippet.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Common/UserLists.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Errors/Errors.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AccountBudget.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/Ad.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AdGroup.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AdGroupAd.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AdGroupAdLabel.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AdGroupAsset.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AdGroupCriterion.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AdGroupFeed.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AdParameter.php
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/Asset.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AssetGroup.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AssetGroupAsset.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AssetGroupSignal.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AssetSet.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/AssetSetAsset.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/Audience.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/BatchJob.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/BiddingStrategy.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/BillingSetup.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CallView.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/Campaign.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CampaignAsset.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CampaignBudget.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CampaignDraft.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CampaignFeed.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CampaignGroup.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CampaignLabel.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CarrierConstant.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/ChangeEvent.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/ClickView.php
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/ConversionAction.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CurrencyConstant.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CustomAudience.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CustomInterest.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/Customer.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CustomerAsset.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/CustomerFeed.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/Experiment.php
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/Feed.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/FeedItem.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/FeedItemTarget.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/FeedMapping.php
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion metadata/Google/Ads/GoogleAds/V18/Resources/GenderView.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/GeographicView.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/GoogleAdsField.php
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/Invoice.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/KeywordPlan.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/Label.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/LanguageConstant.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/LifeEvent.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/MediaFile.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/Recommendation.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/SharedCriterion.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/SharedSet.php
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/ShoppingProduct.php
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
2 changes: 1 addition & 1 deletion metadata/Google/Ads/GoogleAds/V18/Resources/TopicView.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/UserInterest.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Resources/UserList.php
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/AdGroupAdService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/AdGroupService.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/AdService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/AssetGroupService.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/AssetService.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/AssetSetService.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/AudienceService.php
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/BatchJobService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/CampaignService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/CustomerService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/DataLinkService.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/ExperimentService.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/FeedItemService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/FeedService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/GoogleAdsService.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/InvoiceService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/LabelService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/ReachPlanService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/SharedSetService.php
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/UserDataService.php
Binary file not shown.
Binary file not shown.
Binary file modified metadata/Google/Ads/GoogleAds/V18/Services/UserListService.php
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(
* @param $audience
* @return callable
*/
public function getAuthorizationHeaderCallback($audience = null)
public function getAuthorizationHeaderCallback($audience = null): ?callable
{
return null;
}
Expand Down
10 changes: 8 additions & 2 deletions src/Google/Ads/GoogleAds/Lib/V16/InfoRedactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ private static function redactFeed(Feed $feed)
private static function redactLocalServicesLeadContactDetailsEmail(
LocalServicesLead $localServicesLead
) {
if ($localServicesLead?->getContactDetails()?->getEmail()) {
if (
!is_null($localServicesLead->getContactDetails())
&& !is_null($localServicesLead->getContactDetails()->getEmail())
) {
$localServicesLead->getContactDetails()->setEmail(self::REDACTED_STRING);
}
}
Expand All @@ -399,7 +402,10 @@ private static function redactLocalServicesLeadContactDetailsEmail(
private static function redactLocalServicesLeadConversationMessageDetailsText(
LocalServicesLeadConversation $localServicesLeadConversation
) {
if ($localServicesLeadConversation?->getMessageDetails()?->getText()) {
if (
!is_null($localServicesLeadConversation->getMessageDetails())
&& !is_null($localServicesLeadConversation->getMessageDetails()->getText())
) {
$localServicesLeadConversation->getMessageDetails()->setText(self::REDACTED_STRING);
}
}
Expand Down
10 changes: 8 additions & 2 deletions src/Google/Ads/GoogleAds/Lib/V17/InfoRedactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ private static function redactFeed(Feed $feed)
private static function redactLocalServicesLeadContactDetailsEmail(
LocalServicesLead $localServicesLead
) {
if ($localServicesLead?->getContactDetails()?->getEmail()) {
if (
!is_null($localServicesLead->getContactDetails())
&& !is_null($localServicesLead->getContactDetails()->getEmail())
) {
$localServicesLead->getContactDetails()->setEmail(self::REDACTED_STRING);
}
}
Expand All @@ -399,7 +402,10 @@ private static function redactLocalServicesLeadContactDetailsEmail(
private static function redactLocalServicesLeadConversationMessageDetailsText(
LocalServicesLeadConversation $localServicesLeadConversation
) {
if ($localServicesLeadConversation?->getMessageDetails()?->getText()) {
if (
!is_null($localServicesLeadConversation->getMessageDetails())
&& !is_null($localServicesLeadConversation->getMessageDetails()->getText())
) {
$localServicesLeadConversation->getMessageDetails()->setText(self::REDACTED_STRING);
}
}
Expand Down
10 changes: 8 additions & 2 deletions src/Google/Ads/GoogleAds/Lib/V18/InfoRedactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ private static function redactFeed(Feed $feed)
private static function redactLocalServicesLeadContactDetailsEmail(
LocalServicesLead $localServicesLead
) {
if ($localServicesLead?->getContactDetails()?->getEmail()) {
if (
!is_null($localServicesLead->getContactDetails())
&& !is_null($localServicesLead->getContactDetails()->getEmail())
) {
$localServicesLead->getContactDetails()->setEmail(self::REDACTED_STRING);
}
}
Expand All @@ -399,7 +402,10 @@ private static function redactLocalServicesLeadContactDetailsEmail(
private static function redactLocalServicesLeadConversationMessageDetailsText(
LocalServicesLeadConversation $localServicesLeadConversation
) {
if ($localServicesLeadConversation?->getMessageDetails()?->getText()) {
if (
!is_null($localServicesLeadConversation->getMessageDetails())
&& !is_null($localServicesLeadConversation->getMessageDetails()->getText())
) {
$localServicesLeadConversation->getMessageDetails()->setText(self::REDACTED_STRING);
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
use Google\ApiCore\ValidationException;
use Google\Auth\FetchAuthTokenInterface;
use GuzzleHttp\Promise\PromiseInterface;
use Psr\Log\LoggerInterface;

/**
* Service Description: A service for managing account-level budgets through proposals.
Expand All @@ -56,7 +57,7 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* @method PromiseInterface mutateAccountBudgetProposalAsync(MutateAccountBudgetProposalRequest $request, array $optionalArgs = [])
* @method PromiseInterface<MutateAccountBudgetProposalResponse> mutateAccountBudgetProposalAsync(MutateAccountBudgetProposalRequest $request, array $optionalArgs = [])
*/
class AccountBudgetProposalServiceClient
{
Expand Down Expand Up @@ -175,14 +176,14 @@ public static function billingSetupName(string $customerId, string $billingSetup
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
* @param string $formattedName The formatted name string
* @param string $template Optional name of template to match
* @param string $formattedName The formatted name string
* @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
public static function parseName(string $formattedName, string $template = null): array
public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
Expand Down Expand Up @@ -237,6 +238,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
* @type false|LoggerInterface $logger
* A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
* 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
use Google\ApiCore\ValidationException;
use Google\Auth\FetchAuthTokenInterface;
use GuzzleHttp\Promise\PromiseInterface;
use Psr\Log\LoggerInterface;

/**
* Service Description: This service allows management of links between Google Ads accounts and other
Expand All @@ -51,8 +52,8 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* @method PromiseInterface createAccountLinkAsync(CreateAccountLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface mutateAccountLinkAsync(MutateAccountLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface<CreateAccountLinkResponse> createAccountLinkAsync(CreateAccountLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface<MutateAccountLinkResponse> mutateAccountLinkAsync(MutateAccountLinkRequest $request, array $optionalArgs = [])
*/
class AccountLinkServiceClient
{
Expand Down Expand Up @@ -135,14 +136,14 @@ public static function accountLinkName(string $customerId, string $accountLinkId
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
* @param string $formattedName The formatted name string
* @param string $template Optional name of template to match
* @param string $formattedName The formatted name string
* @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
public static function parseName(string $formattedName, string $template = null): array
public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
Expand Down Expand Up @@ -197,6 +198,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
* @type false|LoggerInterface $logger
* A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
* 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
use Google\ApiCore\ValidationException;
use Google\Auth\FetchAuthTokenInterface;
use GuzzleHttp\Promise\PromiseInterface;
use Psr\Log\LoggerInterface;

/**
* Service Description: Service to manage labels on ad group ads.
Expand All @@ -48,7 +49,7 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* @method PromiseInterface mutateAdGroupAdLabelsAsync(MutateAdGroupAdLabelsRequest $request, array $optionalArgs = [])
* @method PromiseInterface<MutateAdGroupAdLabelsResponse> mutateAdGroupAdLabelsAsync(MutateAdGroupAdLabelsRequest $request, array $optionalArgs = [])
*/
class AdGroupAdLabelServiceClient
{
Expand Down Expand Up @@ -173,14 +174,14 @@ public static function labelName(string $customerId, string $labelId): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
* @param string $formattedName The formatted name string
* @param string $template Optional name of template to match
* @param string $formattedName The formatted name string
* @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
public static function parseName(string $formattedName, string $template = null): array
public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
Expand Down Expand Up @@ -235,6 +236,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
* @type false|LoggerInterface $logger
* A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
* 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
Expand Down
Loading
Loading