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.