Hi Floyd,
Thank you for reaching out. Unfortunately, the Google Ads API could not provide reports with CSV format. To check what you can fetch from the returned response you could look into the response object to see what entities are available. You could also use the intellisense of your IDE to check the available options. One other trick is to look into the corresponding resource to discover what fields and metrics are exposed from the API. The workaround to convert returned results to CSV files is to convert the response object to CSV format using the Java libraries such as FileUtils.
Thanks and regards,
Xiaoming, Google Ads API Team
|
||||||
Hi Floyd,
Thank you for reaching out. If you would like to get all the fields of an entity in the response, you could consider using the get method such as CampaignService.GetCampaign(), this would return all the fields of a campaign. The difference between the get and the search or searchStream methods is that the get method returns all fields fully populated but the search and searchStream methods return just the fields you're interested in.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Floyd,
Thank you for reaching out. You could directly go to the specific resource you are interested in such as the campaign resource to look up the available methods that return the fields. One other way is what I had mentioned earlier that you could use the intellisense of the IDE to check the possible options for the resource.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Floyd,
Thank you for reaching out. You would be able to use the getStatus() from the campaign resource. Please follow the naming conventions from this code snippet to avoid errors.
Thanks and regards,
Xiaoming, Google Ads API Team
|
||||||