All Downloads are FREE. Search and download functionalities are using the official Maven repository.

twitter4jads.api.TwitterCallToActionApi Maven / Gradle / Ivy

The newest version!
package twitter4jads.api;

import twitter4jads.BaseAdsListResponseIterable;
import twitter4jads.BaseAdsResponse;
import twitter4jads.internal.models4j.TwitterException;
import twitter4jads.models.media.TwitterMediaCallToAction;
import twitter4jads.models.video.TwitterCallToActionType;

import java.util.Collection;

/**
 *
 * Date: 30/05/16 5:17 PM.
 */
public interface TwitterCallToActionApi {


    BaseAdsResponse create(String accountId, String lineItemId, TwitterCallToActionType twitterCallToActionType,
                                                     String callToActionUrl) throws TwitterException;


    BaseAdsResponse update(String accountId, String preRollCTAId, TwitterCallToActionType twitterCallToActionType,
                                                       String callToActionUrl) throws TwitterException;

    @Deprecated
    BaseAdsListResponseIterable getByLineItemId(String accountId, String lineItemId, Boolean withDeleted)
            throws TwitterException;

    BaseAdsListResponseIterable getByLineItemId(String accountId, Collection lineItemIds, Boolean withDeleted)
            throws TwitterException;

    BaseAdsResponse getById(String accountId, String callToActionId, Boolean withDeleted) throws TwitterException;


    BaseAdsResponse delete(String accountId, String callToActionId) throws TwitterException;


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy