This is the response from http module. I want to finally update google sheet with multiple rows .each having ad id, creative id,video id&image url. Please help
I am getting a parsed response from server. When I use map on the data response in set variable module , it gives me only ad id.
formula for set variable module-
{{map(keys(21.data); “ad_id”; item); map(keys(21.data); “body”; first(get(21.data; item + “.creative.asset_feed_spec.bodies”)))}}
It doesn’t look like its an array though, map() wont work. This looks like a collection of collections. So you can either use the values directly or change the top most collection in an array first.
So you want to create an array with less items inside?
The map() function wont work here, since it creates an array with one item inside. You can try with an iterator followed by an array aggregator or aggregate to JSON module to rebuild the array with only the items you want in it.