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());
}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/64d3cf88-20f5-4429-9707-78c50682397c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.