On the Ad Manager at the Ad level, I am trying to get the dates where an Ad Started and Stopped.
So far, I am using Ad Insights in the API, but it only returns the query dates not the ones that the Ad was Active. So, it seems that it’s not part of the queryable fields.
While using the Power Editor I can see such dates Power Editor Shows Ad Starts Ad Stops
Is there any other way to get when a give Ad Starts and Stops, with the Ad ID for example?
Thank you,
H
2
Answers
I believe the only dates you can check are the
start_time
andend_time
on theAdSet
object, and this will give you the scheduled running time for an ad.This will not always give you days that the ad had delivery, as it’s possible to scheduled an adset, but leave it as paused.
There are multiple dates you can check, but non of them will give you exactly what you want. Because ad could go paused/un-paused multiple times, it means, that it is no possible to get start and stop of that.
Dates you can get:
(when ad was last time updated) dates.
Only idea i can suggest is to query insights for lifetime, spitted by days. In return you will get list of days when your ad was active and was generating statistic. If you ad was active for 5 days, but actual lifetime was 30 days you will get array with 5 items, so you can take first and last.
This logic is applied to any level: campaigns/adsets/ads.