I've been trying to extract the same Optiscore uplift score as the Google Ads UI but it hasn't been successful. With the query below, I only seem to get the account-level optiscore uplift not the breakdown by campaign + recommendation type. According to this
devsite, I assume the campaign-level of metrics.optimiation_score_uplift is retrievable by segments.recommnedation_type.
There are optimization-related metrics available for customer and campaign reports
To group and order the returned recommendations, you can segment both of these metrics by recommendation type using segments.recommendation_type in your query.
Could you help?
--
Query
select
campaign.adversiting_channel_type,
campaign.status,
metrics.optimization_score_uplift,
metrics.optimization_score_url
from campaign
where
campaign.status = 'ENABLED' AND metrics.optimization_score_uplift > 0