Hi,
Thank you for reaching out to the Google Ads Scripts support team.
I would suggest you to use the Source code available in the Google Ads Scripts solutions tab for account summary report. Kindly change the reporting version in the line 58 as ‘v16’ or else comment out the ‘apiVersion’ line to set it to the latest version.
I hope this helps. If the issue still persists even after following the above steps, Kindly get back to us with the below details.
![]() |
Google Ads Scripts Team |
Hey dear Scripts Team
i can only replay to all which is frustrating..
unfortunately I can’t use the
source code directly as we need to make customization to the reporting format
and metrics.
You can find the required details below:
Regards
CONFIG = {
// URL of the report spreadsheet. This should be a copy of
// https://docs.google.com/spreadsheets/d/1gYLXtDK93lWoTe3OBKvTlfcc7L_qHJFgWU9N6HwhZtU/copy
'spreadsheet_url': 'https://docs.google.com/spreadsheets/d/1Jk-EKK8NGnjV5NbMKzADcWPsqxTriyz7J-hgLZRm0Wc/edit?gid=0#gid=0',
// More reporting options can be found at
// https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp#report_2
'reporting_options': {
// Comment out the following line to default to the latest reporting
// version.
'apiVersion': 'v16'
},
/**
* To add additional fields to the report, follow the instructions at
* https://developers.google.com/google-ads/scripts/docs/solutions/account-summary#extending_the_report_optional
*/
'report_fields': [
{'columnName': 'metrics.cost_micros', 'displayName': 'Cost'},
{'columnName': 'metrics.average_cpc', 'displayName': 'Avg. CPC'},
{'columnName': 'metrics.ctr', 'displayName': 'CTR'},
{'columnName': 'metrics.search_impression_share', 'displayName': 'Search Impr. share'},
{'columnName': 'metrics.impressions', 'displayName': 'Impressions'},
{'columnName': 'metrics.clicks', 'displayName': 'Clicks'}
]
};
const SPREADSHEET_URL = CONFIG.spreadsheet_url;Hi,
I would like to inform you that “Exception: You do not have permission to access the requested document.” the error in the script our team created is regarding the spreadsheet access. I would suggest that you execute the script after defining the CONFIG variable in the code at your end and get back to us if the issue still persists.
This error typically occurs when the email address of the account that you’re using to authorize and execute the Google Ads Script does not have write/editor access to the used spreadsheet (or another Google Drive document) in your script.
Solution:
Use the same email address to authorize and run the Google Ads Script that also has write/editor access to the used spreadsheet/document.
More details: https://nilsrooijmans.com/google-ads-scripts-faq/exception-you-do-not-have-permission-to-access-the-requested-document/
Hope this helps,
Nils Rooijmans
https://nilsrooijmans.com
See my Google Ads Scripts FAQ to avoid the same mistakes I made: https://nilsrooijmans.com/google-ads-scripts-faq/
Hi,
@Nils - thanks for providing a solution to the user.
I would suggest that you go through the solution provided by Nils and get back to us if you still face any issues.