public class TwitterAdsWebEventApiImpl extends java.lang.Object implements TwitterAdsWebEventApi
| Constructor and Description |
|---|
TwitterAdsWebEventApiImpl(TwitterAdsClient twitterAdsClient) |
| Modifier and Type | Method and Description |
|---|---|
BaseAdsResponse<WebEventTag> |
createWebEventTag(java.lang.String accountId,
java.lang.String name,
java.lang.Integer clickWindow,
java.lang.Integer viewThroughWindow,
WebEventTagType type,
boolean retargetingEnabled) |
BaseAdsResponse<TwitterWebsiteTag> |
createWebsiteTag(java.lang.String accountId,
TwitterWebsiteTag.WebsiteTagType websiteTagType) |
BaseAdsResponse<WebEventTag> |
deleteWebEventTag(java.lang.String accountId,
java.lang.String webEventTagId)
Delete a specific web event tag associated to the current account.
|
BaseAdsListResponseIterable<WebEventTag> |
getAllWebEventTags(java.lang.String accountId,
boolean withDeleted,
java.lang.Integer count,
java.lang.String cursor) |
BaseAdsListResponseIterable<TwitterWebsiteTag> |
getAllWebsiteTags(java.lang.String accountId,
boolean withDeleted,
java.lang.Integer count,
java.lang.String cursor) |
BaseAdsResponse<WebEventTag> |
getWebEventTag(java.lang.String accountId,
boolean withDeleted,
java.lang.String webEventTagId) |
BaseAdsResponse<TwitterWebsiteTag> |
getWebsiteTag(java.lang.String accountId,
boolean withDeleted,
java.lang.String websiteTagId) |
BaseAdsResponse<WebEventTag> |
updateWebEventTag(java.lang.String accountId,
java.lang.String webEventTagId,
java.lang.String name,
java.lang.Integer clickWindow,
java.lang.Integer viewThroughWindow,
WebEventTagType type,
boolean retargetingEnabled) |
public TwitterAdsWebEventApiImpl(TwitterAdsClient twitterAdsClient)
public BaseAdsListResponseIterable<WebEventTag> getAllWebEventTags(java.lang.String accountId, boolean withDeleted, java.lang.Integer count, java.lang.String cursor) throws TwitterException
getAllWebEventTags in interface TwitterAdsWebEventApiaccountId - The identifier for the leveraged account. (required)withDeleted - Include deleted results in your request. Defaults to false.count - (optional) Specifies the number of web event tags 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).TwitterExceptionpublic BaseAdsResponse<WebEventTag> getWebEventTag(java.lang.String accountId, boolean withDeleted, java.lang.String webEventTagId) throws TwitterException
getWebEventTag in interface TwitterAdsWebEventApiaccountId - The identifier for the leveraged account. (required)withDeleted - Include deleted results in your request. Defaults to false.webEventTagId - The identifier for the web event tag to retrieveTwitterExceptionpublic BaseAdsResponse<WebEventTag> createWebEventTag(java.lang.String accountId, java.lang.String name, java.lang.Integer clickWindow, java.lang.Integer viewThroughWindow, WebEventTagType type, boolean retargetingEnabled) throws TwitterException
createWebEventTag in interface TwitterAdsWebEventApiaccountId - The identifier for the leveraged account. (required)name - The name of the web tagclickWindow - The click window for this web tag. Possible values are 1, 7, 14, 30, 60 or 90.viewThroughWindow - The view through window for this web tag. This value must always be less than or equal to the click_window value. Possible values are 0, 1, 7, 14, 30, 60 or 90.type - The type of web tag.retargetingEnabled - Boolean indicating if retargeting should be enabled for this web tag. Possible values are true, 1, false, 0TwitterExceptionpublic BaseAdsResponse<WebEventTag> updateWebEventTag(java.lang.String accountId, java.lang.String webEventTagId, java.lang.String name, java.lang.Integer clickWindow, java.lang.Integer viewThroughWindow, WebEventTagType type, boolean retargetingEnabled) throws TwitterException
updateWebEventTag in interface TwitterAdsWebEventApiaccountId - The identifier for the leveraged account. (required)webEventTagId - The identifier for a web tag on the current accountname - The name of the web tagclickWindow - The click window for this web tag. Possible values are 1, 7, 14, 30, 60 or 90viewThroughWindow - The view through window for this web tag. This value must always be less than or equal to the click_window value.
Possible values are 0, 1, 7, 14, 30, 60 or 90.type - The type of web tagretargetingEnabled - Boolean indicating if retargeting should be enabled for this web tag. Possible values are true, 1, false, 0TwitterExceptionpublic BaseAdsResponse<WebEventTag> deleteWebEventTag(java.lang.String accountId, java.lang.String webEventTagId) throws TwitterException
TwitterAdsWebEventApideleteWebEventTag in interface TwitterAdsWebEventApiaccountId - The identifier for the leveraged account. (required)webEventTagId - The identifier for the web event tagTwitterExceptionpublic BaseAdsListResponseIterable<TwitterWebsiteTag> getAllWebsiteTags(java.lang.String accountId, boolean withDeleted, java.lang.Integer count, java.lang.String cursor) throws TwitterException
getAllWebsiteTags in interface TwitterAdsWebEventApiaccountId - The identifier for the leveraged account. (required)withDeleted - Include deleted results in your request. Defaults to false.count - Specifies the number of web event tags to retrieve, up to a maximum of 200 per distinct request.TwitterExceptionpublic BaseAdsResponse<TwitterWebsiteTag> getWebsiteTag(java.lang.String accountId, boolean withDeleted, java.lang.String websiteTagId) throws TwitterException
getWebsiteTag in interface TwitterAdsWebEventApiaccountId - The identifier for the leveraged account. (required)withDeleted - Include deleted results in your request. Defaults to false.websiteTagId - The identifier for the website tag to retrieveTwitterExceptionpublic BaseAdsResponse<TwitterWebsiteTag> createWebsiteTag(java.lang.String accountId, TwitterWebsiteTag.WebsiteTagType websiteTagType) throws TwitterException
createWebsiteTag in interface TwitterAdsWebEventApiaccountId - The identifier for the leveraged account. (required)websiteTagType - The type of website tag.TwitterException