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).
My goal is to have access to multiple accounts from my Manager Account like 
it is described here: 
https://support.google.com/google-ads/answer/6139186?visit_id=637291791366918653-1144634564&rd=1#MCC_invite
.
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
https://developers.google.com/google-ads/api/docs/account-management/linking-manager-accounts

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"
}

wtorek, 30 czerwca 2020 o 18:31:54 UTC+2 adsapiforumadvisor napisaƂ(a):

> Hi Radek,
>
> You need to add the email address you used to generate the OAuth 
> credentials as a user to your account by following these instructions 
> <https://support.google.com/google-ads/answer/6372672?hl=en>. Once you 
> accept the invitation from your new email address and see it in the list of 
> users for the account (Tools & Settings -> Setup -> Access and Security), 
> then you can make API calls using those credentials.
>
> As I mentioned, looking in your account I only saw slum...@gmail.com 
> listed as a user. Not ads...@gmail.com.
>
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5004Q219d4e: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/a908392d-a484-45ed-8b26-30025096d190n%40googlegroups.com.

Reply via email to