Hi, I'm trying to write a small script for my Google Shopping Ads campaigns so that when a product group gets 100 clicks and its conversion value is 0, it will be excluded.
I'm a newbie to programming and I'm having trouble with the second condition: conversion value < 0, because I haven't found a method available to retrieve values like conversion value, conversion or cost at the Product Groups level. Can someone help me find a method? Here is the code, but only with the first condition: function main() { const productGroups = AdsApp.productGroups() .withCondition("metrics.clicks > 100") .Achieve(); for (const productGroup of productGroups) { productGroup.exclude(); } } Thank you! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/1ed4bc31-6c5b-4d3c-893b-4272e10e2312n%40googlegroups.com.