Snapchat API: Pull campaign stats for an add account, and must include campaign names - snapchat

Looking trough Snapchat documentation, I couldn't find a way t pull the data with campaign name and only the data for last 7 days.
one of the parameters is start and end time (no way to just request last 7 days)
name is an existing field but only used to create a campaign.
if you try to use the field = name you will get an error
If somebody knows please advise.

Related

How do I write a plugin to get the account creation date, total number of users & total number of licensed users in Jenkins?

I am trying to write a plugin for Jenkins to get the account creation date, total number of users, and total number of licensed users. I am having difficulty understanding how I can access the necessary data and create the plugin to display the required information. I tried searching for a solution, but I couldn't find one.
I've tried something like this:
import hudson.model.User;
String user = User.current();
String mailAddress = user.getMailAddress();
Is there a way to get the same thing mentioned above?

How to send email with the list of all people - Power Automate

There are some tutorials that explain how to email someone on their birthday. What I am looking for is to send a single email with the list of all the people who celebrate their birthday that day.
I would like to know how I can send in the body of the email the name of the people who celebrate their birthday on that day.
I have been working on a flow with each of the following steps:
Recurrence:
With this step I send my daily mail every certain hour.
Get items:
I created a sharepoint list where I have the name of the birthday boy, date of birthday (DOB), gender and department.
Initialize variable:
Apply to each
Append to string variable
I add to the Birthdays variable the value that would be the name of the employee whose birthday is that day that is in the sharepoint list
Send an email
In the step of sending an email, I add the previously initialized variable "Birthdays" to the body of the email, which should contain the list of employees whose birthday is that day
I have supported myself with this question made in the Microsoft Power Automate forum but it does not work as it should since I am new to power automate
Error:
At the moment of executing my manual flow I get in the condition as a result false in addition to two errors when I add the variable and send the mail
Can someone give me an orientation in knowing what I am doing wrong in the flow since my mail does not arrive either.
UPDATE:
The value of the Birthdays variable at runtime is as follows:
UPDATE 2:
I have added in Filter Query the following expression formatDateTime(utcNow(),'dd-MM-yyyy') eq 'listColumn' but when executing the manual flow I get that The expression "28-01-2022 eq 'listColumn'" does not It is valid.
Annex error that shows me in the execution of the manual test
UPDATE 3:
The column in the sharepoint list where I am storing the birthday date is called DOB:
Get Items action you should use Filter Query row to search something like: formatDateTime(utcNow(),'dd-MM-yyyy') eq 'listColumn'.(You should have a column in sharepoint containing all user birthdays).
[1]: https://i.stack.imgur.com/Y3s4S.png
Append to String all the emails that you get from GetItems: Email;
Try this one; it should work:
Birthdays eq '#{formatDateTime(utcNow(), 'yyyy-MM-dd')}'

Fetch all Calendars From Office 365 Calendar Account

We need to fetch all Calendars in an office 365 calendar account
We basically make an api call to the endpoint
https://graph.microsoft.com/v1.0/users/[logged-in-user-id]/calendars
but it returns only 10 calendars (maximum) when we call the API !?
Any help/tips appreciated !
You can use $top query parameter to get 1 to 999 objects per page. By default every API has its own default pagination count. So you can simply use top query parameter or you can use nextLink which you get in the first API call and use it to get next set of results. See this document. Let me know if this helps.

Get click count and impressions from lineitemid in Google Admanager (DFP)

I have a line item id stored in my DB, and i want using Admanager API to get click count, impressions number in PHP.
I saw on google groups that it was possible to do it using report generation and then parsing, but there is a faster way to do it (if possible i don't want to make a full report of my campaign)
thank you
This is an example of a Google Ad Manager query where you can get impressions and clicks for a particular order ID (which you can then change for line item ID in order to filter just for it). You can then download the results of that query as a CSV file, and process them as you'd process any CSV file.

Facebook Marketing API Adset Filtering

I am using the Facebook Marketing API and making a call to get the adsets belonging to an adaccount (https://developers.facebook.com/docs/marketing-api/reference/ad-account/adsets/). My issue is that for one of my ad accounts, there are to many adsets available and as such the call is either taking long or has to many pages. Is there a way that i can possiblly add on date filtering to the request so that it will filter out all those adsets outside of the specified dates?
This is the request i am making with a dummy act id:
act_12345678?fields=account_id,name,currency,business{id},adsets{id,name,campaign{id,name,start_time,stop_time,spend_cap,status,insights.date_preset(lifetime){spend}},start_time,end_time,adset_schedule,billing_event,lifetime_budget,budget_remaining,daily_budget,lifetime_imps,status,configured_status,optimization_goal,is_autobid,insights.date_preset(lifetime).as(lifetime_insights){spend}, insights.time_range({'since':'1990-01-01', 'until':'2018-04-26'}).as(insights_to_date){spend}}
It appears that the "filtering" parameter works in this case.
For example, if you want to return all adsets that had a start time greater than 12/31/2017 and less than 01/31/2018, you can try the following.
Note that I had to first convert the start and end dates to a UNIX timestamp:
act_12345678/adsets?filtering=[{'field':'adset.start_time','operator':'GREATER_THAN','value':'1514678400'}, {'field':'adset.start_time','operator':'LESS_THAN','value':'1517356800'}]
You can add the "filtering" parameter to your request URL, and it should then filter both on the dates and the fields you specified.
To convert the dates to UNIX time stamp I used the following link: https://www.unixtimestamp.com/index.php