Google Analytics Retrieve Starred Profiles via API - google-analytics-api

Is it possible to retrieve a list of ga_account_id and ga_profile_id from only the 'starred' profiles by my analytics account programatically?
I've read through the API docs and can't see how this is possible.

You can do this with the Management API . I strongly recommend the account summary's report as its just one request and will return everything you need.
GET /management/accountSummaries

Related

Is it possible to make an API call to link a GA4 and UA property in a Google Analytics account?

I am migrating to GA4 from Universal Analytics and am planning to create a script to make API calls to create the new GA4 properties as we have many properties.
However, in order to prevent Google from creating a duplicate property come March.
I would either need to connect the new GA4 property to its UA counterparts
or
Turn off the flag "Automatically set up a basic Google Analytics 4 property"
Is there a way to do either of these through an api? Or is the only option to do this manually through the Google Analytics UI?
I experimented with the apis available for property management and account management through the current api reference(v1beta) and was unable to find an api solution
https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1beta/properties

How to access report data in a "App + Web" google analytics property using The Google Analytics Reporting API v4?

I have a Web+App google analytics property, and I need to access report data using The Google Analytics Reporting API v4. In the docs, the field viewId is required to build a ReportRequest object. But, in the new google analytics Web+App feature, you cannot create a view from the property.
For GA4 Properties, you need to use the Google Analytics Data API v1. See the devsite: https://developers.google.com/analytics/trusted-testing/analytics-data
App + Web Properties were recently renamed to GA4 Properties. See the blog post: https://blog.google/products/marketingplatform/analytics/new_google_analytics/.
The Google Analytics Reporting API v4 (https://developers.google.com/analytics/devguides/reporting/core/v4) accepts numeric view identifiers in report requests. GA4 Properties do not have views, and there is not a way to create views in those properties.
Unfortunately Reporting API v4 doesn't support App+Web properties for the exact reason you stated - the API only understands view ID's and not property ID's.
Looking at the documentation, it's noted there that it doesn't support your setup, however, they do have a tester program that allows you to test and provide feedback when it comes to new reporting features for properties like the one you use.
https://developers.google.com/analytics/devguides/reporting/core/v4

How can i do a PUT with an access key into a google storage bucket?

Is there way to do a PUT or POST into a Google Storage bucket with an API key
In the api explorer there is the ability to test this out with OAUTH and the API key, but the explorer doesn't allow me to use the api
Is this possible?
PUT https://www.googleapis.com/storage/v1/b/bucket/o/object&key="InsertSomeKey"
OR
https://www.googleapis.com/upload/storage/v1/b/bucket/o?uploadType=media&name=testobject&key="InsertSomeKey"
Not exactly, first of all, you need to authenticate the account that you need to connect, anyway, you must configure an account for access the bucket, like a user account or service account; then you cant make a petition, this is the API reference:
https://cloud.google.com/storage/docs/json_api/v1/
I suggested to do it by code, using the libraries:
https://cloud.google.com/storage/docs/reference/libraries

Need information on Google Apps API

I am looking for information on Google Apps APIs.
Is it possible to terminate the user's active session using the Google Apps API? If yes, can you please provide me the details on how to do that.
I am using Directory API to access list of groups and update memberships of users: https://developers.google.com/admin-sdk/directory/v1/reference/groups. Can the same API be used to access and update the membership of collaborative groups also?
Thanks.
No. This is an open Feature Request here. Would be an awesome feature :)
Not sure what you mean by a 'collaborative group'. That being said, any admin-managed group (created in the Admin console) can have its membership modified by the Directory API.
Regarding question 2, yes you can update group memberships of any groups in your Google Apps domain including Collaborative Inbox style groups. You would use the "Directory API: Group Members" endpoint, documented here:
https://developers.google.com/admin-sdk/directory/v1/guides/manage-group-members

Is the REST API active in Italy?

I just wanted to know if I can use the REST API with an Italian account. I couldn't find any information about.
Thanks.
You can use REST api with an italian account, the link posted by KevinG does not state that you cannot.
I used it last year to implement Expresscheckout and it was working. Be sure to check if you need to be PCI or PCI-DSS compliant.
For more information you care read this faq https://developer.paypal.com/docs/faq/#non-US-dev
You can use REST API from Italy and you have a full access to all features in your sandbox account. In live account you have some limitations (no Direct credit cards processing!).
more info here (login in your developer account first): https://developer.paypal.com/developer/accountStatus
Currently the REST API is not available in Italy. This link will take you the the most current information regarding the REST API and supported countries:
https://developer.paypal.com/docs/integration/direct/rest_api_payment_country_currency_support/#direct-credit-card-payments