RE: Mutate action not permitted for client updating ad group

2019-07-23 Thread Google Ads API Forum Advisor Prod
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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1rkH50PV2ZT800a3mxL8nAQD-OCvqKxtBR-Q%40sfdc.net.


Mutate action not permitted for client updating ad group

2019-07-22 Thread Alberto
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.