Is there a C# Client library for twitter Ads Api?
Apparently Tweetinvi doesn't support Ads Api but otherwise is very good library for Twitter.
Is there a C# Client library for twitter Ads Api?
Apparently Tweetinvi doesn't support Ads Api but otherwise is very good library for Twitter.
I am the developer of the library Tweetinvi. The Twitter Ads API will be implemented for version 2.0 so it won't be done before quite some time (months or a year).
Though if you are fine to share your credentials with me, I will be happy to try and see if I can do something quick to help you. With some tweaks or tips the library should be able to let you create your custom Twitter queries for the Ads API.
Feel free to visit github to open issues here : https://github.com/linvi/tweetinvi.
If you want to contact me privately please do so through my codeplex profile (click the 'contact' link visible on https://www.codeplex.com/site/users/view/linvi).
Cheers, Linvi
I would guess that you can setup the authentication the same way as you'd do with Tweetinvi and then use the TwitterAccessor
.
You can find the documentation here : https://github.com/linvi/tweetinvi/wiki/Custom-Queries#simple-query
Instead of using the JSON I would instead simplify the process by creating DTO's decorated with [JsonProperty]
attributes (example in UserDTO).
// Example of DTO class
public class AdDTO
{
[JsonProperty("name")] // This is the name json field of the response
public string Name { get; set; }
}
And then you will be able to get the AdDTO
as followed:
var adDTO = TwitterAccessor.ExecuteGETQuery<AdDTO>("my_twitter_ads_api_query");
I hope this is of any help.
Finally just for the sake of your knowledge, I have been working with multiple companies, and I have signed confidentiality clauses/contracts in order to always preserve their credentials safe. If needed I will be happy to do this with you too.
Have an happy ads coding :)