Hello, I have spoken to the maintainer of the .NET client library, and this appears to be an error in the example code.
https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201601/CampaignManagement/AddCompleteCampaignsUsingBatchJob.cs#L176 This selector doesn't actually select all the fields required for the rest of the example to function, including missing the download URL. Can you please file a bug on the GitHub issue tracker for the .NET client library <https://github.com/googleads/googleads-dotnet-lib/issues>? In the meanwhile, you may try a selector built like this: .fields(BatchJobField.Id, BatchJobField.Status, BatchJobField. DownloadUrl, BatchJobField.ProcessingErrors, BatchJobField.ProgressStats) Regards, Mike, AdWords API Team On Thursday, February 11, 2016 at 7:49:29 AM UTC-5, AdWords API User wrote: > > Hi, > > We are looking at migrating from the MutateJobService to the > BatchJobService, using the .NET client library. However, when we run the > C# example "AddCompleteCampaignsUsingBatchJob", the job completes, but the > downloadUrl property is null and there are no processing errors. We are > seeing the same results with v201509 and v201601 of the API (versions > 18_17_0 and 18_22_0 of the client library). > > I appreciate that the batch job service provides no guarantees in terms of > response times, but a trivial job that takes fifteen minutes to process > with the proposed "exponential backoff" model, is simply not usable with > the current architecture of our application. We did not experience any > performance issues with the MutateJobService, and are concerned about > migrating to a service with these initial results. > > The output from the example is shown below, but if you require response > and request details please let me know. > > John > > > ================================================================================================== > > This code sample illustrates how to use BatchJobService to create multiple > complete campaigns, including ad groups and keywords. > Created BatchJob with ID 1220060, status 'AWAITING_FILE' and upload URL > https://batch-job-upload-prod-ebe9b43.storage.googleapis.com/134893092/1220060.operations.xml?GoogleAccessId=926043054183-rbu1gkdushnqrfcf47gser4u8qse2...@developer.gserviceaccount.com&Expires=1455796497&Signature=e4hzLp1aB04m7qM1TSA9C7hXhQHgb%2BraelbcAdTo9LV%2FaEFwb5OZJqjQBVqnDofGIPbw9%2BSBthJD5fvn5LrOGQK2cYnnYDb9ggfK8FHva9NU > > on%2FAvSXKi31JMQRU8xO%2BXm7897ili03GbrdtIEso226xOkZBNf%2Fgl1DeTe%2BtFvY5MwAk0DK8rNg0TdR5VTF6mPzSjHDKNSs7XXno0iWEdMfWv%2FVIvychD%2Bqe9R2Yi07DFJUIwSbSCNGKwB1To9Z%2FJ1lx1X%2FHZyddYCxhfNM0ypwqXDY3f7ek5xag4takBvM4gxg%2Fg9JJegq%2BTUV2Du3Ob23%2BHokNBf1Ti0gmL31LyQ%3D%3D. > Sleeping 30000 millis... > Batch job ID 1220060 has status 'AWAITING_FILE'. > Sleeping 60000 millis... > Batch job ID 1220060 has status 'AWAITING_FILE'. > Sleeping 120000 millis... > Batch job ID 1220060 has status 'AWAITING_FILE'. > Sleeping 240000 millis... > Batch job ID 1220060 has status 'AWAITING_FILE'. > Sleeping 480000 millis... > Batch job ID 1220060 has status 'DONE'. > downloadUrl is null, so we can't retrieve the results. > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/9c1d69a3-ba6a-4cc0-9cab-b6a737acb465%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.