public class TwitterAdsAccountApiImpl extends java.lang.Object implements TwitterAdsAccountApi
| Constructor and Description |
|---|
TwitterAdsAccountApiImpl(TwitterAdsClient twitterAdsClient) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAccountPermissions(java.lang.String accountId) |
BaseAdsResponse<AdAccount> |
getAdAccountById(java.lang.String accountId,
boolean withDeleted) |
BaseAdsResponse<AdAccountNativePermissions> |
getAdAccountNativePermissions(java.lang.String accountId) |
BaseAdsListResponseIterable<AdAccount> |
getAllAccounts(boolean withDeleted,
java.util.Optional<AccountsSortByField> sortByField) |
BaseAdsListResponseIterable<TwitterPoliticalAgreement> |
getPoliticalAgreementForAccount(java.lang.String accountId) |
BaseAdsListResponseIterable<PromotableUser> |
getPromotableUsers(java.lang.String accountId,
boolean withDeleted) |
public TwitterAdsAccountApiImpl(TwitterAdsClient twitterAdsClient)
public BaseAdsListResponseIterable<AdAccount> getAllAccounts(boolean withDeleted, java.util.Optional<AccountsSortByField> sortByField) throws TwitterException
getAllAccounts in interface TwitterAdsAccountApiwithDeleted - Include deleted results in your request. Defaults to false.TwitterExceptionpublic BaseAdsResponse<AdAccount> getAdAccountById(java.lang.String accountId, boolean withDeleted) throws TwitterException
getAdAccountById in interface TwitterAdsAccountApiaccountId - The identifier for the leveraged account.withDeleted - Include deleted results in your request. Defaults to false.TwitterExceptionpublic java.util.List<java.lang.String> getAccountPermissions(java.lang.String accountId)
throws TwitterException
getAccountPermissions in interface TwitterAdsAccountApiaccountId - The identifier for the leveraged account.TwitterExceptionpublic BaseAdsListResponseIterable<PromotableUser> getPromotableUsers(java.lang.String accountId, boolean withDeleted) throws TwitterException
getPromotableUsers in interface TwitterAdsAccountApiaccountId - The identifier for the leveraged account.withDeleted - Include deleted results in your request. Defaults to false.TwitterExceptionpublic BaseAdsResponse<AdAccountNativePermissions> getAdAccountNativePermissions(java.lang.String accountId) throws TwitterException
getAdAccountNativePermissions in interface TwitterAdsAccountApiTwitterExceptionpublic BaseAdsListResponseIterable<TwitterPoliticalAgreement> getPoliticalAgreementForAccount(java.lang.String accountId) throws TwitterException
getPoliticalAgreementForAccount in interface TwitterAdsAccountApiaccountId - The identifier for the leveraged account.TwitterException