Hi,
Are you referring to the
Keyword Planner feature that is available in Google Ads UI? If so, that is equivalent to
Generating Targeting Ideas in the AdWords API. The
TargetingIdeaService allows you to retrieve historical statistics for keywords (Average CPC, Monthly Search Volume, etc.) based on the phrases that you like to search. You may check this
guide for more information which includes
sample codes.
However, I could not comment on the Google Ads Scripts side as our team specializes only in AdWords API. I would suggest to post your issue on the
Google Ads Scripts Forum to know their insights on this.
Let me know if this is what you're looking for.
Thanks and regards,
Luis
AdWords API Team