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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/47ede969-8e12-4e08-8cf0-e345baffab4a%40googlegroups.com.

Reply via email to