Thanks for the answer. If I select only rows where impressions are greater than zero, then, yes, the API and UI data seem to match.
But can't we also find a way to remove this constraint? What if I would also like to select rows where impressions are zero? I understand that certain resources or segments may segment the data, but this also happens in the UI. So, I suppose that there must be a way to reproduce exactly the UI report without having this constraint. Thanks. On Tuesday, January 10, 2023 at 7:45:58 AM UTC+1 adsapi wrote: > Hi Nelson, > > Thank you for the reply. > > Please note that when adding some segments, the metrics in the summary row > may decrease or increase, and upon checking it, I can see that you have > selected segments fields. Please note that ad_group > <https://developers.google.com/google-ads/api/fields/v12/ad_group> and > campaign > <https://developers.google.com/google-ads/api/fields/v12/campaign> are > segmenting resources of landing_page_view > <https://developers.google.com/google-ads/api/fields/v12/landing_page_view>. > Upon replicating it on my end, I can see that it has matched results when > you remove the segments field both in the UI and API or if you filter the > impressions greater to 0. You may try the sample below query to check it > with your end: > > *“SELECT landing_page_view.resource_name, > landing_page_view.unexpanded_final_url, campaign.id <http://campaign.id>, > campaign.name <http://campaign.name>, ad_group.name <http://ad_group.name>, > ad_group.id <http://ad_group.id>, campaign.status, ad_group.status, > metrics.speed_score, metrics.mobile_friendly_clicks_percentage, > metrics.clicks, metrics.impressions, metrics.ctr FROM landing_page_view > WHERE segments.date BETWEEN '2022-10-01' AND '2022-11-12' AND > ad_group.status = 'ENABLED' AND campaign.status = 'ENABLED' and > metrics.impressions>0 ","return_total_results_count" : true* > > Best regards, > [image: Google Logo] > Heidi > Google Ads API Team > > > ref:_00D1U1174p._5004Q2h3nbv: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 "Google Ads API and AdWords 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/c872de24-a663-4e7b-b6e2-ac2b928cbc24n%40googlegroups.com.
