Hello Google Ads community,

I am working on a project that involves uploading offline conversions using 
the Google Ads API VER 14. I have implemented the code to send conversions 
using the ConversionUploadService and the upload_click_conversions method.

The issue I am facing is that, even though the conversions seem to be 
uploaded successfully to Google Ads and are showing as having excellent 
data quality in the platform, I am not seeing the expected success message 
"Conversion uploaded successfully." in the console output.

Upon further investigation, I noticed that the response from the Google Ads 
API contains a partial_failure_error field, but this field is empty (it 
doesn't contain any error details). This is causing my code to enter the 
partial failure error handling logic, even when there are no error details 
present.

Here's a relevant part of my code:

if response.partial_failure_error:
    logger.warning("Partial failure errors encountered:")
    for error in response.partial_failure_error.details:
        logger.warning(error)
    logger.error(f"Partial failure error details: 
{response.partial_failure_error.details}")
    return {"success": False, "error": str(response.partial_failure_error)}
else:
    logger.info("Conversion uploaded successfully.")
    print("Conversion uploaded successfully.")
    for result in response.results:
        logger.info(f"Conversion with GCLID {result.gclid} uploaded 
successfully.")
        print(f"Conversion with GCLID {result.gclid} uploaded 
successfully.")
    return {"success": True, "error": None}

And here's an excerpt from the logs showing the API response: 2024-03-27 
18:46:22,711 - INFO - Conversion upload response: results {
gclid: 
"CjwKCAjwnv-vBhBdEiwABCYQA7dPM3qAtyJdmHQQtv77tF_qHwDSa9KQ6mPkpSON0IZrCU82TvhVGBoC9EAQAvD_BwE"
conversion_action: "customers/7385152398/conversionActions/6772748552"
conversion_date_time: "2024-03-24 18:40:00+00:00"
}
job_id: 5950565033604606275

2024-03-27 18:46:22,713 - WARNING - Partial failure errors encountered:

2024-03-27 18:46:22,713 - ERROR - Partial failure error details: [] My 
question is: why is the Google Ads API returning an empty 
partial_failure_error even when the conversion appears to have been 
uploaded successfully? Is there any specific reason for this behavior? How 
is it recommended to handle this case in the code?

I would appreciate any guidance or clarification you can provide on this 
matter. If you need more details or additional information, please let me 
know.

Thank you in advance for your help. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a9b121fd-7b85-40d8-a659-519c29ff2be0n%40googlegroups.com.
  • Ha... Albeiro Ochoa
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Albeiro Ochoa
      • ... Dave Stitz

Reply via email to