Hi All,
@Nils - Thank you for your insights on this.
@Andrea - I would agree that there isn't a method such as 'getImpressionsLostDueToRank()' which you may use in Google Ads Scripts. You may refer to Nils' previous response on how you may be able to retrieve an estimated percentage of impressions on the Search Network which can be done via Reporting. For an example on how to create a report, you may check this link.
Upon checking your script, it appears that you would like to check this field for a campaign seeing as you've implemented it within it's iterator. You may use the field metrics.search_rank_lost_impression_share using the campaign report type. In order to help you build the query you'd use, you can check the campaign report's query builder. If you would instead like to check for this field in keywords, then you may use the same field but using the keyword_view report type. You can check this link for the report type's query builder.
Let us know if you have any further clarifications.
Best regards,
![]() |
Google Ads Scripts Team |