Re: 403 Error When Calling Local Services API From Apps Script in Google Sheet

2021-12-02 Thread Basil Latif
Hi Ernie, So I get the PERMISSION_DENIED error message when running the API for myself. When the person who created the API in API console runs it, he gets back a blank response. Here is the API request. Is there anything else I need to include in here? function makeRequest() { var adsServ

Constructing a GET Request to Local Services API

2021-12-02 Thread Basil Latif
Hi, I have followed the documentation here closely: https://services.google.com/fh/files/helpcenter/lsa_api_dev_guide.pdf Here is my GET request so far: var response = UrlFetchApp.fetch('https://localservices.googleapis.com/v1/accountReports:search?query=manager_customer_id:2845561262', { he

403 Error When Calling Local Services API From Apps Script in Google Sheet

2021-11-30 Thread Basil Latif
Hello, I have been working diligently to call the Local Services Ads API in Google Sheets. I am getting this response back: Exception: Request failed for https://localservices.googleapis.com returned code 403. Truncated server response: { "error": { "code": 403, "message": "You do not have acc