Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Fetching metrics of a campaign only returns the metrics of the first adset

Fetching metrics of a campaign only returns the metrics of the first adset

I'm trying to make a request to get the metrics of a campaign, where the metrics of the ad sets are aggregated. However, the response is only returning the metrics of the first ad set.

 

The campaign has 2 ad sets, 1 is ACTIVE and the 2nd one is COMPLETED.

 

The request I'm trying to make to fetch the campaign metrics is the following:

POST to /adAccounts/071cf05d-7f27-4ab4-9581-d2638624f7f4/report

BODY:

{
dimensions: [
"CAMPAIGN",
],
fields: [
"SPEND",
"CLICKS",
"CTR",
"IMPRESSIONS",
"SERVE_FREQ",
"SERVE_REACH",
],
filters: {
campaign_ids: [
"dc87071e-9c31-4418-b4c0-fda44350c299",
],
report_datetime_range: {
report_start: "2022-02-08T00:00:00Z",
report_end: "2022-12-31T00:00:00Z",
},
},
}

 
I have also tried fetching the metrics by ADSET dimensions, but it only returns the metrics of the ACTIVE ad set.
 
Therefore, I checked just in case, if the endpoint to return the ad sets of a campaign returns 2 ad sets, and it does.
 
For some reason, the metrics of the 2nd (COMPLETED) ad set are being ignored.
Reply
0 Replies

Suggested posts