OfflineConversionFeedReturnValue returnValue;
// Upload all the created conversions in a batch
// By specifying 'partial failure = true' in the header, this allows individual failures not to prevent partial success, and will return 'partialFailureErrors' which then can be evaluated
offlineConversionFeedService.RequestHeader.partialFailure = true;
try
{
returnValue = offlineConversionFeedService.mutate(operations.ToArray());
}
catch (AdWordsApiException)
{
//Handle specific errors, code omitted for brevity
}
catch (Exception)
{
//Handle generic specific, code omitted for brevity
}
if (returnValue.partialFailureErrors != null
&& returnValue.partialFailureErrors.Any())
{
foreach (var apiError in returnValue.partialFailureErrors)
{
var index = apiError.GetOperationIndex();
var conversion = conversions[index];
// Individual failures are handled here