Brisbe
Brisbe

Reputation: 1628

Parameters on Nested Facebook API Request?

I am trying to make a call to Facebook using their Graph API Explorer, to try and find the following information about an ad:

  1. Its adset,
  2. Its branded page (if any),
  3. Insights about its 100% video views.

To do that, I have constructed the following URL:

act_1234/ads?fields=id,adcreatives{branded_content_sponsor_page_id},insights{video_p100_watched_actions}&limit=1000

However, when I receive back the insights list, it is giving me just one row, for the last month. If I was making a call directly to insights, I would add the 'timeincrement=1' parameter to separate this out by day. Is there a way to add second-tier parameters to a nested query like this?

Upvotes: 3

Views: 1040

Answers (1)

user11475417
user11475417

Reputation: 96

You can pass parameters to nested queries this way:

act_1234/ads?fields=id,adcreatives{branded_content_sponsor_page_id},insights.fields(video_p100_watched_actions).date_preset(lifetime).time_increment(1)

Upvotes: 8

Related Questions