Office 365 Management API - office365api

I am using O365 management API to get audit logs .
https://manage.office.com/api/v1.0/{tenantId}/activity/feed/subscriptions/content?contentType="+auditName+"&PublisherIdentifier={tenantId}&startTime={startDate}&endTime={endDate}
For any date sonly same set of record is coming .I would like to know how to query datewise and userID wise Log activities using management API.Please guide
I tried input few dates .But I am not getting proper details for particular date set .Also i want to query along with userId same like date .So please guide.

Related

Retrieve all user details from Microsoft Graph API

I am trying to retrieve all users from AD using Microsoft Graph APIs.
https://graph.microsoft.com/v1.0/users
But this is returning only some top n rows from the whole users list.
I guess its using some pagination there. But didn't find how to specify page number or those details as a parameter within the query.
https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http
Ms Graph cant show all users in the same page as it may cause threshold issues if the user count is too high.
you need to use paging to achieve this i.e., to get all the users you can achieve it with the help of #odata.nextLink please refer Ms Document for more details.

unable to extract all users using ranger rest api user query

I am able to get specific user details using following query string
/service/xusers/secure/users/305
but not able to see same user when extracted all users using
/service/xusers/users
any specific reason? I checked that there is no API call to get all users using /secure
looks like a bug in ranger however i was able to download entire user list using following query
/service/xusers/users?page=0&pageSize=1000&userRoleList%5B%5D=ROLE_SYS_ADMIN&userRoleList%5B%5D=ROLE_USER&userRoleList%5B%5D=ROLE_ADMIN_AUDITOR'
please use the following API : /service/xusers/users/305 instead of /service/xusers/secure/users/305

How to extract conversion results based on different attribution models from the Google Adwords API

I need to extract data from the adwords API to allow me to see the impact of different attribution models on conversion. I'm visualising my adwords data in the Klipfolio tool. My adwords account is set up to use the position based model but I'd also like to show last click conversions. This is essentially the data which is available in the adwords manager interface. I'm making my API calls via the supermetrics tool but can also create them directly in Klipfolio.
I'm not entirely familiar with the adwords query language but it does look like that there is a field for attribution type.
I've got as far as extracting data via this, using the Klipfolio interface:
SELECT
Date,Conversions,ConversionTypeName
FROM CAMPAIGN_PERFORMANCE_REPORT
DURING {date.add(-7).format('yyyyMMdd')},{date.today.format('yyyyMMdd')}
Exactly what I'm looking for is WHERE function where I can specify a different type of attribution model from the current.
I cannot obtain this data from our Google Analytics data as our conversion data from GA is, unfortunately, duplicated. We're using the adword's conversion tags de-duplication functions to get around this issue.
I'd be very grateful if anyone could share an example of how an API request could look with the attribution model field present or, indeed, give some feedback on whether this is even possible.
Hi you can find more information about the CAMPAIGN_PERFORMANCE_REPORT report here
You can find there the WHERE and SELECT fields like this:
SELECT CampaignName, Clicks, Impressions, Cost
FROM CAMPAIGN_PERFORMANCE_REPORT
WHERE Impressions < 10
DURING LAST_30_DAYS'
Usually the reason for the duplications it's the selection of SELECT parameters, but I cannot say this for sure without more information.

Is it possible to retrieve campaign and adgroup detailed change history?

Kindly help me to know about - How can we able to get the Campaign and Ad Group created by, created time stamp, modified by, modified time stamp(exactly detailed change history) and whether changes made via automated rules, AdWords API, and AdWords Editor?. through Google AdWords API call.
Unfortunately, it is still not possible to get a change history through the AdWords API.
The last update I found was here on 2016-02-11.

find last modified date on a google fusion table

looking for ways to find last modified date on a google fusion table lead me to this post:
https://groups.google.com/d/topic/fusion-tables-users-group/NVEr2TVR88I/discussion
is there a way to find out if the data has changed before syncing it with javascript?
The last modified date is not available through the Fusion Tables API. However, you should be able to get the last modified date through the Drive API (each Fusion Tables is another file in Google Drive).
Use the drive.files.get method with the table id. You can try it out with the API explorer:
https://developers.google.com/apis-explorer/#p/drive/v2/drive.files.get
First click on the button in the top right saying "Authorize requests using OAuth 2.0". Then, put in the fusion table id for the "fileid" field, and click "Execute". You should see all the metadata you want. It will also show you the API call that you need to construct in your application.

Resources