@billyyotpo apologies for the delayed response here.
You are correct that we haven’t implemented native support for POST /accounts/:account_id/tweet just yet. This will be implemented along with promoted video support in the v0.3.0 release scheduled for next week.
That being said, you have a couple of perfectly viable work arounds in the meantime:
-
You can use the community twitter gem (it works well alongside the Ads API SDK) and call the /1.1/statuses/update.json endpoint in the public API with the parameter nullcast=true set.
-
You can use the TwitterAds::Request class directly to make calls to POST /accounts/:account_id/tweet.
The second approach is probably the easiest and allows you to leverage other Ads API specific features like Tweet delegation. Once you have the Tweet itself created, you can promote it on a specific line item quite easily using the following code:
promoted_tweet = TwitterAds::PromotedTweet.new(account).new
promoted_tweet.line_item_id = line_item.id
promoted_tweet.tweet_id = 643609698231525376
promoted_tweet.save
I’ve created a full example that also shows how to use a Card in your Tweet here:
https://gist.github.com/brandonblack/90ed8632034d1b87d561
We also just released a new version of the SDK today v0.2.1 which includes some Card related fixes. I’d recommend grabbing that.