Hello there,
Im querying google ads api and need to save results as json. What is the 
best way to convert GoogleAdsRow type into json?


The result of the google ads api call is GoogleAdsRow that looks like this:

campaign {
  resource_name: "customers/321/campaigns/123"
  id {
    value: 123
  }
  name {
    value: "Campaign Name A"
  }
}
metrics {
  clicks {
    value: 711
  }
  impressions {
    value: 2662
  }
}
segments {
  device: DESKTOP
  ad_network_type: SEARCH
  date {
    value: "2019-03-01"
  }
}

Instead of campaign, it can be adgroup, keywords, etc.
What is the best way to convert this kind of data to json?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/36dfac7b-4885-4aac-9833-97c17517f9c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to ... Alexander Belozerov
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... Rahul Kumar
      • ... 'UK Analytics' via AdWords API and Google Ads API Forum
    • RE... Google Ads API Forum Advisor Prod

Reply via email to