Mutate action not permitted for client updating ad group

26 views
Skip to first unread message

Alberto

unread,
Jul 22, 2019, 11:18:58 PM7/22/19
to AdWords API and Google Ads API Forum
Hi all,

I received following error using PHP google adwords library:

[OperationAccessDenied.MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT @ operations[0]]

Trying to do the following operation:

$clientId = intval(str_replace('-', '', $clientId));
$session = (new AdWordsSessionBuilder())
    ->fromFile($this->adsConfigFile)
    ->withClientCustomerId($clientId)
    ->withOAuth2Credential($this->oAuth2Credentials)
    ->build();

$adWordsServices = new AdWordsServices();
$adGroupService = $adWordsServices->get($session, AdGroupService::class);

$adGroup = new AdGroup();
$adGroup->setId($adGroupId);
$adGroup->setStatus(AdGroupStatus::PAUSED);

$operation = new AdGroupOperation();
$operation->setOperand($adGroup);
$operation->setOperator(Operator::SET);

$result = $adGroupService->mutate([$operation]);

Ids are correct and campaign is one video campaign. I dont know if I have restrictions over mutating operations on the API.


Regards.

Google Ads API Forum Advisor Prod

unread,
Jul 23, 2019, 2:10:36 AM7/23/19
to adwor...@googlegroups.com
Hi Alberto,

Thank you for reaching out.

Since you mentioned that you are mutating a video campaign, I am afraid that video campaigns are not supported in the API services and can only be retrieved in reports as per this guide.

Let me know if you have further clarifications.

Regards,
Dannison
Google Ads API Team

ref:_00D1U1174p._5001UEG4oE:ref
Reply all
Reply to author
Forward
0 new messages