Please be informed that it is possible to create a Google Ads script that sets bids at the product subgroup level based on search impressions over the past 7 days. I would recommend you refer to the guides Shopping campaigns, Bidding and the sample example to get more information on how Google Ads scripts let you manage bidding for your campaigns.
I hope this helps! Feel free to get back to us in case of any further queries.![]() |
Google Ads Scripts Team |
[2025-09-18 13:02:50Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u6xCx:ref" (ADR-00333109)
![]() |
Google Ads Scripts Team |
[2025-09-18 17:45:47Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u6xCx:ref" (ADR-00333109)
Hi,
I could see that you are using a “adGroup.productGroups()” method in the script and the method doesn’t support “getType()”. I would recommend that you refer to the “AdsApp.ProductGroup” documentation for more information about the available methods. The condition “pg.getType() !== "UNIT"” cannot be used. Also it is only possible to set max cpc of a shopping product by using the method “setMaxCpc(maxCpc)” and “setCpc()” is not a valid method. I would recommend that you use the valid methods so that the script will work as intended.
I hope this helps! Feel free to get back to us for any further concerns.
Thanks,As mentioned earlier, you can't get the Impression Share metric directly at the product group level using Google Ads Scripts.
I hope this helps!![]() |
Google Ads Scripts Team |
[2025-09-24 14:44:59Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u6xCx:ref" (ADR-00333109)