//native
type Adhook = {
token: string
}
export async function main(
auth: Adhook,
adhookToken: string,
body: {
placement?:
| 'GOOGLE_SEARCH_NETWORK'
| 'FACEBOOK_TIMELINE'
| 'GOOGLE_DISPLAY_NETWORK'
| 'FACEBOOK_AUDIENCE_NETWORK'
| 'YOUTUBE'
| 'INSTAGRAM_TIMELINE'
| 'GOOGLE_SHOPPING'
| 'FACEBOOK_MESSENGER'
| 'LINKEDIN_CONTENT'
| 'LINKEDIN_TEXT'
| 'LINKEDIN_INMAIL'
| 'LINKEDIN_DYNAMIC'
| 'FACEBOOK_STORIES'
| 'FACEBOOK_INSTANT_ARTICLES'
| 'FACEBOOK_RIGHT_HAND_COLUMN'
| 'FACEBOOK_MARKETPLACE'
| 'INSTAGRAM_STORIES'
| 'FACEBOOK_MESSENGER_STORIES'
| 'FACEBOOK_SEARCH'
| 'FACEBOOK_INSTREAM_VIDEO'
| 'FACEBOOK_REELS'
| 'INSTAGRAM_EXPLORE_HOME'
| 'INSTAGRAM_PROFILE_FEED'
| 'INSTAGRAM_PROFILE_REELS'
| 'LINKEDIN_AUDIENCE_NETWORK'
| 'TWITTER_ALL'
| 'TWITTER_PUBLISHER_NETWORK'
| 'TWITTER_SEARCH'
| 'TWITTER_TIMELINE'
| 'TWITTER_PROFILE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK_UNKNOWN'
| 'FACEBOOK_VIDEO_FEED'
| 'INSTAGRAM_REELS'
| 'INSTAGRAM_SHOP'
| 'INSTAGRAM_EXPLORE'
| 'TIKTOK_FEED'
| 'META_AUTOMATIC'
promotionId?: string
target?: {
id?: string
name?: string
namingTemplateElementValues?: { elementId?: string; value?: string }[]
gender?: 'ALL' | 'MALE' | 'FEMALE'
language?:
| 'ALL'
| 'DE'
| 'FR'
| 'EN'
| 'IT'
| 'ES'
| 'PT'
| 'NL'
| 'SV'
| 'RO'
| 'CS'
| 'EL'
| 'TR'
| 'PL'
| 'DA'
| 'EU'
| 'CY'
| 'CA'
| 'HU'
| 'SK'
| 'SL'
| 'SQ'
| 'HY'
| 'BS'
| 'BG'
| 'HR'
| 'UK'
| 'NO'
| 'FI'
additionalLanguages?:
| 'ALL'
| 'DE'
| 'FR'
| 'EN'
| 'IT'
| 'ES'
| 'PT'
| 'NL'
| 'SV'
| 'RO'
| 'CS'
| 'EL'
| 'TR'
| 'PL'
| 'DA'
| 'EU'
| 'CY'
| 'CA'
| 'HU'
| 'SK'
| 'SL'
| 'SQ'
| 'HY'
| 'BS'
| 'BG'
| 'HR'
| 'UK'
| 'NO'
| 'FI'[]
linkedInTargetingEntityLinkOperator?: 'AND' | 'OR'
linkedInTargetingCriterias?: {
facetUrn?: string
urn?: string
name?: string
children?: {}[]
parentUrn?: string
}[]
linkedInTargetingCriteriaGroups?: {
linkedInTargetingEntityLinkOperator?: 'AND' | 'OR'
linkedInTargetingCriterias?: {
facetUrn?: string
urn?: string
name?: string
children?: {}[]
parentUrn?: string
}[]
}[]
googleAdGroups?: {
id?: string
name?: string
type?: 'STANDARD' | 'DYNAMIC'
googleKeywords?: {
name?: string
competition?: 'LOW' | 'MEDIUM' | 'HIGH' | 'UNKNOWN'
averageMonghtlySearchVolume?: number
averageCpc?: number
cpc?: number
cpm?: number
link?: string
status?:
| 'IS_RUNNING'
| 'STOP'
| 'IN_REVIEW'
| 'REMOVED'
| 'COMPLETED'
| 'DISAPPROVED'
| 'IS_STOPPING'
bid?: number
finalUrl?: string
averageImpressionsPerMonth?: number
}[]
status?:
| 'IS_RUNNING'
| 'STOP'
| 'IN_REVIEW'
| 'REMOVED'
| 'COMPLETED'
| 'DISAPPROVED'
| 'IS_STOPPING'
bid?: number
targetCpa?: number
targetReturnOnAdSpendPercentage?: number
trackingUrlTemplate?: string
customParameters?: { key?: string; value?: string }[]
adGroupExclusion?: {
googleKeywords?: {
name?: string
competition?: 'LOW' | 'MEDIUM' | 'HIGH' | 'UNKNOWN'
averageMonghtlySearchVolume?: number
averageCpc?: number
cpc?: number
cpm?: number
link?: string
status?:
| 'IS_RUNNING'
| 'STOP'
| 'IN_REVIEW'
| 'REMOVED'
| 'COMPLETED'
| 'DISAPPROVED'
| 'IS_STOPPING'
bid?: number
finalUrl?: string
averageImpressionsPerMonth?: number
}[]
retargeting?: {
googleUserLists?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
bidModifier?: number
bidModifierType?: 'INCREASE' | 'DECREASE'
}[]
facebookCustomAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
linkedInMatchedAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
twitterCustomAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
tikTokAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
}
}
retargeting?: {
googleUserLists?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
bidModifier?: number
bidModifierType?: 'INCREASE' | 'DECREASE'
}[]
facebookCustomAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
linkedInMatchedAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
twitterCustomAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
tikTokAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
}
devices?: {
showOnMobile?: false | true
showOnTablet?: false | true
showOnDesktop?: false | true
mobileBidModifier?: number
mobileBidModifierType?: 'INCREASE' | 'DECREASE'
tabletBidModifier?: number
tabletBidModifierType?: 'INCREASE' | 'DECREASE'
desktopBidModifier?: number
desktopBidModifierType?: 'INCREASE' | 'DECREASE'
}
extension?: {
sitelinkExtensions?: {
feedId?: number
feedItemId?: number
assetId?: number
adwordsCustomerId?: string
extensionStatus?: 'ACCOUNT' | 'CAMPAIGN' | 'ADGROUP' | 'NONE'
extensionRunStatus?:
| 'ADDED_CAMPAIGN'
| 'ADDED_ADGROUP'
| 'ADDED_ACCOUNT'
| 'IS_CAMPAIGN_LINKED'
| 'IS_ADGROUP_LINKED'
| 'UNLINKING'
| 'UNLINKED'
sitelinkName?: string
sitelinkUrl?: string
sitelinkDescription1?: string
sitelinkDescription2?: string
finalUrls?: string[]
finalMobileUrls?: string[]
sitelinkTrackingUrl?: string
}[]
calloutExtensions?: {
feedId?: number
feedItemId?: number
assetId?: number
adwordsCustomerId?: string
extensionStatus?: 'ACCOUNT' | 'CAMPAIGN' | 'ADGROUP' | 'NONE'
extensionRunStatus?:
| 'ADDED_CAMPAIGN'
| 'ADDED_ADGROUP'
| 'ADDED_ACCOUNT'
| 'IS_CAMPAIGN_LINKED'
| 'IS_ADGROUP_LINKED'
| 'UNLINKING'
| 'UNLINKED'
calloutText?: string
}[]
callExtensions?: {
feedId?: number
feedItemId?: number
assetId?: number
adwordsCustomerId?: string
extensionStatus?: 'ACCOUNT' | 'CAMPAIGN' | 'ADGROUP' | 'NONE'
extensionRunStatus?:
| 'ADDED_CAMPAIGN'
| 'ADDED_ADGROUP'
| 'ADDED_ACCOUNT'
| 'IS_CAMPAIGN_LINKED'
| 'IS_ADGROUP_LINKED'
| 'UNLINKING'
| 'UNLINKED'
phoneNumber?: string
country?: string
}[]
}
adRotationMode?: 'OPTIMIZE' | 'CONVERSION_OPTIMIZE' | 'ROTATE' | 'ROTATE_INDEFINITELY'
createdFromTargetingTemplateId?: string
}[]
twitterTargetingCriterias?: {
type?: 'KEYWORD' | 'FOLLOWER_LOOKALIKE'
value?: string
twitterId?: string
}[]
tikTokTargetingCriterias?: {
id?: string
name?: string
type?:
| 'INTEREST_CATEGORY'
| 'INTEREST_KEYWORD'
| 'ACTION_CATEGORY_VIDEO'
| 'ACTION_CATEGORY_CREATOR'
| 'HASHTAG'
children?: {}[]
}[]
facebookInterestGroups?: {
facebookInterests?: {
id?: string
type?: string
name?: string
audience_size?: number
children?: {}[]
path?: string[]
}[]
}[]
facebookInterests?: {
id?: string
type?: string
name?: string
audience_size?: number
children?: {}[]
path?: string[]
}[]
facebookAdGroups?: {
id?: string
name?: string
facebookInterests?: {
id?: string
type?: string
name?: string
audience_size?: number
children?: {}[]
path?: string[]
}[]
status?:
| 'IS_RUNNING'
| 'STOP'
| 'IN_REVIEW'
| 'REMOVED'
| 'COMPLETED'
| 'DISAPPROVED'
| 'IS_STOPPING'
bid?: number
retargeting?: {
googleUserLists?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
bidModifier?: number
bidModifierType?: 'INCREASE' | 'DECREASE'
}[]
facebookCustomAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
linkedInMatchedAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
twitterCustomAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
tikTokAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
}
devices?: {
showOnMobile?: false | true
showOnTablet?: false | true
showOnDesktop?: false | true
mobileBidModifier?: number
mobileBidModifierType?: 'INCREASE' | 'DECREASE'
tabletBidModifier?: number
tabletBidModifierType?: 'INCREASE' | 'DECREASE'
desktopBidModifier?: number
desktopBidModifierType?: 'INCREASE' | 'DECREASE'
}
}[]
targetRegions?: {
type?: 'CITY' | 'REGION' | 'ZIP' | 'COORDINATE'
city?: string
useRadius?: false | true
radiusInKm?: number
countryCode?: string
lat?: number
lon?: number
bidModifier?: number
bidModifierType?: 'INCREASE' | 'DECREASE'
linkedInUrn?: string
twitterTargetingValue?: string
tikTokLocationId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
externalPlaceId?: string
regionReviewEnabled?: false | true
regionReviewStatus?: 'PENDING_APPROVAL' | 'APPROVED' | 'NOT_APPROVED'
}[]
targetRegionBehaviour?: {
interestedInThatRegion?: false | true
locatedInThatRegion?: false | true
}
age?: { value?: number[] }
yearsOfExperience?: { enabled?: false | true; value?: number[] }
devices?: {
showOnMobile?: false | true
showOnTablet?: false | true
showOnDesktop?: false | true
mobileBidModifier?: number
mobileBidModifierType?: 'INCREASE' | 'DECREASE'
tabletBidModifier?: number
tabletBidModifierType?: 'INCREASE' | 'DECREASE'
desktopBidModifier?: number
desktopBidModifierType?: 'INCREASE' | 'DECREASE'
}
targetExclusion?: {
facebookInterests?: {
id?: string
type?: string
name?: string
audience_size?: number
children?: {}[]
path?: string[]
}[]
linkedInTargetingCriterias?: {
facetUrn?: string
urn?: string
name?: string
children?: {}[]
parentUrn?: string
}[]
googleKeywords?: {
name?: string
competition?: 'LOW' | 'MEDIUM' | 'HIGH' | 'UNKNOWN'
averageMonghtlySearchVolume?: number
averageCpc?: number
cpc?: number
cpm?: number
link?: string
status?:
| 'IS_RUNNING'
| 'STOP'
| 'IN_REVIEW'
| 'REMOVED'
| 'COMPLETED'
| 'DISAPPROVED'
| 'IS_STOPPING'
bid?: number
finalUrl?: string
averageImpressionsPerMonth?: number
}[]
targetRegions?: {
type?: 'CITY' | 'REGION' | 'ZIP' | 'COORDINATE'
city?: string
useRadius?: false | true
radiusInKm?: number
countryCode?: string
lat?: number
lon?: number
bidModifier?: number
bidModifierType?: 'INCREASE' | 'DECREASE'
linkedInUrn?: string
twitterTargetingValue?: string
tikTokLocationId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
externalPlaceId?: string
regionReviewEnabled?: false | true
regionReviewStatus?: 'PENDING_APPROVAL' | 'APPROVED' | 'NOT_APPROVED'
}[]
retargeting?: {
googleUserLists?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
bidModifier?: number
bidModifierType?: 'INCREASE' | 'DECREASE'
}[]
facebookCustomAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
linkedInMatchedAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
twitterCustomAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
tikTokAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
}
linkedInTargetingEntityLinkOperator?: 'AND' | 'OR'
twitterTargetingCriterias?: {
type?: 'KEYWORD' | 'FOLLOWER_LOOKALIKE'
value?: string
twitterId?: string
}[]
}
retargeting?: {
googleUserLists?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
bidModifier?: number
bidModifierType?: 'INCREASE' | 'DECREASE'
}[]
facebookCustomAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
linkedInMatchedAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
twitterCustomAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
tikTokAudiences?: {
retargetingList?: {
googleCustomerId?: string
facebookAccountId?: string
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
name?: string
status?: 'OPEN' | 'NOT_ENOUGH_USERS' | 'CLOSED'
userId?: string
googleRetargetingListId?: string
facebookCustomAudienceId?: string
linkedInAudienceId?: string
twitterAudienceId?: string
tikTokAudienceId?: string
urlPath?: string
engagementSource?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
engagementType?: 'ENGAGED' | 'FOLLOWER'
description?: string
audienceSize?: number
retentionDays?: number
}
}[]
}
shoppingSettings?: {
googleMerchantAccount?: { merchantAccountId?: string; name?: string }
salesCountry?: string
enableLocal?: false | true
googleShoppingCampaignType?: 'CLASSIC' | 'SMART'
productScopeType?: 'NONE' | 'FILTER'
productScopes?: {
productDimension?:
| 'BRAND'
| 'PRODUCT_NR'
| 'STATE'
| 'PRODUCT_TYPE'
| 'CUSTOM_LABEL_0'
| 'CUSTOM_LABEL_1'
| 'CUSTOM_LABEL_2'
| 'CUSTOM_LABEL_3'
| 'CUSTOM_LABEL_4'
| 'CHANNEL'
| 'CHANNEL_EXCLUSIVE'
value?: string
}[]
facebookProductCatalog?: {
id?: string
name?: string
nbrOfProducts?: number
nbrOfQualifiedProducts?: number
}
facebookDynamicAdsTargetingType?: 'RETARGETING' | 'BROAD'
facebookProductSet?: {
id?: string
name?: string
nbrOfProducts?: number
}
facebookRetargetingIncludedRetentionDays?: number
facebookRetargetingExcludedRetentionDays?: number
}
dynamicSearchSettings?: { domainName?: string; languageCode?: string }
extension?: {
sitelinkExtensions?: {
feedId?: number
feedItemId?: number
assetId?: number
adwordsCustomerId?: string
extensionStatus?: 'ACCOUNT' | 'CAMPAIGN' | 'ADGROUP' | 'NONE'
extensionRunStatus?:
| 'ADDED_CAMPAIGN'
| 'ADDED_ADGROUP'
| 'ADDED_ACCOUNT'
| 'IS_CAMPAIGN_LINKED'
| 'IS_ADGROUP_LINKED'
| 'UNLINKING'
| 'UNLINKED'
sitelinkName?: string
sitelinkUrl?: string
sitelinkDescription1?: string
sitelinkDescription2?: string
finalUrls?: string[]
finalMobileUrls?: string[]
sitelinkTrackingUrl?: string
}[]
calloutExtensions?: {
feedId?: number
feedItemId?: number
assetId?: number
adwordsCustomerId?: string
extensionStatus?: 'ACCOUNT' | 'CAMPAIGN' | 'ADGROUP' | 'NONE'
extensionRunStatus?:
| 'ADDED_CAMPAIGN'
| 'ADDED_ADGROUP'
| 'ADDED_ACCOUNT'
| 'IS_CAMPAIGN_LINKED'
| 'IS_ADGROUP_LINKED'
| 'UNLINKING'
| 'UNLINKED'
calloutText?: string
}[]
callExtensions?: {
feedId?: number
feedItemId?: number
assetId?: number
adwordsCustomerId?: string
extensionStatus?: 'ACCOUNT' | 'CAMPAIGN' | 'ADGROUP' | 'NONE'
extensionRunStatus?:
| 'ADDED_CAMPAIGN'
| 'ADDED_ADGROUP'
| 'ADDED_ACCOUNT'
| 'IS_CAMPAIGN_LINKED'
| 'IS_ADGROUP_LINKED'
| 'UNLINKING'
| 'UNLINKED'
phoneNumber?: string
country?: string
}[]
}
status?:
| 'IS_RUNNING'
| 'STOP'
| 'IN_REVIEW'
| 'REMOVED'
| 'COMPLETED'
| 'DISAPPROVED'
| 'IS_STOPPING'
createdFromTargetingTemplateId?: string
facebookSpecialAdCategory?:
| 'NONE'
| 'CREDIT'
| 'EMPLOYMENT'
| 'HOUSING'
| 'ISSUES_ELECTIONS_POLITICS'
| 'ONLINE_GAMBLING_AND_GAMING'
facebookSpecialAdCategoryCountry?: string
}
budgetChannel?: {
channel?:
| 'GOOGLE_DISPLAY_NETWORK'
| 'YOUTUBE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK'
| 'INSTAGRAM'
| 'GOOGLE_ADWORDS'
| 'GOOGLE_ANALYTICS'
| 'XING'
| 'LINKED_IN'
| 'TWITTER'
| 'TIKTOK'
| 'BITLY'
placement?:
| 'GOOGLE_SEARCH_NETWORK'
| 'FACEBOOK_TIMELINE'
| 'GOOGLE_DISPLAY_NETWORK'
| 'FACEBOOK_AUDIENCE_NETWORK'
| 'YOUTUBE'
| 'INSTAGRAM_TIMELINE'
| 'GOOGLE_SHOPPING'
| 'FACEBOOK_MESSENGER'
| 'LINKEDIN_CONTENT'
| 'LINKEDIN_TEXT'
| 'LINKEDIN_INMAIL'
| 'LINKEDIN_DYNAMIC'
| 'FACEBOOK_STORIES'
| 'FACEBOOK_INSTANT_ARTICLES'
| 'FACEBOOK_RIGHT_HAND_COLUMN'
| 'FACEBOOK_MARKETPLACE'
| 'INSTAGRAM_STORIES'
| 'FACEBOOK_MESSENGER_STORIES'
| 'FACEBOOK_SEARCH'
| 'FACEBOOK_INSTREAM_VIDEO'
| 'FACEBOOK_REELS'
| 'INSTAGRAM_EXPLORE_HOME'
| 'INSTAGRAM_PROFILE_FEED'
| 'INSTAGRAM_PROFILE_REELS'
| 'LINKEDIN_AUDIENCE_NETWORK'
| 'TWITTER_ALL'
| 'TWITTER_PUBLISHER_NETWORK'
| 'TWITTER_SEARCH'
| 'TWITTER_TIMELINE'
| 'TWITTER_PROFILE'
| 'GOOGLE_MY_BUSINESS'
| 'FACEBOOK_UNKNOWN'
| 'FACEBOOK_VIDEO_FEED'
| 'INSTAGRAM_REELS'
| 'INSTAGRAM_SHOP'
| 'INSTAGRAM_EXPLORE'
| 'TIKTOK_FEED'
| 'META_AUTOMATIC'
selected?: false | true
totalCost?: number
bid?: number
maxBid?: number
costType?: 'CPC' | 'CPM'
bidType?: 'AUTOMATIC' | 'MANUAL'
linkedInBiddingOptimization?:
| 'MAXIMIZE_CLICKS'
| 'MAXIMIZE_IMPRESSIONS'
| 'MAXIMIZE_CONVERSIONS'
| 'MAXIMIZE_LEADS'
linkedInDailyBudget?: number
facebookBudgetOptimization?: 'CAMPAIGN_BUDGET_OPTIMIZATION' | 'ADSET_BUDGET_OPTIMIZATION'
facebookTrafficOptimization?: 'LINK_CLICKS' | 'LANDING_PAGE_VIEWS'
twitterBudgetOptimization?: 'CAMPAIGN_BUDGET_OPTIMIZATION' | 'AD_GROUP_BUDGET_OPTIMIZATION'
tikTokBudgetOptimization?: 'CAMPAIGN_BUDGET_OPTIMIZATION' | 'AD_GROUP_BUDGET_OPTIMIZATION'
targetBudgets?: {
targetId?: string
budget?: number
linkedInDailyBudget?: number
metaBudgetSplit?: {
facebookBudget?: number
instagramBudget?: number
storyBudget?: number
reelsBudget?: number
}
}[]
}
adAccountId?: string
}
) {
const url = new URL(`https://app.adhook.io/v1/promotions/linkedin/reachestimation`)
const response = await fetch(url, {
method: 'POST',
headers: {
adhookToken: adhookToken,
Authorization: `Bearer ${auth.token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify(body)
})
if (!response.ok) {
const text = await response.text()
throw new Error(`${response.status} ${text}`)
}
return await response.json()
}
Submitted by hugo697 42 days ago