Re: handling empty partial_failure_error when uploading offline conversions

2024-04-01 Thread Dave Stitz
I am having the same issue and so I had to handle the detection of the 
partial failures uploads differently than what the Partial Failure docs 
recommend. 

Here is the bug report from 2022 for this issue which is still open: 
https://github.com/googleads/google-ads-dotnet/issues/473



On Thursday, March 28, 2024 at 4:56:53 AM UTC-7 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team. 
>
> By reviewing your query, I understand that you're encountering a "Partial 
> failure error". I would recommend you refer to the partial failure 
> 
>  
> documentation for more information.
>
> However, If you are still facing the same issue, please provide us with 
> the complete API logs (request 
> 
>  and response 
> 
>  with request-id 
> 
>  and request header 
> )
>  
> generated at your end. 
>
> 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 
> 
> , .Net 
> 
> , PHP 
> 
> , Python 
> 
> , Ruby 
> 
>  or Perl 
>  
> to 
> enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02s0IrK:ref" (ADR-00229016)
>
> 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/db89abec-7ab9-4027-929a-695e1b3266f2n%40googlegroups.com.


Re: handling empty partial_failure_error when uploading offline conversions

2024-03-28 Thread Albeiro Ochoa
In fact, the log I included is precisely because I have enabled logging in 
my Python code to capture the complete API logs. Below, I share with you 
the relevant log I obtained when reproducing the problem:

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: []

As you can see in the log, the API response indicates that the conversion 
was successfully uploaded, as the conversion details and a job ID were 
received. *However, partial failure errors were also encountered, although 
the error details are empty.*

This scenario is consistent with the issue I mentioned earlier, where the 
conversion appears to be uploaded successfully, but a partial failure error 
is still encountered without specific details.

I would appreciate it if you could further investigate this issue and 
provide guidance on why a partial failure error is occurring despite the 
conversion appearing to have been uploaded successfully. If you need any 
additional information or context details, please let me know.

El Thursday, March 28, 2024 a la(s) 6:56:53 AM UTC-5, Google Ads API Forum 
Advisor escribió:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team. 
>
> By reviewing your query, I understand that you're encountering a "Partial 
> failure error". I would recommend you refer to the partial failure 
> 
>  
> documentation for more information.
>
> However, If you are still facing the same issue, please provide us with 
> the complete API logs (request 
> 
>  and response 
> 
>  with request-id 
> 
>  and request header 
> )
>  
> generated at your end. 
>
> 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 
> 
> , .Net 
> 
> , PHP 
> 
> , Python 
> 
> , Ruby 
> 
>  or Perl 
>  
> to 
> enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02s0IrK:ref" (ADR-00229016)
>
> 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/4f532502-86ec-4a25-bea2-96f24365933cn%40googlegroups.com.


RE: handling empty partial_failure_error when uploading offline conversions

2024-03-28 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your query, I understand that you're encountering a "Partial 
failure error". I would recommend you refer to the partial failure 
documentation for more information.

However, If you are still facing the same issue, please provide us with the 
complete API logs (request and response with request-id and request header) 
generated at your end.

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, .Net, PHP, Python, Ruby or Perl to 
enable logging at your end. For REST interface requests, you can enable logging 
via the curl command by using the -i flag.
This message is in relation to case "ref:!00D1U01174p.!5004Q02s0IrK:ref" 
(ADR-00229016)

Thanks,

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/jSq1n0SB23TW00sZavVhUURH-Y790aWZJRAA%40sfdc.net.


Handling empty partial_failure_error when uploading offline conversions

2024-03-27 Thread Albeiro Ochoa
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.