Hello there,
Unfortunately, I think that we misunderstand.
In our previous conversation you gave me instructions how I can link my individual Google Ads Account to Manager account manually (by sending invitation in Manager Account settings).
I would like create ads for my clients and link their account to my Manager Account automatically (in background) and I think it's possible using instructions describes below
I'm trying to create link (in pending status) but something is going wrong, could you take a look in my code?
$customerClientLink = new CustomerClientLink(
[
'client_customer' => new StringValue(
['value' => ResourceNames::
forCustomer(8322203725)]
),
'status' => ManagerLinkStatus::
PENDING
]);
$customerClientLinkOperation = new CustomerClientLinkOperation();
$customerClientLinkOperation->setCreate($customerClientLink);
$customerClientLinkServiceClient = $this->googleAdsClient->getCustomerClientLinkServiceClient();
$response = $customerClientLinkServiceClient->mutateCustomerClientLink
(8322203725, $customerClientLinkOperation);
Error:
"errorCode": {
"authorizationError": "USER_PERMISSION_DENIED"
}