Hi Ananth,
Thanks for reaching out. Please refer to this code example for retrieving data on the campaign level. You could then replace the query in the code to generate the report for the campaigns. You could include the fields and metrics you are interested in in the fields() methods below. You would also need to specify the clientCustomerId in the ads.properties file.
// Create query.
ReportQuery query =
new ReportQuery.Builder()
.fields(
"CampaignId",
"CampaignName"
"Cost",
"Conversions",
"ConversionValue",
"Impressions",
"Clicks"
)
.from(ReportDefinitionReportType.CAMPAIGN_PERFORMANCE_REPORT)
.where("CampaignStatus").in("ENABLED")
.during(ReportDefinitionDateRangeType.CUSTOM_DATE)
.during(new LocalDate("2020-01-01"), new LocalDate("2019-02-10"))
.build();
Please let me know if you have any further concerns.
Thanks and regards,
Xiaoming, Google Ads API Team