Youtube DataAPI - Endscreen and cards list and set API - youtube-data-api

I have a requirement,
To see for which videos end-screen and cards are set.
Videos set in cards and end-screen.
Update API to update end-screen and cards.
But I do not see any such API is available.

Unfortunately, it is not possible, nor will it ever be as far as i can tell.
Not being able to add annotations is an intended behaviour. See this link: https://issuetracker.google.com/issues/35166657 - Status: Won't Fix (Intended behavior)

Related

Youtube Analytics API - Get Thumbnail-Impression Click-Through-Rate

One of the most important KPIs doesn't seem to be available via Youtube-Analytics-API. I can't get the total of thumbnail-impressions that have been shown to users. With that I could aggregate the impression-CTR using the views from certain traffic-sources (YT_SEARCH etc.). The docs don't seem to offer anything that would help me though.
Youtube-Reporting-API seems to have the same metrics as Youtube-Analytics-API. So I guess trying to use the Reporting-API would not help me either.
Is there any way to retrieve the number of thumbnail-impressions or the Impression-CTR programmatically? Any workaround? Am I missing something obvious? Or is there any intention of making that metric available via Analytics-API soon?
There is some very old, unanswered posts that may relate to my problem:
How to access new YouTube Analytics Metrics (Impressions, Impressions CTR) from API
Are Thumbnail Impressions/Views available through YouTube Analytics API?
There is a thread in google's issue-tracker that clearly states that (for now) it is NOT possible and in fact it is intended behavior (won't fix)!
I'll keep checking the API's Revision-History and try to keep this answer up to date.

Set Away/Home Mode

Does the API expose the ability to set the mode to Away or Home?
I don’t see this listed in the API documentation. I think this functionality is important as it now only allows you to turn off your thermostats but also configure alerts via the mobile app (I have mine set to only send alerts for my NestCams when I’m away).
You can't set "away", but you can set the thermostat to either Eco or Off.
No. I also hope the old functionality of the Nest API's will be available on the new API. The motion/person per zone is also missing for example.
There's no way to explicitly set that in this new API. Google wants you to use their Home/Away Routines instead, though I don't think all of the old use cases are supported yet (or will be).
https://support.google.com/googlenest/answer/10071816

Does the JIRA REST API support querying a list of labels?

I see the is the ability to get all components of a project by doing
/project/[projectkey]/components
but I don't see any capability or documentation on how to get the list of labels that are available for a project (something like:
/project/[projectkey]/labels
Does the JIRA REST API support querying the list of labels available on a project?
Just to clarify, labels (at least the built-in JIRA ones) are global entities so they can be attached to any Issue in any Project.
As to your question - no, there's no public REST endpoint to get/change/add labels to JIRA.
Jira Cloud has /rest/api/3/label.
Jira Server provides /rest/api/2/jql/autocompletedata/suggestions?fieldName=labels which is however not paginated and only returns the first few labels (label values can be queried using &fieldValue=X).
However, as hacky workaround you can misuse the API endpoints some Atlassian Jira Gadgets are communicating with. Though this has the following disadvantages:
Are internal APIs
Atlassian apparently plans to replace Gadgets with Dashboard Items eventually
Might change behavior, see e.g. JRASERVER-67446
No pagination (?), responses can be huge
Responses are designed for Gadgets, therefore contain irrelevant data
Labels Gadget
/rest/gadget/1.0/labels/gadget/project-<PROJECT_ID>/labels
Where <PROJECT_ID> is the numeric ID of the project.
Heat Map Gadget
/rest/gadget/1.0/heatmap/generate?projectOrFilterId=<PROJECT_OR_FILTER>&statType=labels
Where <PROJECT_OR_FILTER> can be either:
project-<PROJECT_ID>
filter-<FILTER_ID>

Chromecast new Cast.Api()

I just started using Chromecast SDK today and got bit confused with its APIs and samples given in the web.
What I am trying to do is to send some messages to the Chromecast so it will display them on the big screen. I am going to use Chrome API with HTML5/JS/CSS.
Most examples (https://github.com/pjjanak/chromecast-hello-world/blob/master/sender/index.html , http://nerdwin15.com/2013/10/chromecast-development-part-one-chrome-sender/) in the web uses new Cast.Api() in the sender and uses an Activity in doing so. But I could not find a reference to a Cast.Api in the Chrome API. Most Google references deal with Media and I am not sure whether I have to use them. So to sum up, following are the questions I have (Sorry! I did read the API and developer guide but I am still clueless).
Do I have to write a custom receiver to show text on TV screen. Can't I survive default receiver, chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID
Is handling multimedia files different from displaying text on the Chromecast or can I set the mime type to text/html and send a text stream (doesn't work for me at the moment)
Are those examples on the web uses a deprecated way of sending data to chromecast?
Thanks in advance,
Ish
Ok I think I found the answer from following documents,
https://developers.google.com/cast/docs/receiver_apps
https://github.com/googlecast/CastHelloText-chrome/blob/master/chromehellotext.html
Will try them and let you all know!
Following example page is very useful for anyone who try writing chromecast apps
https://github.com/googlecast
I'm not sure how you fared, but here are some quick responses to your questions.
Yes, you have to write a custom receiver if you want to do anything other than sending images, audio, or video to the Chromecast. You can see a list of supported media Default Media Receiver here: https://developers.google.com/cast/docs/media
Yes (see above), it requires a custom receiver, which will also require your own appId and I'm pretty sure a custom namespace.
To my knowledge, all of the examples up on https://github.com/googlecast should be relevant, but I am working on a few wrappers to try to simplify getting up and running with custom Chrome Sender and Receiver apps. You can check them out here: https://github.com/googlecast Let me know if those help, and if you have any feedback to share.
I hope you've already figured all this stuff out, but if not hopefully this is useful.

Remove AdUnit from Placement with DFP API

I am using the ruby gem to interface with DFP (DoubleClick for Publishers) version 201108. I am able to add an AdUnit to a Placement using the AdUnitAction.Type -> AssignAdUnitsToPlacement but have not been able to find a way to remove an AdUnit from a Placement. I can use the DFP web interface to do this manually but I am looking for a way to programmatically do it. I've looked through the API documentation but I didn't find anything that looked like what I needed to do.
How can I remove an AdUnit from a Placement using the API?
If you have the ID of the placement, you can always remove it in the Placement object itself:
http://code.google.com/apis/dfp/docs/reference/v201108/PlacementService.Placement.html
Just fetch the placement, modify the targetedAdUnitIds and then update it.
For future reference, the DFP API Forum: https://groups.google.com/group/google-doubleclick-for-publishers-api is a great place to ask these questions as we monitor it a bit more.

Resources