Thanks for the clarification.

The user identifiers requirement seems to contradict with the text
mentioned here:
https://support.google.com/google-ads/answer/16193746?hl=en#:~:text=gad_campaignid%20is%20a%20URL%20parameter%20used%20to,campaign%20will%20have%20the%20same%20gad_campaignid%20

"  This is particularly important when individual identifiers like gclid *and
user-provided data are not available.* "
[image: contracting.png]
This got me confused that only with gad_* params, conversion can be
attributed without gclid or user's personal data.
The above text probably needs to be updated / better explained , as it
contradicts with API behaviour explained at other places in your answer
reference links.


On Sat, 26 Jul 2025 at 03:59, Google Ads API Forum Advisor <
[email protected]> wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> Please be informed that I have removed your response from the forums as it
> contains the PII information.
>
> Based on the information provided, I understand that you're including the '
> session_attributes
> <https://developers.google.com/google-ads/api/reference/rpc/v20/ClickConversion#session_attributes>'
> field when uploading conversions via the Google Ads API, but encountering a
> REQUIRED
> <https://developers.google.com/google-ads/api/reference/rpc/v20/FieldErrorEnum.FieldError#required>
> field error specifically related to the missing 'GCLID' field. According to
> the help center article
> <https://support.google.com/google-ads/answer/16194756#about&zippy=%2Cadvanced>,
> when importing offline conversions, if a 'gclid' is not available, session
> attributes can be used as an alternative. However, it's also clearly stated
> that OCI users must include either hashed user-provided data with
> wbraid/gbraid or with session_attributes when 'GCLID' is not present. In
> your request payload, it's evident that no user-provided data is being
> passed, which is the primary reason for this error.
>
> I would recommend you to refer to this API documentation
> <https://developers.google.com/google-ads/api/docs/conversions/upload-offline#:~:text=session_attributes_encoded%20and%20session_attributes_key_value_pairs>
> for more detailed information. This code example
> <https://developers.google.com/google-ads/api/docs/conversions/upload-offline#code_example_2>
> describes you on how to pass the user identifiers
> <https://developers.google.com/google-ads/api/reference/rpc/v20/UserIdentifier>
> along with the session attributes field. However, I am providing you the
> sample request body on how to pass the user identifiers along with the
> session attributes:
>
> *Request Body:
> ==============
> *POST 
> https://googleads.googleapis.com/v20/customers/{customerId}:uploadClickConversions?key=[YOUR_API_KEY]
>  HTTP/1.1
>
> developer-token: **********************
> Authorization: Bearer [YOUR_ACCESS_TOKEN]
> Accept: application/json
> Content-Type: application/json
>
> {
>   "conversions": [
>     {
>       "sessionAttributesEncoded": "sessionAttributesEncoded",
>       "conversionAction": 
> "customers/{customerId}/conversionActions/{conversionActionId}",
>       "conversionDateTime": "2025-05-22 19:40:17-04:00", //random conversion 
> date time has been passed
>       "conversionValue": 0,
>       "currencyCode": "USD",
>       "orderId": "1234566",
>       "userIdentifiers": [
>         {
>           "hashedEmail": "hashedEmailId"
>         }
>       ]
>     }
>   ],
>   "partialFailure": true
> }
>
> I would request you to pass the userIdentifier
> <https://developers.google.com/google-ads/api/reference/rpc/v20/UserIdentifier>
> object and try to make the API call and let us know how it works from your
> end. If you still encounter any issues even after following the provided
> suggestion, I would request you to share the complete updated API logs (
> 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 request-id
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
> and request header
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
> generated at your end to further assist you better.
>
> You can send the details via *Reply privately to the author option*, or 
> *direct
> private reply* to this email.
>
>
> 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=500Ht00001swpTIIAY>
>   [image: rating2]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=500Ht00001swpTIIAY>
>   [image: rating3]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=500Ht00001swpTIIAY>
>   [image: rating4]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=500Ht00001swpTIIAY>
>   [image: rating5]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=500Ht00001swpTIIAY>
> [2025-07-25 22:28:59Z GMT] This message is in relation to case
> "ref:!00D1U01174p.!500Ht01swpTI:ref" (ADR-00320287)
>
>
>

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

Reply via email to