Community Discussion

Ask a Question

403 error when creating campaign

Good Morning I am trying to create a campaign with a POST call with the following url: <https://backstage.taboola.com/backstage/api/1.0/prisma-voici-sc/campaigns/> with the following parameters: **{ "name": "PMO_voi_article_mobile_android_flux_tag_famille_test_dupli_auto", "branding_text": "Voici", "tracking_code": "utm_source=taboola&utm_medium=cpc&utm_campaign=PMO_voi_article_mobile_android_flux_tag_famille_test_dupli_auto_1&utm_term={campaign_id}|{site}|{campaign_item_id}", "cpc": 0.01, "daily_cap": 20, "daily_ad_delivery_model": "STRICT", "spending_limit": null, "spending_limit_model": "NONE", "cpa_goal": 0, "min_expected_conversions_for_cpa_goal": null, "country_targeting": { "type": "INCLUDE", "value": [ "BE", "FR", "CH", "CA" ], "href": null }, "sub_country_targeting": { "type": "ALL", "value": \[], "href": null }, "dma_country_targeting": { "type": "ALL", "value": \[], "href": null }, "region_country_targeting": { "type": "ALL", "value": \[], "href": null }, "city_targeting": { "type": "ALL", "value": \[], "href": null }, "contextual_targeting": { "type": "ALL", "value": \[], "href": null }, "platform_targeting": { "type": "INCLUDE", "value": [ "PHON", "TBLT" ], "href": null }, "publisher_targeting": { "type": "EXCLUDE", "value": [ "ladpche-web", "midi-libre-web" ], "href": null }, "auto_publisher_targeting": { "type": "ALL", "value": \[], "href": null }, "os_targeting": { "type": "INCLUDE", "value": \[ { "os_family": "Android", "sub_categories": \[] } ], "href": null }, "connection_type_targeting": { "type": "ALL", "value": \[], "href": null }, "campaign_profile": null, "comments": "", "bid_type": "FIXED", "bid_strategy": "FIXED", "traffic_allocation_mode": "OPTIMIZED", "external_brand_safety": { "type": "NONE", "values": \[] }, "campaign_groups": null, "target_cpa": null, "conversion_rules": { "rules": \[] }, "funnel_template": null, "traffic_allocation_ab_test_end_date": null, "approval_state": "APPROVED", "is_active": true, "contextual_segments_targeting": { "state": "ALL", "value": null, "href": "https\:\\\/\\\/backstage.taboola.com\\\/backstage\\\/api\\\/1.0\\\/prisma-voici-sc\\\/campaigns\\\/30742854\\\/targeting\\\/contextual_segments" }, "custom_contextual_targeting": { "state": "ALL", "value": null, "href": "https\:\\\/\\\/backstage.taboola.com\\\/backstage\\\/api\\\/1.0\\\/prisma-voici-sc\\\/campaigns\\\/30742854\\\/targeting\\\/custom_contextual_segments" }, "custom_audience_targeting": { "state": "ALL", "value": null, "href": "https\:\\\/\\\/backstage.taboola.com\\\/backstage\\\/api\\\/1.0\\\/prisma-voici-sc\\\/campaigns\\\/30742854\\\/targeting\\\/custom_audience" }, "segments_targeting": { "AGE": { "type": "ALL", "value": \[], "href": "https\:\\\/\\\/backstage.taboola.com\\\/backstage\\\/api\\\/1.0\\\/prisma-voici-sc\\\/campaigns\\\/30742854\\\/targeting\\\/age_segments" }, "GENDER": { "type": "ALL", "value": \[], "href": "https\:\\\/\\\/backstage.taboola.com\\\/backstage\\\/api\\\/1.0\\\/prisma-voici-sc\\\/campaigns\\\/30742854\\\/targeting\\\/gender_segments" } }, "segments_multi_targeting": null, "marketing_objective": "DRIVE_WEBSITE_TRAFFIC", "verification_pixel": null, "viewability_tag": null, "activity_schedule": { "mode": "ALWAYS", "rules": \[], "time_zone": "Europe\\\/Paris" }, "browser_targeting": { "type": "ALL", "value": \[], "href": null }, "type": "PAID", "is_spend_guard_active": "ACTIVE" }** and i am always having this error: **Erreur : {"http_status":403,"message":"Requested action is forbidden","message_code":"api.action.forbidden"}** i am using a user id provider for my account and our liaison in Taboola confirs that the user have the editing campaign rights Thank you **Bouraoui Mejri Prima Media IT development department**

How to convert conversions into leads in taboola Ads

How to convert conversions into leads in taboola Ads i got plenty of conversions but i cant download it should i use CRM softwares help me with this issue .

Cannot use campaign filter in campaign_site_day_breakdown

Hi! Trying to filter by campaign in campaign_site_day_breakdown report, but getting "Filter 'campaign' has invalid value" My query: <https://backstage.taboola.com/backstage/api/1.0/campaign-name/reports/campaign-summary/dimensions/campaign_site_day_breakdown?start_date=2023-11-28&end_date=2023-11-29&campaign=12345678> (changed real IDs with similar)

Top Campaign Content Report for current day

We have a system in place that runs the `reports/top-campaign-content/dimensions/item_breakdown?start_date={date}&end_date={date}` each day at 13:00 UTC and we pass the previous days date. We've expanded this recently in an attempt to bring in today's data incrementally but it seems like the API does not return data when we pass in today's date. Is there a way to get the data this report offers for the _current day_? I see that the Campaign Summary Report has a mention of timestamps being supported when using the hourly dimension. Is there such a thing for this endpoint/report? Thanks in advance.

Error when trying to create an item in campaign

Hi, I'm trying to create an item in an existing campaign, and I keep getting the following error: { "http_status": 404, "message": "Resource not found", "message_code": "api.action.resource_not_found" } the post request is sent to the following : <https://backstage.taboola.com/backstage/api/1.0/${account_id}/campaigns/${account_id}/items/> according to the documentation in this link: <https://developers.taboola.com/backstage-api/reference/create-a-campaign-item> both the campaign and the account are valid, Do you have any Idea what can be the problem? Thanks

campaign_hour_breakdown seems 23rd/0th hour issue

Hi, I am using campaign_hour_breakdown dimension for campaign/date/hour metrics. But it seems the metrics between 23rd hour one one day to 0th hour of next day is attributing to 0th hour of next day. But since those metrics are from 23rd to 0th of first day it should be there. Because of this if we take daily counts from Portal and sum campaign_hour_breakdown metrics to date level, it is not matching Is there any fix to resolve it.

Regarding Spend Guard Feature & Pub Unblocking

Hi Team, We recently noticed that the publishers under our campaigns are being blocked by a feature called "Spend Guard". If there a way for us to pull a list of publishers that this feature has blocked across our campaigns via the API? Also, is there a way that we can unblock publishers in bulk via the API?

Taboola Campaign Duplication: Campaign duplicated after API returned 401 unauthorized

We are using the backstage api to create campaigns via duplication. We faced an instance where Taboola returned 401 Unauthorized for a request but still created the campaign at their end. It was thankfully detected but this is a very dangerous situation. Allowing campaigns to be created after returning FAILED status to end user can cause spends to be incurred. Please investigate and fix the issue on priority. Logs (Timestamps are in UTC) : 2023-11-13 10:38:50.164 INFO 1 --- [l-15-thread-145] \: --> POST <https://backstage.taboola.com/backstage/api/1.0/>\<redacted_source_account>/campaigns/30114321/duplicate?destination_account=\<redacted_destination_account> (182-byte body) 2023-11-13 10:39:17.769 INFO 1 --- [l-15-thread-145] \: \<-- 401 Unauthorized <https://backstage.taboola.com/backstage/api/1.0/>\<redacted_source_account>/campaigns/30114321/duplicate?destination_account=\<redacted_destination_account> (27605ms, unknown-length body) The campaign was created and is present in \<redacted_destination_account> with campaign Id :30298951 Details of these account, campaigns will be shared via private correspondence to our AccountManager

404 get all campaigns

When I try to get all the campaigns, I'm getting a 404 response: { http_status: 404, message: 'account', message_code: 'api.action.resource_not_found' } const fetch = require('node-fetch'); require('dotenv').config(); const url = '<https://backstage.taboola.com/backstage/api/1.0/ADACCOUNTID/campaigns/'>; const options = { method: 'GET', headers: { authorization: 'Bearer ' + process.env.TABOOLA_ACCESS } }; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err)); What could be the issue?

Gaps in data collection API?

Why are there gaps in pulling exposure data from the system to the BI software?
150030003014004014034044294_flows50050390_daysaccess_tokenaccountaccount_creationaccount_idaccount_levelaccount_level_blockaccount_typeaccountsactivity_scheduleactual_cpcadvertiser_idadvertisersallowed_accountsalphabeticapi_accessapi_changesapi_keyapi_newsletterapi_secretaudienceaudience_onboardingaudience_segmentsaudience_targetingaudiencesaudit_trailauthorization_codeauto_targetingaws_downtimeaws_serverbalancebasebasic_authenticationbibidbid_modifierbid_modifiersbid_strategybillingbilling_cycleblockblock_publisherblock_publishersbrand_safetybrowser_breakdownbulk_createbulk_updatebulk_update_campaignsby_audienceby_campaignby_hour_of_daycachingcampaigncampaign_daycampaign_day_breakdowncampaign_fieldscampaign_learningcampaign_levelcampaign_ownercampaign_site_daycampaign_summarycampaignscity_targetingclick_idclicksclient_credentialsclient_idclient_secretcode_snippetconnectorcontent-typeconveresion_ruleconversion_dataconversion_ruleconversionsconversions_valuecorscountriescountrycountry_codescpa_actionscpa_actions_numcpccpc_macrocreate_campaigncreate_itemcreate_timecreation_datectacustom_audiencecustom_audience_rulecustom_conversion_rulecustom_conversionscut_offdaily_capdaily_spenddata_freshnessdata_studiodata_studio_connectordayday_dimensionday_partingdelaydeletedictionarydifferent_accountdiscrepancydocs_issuedocumentationdomainduplicateduplicate_campaignduplicate_campaignsempty_responseend_dateevent_basedexelatefeature_requestfetch_levelfiltersfirst_party_audienceflowfull_authenticationget_account_detailsgoogle_apps_scriptgoogle_scriptgoogle_sheetshidden_audiencehidden_segmentshourlyhourly_reportinghourly_spendhtmlhtml_login_pagehtml_responseiasimplicit_flowinactive_accountsinclude_multi_conversionsinclusionsintegrationinternal_support_ticketip_addressis_atomicitemitemsixudra_curljava_client_sdkjava_sdkjavascriptjsjupyter_notebooklaravellearning_statelimitlist_of_publisherslookalike_audiencelookalike_audienceslookback_windowloss_of_scalemacrosmalformed_jsonmarketplacemarketplace_audiencesmax_campaignsmax_itemsmax_resultsminimum_bidminimum_cpcmixedanalyticsmy_audiencesnetworknetwork_accountnew_featurenullnumeric_site_idoauth2os_breakdownpage_viewpagingpartner_typepassword_credentialspatchpausepermissionsphppixel_lookalikeplacementplacement_breakdownplacement_filterplacement_nameplatform_targetingpostmanprecannedprerequisites_not_metpublisherpublisher_bid_modifierpublisher_blockspublisher_idpublisher_namepublisher_networkpublisher_reportspublisher_targetingpublisher_urlpublisherspythonpython_clientrrate_limitreal_timereal_time_reportingrealtime_reportsrecommendation_apiredirect_urirejected_campaignsremove_allreport_cachingreportingreporting_discrepancyreportsretention_periodrevenuerevenue_summaryrevenue_summary_reportroadmaps2ssafety_ratingsalessandboxscalesitesite_breakdownsite_nameslowslownesssort_filterspecial_charsspendspending_limitsslssostatussub_accountssupermetricssupport_tickettataboola_adstaboola_pixeltargetingtcctest_accounttheoptimizertimeouttimezonetlstop_campaign_contenttop_contenttracking_codetypouiunblock_publishersunknown_publisherupdate_itemupload_imageurluser_accountsuser_segmentsutmvaluevideovideo_campaign_summaryvideo_campaignsvideo_completionsvideo_itemvideo_itemsviewsvisit_valuevoluumweb_hookswhitelistx-www-form-urlencodedyearly_reportingנ