I have a Google Apps Script bound to a spreadsheet that needs to read AdWords data. I'm avoiding the user permission OAuth2 procedures because it's an entirely server-to-server script that automatically updates daily data to the sheet.
After much swimming through documentation, I've created a service account and given it the necessary permissions as per this guide: https://developers.google.com/adwords/api/docs/guides/authentication#oauth2_service_accounts
I haven't fully understood the next step, which is how to actually make the request, specifically in Apps Script. What would be the code for this?
Also accepting better suggestions on the most elegant way to request the AdWords API on Apps Script without client permissions. I'd managed to get a refresh token which seemed to be the right track, but couldn't generate an OAuth2 token with it.