public interface TwitterAdsPromotedTweetApi
| Modifier and Type | Method and Description |
|---|---|
BaseAdsListResponse<PromotedTweets> |
createPromotedTweets(java.lang.String accountId,
java.lang.String lineItemId,
java.util.Collection<java.lang.String> tweetIds) |
Status |
createPromotedTweetV2(java.lang.String accountId,
java.lang.String targetUserId,
java.lang.String tweetText,
java.util.List<java.lang.String> mediaIds,
java.lang.String videoId,
java.lang.String videoTitle,
java.lang.String videoDescription,
java.lang.String videoCallToAction,
java.lang.String videoCtaValue,
java.lang.String cardUri,
boolean promotedOnly) |
Status |
createPromotedVideoTweet(java.lang.String accountId,
java.lang.String targetUserId,
java.lang.String tweetText,
java.lang.String videoId,
java.lang.String videoTitle,
java.lang.String videoDescription,
java.lang.String callToAction,
java.lang.String ctaValue) |
BaseAdsResponse<PromotedTweets> |
createScheduledPromotedTweets(java.lang.String accountId,
java.lang.String lineItemId,
java.lang.String scheduledTweetId) |
BaseAdsResponse<PromotedTweets> |
deletePromotedTweets(java.lang.String accountId,
java.lang.String tweetId) |
BaseAdsResponse<PromotedTweets> |
deleteScheduledPromotedTweet(java.lang.String accountId,
java.lang.String scheduledPromotedTweet) |
BaseAdsListResponseIterable<PromotedTweets> |
getAllPromotedTweets(java.lang.String accountId,
boolean withDeleted,
java.util.Optional<java.util.Collection<java.lang.String>> lineItemIds,
java.util.Optional<java.lang.Integer> count,
java.lang.String cursor,
java.util.Optional<PromotedTweetsSortByField> sortByField) |
BaseAdsResponse<PromotedTweets> |
getPromotedTweetsById(java.lang.String accountId,
java.lang.String promotedTweetId) |
BaseAdsListResponseIterable<PromotedTweets> |
getScheduledPromotedTweets(java.lang.String accountId,
java.util.List<java.lang.String> lineItemIds,
java.util.List<java.lang.String> scheduledPromotedTweetIds,
java.lang.Integer count,
java.lang.String cursor,
java.lang.String sortBy,
boolean withDeleted,
boolean includeTotalCount) |
BaseAdsListResponseIterable<PromotedTweets> getAllPromotedTweets(java.lang.String accountId, boolean withDeleted, java.util.Optional<java.util.Collection<java.lang.String>> lineItemIds, java.util.Optional<java.lang.Integer> count, java.lang.String cursor, java.util.Optional<PromotedTweetsSortByField> sortByField) throws TwitterException
accountId - The identifier for the leveraged account.withDeleted - Include deleted results in your request. Defaults to false.sortByField - (optional) Sorts by supported attribute in ascending or descending order.count - (optional) Specifies the number of Promoted Tweets to try to retrieve, up to a maximum of 1000 per distinct request.cursor - (optional) Specify a cursor to retrieve data from a specific page (function automatically handles paging upon iteration when you do not specify cursor value).TwitterExceptionBaseAdsResponse<PromotedTweets> getPromotedTweetsById(java.lang.String accountId, java.lang.String promotedTweetId) throws TwitterException
accountId - The identifier for the leveraged account.promotedTweetId - A reference to the promoted tweet you are operating with in the request.TwitterExceptionBaseAdsListResponse<PromotedTweets> createPromotedTweets(java.lang.String accountId, java.lang.String lineItemId, java.util.Collection<java.lang.String> tweetIds) throws TwitterException
accountId - The identifier for the leveraged account.lineItemId - Scope the response to just the desired line itemtweetIds - tweet ids to promoteTwitterExceptionBaseAdsResponse<PromotedTweets> deletePromotedTweets(java.lang.String accountId, java.lang.String tweetId) throws TwitterException
accountId - The identifier for the leveraged account.tweetId - Tweet Id to be deletedTwitterExceptionStatus createPromotedVideoTweet(java.lang.String accountId, java.lang.String targetUserId, java.lang.String tweetText, java.lang.String videoId, java.lang.String videoTitle, java.lang.String videoDescription, java.lang.String callToAction, java.lang.String ctaValue) throws TwitterException, java.io.IOException, java.lang.InterruptedException
TwitterExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionStatus createPromotedTweetV2(java.lang.String accountId, java.lang.String targetUserId, java.lang.String tweetText, java.util.List<java.lang.String> mediaIds, java.lang.String videoId, java.lang.String videoTitle, java.lang.String videoDescription, java.lang.String videoCallToAction, java.lang.String videoCtaValue, java.lang.String cardUri, boolean promotedOnly) throws TwitterException, java.io.IOException
TwitterExceptionjava.io.IOExceptionBaseAdsResponse<PromotedTweets> createScheduledPromotedTweets(java.lang.String accountId, java.lang.String lineItemId, java.lang.String scheduledTweetId) throws TwitterException
TwitterExceptionBaseAdsResponse<PromotedTweets> deleteScheduledPromotedTweet(java.lang.String accountId, java.lang.String scheduledPromotedTweet) throws TwitterException
TwitterExceptionBaseAdsListResponseIterable<PromotedTweets> getScheduledPromotedTweets(java.lang.String accountId, java.util.List<java.lang.String> lineItemIds, java.util.List<java.lang.String> scheduledPromotedTweetIds, java.lang.Integer count, java.lang.String cursor, java.lang.String sortBy, boolean withDeleted, boolean includeTotalCount) throws TwitterException
TwitterException