Hello! So I am using XML SOAP directly, no client library. I am trying to obtain the resumable URL for my batch job that is created. I post an empty HTTP Request but keep receiving an error about my signature.
Here is my request: function getResumableUrl(uploadUrl) { var authToken = findAccessToken(); var xml = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' + '<soapenv:Header>' + '<ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201806" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">' + '<ns1:clientCustomerId>INSERT HERE</ns1:clientCustomerId>' + '<ns1:developerToken>INSERT HERE</ns1:developerToken>' + '<ns1:userAgent>Batch Job Resumable Test</ns1:userAgent>' + '<ns1:validateOnly>false</ns1:validateOnly>' + '<ns1:partialFailure>true</ns1:partialFailure>' + '</ns1:RequestHeader>' + '</soapenv:Header>' + '<soapenv:Body>' + '</soapenv:Body>' + '</soapenv:Envelope>'; var headers = { "content-type": "application/x-www-form-urlencoded", "x-goog-resumable": "start", "expires": test }; var options = { "Authorization": "Bearer " + authToken, "Content-Length ": 0, 'Method': "post", 'headers': headers, muteHttpExceptions: true, payload: xml }; Logger.log(uploadUrl); var response = UrlFetchApp.fetch(uploadUrl, options); Logger.log(response); } Here is the response: <?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>POST application/x-www-form-urlencoded 1529679903 x-goog-resumable:start /batch-job-upload-prod-ebe9b43/273175195/763146464.operations.xml</StringToSign></Error> I have tried so many different variations and have read through all of the documentation. Does anyone see anything that is triggering this? Thank you so much! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads 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/cbfc7226-9731-4711-ae7b-ddc5bf7821b0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.