HI Google Support Team,
This conversation is ask help for how to get CriterionId(segments.keyword.ad_group_criterion in Google Ads API) in Google Ads API.
we have Google AdWords query as below need migrate to Google Ads API:
select
Date
, CriterionId
, Id
, AdGroupId
, CampaignId
, AccountCurrencyCode
, Cost
, Clicks
, Impressions
, Device
, Interactions
, InteractionRate
from ad_performance_report
and Google Ads API query transfer as below:
select
segments.date,
segments.keyword.ad_group_criterion,
ad_group_ad.ad.id,
ad_group.id,
campaign.id,
customer.currency_code,
metrics.cost_micros,
metrics.clicks,
metrics.impressions,
segments.device,
metrics.interactions,
metrics.interaction_rate
from ad_group_ad
WHERE segments.date DURING LAST_7_DAYS
By data comparison we found if include segments.keyword.ad_group_criterion, in select clause, it will led some records could not download. once we removed this field from select clause the data volume is very close between the data download from AdWords and Ads API.
As CriterionId is very important field we will used in downstream logic we need download this field as Google AdWords API. for my understanding field segments.keyword.ad_group_criterion should query from keyword_view? if yes could you please help guide how to map this field back to data feed download from ad_group_ad?
Thanks
Hao