Skip to content

Commit

Permalink
Changes for release v2. (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierrickVoulet authored Jul 1, 2019
1 parent dfe8cf1 commit bf534e2
Show file tree
Hide file tree
Showing 3,102 changed files with 328,480 additions and 828 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.0.0
* Added support for v2 of Google Ads API.
* Renamed the getter and setter functions for unwrapped values from getXXXValue/setXXXValue to
getXXXUnwrapped/setXXXUnwrapped to prevent them from clashing with other field names.
* Added a test to instantiate all classes in the codebase to make sure there are no syntax errors.
* Upgraded dependencies.

## 1.4.1
* Fixed logging level configuration ([#120](https://github.com/googleads/google-ads-php/pull/120)).
* Set max response message and metadata size ([#127](https://github.com/googleads/google-ads-php/pull/127)).
Expand Down
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
"description": "Google Ads API client for PHP",
"require": {
"php": ">=7.1",
"ext-grpc": "*",
"google/gax": "^0.38.0",
"google/protobuf": "^3.4.0",
"google/common-protos": "^0.1.0",
"google/gax": "^1.0.2",
"ulrichsg/getopt-php": "^3.2.2",
"monolog/monolog": "^1.23.0"
},
Expand Down
10 changes: 5 additions & 5 deletions examples/AccountManagement/CreateCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
use GetOpt\GetOpt;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentNames;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentParser;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;
use Google\Ads\GoogleAds\V1\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V1\Resources\Customer;
use Google\Ads\GoogleAds\V2\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V2\Resources\Customer;
use Google\ApiCore\ApiException;
use Google\Protobuf\BoolValue;
use Google\Protobuf\StringValue;
Expand Down
28 changes: 14 additions & 14 deletions examples/AccountManagement/GetAccountChanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
use GetOpt\GetOpt;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentNames;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentParser;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;
use Google\Ads\GoogleAds\V1\Enums\ChangeStatusOperationEnum\ChangeStatusOperation;
use Google\Ads\GoogleAds\V1\Enums\ChangeStatusResourceTypeEnum\ChangeStatusResourceType;
use Google\Ads\GoogleAds\V1\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V1\Resources\ChangeStatus;
use Google\Ads\GoogleAds\V1\Services\GoogleAdsRow;
use Google\Ads\GoogleAds\V2\Enums\ChangeStatusOperationEnum\ChangeStatusOperation;
use Google\Ads\GoogleAds\V2\Enums\ChangeStatusResourceTypeEnum\ChangeStatusResourceType;
use Google\Ads\GoogleAds\V2\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V2\Resources\ChangeStatus;
use Google\Ads\GoogleAds\V2\Services\GoogleAdsRow;
use Google\ApiCore\ApiException;

/**
Expand Down Expand Up @@ -121,7 +121,7 @@ public static function runExample(GoogleAdsClient $googleAdsClient, $customerId)
/** @var GoogleAdsRow $googleAdsRow */
printf(
"On %s, change status '%s' shows resource '%s' with type '%s' and status '%s'.%s",
$googleAdsRow->getChangeStatus()->getLastChangeDateTimeValue(),
$googleAdsRow->getChangeStatus()->getLastChangeDateTimeUnwrapped(),
$googleAdsRow->getChangeStatus()->getResourceName(),
self::getResourceNameForResourceType($googleAdsRow->getChangeStatus()),
ChangeStatusResourceType::name(
Expand Down Expand Up @@ -150,19 +150,19 @@ private static function getResourceNameForResourceType(
$resourceName = ''; // Default value for UNSPECIFIED or UNKNOWN resource type.
switch ($resourceType) {
case ChangeStatusResourceType::AD_GROUP:
$resourceName = $changeStatus->getAdGroupValue();
$resourceName = $changeStatus->getAdGroupUnwrapped();
break;
case ChangeStatusResourceType::AD_GROUP_AD:
$resourceName = $changeStatus->getAdGroupAdValue();
$resourceName = $changeStatus->getAdGroupAdUnwrapped();
break;
case ChangeStatusResourceType::AD_GROUP_CRITERION:
$resourceName = $changeStatus->getAdGroupCriterionValue();
$resourceName = $changeStatus->getAdGroupCriterionUnwrapped();
break;
case ChangeStatusResourceType::CAMPAIGN:
$resourceName = $changeStatus->getCampaignValue();
$resourceName = $changeStatus->getCampaignUnwrapped();
break;
case ChangeStatusResourceType::CAMPAIGN_CRITERION:
$resourceName = $changeStatus->getCampaignCriterionValue();
$resourceName = $changeStatus->getCampaignCriterionUnwrapped();
break;
}

Expand Down
10 changes: 5 additions & 5 deletions examples/AccountManagement/GetAccountInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
use GetOpt\GetOpt;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentNames;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentParser;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;
use Google\Ads\GoogleAds\Util\V1\ResourceNames;
use Google\Ads\GoogleAds\V1\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\Util\V2\ResourceNames;
use Google\Ads\GoogleAds\V2\Errors\GoogleAdsError;
use Google\ApiCore\ApiException;

/**
Expand Down
22 changes: 11 additions & 11 deletions examples/AccountManagement/LinkManagerToClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
use GetOpt\GetOpt;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentNames;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentParser;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;
use Google\Ads\GoogleAds\Util\FieldMasks;
use Google\Ads\GoogleAds\Util\V1\ResourceNames;
use Google\Ads\GoogleAds\V1\Enums\ManagerLinkStatusEnum\ManagerLinkStatus;
use Google\Ads\GoogleAds\V1\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V1\Resources\CustomerClientLink;
use Google\Ads\GoogleAds\V1\Resources\CustomerManagerLink;
use Google\Ads\GoogleAds\V1\Services\CustomerClientLinkOperation;
use Google\Ads\GoogleAds\V1\Services\CustomerManagerLinkOperation;
use Google\Ads\GoogleAds\Util\V2\ResourceNames;
use Google\Ads\GoogleAds\V2\Enums\ManagerLinkStatusEnum\ManagerLinkStatus;
use Google\Ads\GoogleAds\V2\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V2\Resources\CustomerClientLink;
use Google\Ads\GoogleAds\V2\Resources\CustomerManagerLink;
use Google\Ads\GoogleAds\V2\Services\CustomerClientLinkOperation;
use Google\Ads\GoogleAds\V2\Services\CustomerManagerLinkOperation;
use Google\ApiCore\ApiException;
use Google\Protobuf\StringValue;

Expand Down Expand Up @@ -196,7 +196,7 @@ private static function getManagerLinkResourceName(
// Gets the ID and resource name associated to the manager link found.
$managerLinkId = $response->getIterator()->current()
->getCustomerClientLink()
->getManagerLinkIdValue();
->getManagerLinkIdUnwrapped();
$managerLinkResourceName = ResourceNames::forCustomerManagerLink(
$clientCustomerId,
$managerCustomerId,
Expand Down
8 changes: 4 additions & 4 deletions examples/AccountManagement/ListAccessibleCustomers.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

require __DIR__ . '/../../vendor/autoload.php';

use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;
use Google\Ads\GoogleAds\V1\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V2\Errors\GoogleAdsError;
use Google\ApiCore\ApiException;

/**
Expand Down
18 changes: 9 additions & 9 deletions examples/AdvancedOperations/AddAdGroupBidModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
use GetOpt\GetOpt;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentNames;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentParser;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;
use Google\Ads\GoogleAds\Util\V1\ResourceNames;
use Google\Ads\GoogleAds\V1\Common\DeviceInfo;
use Google\Ads\GoogleAds\V1\Enums\DeviceEnum\Device;
use Google\Ads\GoogleAds\V1\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V1\Resources\AdGroupBidModifier;
use Google\Ads\GoogleAds\V1\Services\AdGroupBidModifierOperation;
use Google\Ads\GoogleAds\Util\V2\ResourceNames;
use Google\Ads\GoogleAds\V2\Common\DeviceInfo;
use Google\Ads\GoogleAds\V2\Enums\DeviceEnum\Device;
use Google\Ads\GoogleAds\V2\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V2\Resources\AdGroupBidModifier;
use Google\Ads\GoogleAds\V2\Services\AdGroupBidModifierOperation;
use Google\ApiCore\ApiException;
use Google\Protobuf\DoubleValue;
use Google\Protobuf\StringValue;
Expand Down
52 changes: 26 additions & 26 deletions examples/AdvancedOperations/AddDynamicPageFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,33 @@
use GetOpt\GetOpt;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentNames;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentParser;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;
use Google\Ads\GoogleAds\V1\Common\WebpageConditionInfo;
use Google\Ads\GoogleAds\V1\Common\WebpageInfo;
use Google\Ads\GoogleAds\V1\Enums\DsaPageFeedCriterionFieldEnum\DsaPageFeedCriterionField;
use Google\Ads\GoogleAds\V1\Enums\FeedAttributeTypeEnum\FeedAttributeType;
use Google\Ads\GoogleAds\V1\Enums\FeedOriginEnum\FeedOrigin;
use Google\Ads\GoogleAds\V1\Enums\FeedMappingCriterionTypeEnum\FeedMappingCriterionType;
use Google\Ads\GoogleAds\V1\Enums\WebpageConditionOperandEnum\WebpageConditionOperand;
use Google\Ads\GoogleAds\V1\Resources\AdGroupCriterion;
use Google\Ads\GoogleAds\V1\Resources\AttributeFieldMapping;
use Google\Ads\GoogleAds\V1\Resources\Campaign;
use Google\Ads\GoogleAds\V1\Resources\Campaign\DynamicSearchAdsSetting;
use Google\Ads\GoogleAds\V1\Resources\Feed;
use Google\Ads\GoogleAds\V1\Resources\FeedAttribute;
use Google\Ads\GoogleAds\V1\Resources\FeedItem;
use Google\Ads\GoogleAds\V1\Resources\FeedMapping;
use Google\Ads\GoogleAds\V1\Services\AdGroupCriterionOperation;
use Google\Ads\GoogleAds\V1\Services\CampaignOperation;
use Google\Ads\GoogleAds\V1\Services\FeedOperation;
use Google\Ads\GoogleAds\V1\Services\FeedItemOperation;
use Google\Ads\GoogleAds\V1\Services\FeedMappingOperation;
use Google\Ads\GoogleAds\V1\Resources\FeedItemAttributeValue;
use Google\Ads\GoogleAds\V2\Common\WebpageConditionInfo;
use Google\Ads\GoogleAds\V2\Common\WebpageInfo;
use Google\Ads\GoogleAds\V2\Enums\DsaPageFeedCriterionFieldEnum\DsaPageFeedCriterionField;
use Google\Ads\GoogleAds\V2\Enums\FeedAttributeTypeEnum\FeedAttributeType;
use Google\Ads\GoogleAds\V2\Enums\FeedOriginEnum\FeedOrigin;
use Google\Ads\GoogleAds\V2\Enums\FeedMappingCriterionTypeEnum\FeedMappingCriterionType;
use Google\Ads\GoogleAds\V2\Enums\WebpageConditionOperandEnum\WebpageConditionOperand;
use Google\Ads\GoogleAds\V2\Resources\AdGroupCriterion;
use Google\Ads\GoogleAds\V2\Resources\AttributeFieldMapping;
use Google\Ads\GoogleAds\V2\Resources\Campaign;
use Google\Ads\GoogleAds\V2\Resources\Campaign\DynamicSearchAdsSetting;
use Google\Ads\GoogleAds\V2\Resources\Feed;
use Google\Ads\GoogleAds\V2\Resources\FeedAttribute;
use Google\Ads\GoogleAds\V2\Resources\FeedItem;
use Google\Ads\GoogleAds\V2\Resources\FeedMapping;
use Google\Ads\GoogleAds\V2\Services\AdGroupCriterionOperation;
use Google\Ads\GoogleAds\V2\Services\CampaignOperation;
use Google\Ads\GoogleAds\V2\Services\FeedOperation;
use Google\Ads\GoogleAds\V2\Services\FeedItemOperation;
use Google\Ads\GoogleAds\V2\Services\FeedMappingOperation;
use Google\Ads\GoogleAds\V2\Resources\FeedItemAttributeValue;
use Google\Ads\GoogleAds\Util\FieldMasks;
use Google\Ads\GoogleAds\Util\V1\ResourceNames;
use Google\Ads\GoogleAds\Util\V2\ResourceNames;
use Google\Protobuf\Int64Value;
use Google\Protobuf\StringValue;

Expand Down Expand Up @@ -214,7 +214,7 @@ private static function getFeed(
$feedDetails = ['resource_name' => $feedResourceName];
foreach ($feedAttributes as $feedAttribute) {
/** @var FeedAttribute $feedAttribute */
$feedDetails[$feedAttribute->getNameValue()] = $feedAttribute->getIdValue();
$feedDetails[$feedAttribute->getNameUnwrapped()] = $feedAttribute->getIdUnwrapped();
}
return $feedDetails;
}
Expand Down
64 changes: 32 additions & 32 deletions examples/AdvancedOperations/AddDynamicSearchAds.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,39 @@
use GetOpt\GetOpt;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentNames;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentParser;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;
use Google\Ads\GoogleAds\V1\Common\ExpandedDynamicSearchAdInfo;
use Google\Ads\GoogleAds\V1\Common\ManualCpc;
use Google\Ads\GoogleAds\V1\Common\WebpageConditionInfo;
use Google\Ads\GoogleAds\V1\Common\WebpageInfo;
use Google\Ads\GoogleAds\V1\Enums\AdGroupAdStatusEnum\AdGroupAdStatus;
use Google\Ads\GoogleAds\V1\Enums\AdGroupCriterionStatusEnum\AdGroupCriterionStatus;
use Google\Ads\GoogleAds\V1\Enums\AdGroupStatusEnum\AdGroupStatus;
use Google\Ads\GoogleAds\V1\Enums\AdGroupTypeEnum\AdGroupType;
use Google\Ads\GoogleAds\V1\Enums\AdvertisingChannelTypeEnum\AdvertisingChannelType;
use Google\Ads\GoogleAds\V1\Enums\BudgetDeliveryMethodEnum\BudgetDeliveryMethod;
use Google\Ads\GoogleAds\V1\Enums\CampaignStatusEnum\CampaignStatus;
use Google\Ads\GoogleAds\V1\Enums\WebpageConditionOperandEnum\WebpageConditionOperand;
use Google\Ads\GoogleAds\V1\Resources\Ad;
use Google\Ads\GoogleAds\V1\Resources\AdGroup;
use Google\Ads\GoogleAds\V1\Resources\AdGroupCriterion;
use Google\Ads\GoogleAds\V1\Resources\AdGroupAd;
use Google\Ads\GoogleAds\V1\Resources\Campaign;
use Google\Ads\GoogleAds\V1\Resources\Campaign\DynamicSearchAdsSetting;
use Google\Ads\GoogleAds\V1\Resources\CampaignBudget;
use Google\Ads\GoogleAds\V1\Services\AdGroupCriterionOperation;
use Google\Ads\GoogleAds\V1\Services\AdGroupOperation;
use Google\Ads\GoogleAds\V1\Services\AdGroupAdOperation;
use Google\Ads\GoogleAds\V1\Services\CampaignBudgetOperation;
use Google\Ads\GoogleAds\V1\Services\CampaignOperation;
use Google\Ads\GoogleAds\V1\Services\MutateAdGroupAdsResponse;
use Google\Ads\GoogleAds\V1\Services\MutateAdGroupsResponse;
use Google\Ads\GoogleAds\V1\Services\MutateAdGroupCriteriaResponse;
use Google\Ads\GoogleAds\V1\Services\MutateCampaignBudgetsResponse;
use Google\Ads\GoogleAds\V1\Services\MutateCampaignsResponse;
use Google\Ads\GoogleAds\V2\Common\ExpandedDynamicSearchAdInfo;
use Google\Ads\GoogleAds\V2\Common\ManualCpc;
use Google\Ads\GoogleAds\V2\Common\WebpageConditionInfo;
use Google\Ads\GoogleAds\V2\Common\WebpageInfo;
use Google\Ads\GoogleAds\V2\Enums\AdGroupAdStatusEnum\AdGroupAdStatus;
use Google\Ads\GoogleAds\V2\Enums\AdGroupCriterionStatusEnum\AdGroupCriterionStatus;
use Google\Ads\GoogleAds\V2\Enums\AdGroupStatusEnum\AdGroupStatus;
use Google\Ads\GoogleAds\V2\Enums\AdGroupTypeEnum\AdGroupType;
use Google\Ads\GoogleAds\V2\Enums\AdvertisingChannelTypeEnum\AdvertisingChannelType;
use Google\Ads\GoogleAds\V2\Enums\BudgetDeliveryMethodEnum\BudgetDeliveryMethod;
use Google\Ads\GoogleAds\V2\Enums\CampaignStatusEnum\CampaignStatus;
use Google\Ads\GoogleAds\V2\Enums\WebpageConditionOperandEnum\WebpageConditionOperand;
use Google\Ads\GoogleAds\V2\Resources\Ad;
use Google\Ads\GoogleAds\V2\Resources\AdGroup;
use Google\Ads\GoogleAds\V2\Resources\AdGroupCriterion;
use Google\Ads\GoogleAds\V2\Resources\AdGroupAd;
use Google\Ads\GoogleAds\V2\Resources\Campaign;
use Google\Ads\GoogleAds\V2\Resources\Campaign\DynamicSearchAdsSetting;
use Google\Ads\GoogleAds\V2\Resources\CampaignBudget;
use Google\Ads\GoogleAds\V2\Services\AdGroupCriterionOperation;
use Google\Ads\GoogleAds\V2\Services\AdGroupOperation;
use Google\Ads\GoogleAds\V2\Services\AdGroupAdOperation;
use Google\Ads\GoogleAds\V2\Services\CampaignBudgetOperation;
use Google\Ads\GoogleAds\V2\Services\CampaignOperation;
use Google\Ads\GoogleAds\V2\Services\MutateAdGroupAdsResponse;
use Google\Ads\GoogleAds\V2\Services\MutateAdGroupsResponse;
use Google\Ads\GoogleAds\V2\Services\MutateAdGroupCriteriaResponse;
use Google\Ads\GoogleAds\V2\Services\MutateCampaignBudgetsResponse;
use Google\Ads\GoogleAds\V2\Services\MutateCampaignsResponse;
use Google\Protobuf\Int64Value;
use Google\Protobuf\StringValue;

Expand Down
22 changes: 11 additions & 11 deletions examples/AdvancedOperations/AddExpandedTextAdWithUpgradedUrls.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
use GetOpt\GetOpt;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentNames;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentParser;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V1\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Lib\V2\GoogleAdsException;
use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;
use Google\Ads\GoogleAds\V1\Common\CustomParameter;
use Google\Ads\GoogleAds\V1\Common\ExpandedTextAdInfo;
use Google\Ads\GoogleAds\V1\Enums\AdGroupAdStatusEnum\AdGroupAdStatus;
use Google\Ads\GoogleAds\V1\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V1\Resources\Ad;
use Google\Ads\GoogleAds\V1\Resources\AdGroupAd;
use Google\Ads\GoogleAds\V1\Services\AdGroupAdOperation;
use Google\Ads\GoogleAds\V1\Services\AdGroupServiceClient;
use Google\Ads\GoogleAds\V2\Common\CustomParameter;
use Google\Ads\GoogleAds\V2\Common\ExpandedTextAdInfo;
use Google\Ads\GoogleAds\V2\Enums\AdGroupAdStatusEnum\AdGroupAdStatus;
use Google\Ads\GoogleAds\V2\Errors\GoogleAdsError;
use Google\Ads\GoogleAds\V2\Resources\Ad;
use Google\Ads\GoogleAds\V2\Resources\AdGroupAd;
use Google\Ads\GoogleAds\V2\Services\AdGroupAdOperation;
use Google\Ads\GoogleAds\V2\Services\AdGroupServiceClient;
use Google\ApiCore\ApiException;
use Google\Protobuf\StringValue;

Expand Down
Loading

0 comments on commit bf534e2

Please sign in to comment.