Re: Adwords API Batch Jobs, XML SOAP

2018-06-16 Thread jack . e . perry4
I am using Google Script Editor in Google Sheets. Still haven't figured it 
out, any suggestions?

On Friday, June 15, 2018 at 3:24:14 PM UTC-6, Milind Sankeshware (AdWords 
API Team) wrote:
>
> Hi,
>
> It seems like the error is with the platform from where you were calling 
> the AdWords API. Could you please confirm if you are performing a Resumable 
> Upload Could 
>  
> via 
> Google Cloud? If yes, I found this post 
>  about 
> the error that might be helpful for you. If this post won't help you, I 
> would suggest to reach out the Google Cloud Team through their support 
> channels mentioned here . For more 
> information, please refer the AdWords API SOAP request structure in this 
> guide 
> 
> .
>
> Thanks,
> Milind, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/986049ec-e9a4-47df-9e88-104eb82b71df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Adwords API Batch Jobs, XML SOAP

2018-06-15 Thread jack . e . perry4
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 =  'http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>' +
 '' +
   'https://adwords.google.com/api/adwords/cm/v201806; 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next; 
soapenv:mustUnderstand="0">' +
 'INSERT HERE' +
 'INSERT HERE' +
 'Batch Job Resumable Test' +
 'false' +
 'true' +
   '' +
'' +
  '' +
'' +
  '';
  

  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: 
SignatureDoesNotMatchThe 
request signature we calculated does not match the signature you provided. 
Check your Google secret key and signing method.POST

application/x-www-form-urlencoded
1529679903
x-goog-resumable:start
/batch-job-upload-prod-ebe9b43/273175195/763146464.operations.xml

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.