Currently Google Apps Scripts Advanced Google Services only supports v2 of the Content API for Shopping.
Are there any plans to add support for v2.1 of the API?
Link to Content API migration document: https://developers.google.com/shopping-content/v2/migration
Thank you
Wouldn't using this method require users to handle OAuth2 themselves and pass the accessToken through the fetch?
var response = UrlFetchApp.fetch(
"[REST-API endpoint]",
{
"method":"[POST|GET|PUT|PATCH|DELETE|OPTIONS]",
"contentType":"application/json", // optional
"headers":{
"Authorization":"Bearer " + ScriptApp.getOAuthToken()
},
"payload":JSON.stringify({...});
}
);