Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Summary row for each day #1049

Open
Abdullahbutt3434 opened this issue Oct 9, 2024 · 0 comments
Open

Summary row for each day #1049

Abdullahbutt3434 opened this issue Oct 9, 2024 · 0 comments
Labels
question Further information is requested triage Need triage

Comments

@Abdullahbutt3434
Copy link

Hi I am working on Google Ads api integration I need help.
I want to pull the data from API for a month with a filter
My query
SELECT metrics.average_cpm, segments.date FROM campaign WHERE campaign.name like '%CT-SK Display%' AND segments.date >= '2024-09-01' AND segments.date <= '2024-09-30'

This query will give me multiple records for each date
e.g for 1 Sep, it gives me 2 campaigns and also gives metric value for each campaign here I want to get the total of the metric for that day
I tried Summary Row with the result but it gives me the total metric value for the whole date range not for one date range.

I need to show the data in the graph for each day even if the user applied the filter on it.
I was adding all the values for each campaign but for metrics like metrics.average_cpm or CTR, it gives me the wrong value because we cannot sum up the percentage.

Is there any method or any way to get the total of each date despite having multiple values per day?
screenshot of Data below

image

How I want to display
image

@Abdullahbutt3434 Abdullahbutt3434 added question Further information is requested triage Need triage labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested triage Need triage
Projects
None yet
Development

No branches or pull requests

1 participant