Accessing enums in Google.Ads.GoogleAds.V11

32 views
Skip to first unread message

Bruce Axtens

unread,
Oct 26, 2022, 5:38:57 AM10/26/22
to Google Ads API and AdWords API Forum
I have code running the following snippet
```
                    PagedEnumerable<SearchGoogleAdsResponse, GoogleAdsRow> searchPagedResponse =
                        googleAdsService.Search(request);

                    foreach (GoogleAdsRow googleAdsRow in searchPagedResponse)
                    {
```
Currently I'm serializing the googleAdsRow to JSON and back again so that I can programmatically access the values. There's probably a much better way but I haven't figured it out yet.

When I'm in Visual Studio's debugger I can access the values in googleAdsRow by entering things like `googleAdsRow.Customer.Id`. Fine, but suppose I'm passing in a string describing that path. How do I evaluate the contents of googleAdsRow so as to access Customer's Id and Campaign's Id and AdGroupAd.PolicySummary.ReviewStatus?

-- Bruce

Google Ads API Forum Advisor

unread,
Oct 26, 2022, 10:54:35 AM10/26/22
to bru...@searchsmart.com.au, adwor...@googlegroups.com
Hi Bruce,

Thank you for raising this concern to the Google Ads API Forum.

With regard to your concern, upon checking your provided codes, it appears that this is more related to the client libraries so our team cannot provide support as it is outside of our scope already. With this, you may reach out to the author of your client library via one of the github issue trackers below:
 
Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2foIYG:ref
Reply all
Reply to author
Forward
0 new messages