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.
Related
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.
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
I am listing my projects as follows:
listProjectsResponse, err := projectsListCall.Do()
Where a projectsListCall is a type provided by the cloudresourcemanager and its v1beta1 API.
I couldn't find a way though to be able to retrieve a the Organization a project belongs to. Is this feasible using the above api/sdk?
I am able to access the Parent field of a Project which is of type *cloudresourcemanager.ResourceId, however I cannot find a way to traverse up the tree until I reach the Organization.
What is more, I think it would be easier to find a way to say:
Given this Organization, list me all its projects.
Is there a way to accomplish this?
The Go SDK allows to retrieve that information through the methods "ProjectGetAncestryCall" and "OrganizationsGetCall". If you dig a bit in the documentation you'll see that the methods call the API endpoints mentioned by Kolban in his comment.
Moreover, whenever a doubt of this kind arises you might try searching the corresponding API endpoint in Google's documentation and then search for it in the Go SDK documentation because generally the endpoint is mentioned there.
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>
I have downloaded a coverflow sample from the link
http://www.macresearch.org/cocoa-tutorial-image-kit-cover-flow-and-quicklook-doing-things-we-shouldnt-are-too-fun-resist.
I need open flow effect but I dont need miror effect of images.Is it possible to do it.Is there any API available in IKImageFlowView class.
Any help would be appreciated.
There is no API available for IKImageFlowView. It is a private class. That's why the blog post is titled "doing things we shouldn't." If you look at the project in the blog post, you will find a reverse-engineered IKImageFlowView.h. That's as much information as is available. You can use class-dump as noted in the blog post and see if you can find the IKImageFlowViewDelegate protocol if there is one (this class appears to take a delegate). That might allow you to configure it.
Note that Apple may change this class at any time.
You are probably better off using a third-party implementation like MBCoverFlowView or OpenFlow.