I am using the code below to find the ad clicks using the R Package but it shows 0 Google Ads clicks, although I can see in the GA4 property that the clicks are there.
ga_data(
property_id,
metrics = c("publisherAdClicks"),
dimensions = c("sessionCampaignName", "adSourceName"),
date_range = c("2022-09-05", "2022-09-13"),
limit = -1
)
I have not found any other metric through which I can retrieve this data, so do you have any idea what the problem is?