Community Discussion

Ask a Question
ANSWERED

Descrepancy in Hourly and daily report

Hi, Via API we pulled report for Nov 1st using two api: 1. Daywise total impressions: 154,742 2. Hourwise report and sum(total impressions) : 156,134 Ideally both the counts should match, but we see difference. Can you please help in understanding Thanks, Tara

Issue with Campaign Visibility in UI After Uploading via API

I am writing to seek assistance with an issue I've encountered while using the Taboola API for uploading campaigns. I have been successfully uploading campaigns via the API. However, after the upload, when I check the Taboola User Interface (UI), the advertisements associated with these campaigns are not immediately visible. The only workaround I've found is to manually turn off and then turn on the campaigns again in the UI. This step seems to refresh the visibility, allowing the advertisements to appear. Steps Taken: Campaigns are uploaded successfully via API. Checked the visibility of campaign advertisements in the Taboola UI. Manually toggled the campaigns off and on to make the advertisements appear. I am looking for a solution or explanation as to why this issue occurs and how I can resolve it. Any insights, advice, or similar experiences shared by the community would be greatly appreciated. Thank you for your time and assistance.
ANSWERED

Unable to create the campaign. Resource not found

When i Create new campaign getting error warning Unable to create the campaign. Resource not found What i Do. ?
ANSWERED

Discrepancies with hourly and daily data in Taboola Portal

Hi, We have screenshot for two reports pulled in for 1st Nov ' 2023 1. Day level impressions screenshot ![](https://files.readme.io/526c627-Screenshot_2024-01-09_165631.png) 2. Hourly level impression screenshot ![](https://files.readme.io/c30a912-Screenshot_2024-01-09_170938.png) In the above screenshot we see the impression is different for the same date. Can you please help us in understanding why there is an difference.
ANSWERED
ANSWERED

Top Campaign Content Report with multi_conversions

Hi All, I'm currently working on the "Top Campaign Content Report," attempting to retrieve the item report using my own custom conversion. I successfully obtained the report last week using the endpoint provided below: " <https://backstage.taboola.com/backstage/api/1.0/account_id/reports/top-campaign-content/dimensions/item_breakdown?start_date=2023-12-01&end_date=2023-12-31&include_multi_conversions=true> " However, when I tried the same endpoint, I only received basic data and static fields without dynamic fields. I have tried this with two different accounts that have custom conversions, but both of these accounts produced the same output. Any ideas on how to fix this issue? P.s. I'm following the step on this site: <https://developers.taboola.com/backstage-api/reference/top-campaign-content-report>
ANSWERED

Get images endpoint options

Hello, Using the example data, calling the <https://backstage.taboola.com/backstage/api/1.0/operations/thirdparty/image> produces 10 images. I saw no options to specify restrictions or anything else for that image endpoint, and to get more or less than 10 pictures. Is the endpoint limited to exactly 10 photos by search term each time? Thanks
ANSWERED

Authorization Code Flow: Taboola Service Unavailable

Hello, I'm getting the following error when trying to authorize: Taboola Service Unavailable. From what I researched in the community, this error is related to the redirect_uri that was not added to your white list. I'm using this API reference: <https://developers.taboola.com/backstage-api/reference/authorization-code-flow> I sent the redirect URL that I need in the following case via email: 00674968 and 00679177.
ANSWERED

targetting specific websites

We are trying to target just a few specific websites (yahoo finance, etc) but when we go Edit Campaign // Advanced Options // Blocked sites and try to switch it to include it's greyed out and only says Exclude. How do we target specific websites?
ANSWERED

Query each site spent in the last seven days against campaign_id and site

i always get 400. Here's my code. Please help me improve it. Please ```Text python import requests from datetime import datetime, timedelta # ć…šć±€ć˜é‡ client_id = 'xxx' client_secret = 'xxx' access_token = "xxx" account_id = "xxx-sc" campaign_id = "xxx" base_url = "https://backstage.taboola.com/backstage/api/1.0/" headers = { "Authorization": f"Bearer {access_token}" } def get_access_token(client_id, client_secret): url = 'https://backstage.taboola.com/backstage/oauth/token' payload = { 'client_id': client_id, 'client_secret': client_secret, 'grant_type': 'client_credentials' } headers = {"content-type": "application/x-www-form-urlencoded"} response = requests.post(url, data=payload, headers=headers) return response.json()['access_token'] def get_campaign_details(account_id, campaign_id): url = f"{base_url}{account_id}/campaigns/{campaign_id}/" response = requests.get(url, headers=headers) if response.status_code == 200: return response.json() else: print("Error fetching campaign details:", response.status_code) return None def get_campaign_summary(account_id, campaign_id, start_date, end_date, site): url = f"{base_url}{account_id}/reports/campaign-summary/dimensions/day" params = { "start_date": start_date, "end_date": end_date, "campaign": campaign_id, "site": site } response = requests.get(url, headers=headers, params=params) if response.status_code == 200: return response.json() else: print("Error fetching campaign summary:", response.status_code) return None def main(): # access_token = get_access_token(client_id, client_secret) # print(access_token) campaign_details = get_campaign_details(account_id, campaign_id) if campaign_details and 'publisher_targeting' in campaign_details: sites = campaign_details['publisher_targeting'] if sites: end_date = datetime.now().date() start_date = end_date - timedelta(days=7) site_spent = [] for site in sites: summary = get_campaign_summary(account_id, campaign_id, start_date, end_date, site) if summary: total_spent = sum(item['spent'] for item in summary['results']) site_spent.append((site, total_spent)) site_spent.sort(key=lambda x: x[1], reverse=True) print("Top 10 sites by spent:") for site, spent in site_spent[:10]: print(f"Site: {site}, Spent: {spent}") if __name__ == "__main__": main() ```
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Ś