Yin Niu,

I found the problem.
In case it can help anyone else having the same issue.

on the following lines of code that I mentioned before:
1. String uploadUrl = batchJob.uploadUrl.url;
2. BatchJobUtilities batchJobUploadHelper = new 
BatchJobUtilities(batchJobService.User);
3. batchJobUploadHelper.Upload(uploadUrl, myAdGroupOperations.ToArray()); 
 // The ERROR happens on this line.

Before line 3, I need to get a resumable upload url first:
2.1. string resumableUploadUrl = 
batchJobUploadHelper.GetResumableUploadUrl(uploadUrl); // use here the 
previous uploadUrl

And then, use resumableUploadUrl to upload:
3. batchJobUploadHelper.Upload(resumableUploadUrl, 
myAdGroupOperations.ToArray());

That fixed the issue and now it is working.

Thank you Yin Niu for your help.


On Tuesday, April 26, 2016 at 10:02:53 AM UTC-5, Yin Niu wrote:
>
> Hi, 
>
> Could you please send complete SOAP request and response logs? Just click 
> *Reply 
> privately to author* in the forum when responding.
>
> Thanks!
> Yin, AdWords API Team. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/043f95ea-6fc3-451a-a4ea-26dc0d25e298%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to