@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
You can use the
TwitterAds::Request class directly to make calls to
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
I’ve created a full example that also shows how to use a Card in your Tweet here:
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.