Hi,

Here are the results of the query to see if the enhanced conversion for 
leads is enabled on my account:

[
{
"results": [
{
"customer": {
"resourceName": "customers/redacted",
"conversionTrackingSetting": {
"acceptedCustomerDataTerms": true
},
"id": "redacted"
}
}
],
"fieldMask": 
"customer.id,customer.conversionTrackingSetting.acceptedCustomerDataTerms,customer.conversionTrackingSetting.enhancedConversionsForLeadsEnabled",
"requestId": "em8t-MlXIRa9cNQpDxmS9g",
"queryResourceConsumption": "100"
}
]

After enabling enhanced conversion for leads and opting for either Google 
Tag or Google Tag Manager (as there's no API choice in the UI), I received 
this response:

[
{
"results": [
{
"customer": {
"resourceName": "customers/redacted",
"conversionTrackingSetting": {
"acceptedCustomerDataTerms": true,
"enhancedConversionsForLeadsEnabled": true
},
"id": "redacted"
}
}
],
"fieldMask": 
"customer.id,customer.conversionTrackingSetting.acceptedCustomerDataTerms,customer.conversionTrackingSetting.enhancedConversionsForLeadsEnabled",
"requestId": "fvaEHyC7iEY6c7giQ6-VmQ",
"queryResourceConsumption": "106"
}
]

Here is how I am uploading a click conversion with user identifiers and a 
GCLID while enhanced conversion for leads is disabled:

curl -L 
'https://googleads.googleapis.com/v17/customers/redacted:uploadClickConversions'
 
\
-H 'developer-token: redacted' \
-H 'login-customer-id: redacted' \
-H 'Authorization: Bearer redacted' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"conversions": [
{
"consent": {
"adPersonalization": "GRANTED",
"adUserData": "GRANTED"
},
"conversionAction": "customers/redacted/conversionActions/6871117800",
"conversionDateTime": "2024-08-20 12:32:45-03:00",
"conversionEnvironment": "WEB",
"gclid": 
"Cj0KCQjwlIG2BhC4ARIsADBgpVSPSSs7aRUTAChBBnK9AJTCMn3QA_q2ScG7fm1hHtZ22XK05PnA7UEaAnmKEALw_wcB",
"userIdentifiers": [
{
"hashedEmail": 
"363b7afc7ab9eb230d57db3e01876eb6e253ab58846e2294899a7444162a3790",
"userIdentifierSource": "FIRST_PARTY"
}
],
"userIdentifiers": [
{
"hashedPhoneNumber": 
"3a8da1361516776d31779dc6b61f941f0c98ce7ae0c7d3f54972b1b739d57aa0",
"userIdentifierSource": "FIRST_PARTY"
}
]
}
],
"debugEnabled": true,
"partialFailure": true,
"validateOnly": true
}'

This is the jobid that is returned:

{
"jobId": "101696100103591035"
}

And the request id:

ba-GHdsUEHZ5mJSC26gMhA

---------

I should be getting an error, right? Since enhanced conversion for leads is 
disabled and you and the documentation say that adding a GCLID along with 
user identifiers will treat the upload operation as enhanced conversions 
for leads.

On Monday, September 2, 2024 at 10:50:53 AM UTC-3 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> As per the documentation, you shouldn't set this 'user_identifiers' field 
> when uploading conversions using only click IDs. If this field is set, 
> Google Ads treats the upload operation as an upload for enhanced 
> conversions for leads 
> <https://developers.google.com/google-ads/api/docs/conversions/enhanced-conversions/leads>.
>  
> As you are saying you don't have enhanced conversions for leads enabled in 
> your Google Ads account, you can verify whether these prerequisites 
> <https://developers.google.com/google-ads/api/docs/conversions/enhanced-conversions/leads-setup#prerequisites>
>  
> are already met by issuing the following query to the Google Ads conversion 
> customer: 
>
>
> SELECT
>   customer.id,
>   customer.conversion_tracking_setting.accepted_customer_data_terms,
>   customer.conversion_tracking_setting.enhanced_conversions_for_leads_enabled
> FROM customer
>
> You can also refer to the following best practices 
> <https://developers.google.com/google-ads/api/docs/conversions/enhanced-conversions/leads#best-practices>
>  which 
> will by default treat as enhanced conversions for leads. If you are still 
> having any queries, then provide us the kindly provide us with the complete 
> 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 better assist you further. 
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides Java 
> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>, 
> .Net 
> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>,
>  
> PHP 
> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>, 
> Python 
> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>,
>  
> Ruby 
> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging> 
> or Perl 
> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging> 
> to enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>
> You can send the details via *Reply privately to the author option*, or 
> *direct 
> private reply* to this email.
>
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02vFPT3:ref" (ADR-00264969)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f1de3a91-2e60-4634-baaf-4e4283c2e7ccn%40googlegroups.com.
  • Qu... Rafael Machado
    • ... Rafael Machado
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Rafael Machado

Reply via email to