Here are the examples of the csharp api class Google.Api.Ads.AdWords.Util.BatchJob.v201702.BatchJobUtilities.GetPostBody(System.Collections.Generic.IEnumerable) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: googleads-dotnet-lib
Source File: BatchJobUtilities.cs
Source File: BatchJobUtilities.cs
public BatchUploadProgress StreamUpload(BatchUploadProgress uploadProgress, IEnumerable<Operation> operations) { String postBody = GetPostBody(operations); return StreamUpload(uploadProgress, postBody); }
0
2. Example
Project: googleads-dotnet-lib
Source File: BatchJobUtilities.cs
Source File: BatchJobUtilities.cs
public void Upload(string url, IEnumerable<Operation> operations, bool resumePreviousUpload) { // Mark the usage. featureUsageRegistry.MarkUsage(FEATURE_ID); long totalUploaded = 0; byte[] postBody = Encoding.UTF8.GetBytes(GetPostBody(operations)); long totalUploadSize = postBody.Length; // If this file has been uploaded partially, just upload the remaining // part. if (resumePreviousUpload) { totalUploaded = GetUploadProgress(url); byte[] temp = new byte[totalUploadSize - totalUploaded]; Array.Copy(postBody, totalUploaded, temp, 0, totalUploadSize - totalUploaded); postBody = temp; } Upload(url, postBody, totalUploaded, totalUploadSize); }