How do I get all leads that are updated after certain date using Marketo Rest v1 API? - marketo

I am trying to figure out a way to get all the modified(or created) leads after a certain time stamp.
Looks like, the marketo SOAP API has this updatedAt filter but not their REST API.
Is there any workaround?
Marketo SOAP API: http://developers.marketo.com/documentation/soap/getmultipleleads/
Marketo REST API: https://developers.marketo.com/documentation/rest/get-multiple-leads-by-filter-type/

This API retrieves change data value for leads(updated) .
Hope it will help you.
Get Lead Changes
Get Paging Token for particular day

Related

Using LinkedIn API to retrieve advertising reports

I'm working on a simple app to programmatically retrieve ads performance within Linkedin. I have general API experience but this is the first time i get my feet wet with the Linkedin API.
One example from Linkedin API documentation suggest something that would get me started:
GET https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange.start.month=1&dateRange.start.day=1&dateRange.start.year=2016&timeGranularity=MONTHLY&pivot=CREATIVE&campaigns=urn:li:sponsoredCampaign:112466001
I am encountering two problems:
First this example implies that you already know the campaign ID. However I am unable to find a way to retrieve a list of campaign ID's for a given account.
Second, if I manually pull a campaign ID, I receive an error: "{"serviceErrorCode":2,"message":"Too many fields requested. Maximum possible fields to request: 20","status":400}". Pretty clear error.
A little research tells me that by adding the parameter "&fields=" I will be able to limit my query to less than 20 field (I really need only a dozen anyway) but I can't find and documentation regarding the names of the fields available.
Any help or pointer will be appreciated.
please refer the link below scroll down where you ill see the field names mentioned as metrics , these are the fields.
https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting?tabs=http#analytics-finder

How to pull invoice number from PNR

I am trying to retrieve the invoice number of a PNR from the Sabre API.
Can anyone advise the correct API to use?
Thank you,
I believe you can use the TravelItineraryHistoryLLSRQ API or the getReservationRQ to gather invoice numbers on all accounting lines. If using the getReservationRQ API, take a look at the fields in the documentation related to InvoiceData.
If you are more familiar with reading native Sabre responses you could also use the SabreCommandLLSRQ API with the entry "*HAC" to bring back a list of all of the historical accounting lines and accompanying invoice numbers, but that gets a little difficult to parse out.

Google Analytics API get Goal name

I need to get a goal name using google analytics API. I'd like to display this name along with some dimensions such as ga:goalCompletionsAll, ga:goalValueAll but I'm unable to.
I have done some research and all I could find are the explanations here Not getting Goal name using Google Analytics gapi but I'm using coldfusion and http requests to make the API call.
I know that I need to use the Management API to get the goal names and the Core Reporting API for other dimensions. I've done the API calls for both and looked at both responses and I'm unable to connect both results i.e the goal name and dimensions.
Kindly assist and thanks in advance
The reporting API doesn't return the name of the goal. You will need to go though the Management API.
goals.list returns a list of goals for the authenticated user. Then you can check if the goal nr is 1 what the name of it.
Note: Remember goal names can change over time so you cant really store these.
You should have two lists your the metrics you are requesting and the results of the goals.list. Currently there are only XX goal columns for metrics this may change in the future who knows. You will need to test your metrics to find out which number they selected. Depending upon what your application is allowing you can end up with several goals selected in one request.
You want to look at goal.id and goal.name. Goal id is the number.
My application is C# so I cant really share with you how I am handling this.

Query Campaign Rules with Marketo API

Is there a way to query for the campaign rules using either the SOAP or REST API?
Right now I can query the change score for a specific lead using get Lead Changes. But this only gives the rules that effected a specific lead.
It is not currently possible to get a list of flow steps for a campaign in Marketo.
It is possible to query the Get Lead Activities API for specific activities, such as Change Score activities. To do this, specify activityTypeIds=22 as a parameter when calling the Get Lead Activities API.

How to get all available dimensions in Marketo API?

How can I get the list of all dimensions available to pass to the api to get data to construct the chart on the fly?
For example in this case, the dimension is Source:
http://www.marketo.com/_assets/uploads/ContentVideoTier/96/reports-analytics-roi.png?20131014201216
In google analytics, I can pass the dimensions available from the list here (https://developers.google.com/analytics/devguides/reporting/core/dimsmets) via the api and it will give me the data that I can display in a chart.
How can I make similar behaviour in Marketo?
Thanks.
The list of standard fields on a lead record in Marketo is available here.
In addition to the standard fields, a Marketo user can add custom fields to their account. To get a list of all fields in a specific Marketo user's account, query the Describe REST API.
Lead activity data is also available through the Marketo API. To get a list of available activity types, query the Get Activity Types REST API.

Resources