Hi,
I used this link https://developers.google.com/google-ads/scripts/docs/solutions/ad-performance to add the template to my script.
I changed the URL and added my email address as instructed.
However, I'm encountering an error when I start the test.
Hi Daniel,
Thank you for reaching out to the Google Ads Scripts support team.
I would like to inform you that the error is related to defining an invalid spreadsheet or condition of the if statement to throw that error. Make sure that the last if condition in the code is “if (spreadsheeturl == 'YOUR_SPREADSHEET_URL')”. You might have added your spreadsheet url in this line. You have to add spreadsheet url and email address only in the “CONFIG” object and no need to add it in the if condition.
I hope this helps! Kindly get back to us with the below details if you still face any issues.
![]() |
Google Ads Scripts Team |
Hi,
@Nils - Thanks for your input.
@Daniel, I would suggest that you follow the inputs and kindly get back to us if you still face any issues.
--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/ece85e05-b9c6-47b8-8358-5c65615b93e2n%40googlegroups.com.
Hi,
Thank you for reaching out to the Google Ads Scripts support team.
Kindly ignore my previous response.
I would like to inform you that the error “MutateError.UNSPECIFIED: Specified version 'v10' not supported” you are getting is due to the ‘apiVersion’ you are using in the script. Kindly change your ‘apiVersion’ in the code from ‘v10’ to ‘v17’ to resolve this error.
--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/kzTiQ000000000000000000000000000000000000000000000SJJED300TQVCF-SfRtSLa1sSGYmlXg%40sfdc.net.
// Compute data.
const fields = FIELDS.join(",");
const results = AdsApp.search(`SELECT ${fields} FROM ad_group_ad ` +
`WHERE metrics.impressions > 0 AND ` +
`segments.date DURING LAST_7_DAYS`, {apiVersion: 'v17'});
If you face any issues, please provide us with the following details:
| 13/9/2024 11:46:59 | Ca: QueryError.UNRECOGNIZED_FIELD: Unrecognized fields in the query: 'ad_group_ad.ad.discovery_carousel_ad.headline', 'ad_group_ad.ad.discovery_multi_asset_ad.headlines'. at outputSegmentation (Code:212:14) at main (Code:118:3) |
--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/i7HgfuJfhhU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/kNElv000000000000000000000000000000000000000000000SJPFNM00KG8mmvqUT_mEUWKVZZcUsQ%40sfdc.net.