我想将我的facebook广告数据显示给Google大查询,请尝试使用此查询
SELECT campaigns.name AS nama_campaign, (
SELECT SUM(ads_insights.impressions)
FROM rplus_basic.ads_insights
JOIN rplus_basic.adsets ON adsets.id = ads_insights.adset_id
WHERE ads_insights.campaign_id = campaigns.id
AND adsets.campaign_id = campaigns.id
AND ads_insights.date_start >= '2019-06-08' AND ads_insights.date_start <= '2019-06-09'
)
FROM rplus_basic.campaigns
它工作正常,但是当我更改日期时
AND ads_insights.date_start >= '2019-06-12' AND ads_insights.date_start <= '2019-06-13'