Offline Conversion Partial Failure ValidateOnly

123 views
Skip to first unread message

Steven Jeanne

unread,
Mar 2, 2022, 4:31:48 AM3/2/22
to Google Ads API and AdWords API Forum
Hello ! 

I'm trying to upload offline conversion with validateOnly true option.

I'm aware that I can't use "results". 
I'm trying to return errors. 
GoogleAdsError have a method GetOperationErrorsByIndex().
In the case of offline conversion, it's not "operation" per se.

Question : How can I get error for a conversion from the partial failure object in validate only state ?  

Google Ads API Forum Advisor

unread,
Mar 2, 2022, 10:38:25 PM3/2/22
to ste...@jvweb.fr, adwor...@googlegroups.com
Hi Steven,

Thank you for your question.

Since partial_failure is supported in the (for example) UploadClickConversionsRequest, you should be able to implement a code similar to this example to extract the details of the error from the response (UploadClickConversionsResponse, see also partial_failure_status).

You can also enable logging by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link, as another alternative to check which other elements might return error details from the validate_only feature.

Let us know how this goes on your end.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Xkdvg:ref

Steven Jeanne

unread,
Mar 3, 2022, 4:19:31 AM3/3/22
to Google Ads API and AdWords API Forum
I did and it worked now, thanks
Reply all
Reply to author
Forward
0 new messages