Also here is error and request id

Error details: {
  "code": 403,
  "message": "The caller does not have permission",
  "status": "PERMISSION_DENIED",
  "details": [
    {
      "@type": "
type.googleapis.com/google.ads.googleads.v19.errors.GoogleAdsFailure",
      "errors": [
        {
          "errorCode": {
            "authorizationError": "USER_PERMISSION_DENIED"
          },
          "message": "User doesn't have permission to access customer.
Note: If you're accessing a client customer, the manager's customer id must
be set in the 'login-customer-id' header. See
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid
"
        }
      ],
      "requestId": "ZSAkQjQTKXpRuIdJhdYFwQ"
    }
  ]
}

On Wed, 7 May 2025 at 14:04, Himalayan <akashmathw...@gmail.com> wrote:

> Hello ,
>
> Thanks for replying.
>
> So, I was already able to create the client Account with API but I
> can't provide email and accessRole to CreateCustomerClient
> <https://developers.google.com/google-ads/api/reference/rpc/v19/CustomerService#createcustomerclient>
>  method
> as it keeps failing.
> Also when I try to use /customerUserAccessInvitations:mutate  with
> postman I keep getting 403 so I am not sure if I require some special
> permission to just give access to Customers to client accounts that I am
> creating under my parent manager accounts.
>
> curl --location '
> https://googleads.googleapis.com/v19/customers/8243027194/customerUserAccessInvitations:mutate
> ' \
> --header 'Content-Type: application/json' \
> --header 'developer-token: fhwEl8cIFTgEwhKfteN6pQ' \
> --header 'login-customer-id: 9119012550' \
> --header 'Authorization: Bearer Token' \
> --data-raw '{
> "operation": {
> "create": {
> "emailAddress": "EMAIL",
> "accessRole": "ADMIN"
> }
> }
> }'
>
> Please advise me. Thanks again for helping me.
>
> Thanks
> Akash
>
>
>
> On Wed, 7 May 2025 at 02:12, Google Ads API Forum Advisor <
> adsapi@forumsupport.google> wrote:
>
>> Hi,
>>
>> Thank you for reaching out to the Google Ads API support team.
>>
>> Please find the below responses for your queries:
>>
>> 1) I would like to inform you that to create an account, send the Google
>> Ads API a pre-populated Customer
>> <https://developers.google.com/google-ads/api/reference/rpc/v19/Customer>.
>> Unlike creating other entities like campaigns, this is done with a special
>> CreateCustomerClient
>> <https://developers.google.com/google-ads/api/reference/rpc/v19/CustomerService#createcustomerclient>
>>  method
>> on the CustomerService
>> <https://developers.google.com/google-ads/api/reference/rpc/v19/CustomerService>
>>  rather
>> than a "mutate" method. Kindly refer to the guide Creating an Account
>> <https://developers.google.com/google-ads/api/docs/account-management/create-account>
>>  for
>> more details.
>>
>> 2) Please be informed that you can send an email invitation to a new user
>> as part of managing access to a Google Ads account
>> <https://support.google.com/google-ads/answer/6372672>. This is done by
>> creating a new CustomerUserAccessInvitation
>> <https://developers.google.com/google-ads/api/reference/rpc/v19/CustomerUserAccessInvitation>
>>  using
>> the MutateCustomerUserAccessInvitation method of the
>> CustomerUserAccessInvitationService
>> <https://developers.google.com/google-ads/api/reference/rpc/v19/CustomerUserAccessInvitationService>.
>> The email invitation needs to be manually accepted by the user who received
>> the invitation. I would suggest you refer to the guide Managing User
>> Access Invitations
>> <https://developers.google.com/google-ads/api/docs/account-management/managing-invitations>
>>  to
>> get more information.
>>
>> I hope this helps! Feel free to get back to us in case of any further
>> queries.
>>
>>
>> Thanks,
>>
>> [image: Google Logo] Google Ads API Team
>> Feedback
>> How was our support today?
>>
>> [image: rating1]
>> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=500Ht00001qW3F8IAK>
>>   [image: rating2]
>> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=500Ht00001qW3F8IAK>
>>   [image: rating3]
>> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=500Ht00001qW3F8IAK>
>>   [image: rating4]
>> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=500Ht00001qW3F8IAK>
>>   [image: rating5]
>> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=500Ht00001qW3F8IAK>
>> [2025-05-06 20:42:50Z GMT] This message is in relation to case
>> "ref:!00D1U01174p.!500Ht01qW3F8:ref" (ADR-00304139)
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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 visit 
https://groups.google.com/d/msgid/adwords-api/CANLkUA0Un3_jAUAcgTWF3y_GWH1oP0QiuYXdC6CtLhSkxGRz9A%40mail.gmail.com.
  • Ne... Himalayan
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Himalayan
        • ... Himalayan
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
            • ... Himalayan
              • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
                • ... Himalayan
                • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to