Git Product home page Git Product logo

Comments (4)

spijs avatar spijs commented on May 18, 2024

Update:
When I limit the 'insights' to all only (not the active ones), everything seems to work.

from pbiconnectors.

GuidoPinaresCh avatar GuidoPinaresCh commented on May 18, 2024

Could you resolve it?, i get this two errors
first when i try to load into power bi

image

and second when im trying to compile it

image

Help please!!

from pbiconnectors.

mbilling avatar mbilling commented on May 18, 2024

Try and change the function
// Navigation entry point
[DataSource.Kind="FacebookAds", Publish="FacebookAds.Publish"]
shared FacebookAds.Ads = (optional url as text, optional params as record) =>
let
key = Extension.CurrentCredential()[access_token],
seed = baseUrl & "me/adaccounts?" & Uri.BuildQueryString([access_token=key,fields="id,name",limit="1"]),
pagedResult = FacebookAds.GetPagedData(seed, {}),
table = FacebookAds.AdAccountsToNavigationTable(pagedResult)
in
table;

to

// Navigation entry point
[DataSource.Kind="FacebookAds", Publish="FacebookAds.Publish"]
shared FacebookAds.Ads = (optional url as text, optional params as record) =>
let
key = Extension.CurrentCredential()[access_token],
seed = baseUrl & "me/adaccounts?" & Uri.BuildQueryString([access_token=key,fields="id,name",limit="1"]),
pagedResult = FacebookAds.GetPagedData(seed, {}),
table = FacebookAds.AdAccountsToNavigationTable(pagedResult)
in
seed;

Check what you get from FB by pasting the URL into a browser
I looks like multiple of the same account - I haven't encountered this before
You would need to distinct the list returned if it contains duplicates on the same ad account

from pbiconnectors.

GuidoPinaresCh avatar GuidoPinaresCh commented on May 18, 2024

from pbiconnectors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.