Get click count and impressions from lineitemid in Google Admanager (DFP) - google-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.

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?

Tableau Include Latest Revision (Publish) Date in Dashboard

I have a dashboard I am developing in 2018.2.3 Desktop that will eventually get published to our internal Tableau Web Portal. I am writing a "Help" tab that has some documentation, directions, etc. for users to view in case they are curious what report is for, how to use it, definitions, etc..
One piece that I want to include at the header of this are three dates:
Report Created
Report Data Refresh
Report Publish Date
The first two are simple, the "Report Created" is just text, since I have no idea how to get the date the report was actually started. Text is fine for this. The Data Refresh is simple as using the, "". That works perfectly.
My only issue is I'd like to include the most recent publish date / revision. Now, I see this in the Tableau Web as meta data on the dashboard, but I'd like it to be part of this "Help" page. Is there a way to do this with some sort of dimension or variable? Thanks in advance.
If you are on Server and not Online, you can take a look at getting this data from the WORKGROUP database that Tableau Server runs from. Use this guide from Tableau to get that setup.
Then you will want to look at the workbook, sites and workbook_versions tables. Here is a sample query that could help.
select s.name site, w.name workbook, wv.version_number, wv.published_at, w.updated_at
from workbooks w
left join sites s on w.site_id = s.id
left join workbook_versions wv on w.id = wv.workbook_id
where upper(w.name) like '%<WORKBOOK>%'
group by 1,2,3,4,5
having w.updated_at = max(w.updated_at)
published_at is a timestamp of the initial publish.
updated_at is the last date it was updated.
version_number is a count of how many times the workbook has been published to on that site.
Here is a data dictionary for all the other available tables.
You can pull this query as a new data source and build the text that you want to display.

How to use one filter on two separate fields at the same time

I am working on a Tableau visualisation of network data, showing trends in user behaviour.
I have a table with users (USERS) and a table with network messages (MESSAGES): Each message has a sender and a receiver from the list of users.
I have two worksheets, one showing trends of outgoing messages and one showing incoming messages. The two worksheets are placed in the same dashboard.
How can I create a filter dropdown containing all users from USERS that filters senders in one worksheet and receivers in the second worksheet?
I have tried to duplicate the MESSAGES data source and blend USERS with two different fields, but the performance is not acceptable. Any ideas are welcome.
Thanks in advance
Create a new parameter:
data type string
allowable values set to list
add from field - user field
Quick filter on user-sending
select condition tab, By formula
[user.sending]=[user.parameter]
Repeat for user-receiving sheet.
Lastly, right-click user.parameter and select 'add to sheet' (or add it to you dashboard).
You can do so by selecting the 'use all' option rather than using a range or a list. This works very well for dates especially as it shows a calendar and then you can pick the date you want to see.

Export data from datafile to excel format

Background:
Our company uses Sage Line 50 as our accounting software. We generate all of our Sales Orders from this program. We also use MS Access 2010 to store order information and generate our internal shop paperwork and packing slips.
The Problem:
Data entry redundancy. We enter information from Customer Purchase Orders into our Sage software, and then enter the same information into the Access database.
What I am looking for:
A solution that will let me export raw Sales Order data after creating in Sage into MS-Access
What I have tried:
The export process from Sage only allows CSV exports, and is a manual process that cannot be automated at all. I am able to produce this export and then run an append query that will import that data into the Access data, but I am looking to automate this process, perhaps on a daily basis. I have looked into using Crystal Reports (packaged with Sage, which I am told can run automated reports and save in an MS Excel format), but I do not know how to navigate the data files to find the specific sales data I am looking for.
The guys are correct - easiest way to do this would be to use the ODBC driver, however, you must run the correct SQL query and ensure you join the Purchase Order table to the Order item table using the correct fields or it will not return the right data.
One issue you will have is that you only want to pull through the most recent transactions so use a query like this to do that your query would look something like this:-
SELECT *, PURCHASE_LEDGER.ACCOUNT_REF, PURCHASE_LEDGER.E_MAIL FROM PURCHASE_ORDER, PURCHASE_LEDGER INNER JOIN POP_ITEM ON PURCHASE_ORDER.ORDER_NUMBER = POP_ITEM.ORDER_NUMBER WHERE PURCHASE_LEDGER.ACCOUNT_REF = PURCHASE_ORDER.ACCOUNT_REF AND RECORD_MODIFY_DATE >= '2013-04-03 00:00:00'
Alternatively there are many one-click commercial solutions to this problem - do a search on Google for "Sage Integration" and you'll find various suppliers who produce products that will do this for you
What you are trying to do can be automated as I've done it for the last company that I worked for (exporting sales orders and invoices to CSV and to Excel). However, the downer is that it requires the Sage SDK which costs £1500.

Getting column value from Browser

I have one browser displaying customer details. When I select one row (ie one customer) in that browser I want to get the Customer Number of that customer.So that I can populate another browser "OrderBrowser" which will display the order of the selected Customer.How?
you should use a trigger
ON VALUE-CHANGED OF BrowserHandle DO:
your code
END.