google analytics API tables structure - api

I am trying to load data from google analytics through the API.
The data that I need is a list of all the landing page and the Facebook ad id (The pages are lunching from FB ad campaign).
In which tables i can find this data? I need to load it on a daily basis and to connect it to the cost data of FB.
Thanks, D.

Related

Missing Google Ad Campigns in BigQuery

App Engagement Campaigns that are present in the Google Analytics Interface are not present in BigQuery.
All other campaign data gets transferred to BigQuery.
Is there a specific reason for this behavior in the transfer job?
The transfer job only uses the Google Adwords v201809 version of the API.
App Engagement Campaigns were only added in the newer Google Ads API.
You will need to set up a connection the the new API in order to pull in that type of campaign (as well as a host of other ad types).

google analytics data API - Property ID

I am using google analytics data API. Making an API Call as listed here - https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries.
My question is how do I enabled google analytics Data API for an already existing project. I need access to specific property ID.
any information is highly appreciated.
You have to follow Step 1 (Enable the API) and Step 2 (Add service account to the Google Analytics 4 property) in your link. Then use your property ID called Measurement ID (i.e. G-XXXXXXXX) that you can find in Data Streams (selecting a Data Stream) in Google Analytics 4 Admin Panel.
Following google support link, you should first log into analytics.google, then in admin page .
then click on GA4 setup Assistant like the photo

How to Get UserId from Branch Analytics - Branch.IO

We have integrate Branch Analytics in our Android App (SDK App), we are passing unique userid while user signing up after installing. How we can get these Unique UserId from Branch Analytics.
You can export raw event data logs from Branch dashboard under the Daily Exports tab. These logs would contain the user Id set by you under the user_data_developer_identity field.
The analytics on Branch dashboard show only aggregate data and user-level data such as the user Id is not available from the dashboard analytics.
If you already use some other analytics platform then you can also export your data to those platforms by using Data Integrations.

Accessing Campaigns report in AdMob using Adsense API

I use Adsense API to access my AdMob account and generate reports. This is the main API request that I use:
https://www.googleapis.com/adsense/v1.4/accounts/accountId/reports
Documentation
The API offer many options for reporting, but what I need the most is the campaigns report, mainly to know the impressions and clicks of each campaign that I have in AdMob. This can be accessed from here:
The report of the campaigns can be accessed also inside Mediation report as they are categorized as "Ad source":
I have tried all the Metrics and Dimensions in this page to access the campaigns report, but it didn't work. The API doesn't seem to return any data that is related to the campaigns or mediation report.
I also looked for the data of AdMob campaigns by using Adwords API. After creating these campaigns in AdMob, they automatically appear in my Google Ads (AdWord) account. Here is a screenshot of my Google Ads account:
The campaigns in the screenshot above that were named AdMob Campaign were created inside AdMob, and the campaign that was named Google Ads Campaign were created inside Google Ads. However, when I request the campaign data using AdWord API, it returns only the campaigns that were created inside Google Ads (AdWord) account. So, even though the account shows them, the AdWord API doesn't return their data.
It is interesting that these campaigns appear in both AdMob and Google Ads accounts, but both APIs of these services are not returning their data. It seems that there is something missing somewhere.
Does anyone know how I can get the data of the Campaigns that were created inside AdMob? I appreciate any help.
Google finally introduced a new API for AdMob:
https://developers.google.com/admob/api
The new API can access campaign data using mediationReport.generate. Just make sure your dimensions include AD_SOURCE_INSTANCE to be able to access them.
Here are more data about the new API:
https://developers.google.com/admob/api/v1/reference/rest/v1/accounts.mediationReport/generate
I tested it today, and it is working well!

Obtaining data in Google Analytics session

I'm using Google Analytics on my website and I'm wondering if it's possible to make a Javascript call to GA to obtain certain information about the current visitor such as the persons current location.
Does GA have an on page API that allows to obtain sessions specific information?
Google Analytics does not provide data for single visitors (not via the API nor otherwise - this is a privacy thing) so the answer is no.
Besides most data in GA in drawn from the users browser anyway, so querying GA to get it would be an unnecessary roundtrip.
For location there a IP based services (for example ip2location.com) or the HTML5 geolocation API.