Cannot pause/resume Smart Display Ads via API v201708

173 views
Skip to first unread message

Greg Sconce

unread,
Sep 8, 2017, 5:28:37 PM9/8/17
to AdWords API Forum
I am getting the follwing error [OperationAccessDenied.MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT @ operations[0]] when I try to pause or resume a smart display ad.

I know that these mutate actions are not available when working with express ads, but I have not seen anything in documentation that states that they are not avaiable for "smart display ads"

I am using the following code with v29.0.0 of thegoogleads/googleads-php-lib

$campaignService = $this->adWordsServices->get($this->session, CampaignService::class);

// Create a campaign with PAUSED status.
$campaign = new Campaign();
$campaign->setId($campaign_id);
$campaign->setStatus(CampaignStatus::PAUSED);

// Create a campaign operation and add it to the list.
$operation = new CampaignOperation();
$operation->setOperand($campaign);
$operation->setOperator(Operator::SET);
$operations[] = $operation;

// Update the campaign on the server.
try{
  $result = $campaignService->mutate($operations);
} catch(Exception $e){
  throw new Exception($e->getMessage());
}

Peter Oliquino

unread,
Sep 10, 2017, 11:20:59 PM9/10/17
to AdWords API Forum
Hi Greg,

The OperationAccessDenied.MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT error that you are encountering indicates that you are modifying a campaign that was created via the AdWords Express, which currently cannot be modified via the AdWords API. Furthermore, smart display campaigns are also not supported via the AdWords API. You may follow our blog for information if and when these features can be made available.

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages