Hello Ajay,
Thanks for reaching out.
You can be able to schedule scripts in general by setting it in the Frequency tab. You may check this Ads help center article in order for you to do so, just kindly navigate to the topic Scheduling a script within the article.
That being said, I'd recommend checking our guide on Reporting so you're able to have information on how to create a report in Google Ads Scripts. It appears that you are aiming to create a report at the campaign level, which you may do so by using the campaign report type. Kindly see my insights on the metrics you're looking for:
- In order to get the cost, you'd need to include the metric metrics.cost_micros; please take note that this is in micros and would need to be divided by 1000000.
- For the auction insights impression share, you could use metrics.auction_insight_search_impression_share, however, if this is metric is not relevant to you, you could check the documentation on the campaign report type to check which metric from the Auction Insight report you're looking for.
Lastly, I would recommend to check the following as they are helpful links when creating the report:
- campaign Query Builder - Helpful for building your query. You can make use of this in order to properly structure your filter for the campaigns you're looking for, as I have observed you're only looking to pull specific campaigns.
- Query Validator - If you're building your query from scratch, this tool would help you validate if your query is properly structured.
- exportToSheet(sheet) - If you'd like to export the results to an external sheet, kindly check this guide.
Let us know if you have any questions or clarifications.
Best regards,
 |
Google Ads Scripts Team |

ref:_00D1U1174p._5004Q2jXfeW:ref