Hello,

I am trying to upload offline click conversion using REST API.

For this purpose I am using below request:

curl -f --request POST 
"https://googleads.googleapis.com/v12/customers/${customerId}:uploadClickConversions";
 
\

--header "Content-Type: application/json" \

--header "developer-token: ${developer-token-from-manager-account}" \

--header "login-customer-id: ${manager-account-id}" \

--header "Authorization: Bearer ${my-access-token}" \

--data '{

    "conversions": [

        {

            "gclid": ${my-gclid},

            "conversionAction": 
"customers/${customerId}/conversionActions/${conversionId}",

            "conversionDateTime": "2022-12-21 12:32:45"

        }

    ],

    "partialFailure": true,

    "validateOnly": false,

    "debugEnabled": true

}'

In response I get this error:

{

  "error": {

    "status": "PERMISSION_DENIED", 

    "message": "The caller does not have permission", 

    "code": 403, 

    "details": [

      {

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

          }

        ], 

        "@type": 
"type.googleapis.com/google.ads.googleads.v12.errors.GoogleAdsFailure", 

        "requestId": "z71WgTEVZ9Ye7wP4hjCG0g"

      }

    ]

  }

}

Could you verify what I am missing to send the request correctly? How to 
set up connections between a manager account and a user account?

Thanks in advance!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 on the web visit 
https://groups.google.com/d/msgid/adwords-api/c50f2338-db19-4938-8703-857a6ec7559an%40googlegroups.com.
  • Go... Aleksandra Nowak
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to