Hi,
I am new to Google Ads API and trying to show ads stats on my web page.My requirement is to show Add To Cart ,Purchase and Checkout action stats for deferent category like campaign and ads group. Below is code query I am using
$query = "SELECT
campaign.id, "
. "
campaign.name, "
. "segments.conversion_action "
. "FROM campaign "
. "WHERE segments.date BETWEEN '2019-01-01' AND '2019-12-31' "
. "ORDER BY segments.conversion_action DESC "
. "LIMIT 50";
After I execute this query I am getting empty response I have tried segments.conversion_action,conversion_action_category,segments.conversion_action_name but every time I got empty response
Also,if I do-not use any segment then I am able to name and id of campaign.I am not sure if I am doing anything wrong any help please.