FYI, 
I am passing my manager account while fetching all the accounts linked to 
my account...

On Friday, January 27, 2023 at 12:38:01 PM UTC+5:30 Pawankumar Manpuri 
wrote:

> SELECT 
> customer_client.id, 
> customer_client.descriptive_name
> FROM customer_client
> WHERE 
> customer_client.manager = FALSE and
> customer_client.status = 'ENABLED'
>
> I am hitting this query to get all the customer_client ids linked to my 
> manager account... this sometimes gives ids that are not linked and that 
> causing me the permission denied error while fetching campaign report...
>
> Can you please assist me regarding this...
>
> Regards,
> Pawan Manpuri
>
> On Friday, January 27, 2023 at 11:43:13 AM UTC+5:30 Pawankumar Manpuri 
> wrote:
>
>> Hi Darwin, 
>> First of all, thanks for the quick response, the code worked fine when I 
>> executed it after few hours, no changes in the code looks like the issue is 
>> with Google Ads API something weird happens in between,  I have been 
>> noticing this for a while, all the credentials are right...I literally 
>> changed nothing, the code works fine after some time....
>>
>> Regards,
>> Pawan Manpuri
>>
>> On Wednesday, January 25, 2023 at 7:31:27 PM UTC+5:30 adsapi wrote:
>>
>>> Hi Pawankumar,
>>>  
>>>
>>> Thanks for reaching out to the Google Ads API team. I hope you are doing 
>>> well today.
>>>
>>>
>>> With regards to your concern, It seems that you are encountering the "
>>> *USER_PERMISSION_DENIED* 
>>> <https://developers.google.com/google-ads/api/reference/rpc/v10/AuthorizationErrorEnum.AuthorizationError?hl=en#user_permission_denied>"
>>>  
>>> which means a user doesn't have permission to access a customer and you’re 
>>> accessing a client customer using 'login-customer-id’ in the request.
>>>
>>>
>>> That being said, you will need to ensure that the user / email address 
>>> you used to generate the credentials indeed has *access* 
>>> <https://support.google.com/google-ads/answer/9978556?visit_id=637628826037447236-382779227&rd=1>
>>>  to 
>>> the account in your request. If the user / email address has access or is 
>>> associated with the MCC / manager account, you will need to specify the 
>>> *MCC 
>>> / manager account's ID* without hyphens (-) as the value of the 
>>> *login-customer-id* 
>>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid>
>>>  field. 
>>>
>>>
>>> If the error still persists, you may provide us with the complete 
>>> *request* 
>>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>>>  and *response* 
>>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>>>  logs, 
>>> with the *request-id* 
>>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>>>  along 
>>> with the *email address* used to generate the OAuth2 credentials.
>>>
>>> You can provide it via Reply privately to the author option. If this 
>>> option is not available, then send it instead on this email address 
>>> [email protected].
>>>
>>>
>>> Regards,
>>> [image: Google Logo] 
>>> Darwin 
>>> Google Ads API Team 
>>>   
>>>
>>>
>>> ref:_00D1U1174p._5004Q2iNWvb: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 the Google Groups 
"Google Ads API and AdWords 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/f15e505f-2222-49ff-8791-d825c3888adfn%40googlegroups.com.
  • GO... Pawankumar Manpuri
    • ... Pawankumar Manpuri
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Pawankumar Manpuri
          • ... Pawankumar Manpuri
            • ... Pawankumar Manpuri

Reply via email to