def get_property_user_link(property_id, property_user_link_id): """Retrieves the Google Analytics 4 property user link details.""" client = AnalyticsAdminServiceClient() user_link = client.get_user_link( name=f"properties/{property_id}/userLinks/{property_user_link_id}" ) print("Result:") print_user_link(user_link)
def get_account_user_link(account_id, account_user_link_id): """Retrieves the account user link details.""" client = AnalyticsAdminServiceClient() user_link = client.get_user_link( name=f"accounts/{account_id}/userLinks/{account_user_link_id}" ) print("Result:") print_user_link(user_link)