I've been using the following GAQL to retreive report data from geographic_view on daily basis for months, and it was working fine. But today I found some spends are missiong, after I checked step by step, I found some spends data is missing because that these special ADs is not based on ad_group, and they are only based on campaign, when I omited
ad_group.id and
ad_group.name from the GAQL, it could response all spends back. but I need ad_group info for later data processing, I gave many trys on this issue, and willing to find a single GAQL query to retrieve correct spend data with same dimensions, but I could not find a way to do it. Could somebody tell me a right way to do?
SELECT
segments.ad_network_type,
segments.date,
segments.device,
geographic_view.country_criterion_id,
customer.descriptive_name,
campaign.app_campaign_setting.app_id,
campaign.app_campaign_setting.app_store,
metrics.clicks,
metrics.cost_micros,
metrics.impressions
FROM geographic_view
WHERE
segments.date = '{date}'