Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Get report for a time period, not a single day. #23

Open
n1vekk opened this issue Sep 13, 2021 · 1 comment
Open

Get report for a time period, not a single day. #23

n1vekk opened this issue Sep 13, 2021 · 1 comment

Comments

@n1vekk
Copy link

n1vekk commented Sep 13, 2021

Hi.
Im getting the report with this code snipped. $request = $client->requestReport(
"campaigns",
array(
"reportDate" => "20210815",
// "campaignType" => "sponsoredProducts",
"metrics" => "campaignName,impressions,clicks,cost"
)
);`

Is there any way to get report for a time range, for example last 7 days or last 30 days?
Thank you.

@n1vekk n1vekk closed this as completed Sep 13, 2021
@n1vekk n1vekk reopened this Sep 13, 2021
@AdsAPIPM
Copy link

Hi
The ads api does not support time ranges at the moment. You need to call the api per day. Is there a reason you prefer time ranges vs calling the API per day?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants