I would like to pull my Account structure from GA4 in bulk. I have found several scripts but nothing works perfectly (info would be, account title, property ID & Stream ID).
Google provides a script for GA3 but not for Ga4 > App script sample
I have found this one but the code in the answer was still not working + has a max cap of 50 accounts. While mine has more than 200. > Pull List of GA4 Properties Using Google Analytics Admin API and App Script.
An output report would be really nice.
A big plus would be that it export also in a google sheets document. I saw something similar in stack overflow > GA4 | Google Analytics Admin API | Apps Script
Because my Javascript skills are only reading and some copy/pasting, I am not able to fix this problem by myself.
Could someone help me, please? Thanks in advance!
I have tried to find all the documentation in that way people understand what I want to create and where to find the documentation.