Re: Serializing GoogleAdsRow in C#

2022-04-14 Thread Zweitze
Your code shows a different problem than your description. About your code: Your first post shows variable "result" is a List. But in your second post you access that variable as an array. About dynamic fields: Look into .net reflection

Re: Serializing GoogleAdsRow in C#

2022-04-13 Thread axtens
So I've been able to retrieve the fields using FieldMask. Is it possible to programmatically access the fields in the GoogleAdsRow? For example, from the "Immediate Window" in VS2019 where result contains a list of GoogleAdsRows: ``` result[0].CustomerClient.ClientCustomer "customers/7212153394"

Re: Serializing GoogleAdsRow in C#

2022-04-13 Thread Zweitze
When you request a report, you'll reserve a response object with a few members, among that "Results" which is a list of returned GoogleAdsRows. Among the other members you will find "FieldMask" which contains a list of names of the requested fields. With the FieldMask list, you can determine whi

Serializing GoogleAdsRow in C#

2022-04-13 Thread axtens
Having built up a list of GoogleAdsRow into ``` var result = new List(); ``` how can I now get a list of all the fields in each row so as to build up TSV report, with headings at the top and the columnar data below. -- Bruce -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also