更新update状态

This commit is contained in:
hgc 2025-01-03 17:30:11 +08:00
parent 828ac82f09
commit f45101b68d
3 changed files with 3 additions and 5 deletions

View File

@ -245,7 +245,7 @@ class GoogleAdsAdService extends BaseService
function runUpdateAd($options): mixed function runUpdateAd($options): mixed
{ {
// $googleAdsClient = $this->googleAdsClient; // $googleAdsClient = $this->googleAdsClient;
$googleAdsClient = new GoogleAdsClientService($options['customer_id']); $googleAdsClient = new GoogleAdsClientService($options['refresh_token'],$options['login_customer_id']);
// Creates a single shared budget to be used by the campaigns added below. // Creates a single shared budget to be used by the campaigns added below.
$resourceNames = self::updateAd($googleAdsClient->getGoogleAdsClient(), $options['customer_id'], $options['group_id'], $options['ad_id'], $options['status']); $resourceNames = self::updateAd($googleAdsClient->getGoogleAdsClient(), $options['customer_id'], $options['group_id'], $options['ad_id'], $options['status']);

View File

@ -638,7 +638,7 @@ class GoogleAdsCampaignService extends BaseService
public function runUpdateCampaign($options): mixed public function runUpdateCampaign($options): mixed
{ {
$googleAdsClient = new GoogleAdsClientService($options['customer_id']); $googleAdsClient = new GoogleAdsClientService($options['refresh_token'],$options['login_customer_id']);
// Creates a single shared budget to be used by the campaigns added below. // Creates a single shared budget to be used by the campaigns added below.
$resourceName = self::updateCampaign($googleAdsClient->getGoogleAdsClient(), $options['customer_id'], $options['campaign_id'], $options['status']); $resourceName = self::updateCampaign($googleAdsClient->getGoogleAdsClient(), $options['customer_id'], $options['campaign_id'], $options['status']);

View File

@ -244,8 +244,6 @@ class GoogleAdsGroupService extends BaseService
/** /**
* This example updates the CPC bid and status for a given ad group. To get ad groups, run * This example updates the CPC bid and status for a given ad group. To get ad groups, run
* GetAdGroups.php. * GetAdGroups.php.
*/
/* @param int $customerId the customer ID
* @param $options * @param $options
* @return mixed * @return mixed
* @throws ApiException * @throws ApiException
@ -253,7 +251,7 @@ class GoogleAdsGroupService extends BaseService
public function runUpdateGroup($options): mixed public function runUpdateGroup($options): mixed
{ {
// $googleAdsClient = $this->googleAdsClient; // $googleAdsClient = $this->googleAdsClient;
$googleAdsClient = new GoogleAdsClientService($options['customer_id']); $googleAdsClient = new GoogleAdsClientService($options['refresh_token'],$options['login_customer_id']);
// Creates a single shared budget to be used by the campaigns added below. // Creates a single shared budget to be used by the campaigns added below.
// $resourceNames = self::updateGroup($googleAdsClient, $options['customer_id'], $options['group_id'], $options['status'], $options['bid_micro_amount'],); // $resourceNames = self::updateGroup($googleAdsClient, $options['customer_id'], $options['group_id'], $options['status'], $options['bid_micro_amount'],);