Hi Teja/Google Ads Team,
Could you please help me here as I am totally stuck at this point.

To make sure I am not making any mistake, I created a separate setup (
https://www.clickenforcer.com/googleads)  to link my manager account 
(9663159860) with other Ads account. The request is being set successfully 
to link the account however while approving it (
https://github.com/googleads/google-ads-php/blob/master/examples/AccountManagement/LinkManagerToClient.php#L247)
 
, it is throwing error as mentioned below:

*Fatal error*: Uncaught Google\ApiCore\ApiException: { "message": "The 
caller does not have permission", "code": 7, "status": "PERMISSION_DENIED", 
"details": [ { "@type": 
"google.ads.googleads.v1.errors.googleadsfailure-bin", "data": "<Unknown 
Binary Data>" }, { "@type": "grpc-status-details-bin", "data": "<Unknown 
Binary Data>" }, { "@type": "request-id", "data": "zQhBL1aserIITJYgoDP6vQ" 
} ] } thrown in 
*/home/clickenforcer/public_html/googleads/google-ads-php/src/Google/Ads/GoogleAds/Lib/V1/GoogleAdsExceptionMiddleware.php*
 on 
line *106*

I am following the example present on your git repo (
https://github.com/googleads/google-ads-php/blob/master/examples/AccountManagement/LinkManagerToClient.php
 
<https://github.com/googleads/google-ads-php/blob/master/examples/AccountManagement/LinkManagerToClient.php#L247>)
 
and created the flow here:
https://www.clickenforcer.com/googleads/ 


Could you please help me here what is wrong in the code which is not 
allowing to run it properly? Is there anything wrong in the example you 
guys have posted on GIT repo? 
I am totally stuck at this point. Please let me know if you need any other 
information from my end.

I look forward to your prompt response in this.

Thanks,
Amrender


On Tuesday, 11 June 2019 19:29:44 UTC+5:30, Amrender kumar wrote:
>
> Hi Teja,
> Thanks for your message.
>
> I tried to run the example you shared however I am getting error 
> "Invalid_Grant" in Oauth2 flow. Please find the attached sshot. Is there 
> anything I need to enable at Ads API end or any other issue is there? 
> Please help me. I am trying to link account with manger id 9663159860 . 
>
> I look forward to hearing from you soon.
>
> Thanks,
> Amrender
>
>
>
> On Mon, 10 Jun 2019 at 22:33, Google Ads API Forum Advisor Prod <
> [email protected]> wrote:
>
>> Hello Amerender,
>>
>> I replied to your email address directly on May 28th. However here is the 
>> response I sent "The code sample in PHP is available here 
>> <https://github.com/googleads/google-ads-php/tree/master/examples/AccountManagement>
>>  
>> . You could use LinkManagerToClient.php 
>> <https://github.com/googleads/google-ads-php/blob/master/examples/AccountManagement/LinkManagerToClient.php>
>>  
>>  example. "
>>
>> If you want o expand the invitation from the manager account you have to 
>> use customerClientLink and then set status as shown here 
>> <https://github.com/googleads/google-ads-php/blob/master/examples/AccountManagement/LinkManagerToClient.php#L139>,
>>  
>> then to accept the invitation you have to use CustomerManagerLinkService. 
>> Refer here 
>> <https://developers.google.com/google-ads/api/docs/account-management/linking-manager-accounts>
>>  
>> for more information.
>>
>> Regards,
>> Sai Teja, Google Ads API Team
>>
>> ref:_00D1U1174p._5001UAqLBq: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 [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> 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 a topic in the 
>> Google Groups "AdWords API and Google Ads API Forum" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/adwords-api/oNMMozQ9b6o/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/adwords-api/idkaf000000000000000000000000000000000000000000000PSW7E4001lrz8YmmSOyC0nQVmoZ2OA%40sfdc.net
>>  
>> <https://groups.google.com/d/msgid/adwords-api/idkaf000000000000000000000000000000000000000000000PSW7E4001lrz8YmmSOyC0nQVmoZ2OA%40sfdc.net?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Kind Regards,
> Amrender Kumar
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ca4c5928-e3d4-4ad2-8ca0-1dba90a1cc6f%40googlegroups.com.

Reply via email to