When I try to upload AdGroups in batch it fails with error: The remote 
server returned an error: (403) Forbidden.
(Just so you know, if I send my AdGroups one at a time (not using 
BatchJob), it works).
These are the lines of code of how I use the BatchJobService:

BatchJobOperation batchJobOp = new BatchJobOperation();
batchJobOp.@operator = Operator.ADD;
batchJobOp.operand = new BatchJob();

BatchJobService batchJobService = 
(BatchJobService)myAdWordsUser.GetService(AdWordsService.v201601.BatchJobService);
BatchJob batchJob = batchJobService.mutate(new BatchJobOperation[] 
{batchJobOp}).value[0];

String uploadUrl = batchJob.uploadUrl.url;

BatchJobUtilities batchJobUploadHelper = new 
BatchJobUtilities(batchJobService.User);
batchJobUploadHelper.Upload(uploadUrl, myAdGroupOperations.ToArray());  // 
The ERROR happens on this line.

If it helps, this is the details inside the log xml file:
<?xml version='1.0' 
encoding='UTF-8'?><Error><Code>SignatureDoesNotMatch</Code><Message>The 
request signature we calculated does not match the signature you provided. 
Check your Google secret key and signing method.</Message><StringToSign>PUT

application/xml
1462221844
/batch-job-upload-prod-ebe9b43/73765578/111999231.operations.xml</StringToSign></Error>

Please, if anyone can help me I would appreciate it very much.
Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e88e1979-7a88-46d4-b66b-9d76c440fe1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to