Re: Convert Google-Ads API GoogleAdsRow object to a dictionary or something useful to end up in a .CSV?

2022-02-21 Thread Poojitha Gandra
Hi, I'm trying to get the googleadsrow into a json or a csv file. The below code doesn't seem to be working. stream = ga_service.search_stream(customer_id=customer_id, query=query) serializable_assets = [proto.Message.to_dict(asset) for asset in stream] df = json_normalize(serializable_assets)

Re: Convert Google-Ads API GoogleAdsRow object to a dictionary or something useful to end up in a .CSV?

2020-03-03 Thread Google Ads API Forum Advisor Prod
Hello, I checked internally with our team for the feature request to retrieve the data in .csv format via API and found that this feature is not intended to be provided in future releases. You could use language-level utilities to create a CSV file, if necessary. Please let us know if you have

Re: Convert Google-Ads API GoogleAdsRow object to a dictionary or something useful to end up in a .CSV?

2020-03-02 Thread Google Ads API Forum Advisor Prod
Hello Pete, Thank you for writing to us regarding your concern. I will update the existing feature request with your concerns to retrieve the data in .csv format via API. Please keep an eye on our blog post for future updates and announcements related to this and let us know if you have any

Re: Convert Google-Ads API GoogleAdsRow object to a dictionary or something useful to end up in a .CSV?

2020-03-02 Thread Pete Lavetsky (AdWords API Guru)
James, Look into the getAllFields method on the GeneratedMessageV3 object for each object returned within each GoogleAdsRow. Relatively straight forward exercise to map back to your query string. Google Reps: A toCSV option would be greatly appreciated and make everyone's lives easier. Header

Re: Convert Google-Ads API GoogleAdsRow object to a dictionary or something useful to end up in a .CSV?

2020-01-20 Thread James Nixon
The documentation states that using this method is not practical for real-world application.: [image: image.png] Is there a way to convert the googleadsrow object to .csv using other logical methods? On Fri, Jan 17, 2020 at 4:18 PM Google Ads API Forum Advisor Prod <

RE: Convert Google-Ads API GoogleAdsRow object to a dictionary or something useful to end up in a .CSV?

2020-01-17 Thread Google Ads API Forum Advisor Prod
Hello James, With regards to your concern, if you are using our client libraries, it is not possible to retrieve the data in .csv format. However, as an alternative you could use the cURL operation to get the output in JSON format which can be further converted to csv by implementing the logic