How to get all the campaigns in Ad Analytics in Linkedin Ads API - api

I am new to working with APIs and especially with Linkedin API.
I want to get Ad Reporting data.
I only know to get a specific campaign data.
How do I get all the campaign running for the account id?
Here is what I have run.
https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&pivot=CREATIVE&dateRange.start.day=27&dateRange.start.month=1&dateRange.start.year=2019&timeGranularity=DAILY&campaigns[0]=urn:li:sponsoredCampaign:123456
I tried something like following and it didn't work.
https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&pivot=CREATIVE&dateRange.start.day=27&dateRange.start.month=1&dateRange.start.year=2019&timeGranularity=DAILY&account=123456

Have you tried this recommendation? I think it's what you're looking for.
https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads/account-structure/create-and-manage-campaigns#search-for-campaigns
Search for Campaigns
You can search for campaigns by ID, account,
campaign group, name, type, and status fields. Search criteria can be
chained together for increased granularity. If a search query is
omitted, the API returns all the campaigns that the caller has access
to.
GET https://api.linkedin.com/v2/adCampaignsV2?q=search&search.{searchCriteria}.values[0]={searchValue}

Related

How to retrieve old tweets (beyond the most recent 3,200 tweets) from a specific user account on Twitter?

I have access to the Academic Research API. I am trying to retrieve old tweets from political candidates’ accounts during certain election campaigns (i.e., I would ideally specify begin and end dates). The timeline endpoint allows me to retrieve only the last 3,200 tweets of each of these accounts; but this falls short, since I cannot get any tweets from the desired election campaign period because it is too old in the timeline. I would ideally like to retrieve 3,200 tweets from a certain end date (the end of the election campaign). I have also seen the option of a Full archive endpoint, which would allow me to retrieve old tweets, but this does not directly enable (correct me if I am wrong) the targeting of specific users. Is there any additional option you would recommend to deal with this? Or would you rather directly retrieve each of the tweets using the IDs (although this would be too manual)?
Apparently the best way to do this is to use the Archive Search API. It is part of the premium API, so you first need to be granted an application with connection to the Academic Research API, and then opening a premium environment that lets you access the Archive Search API.
Once in the Archive Search API, you can specify dates (they are parameters of the request) and specific users with parameters within the query. An example here with twarc2 (Python): https://twittercommunity.com/t/twitter-api-timeline/171849/4?u=aguperonodo
In rtweet, this functionality can be implemented with the search_fullarchive function.

How do I get all retweets or the retweeters of my own personal tweet?

I know you must be thinking that its impossible or its been asked already.
But I have 2 queries. The first is that by using Twitter API, using an access token of my own profile, can I get all (more than 100) the retweets of my own tweet? Not someone else's, as all previous questions at stackoverflow have been asked.
Because there's a difference in private and public tweet and getting data related to it.
Secondly, if we cannot get more than 100 retweets, then how does this app Pickaw (formerly Twrench) https://pickaw.com/en gets all the retweets even if they're more than 500 and the corresponding data?
Any ideas?
The Twitter API only provides access to up to 100 Retweeters (IDs for users that RT'd a Tweet), regardless of whether this is your owned Tweet, or another one.
As for a specific app, it is only possible to speculate, unless the source code was Open Source and available. I would suggest there are two ways to get all the Retweets:
pay for premium or enterprise search access, and use the advanced PowerTrack rules to find Retweets of a specific Tweet ID;
use the Account Activity API webhooks to track whenever a user's Tweet is Retweeted. Not that this would only work in a real-time tracking case; you wouldn't be able to check historical Tweets.

Ebay API: Get All Transactions By Seller

I am trying to use the Ebay API to get completed transactions for a seller(s) that is using a different account from my developer account. I've looked into GetSellerTransactions and GetOrders. Unfortunately, I am not sure if it's possible to specify a User ID different from mine. Could you point me to working example of how to do this?
To get transactions for a user you should be first authorized by that user.
You will need a developer account for that.
This links will guide you
http://developer.ebay.com/DevZone/XML/docs/WebHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=eBay_XML_API&file=GettingTokens-Getting_Tokens_for_Applications_with_Multiple_Users.html
http://developer.ebay.com/DevZone/XML/docs/WebHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=eBay_XML_API&file=DevAndTestApplications-Testing_Applications.html
Once you get the user token for a user you need to send them along with your developer credentials to make the getOrders API call for that particular user.

Foursquare venue added with api not showing up on userless search

I've added a foursquare venue via the api attached to my access token. I've included all the proper fields, name, city, ll, etc. and it shows up as the first result when I search for the venue based on the ll param when using my authenticated api. However, if I search with an api attached to another access token, or do a userless search, it doesn't show up in that result set. It will show up though if I add a query param and search for the name.
Am I missing something about how I am supposed to create the venue, like some sort of make_public flag? I'd like to be able to create a venue tagged with an ll and then have it show up when that same ll param is passed into any sort of api, authenticated and not. Is this possible?
Is this venue a "home" venue? If so, see http://blog.foursquare.com/2011/09/29/making-your-house-into-a-home/ which talks about some of obfuscating foursquare does around home venues which would explain your observed behavior
Update:
Since the venue you added has 0 check-ins, it's considered a low-quality venue and is bypassed in favor of higher quality results that are nearby. The reason it's returned for the authoring user is because we consider it high-relevance for that user. All other users will probably need to specifically search for the venue before they will see it (as the venue acquires check-ins/activity, it may organically start appearing for query-less searches). For example, if I search for "library" at that location, I get your result back: https://developer.foursquare.com/docs/explore#req=venues/search%3Fll%3D37.7754738,-122.39986550000003%26query%3Dlibrary

using foursquare api v2 to get herenow of a venue

on the documentation page, https://developer.foursquare.com/overview/venues, it says that
The Venues Platform lets developers use foursquare as their location
layer. Applications can search our database and find information
including tips, photos, check-in counts, and here now. Searches can be
done near a point or through a whole city, and they can be restricted
to trending or recommended places. The platform offers all of this
without requiring end user authentication and is available at high
rate limits.
however, when i send request like:
https://api.foursquare.com/v2/venues/4ad7a112f964a520050d21e3/herenow?client_id=myclientid&client_secret=myclientsecret&v=20120119
i got this:
{"meta":{"code":200},"response":{"hereNow":{"count":16,"items":[]}}}
is there anything i need to do, such as register as a venue platform developer, to get the list of people who are here? thanks!
You cannot get the users information without authenticating [ :( ]
Check out the documentation at the herenow endpoint page.
Specifically the first line:
Provides a count of how many people are at a given venue. If the request is user authenticated, also returns a list of the users there, friends-first.