Is there any way to get source info from Google Analytics for specific Client ID by API?
Like I can get it using GUI in GA - https://prnt.sc/rdfpo6
PS. Found needed info - https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/userActivity/search
The Client ID isn't exposed via the API (same with the User ID), so instead you want to record the Client ID as a custom dimension:
https://www.simoahava.com/analytics/improve-data-collection-with-four-custom-dimensions/#2-client-id
And then you can query it via the API using ga:dimensionXX where XX is the dimension index:
https://ga-dev-tools.appspot.com/dimensions-metrics-explorer/#ga:dimensionXX
Related
We have a channel oauth token from a channel owner and we are able to use the YouTube Analytics API to get details, including revenue, on the channel/videos.
I would like to use the YouTube Reporting API to create a report that we need daily and not use the more resource limited Analytics API but I am not able to see the larger list (43) of report types that include system managed reports with revenue, such as content_owner_ad_revenue_raw_a1 and content_owner_estimated_revenue_a1 with any value for the onBehalfOfContentOwner argument in a service.reportTypes().list API call.
I can see a list of 43 available reports when using a CMS oauth token, passing the partner_id value as the onBehalfOfContentOwner.
I can not find a working value when using a channel oauth token, any value I tried (oid for the video for example) results in an error response.
When I use None as the value for onBehalfOfContentOwner I see a different list (for both cms and channel oauth) of 18 reports that do not include any revenue data.
What value should I use with a channel oauth to get the revenue information from Reporting API, similar data that I am able to get from Analytics API using the same token?
Snippet from the list of 43 report types that I see when using cms partner_id on a CMS level is attached.
The list of 18 report types that I get when I pass None to onBehalfOfContentOwner is also attached (the same list for cms and channel oauth).
I tried the following:
service.reportTypes().list(
onBehalfOfContentOwner=oid,
includeSystemManaged=True
).execute()
returns error, any other value I could think of instead of oid returns error
with
service.reportTypes().list(
onBehalfOfContentOwner=None,
includeSystemManaged=True
).execute()
I get a list of 18 report types that doesn't include revenue information, also there is no systemManaged column.
We are using Informatica Intelligent Cloud Services (IICS) to connect to Workday (WD) and retrieve the information via API.
We are trying to get the bank details for a specific set of employees via the Cash Management ---> GET_PAYMENT_ELECTION_ENROLLMENTS
However there is no REQUEST CRITERIA available for this for us to filter on say Nationality or City.
Is it possible to have a API code with request criteria for this operation.
Thanks
Anand
There's not currently Request Criteria, so you would need to build a Report and make a REST call.
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
This may look a dumb question to you. However, I am looking for a way to fetch API Connect internal data i.e. number of invocations of APIs exposed via API Connect , by which client etc. I know, there are individual dashboard/chart within API Connect. But, I want to build a explicit tool to monitor the same leveraging API Connect data.
is it at all possible ?
Thanks in advance
See the KC at https://www.ibm.com/support/knowledgecenter/SSMNED_5.0.0/com.ibm.apic.apionprem.doc/rapim_analytics_apieventrecordfields.html which will explain how to get the info you want.
Procedure
To obtain analytics data for a Catalog and API provider organization, issue the following call:
GET /v1/orgs/{orgId}/environments/{envId}/events
where
{orgId} is either the URL path segment or the ID of the API provider organization.
{envId} is either the URL path segment or the ID of the Catalog.
The following example shows a call that is issued from a browser and then shows all the event fields in the corresponding response. The call is issued to return two analytics events (limit=2), and includes a next parameter for requesting further events.
https://api-manager-server.company.com/v1/orgs/macs-shack/environments/sb/events?next&limit=2
Where do I find my API ID, as opposed to the API secret or the API Key, when using it in a Chargify Direct integration?
The description of the Direct form is in https://docs.chargify.com/chargify-direct-introduction, but I can't find clear indication of where the API ID is obtained from.
Thanks.
Chargify Direct uses API v2 - here's how you generate both an ID and a key:
http://help.chargify.com/integrations/api-keys-chargify-direct.html