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
ref:_00D1U1174p._5001UV0EUv:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/_RYOx000000000000000000000000000000000000000000000Q5HY2X00NByHFmhNTDqAwURJDIt_4g%40sfdc.net.