Access crash information

I am trying to access FB Audience Insights through the Graph API, similar to what is shown in Business Facebook ( https://www.facebook.com/business/news/audience-insights ).

This seems to be possible, as described on the Graph API documentation page here .

I saw some similar questions about this, but there seems to be no clear answer, so I decided to write a new one.

What I have:

  • calling me/adaccountsI get all the accounts of the ads - accounts are successfully returned
  • calling <adAccountId>/customaudiencesI get a user audience for each account - user audiences return successfully
  • calling <customAudienceId>?fields=fields=approximate_count,data_source,name,pixel_id,time_content_updatedI receive certain information about a certain audience - successfully returns
  • If my understanding is correct (probably not), I should be able to get an audience with the user ID of the audience, but I can not figure out how to create a URL-address specified in the documents ...?fields={fieldname_of_type_AudienceInsightsQuery}. I'm interested in all the glitches, but I'm glad to start with demographic information, so I think something like this ...?fields=age_by_gender. But as I said, I'm stuck with what appears instead...
+4
source share

Source: https://habr.com/ru/post/1669711/


All Articles