Community Discussion
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
Posted by Tara Devi 3 months ago
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.
Posted by Aviv 3 months ago
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. ?
Posted by null 3 months ago
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.
Posted by Tara Devi 4 months ago
Upload Audience via SFTP
Hi all,
I haven't found it in the documentation but I'd like to ask anyway.
Is it possible to upload an audience to Taboola via SFTP?
Posted by Jeferson 4 months ago
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>
Posted by Ray Yang 4 months ago
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
Posted by Guy Navon 4 months ago
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.
Posted by Jhonatan Henrique 4 months ago
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?
Posted by cb 5 months ago
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()
```
Posted by WP Zhao 5 months ago