Facebook Graph APi - Export & Import - facebook-graph-api

Currently, I am working with Ads Manager UI. It allows to export, update/change and then upload the campaign structure (using a CSV file). Is there a way to perform the same "Export & Import" functionality via the graph API?

Related

PowerBI Workspace cannot access Azure Synapse SQL Serverless Views

I am connecting to a SQL Serverless endpoint located in my Azure Synapse Account for my PowerBI Datasets. I am reading a SQL view that is composed of some parquet files in my data lake.
I am able to connect to the data fine when using PowerBI Desktop since it is using my Active Directory account. But now that I have the report published to a PowerBI Workspace online for other users in my organization I want to have it refresh the dataset daily without having to publish it myself.
Using the online refresh settings I am able to connect to SQL just fine using basic authentication (username/password) but it looks like when PowerBI renders the view it is also checking the credentials for the underlying datalake data which it does not have access to:
Microsoft SQL: Cannot find the CREDENTIAL 'https://mydatalake.dfs.core.windows.net/parquet/**', because it does not exist or you do not have permission. Could not use view or function 'dbo.MyView' because of binding errors.
What is the best way for me to give my PowerBI Workspace permissions to read this view (along with underlying datalake files)?
I'm also puzzled that in PowerBI Workspace I had options to schedule this data set but after a few failed attempts it now states:
You can't schedule refresh for this dataset because the following data sources currently don't support refresh:
And there is nothing after the ":" so now it appears I cannot attempt to connect anymore.
I have the PowerBI Workspace set as a linked service but that does not seem to help since I believe that is only for Synapse to use to connect to the workspace and not the other way.
I was toying with the idea of having Synapse copy the view data to a SQL database outside of Synapse so it can be shared more easily - but my preference would be to avoid this extra layer.

Connecting REST API to Tableau

I am trying to use REST API to connect data into Tableau Desktop. Which option do I select when choosing the datasource when opening Tableau Desktop? I have tested the API in Postman, and it successfully connects.
The REST API is not a data source that can be accessed from Tableau Desktop. To use the REST API you have to export the data from an API call to csv or other flat file. Then you can connect Tableau Desktop to that file. You can automate this using Python. You can also export directly from Postman. At the top of your results after you run your GET, download the file from here
I do strongly recommend you do this all in Python rather than Postman though so you can consume the json file much more easily with pandas. I would also recommend looking at tableauserverclient within Python rather than using the API directly. tableauserverclient is more limited than the API but will likely have the functionality you need.
Tableau cannot connect to REST API directly.
One way is to use Web Data Connector, BUT you have to build a web page for each REST API and paste the web page link in Web Data Connector.
Alternatively, you can use ETL tools that support extracting data from API and loading it to Tableau. (I personally recommend Acho. Its API connector is very useful)

Does google admin sdk have an API that allows you to add resources through CSV import?

I want to call the API of the admin sdk to create a resource function in my system.
Does google admin sdk have an API that allows you to add resources through CSV import?
I there is not an endpoint to do that.
What you can do is to use a Google API Client library (see the official ones) to interface with it, so you can use a library in your preferred language to read the CSV and then use one of that clients to add it to Google servers.

Connect Web API as a data source to power bi using authentication

I have azure web api app with number of web apis of type post/get to get data. these apis are having basic authentication (bearer token)
I want to use 2-3 APIs as a data source in power bi, so that I can use these APIs JSON response as a table.
In Power BI Desttop > Get Data > Web > add API URL with sample GET API method name, will work but then it is asking for authentication.
If I tried to put API Key, then it is saying: A web API key can only be specified when a web API key name is provided.
How to connect web api using authentication in power bi as a data source.
PowerBI web seems to currently have little or no support for connecting to data via webapi, or web queries generally.
PowerBI Desktop allows you to get data from the web. I have been able to access data from webapis managed by Azure API Management in two different ways:
Use Advanced rather than Basic in the From Web dialog box. Put the webapi query in the url, but add a header with name Ocp-Apim-Subscription-Key and put in as value the value of the api key.
Alternatively, instead of putting the api key in the header, with APIs managed by Azure API management, it seems you can add them to as a parameter to the apiquery, subscription-key=PutYourApiKey here.
However, I have found that although you can publish your data source or report to an online workspace, PowerBI online will give an error ("credentials not recognized" or similar) when you try and refresh the data! So as mentioned above, PowerBI online seems currently (Nov 2020) useless for connecting to WebApi data.

WSO2-APIM Analytics : Can we export raw data to excel or csv?

I am currently experimenting with WSO2 API Manager 2.0.0 Analytics features. I have question as following.
If I want to query raw data (not the summary data) from APIM Analytics is this the correct URL for the documentation about the API?[https://docs.wso2.com/display/DAS300/Analytics+REST+API+Guide]
Is there feature to export raw data from APIM Analytics table to excel or csv file without having to write program to call the provided API?
Thank you very much
Please find the answers below.
To configure analytics for APIM 2.0.0, you are using API Manager Analytics distribution as described in API Manager docs. The documentation that you refer is DAS 3.0.0 that gives you the DAS REST API to explore the data.
In API Manager analytics, it is using the RDBMS approach and you can use the Data Explorer in Management Console of API Manager Analytics distribution to explore data. It consist of some filters too.
After login to the API Manager Analytics, go to Manage > Interactive Analytics > Data Explorer to view raw data.
WSO2 API Manager do not have the capability of exporting raw data directly to CSVs. You can use SQL commands on tables of raw data to export them as CSVs.