Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

121
Visualizações
Find Total Ad Account Adspend - Facebook Graph API Explorer

I am using the Facebook Graph API Explorer to try and find the adspend for a specific ad account the user has selected. I'm building a dashboard that pulls in facebook ad spend leveraging the Marketing insights API.

The issue I'm running into this is: How do I allow for the user to choose the ad account they would like to pull data from?

I can easily find all the ad accounts associated to a user via the /me/adaccounts endpoint. That returns an object like so:

"data": [
    {
      "account_id": "16730431364321",
      "id": "act_16730431312239172"
    },
    {
      "account_id": "181543525843374",
      "id": "act_181738765443374"
    },
    {
      "account_id": "393007654523994",
      "id": "act_01923007974523994"
    }
  ],

However, I don't know which of these accounts the user wants. When I tried the "Page Access Token", that prompted the user to select the page they want to give permissions to. However, it appears the Page Access Token is intended for managing Facebook pages and not add accounts.

Reading through the Docs, this looks like the endpoint I want to hit /{ad-account-id}/insights. It just begs the question, how do I allow the user to select the ad account the want to pull data from?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda