/advertising/campaigns/{campaignID}Ask AIput https://www.toneden.io/api/v1/advertising/campaigns/{campaignID}Update an ad campaign.Path ParamscampaignIDintegerrequiredNumeric ID of the ad campaign to update.Body ParamsidnumbertitlestringplatformstringenumThe platform the ad campaign will be delivering on (Facebook Ads or Google AdWords).facebookgoogleAllowed:facebookgoogleuser_idnumberstatusstringenumactiveinactivedrafterrorpendingpending-updatepausedpending-reviewShow 8 enum valuesstatus_messagestringThe error message received while creating the ad, if the ad is in 'error' status.status_logarray of objectsA list of log items detailing actions performed on the campaign, such as updates by the user, automated budget rebalances, and ad approvals/rejections.status_logADD objectreport_emailsarray of stringsreport_emailsADD stringdisable_all_notificationsbooleantruefalseis_archivedbooleanDefaults to falsetruefalseobjectivestringThe ID of the Facebook pixel that will be used to track conversions in this campaign.optimization_idstringThe name of the standard conversion event (or ID of the custom conversion event) to optimize this campaign for.targetstringThe URL to target in link-click and conversion ads, or the ID of the post, event, or product set to promote in post engagement, event RSVP, and dynamic ads, respectively.target_typestringenumThe type of the campaign objective.appconversiondynamic_producteventlikeslinkpage_messagingpost_engagementvideo_viewsShow 9 enum valuestarget_link_urlstringFor campaigns that have had their target URL masked by a fanlink, this will be the URL of the fanlink. This is always the 'true' target URL of ads in the campaign.targetingobjectContains targeting settings which are applied on a campaign-wide level, such as location targeting in Google campaigns.targeting objectaudiencesarray of objectsArray of audience items which will map to adsets in Facebook campaigns, and adgroups in Google campaigns.audiencesADD objectcreativesFacebookAdCampaignCreativesGoogleAdCampaignCreativesFacebookAdCampaignCreatives objectbudget_typestringenumdailylifetimeAllowed:dailylifetimebudget_amountnumbercurrencystring3-letter currency code that the budget of the campaign is in.start_timestampintegerUNIX timestamp representing the date/time the campaign will start running.end_timestampintegerUNIX timestamp representing the date/time the campaign will stop running.is_continuousbooleanWhether this campaign should run indefinitely. If true, the end_timestamp value is ignored.truefalseexternal_ad_account_idstringID of the Facebook ad account or Google Adwords account which the campaign is running under.external_idstringID of the campaign on the external ad platform.external_poster_idstringID of the Facebook page running the campaign.instagram_account_idstringIf the user manually selected an Instagram account when setting up the campaign, its ID will be stored in this field.amount_spentnumberThe total amount of money the campaign has spent.reachintegerThe number of unique people who have seen ads in this campaign.clicksintegerThe total number of clicks that ads in this campaign have received.purchasesintegerThe total number of purchases that have been driven by this campaign.conversionsintegerThe number of the target event (clicks for link click campaigns, View Content events for conversion campaigns optimizing for View Content, post engagements for post engagement campaigns) that have occurred as a result of this campaign.conversion_ratenumberThe ratio of views of ads in this campaign to conversions.conversion_valuenumberThe monetary value of purchases driven by this campaign.cost_per_conversionnumberThe average cost to drive a conversion.cpcnumberThe average cost to drive a click.ctrnumberThe ratio of views of ads in this campaign to clicks.followersnumberFor growth campaigns, the total number of followers the user has on the growth platform.initial_followersnumberFor growth campaigns, the number of followers the user had on the growth platform when the campaign started.Response 200Successfully updated ad campaign.Updated over 5 years ago