Community Discussion
Get campaign return resource not found
Hi,
i'm trying to get campaign details so I could make changes to it afterwards.
we have several accounts and i'm authenticating with our main one (network, account id: 1308199).
for getting campaign I tried to use below request:
https://backstage.taboola.com/backstage/api/1.0/account_id/campaigns/_campaign_id/.
But I got 404 resource not found.
(account id: 1308205, campaign Id: 6085733)
I tried to get all campaigns for above account with:
https://backstage.taboola.com/backstage/api/1.0/account_id/campaigns.
but still got 404 resource not found.
(also tried with the network account id and still same 404 error).
I believe i'm missing something basic here, can you please check it out?
Avi.
Posted by Avi L about 3 years ago
batch updating campaigns
1- is there a way to update several campaigns in a single request?
2- is there an api limit if I wanted to update > 50 campaigns at once?
Posted by Abdallah AlHalees about 3 years ago
Duplicate a campaign to a different advertiser_id
This is regarding and endpoint to`DUPLICATE` a campaign - [backstage-api reference](https://developers.taboola.com/backstage-api/reference#duplicate-a-campaign)
POST https://backstage.taboola.com/backstage/api/1.0/{advertiser_id}/campaigns/{campaign_id}/duplicate
The above is the endpoint I'm using to duplicate a campaign, but attempting to duplicate to a different advertiser_id, I receive 400 BAD REQUEST with the following msg:
``{
"http_status": 400,
"message": "Trying to modify a read-only field",
"offending_field": "advertiser_id",
"message_code": "api.action.bad_request.field_read_only.advertiser_id"
}``
Is there a way to duplicate a campaign into a different `advertiser_id` via API? This functionality seems to be available on Taboola dashboard, so any guidance would be appreciated.
Posted by Melody Song about 3 years ago
bid strategy in duplicate
Hey,
I would like to know if there is an option to change the Bid Strategy while you duplicate a campaign?
Posted by Guy Horowitz about 3 years ago
Ingest Safety Rating column for a campaign
I want to ingest the Safety Rating column for a campaign that is available in the UI.
Currently I ingest the campaign reports using the Campaign Summary Report API i.e.
https://backstage.taboola.com/backstage/api/1.0/account_id/reports/campaign-summary/dimensions/account_id/campaign_breakdown?start_date={start_date}&end_date={end_date}
This api does not give information about the `Safey Rating` per campaign. How can I get this data?
Posted by Annette Kotian over 3 years ago
BREAKING: Malformed JSON response breaking our automation
Taboola API is sometimes responding with malformed JSON when hitting endpoint: "https://backstage.taboola.com/backstage/api/1.0/{account_id}/campaigns/".
JSON response is getting cut off, and we're not able to decode so it is breaking all of our automation. For example, the last debug response I pulled is ending in the middle of a "publisher_targeting" array. This is the very end of a response we got, where you can clearly see it is not a closed array or object, it just ends:
"publisher_targeting":{"type":"EXCLUDE","value":[ ... "mp-metropcs-cashew-appnoticias-es","mp-metropcs-cashew-app"
This is a log of the raw JSON response, and as I said it works a % of the time so I don't think it is anything on our end.
Are you aware of this issue?
Posted by Mike over 3 years ago
Fetching Campaigns
Hey, When I Fetch campaigns I get the results as an empty array,
but when I run the summary report I get the report as it should be with campaigns.
The Request:
https://backstage.taboola.com/backstage/api/1.0/account_id/campaigns/
Posted by Guy Horowitz over 3 years ago
[API] Campaigns λͺ©λ‘μ λΆλ¬ μ¬ μ μμ΅λλ€.
μλ
νμΈμ.
νλΈλΌ APIλ₯Ό μ΄μ©ν΄μ κ°μ μ‘°ννλ €κ³ ν©λλ€.
client_id + client_secret λ₯Ό μ΄μ©νμ¬ "access_token" μ μ±κ³΅νμ΅λλ€.
access_token μ μ΄μ©νμ¬ "account_id" λ μ±κ³΅νμ΅λλ€.
κ·Έλ¬λ "Get All Campaigns" μ μ€ν¨νμ΅λλ€.
"https://backstage.taboola.com/backstage/api/1.0/{{account_id}}/campaigns/?fetch_level=R"
λ‘ νΈμΆνμ΅λλ€.
κ²°κ³Όλ "200"μΌλ‘ μ±κ³΅νμ΅λλ€.
κ·Έλ¬λ "total:0, count:0"μΌλ‘ 리μ€νΈλ₯Ό μ‘°ννμ§ λͺ»νμ΅λλ€.
λμμ΄ νμν©λλ€.
λμμ λΆνλ립λλ€.
Posted by Seok over 3 years ago
GET /campaigns returns an empty list
Quite similar to this issue: https://developers.taboola.com/backstage-api/discuss/5ee15745fdb1010136aa891c
Sending a GET request to "/backstage/api/1.0/{{account_id}}/campaigns" with relevant account_id and bearer token in the Authorization header returns an empty list.
account_id passed is returned in "/backstage/api/1.0/users/current/allowed-accounts" so no issues there.
Account also has at least one campaign which passes "minimum CPC" enforcement as verified from the Taboola Backstage UI.
Link to private Google doc: https://docs.google.com/document/d/1C2uRE0js0dNxjae64YB611J7pL1yMUnWhNM0gFZIB54/edit?usp=sharing
Link to Backstage UI:
https://backstage.taboola.com/backstage/1169136/reports/campaigns/campaign-summary#%7B%22id%22%3A%22xdp2a6m7h29%22%2C%22groupId%22%3A%22campaigns%22%2C%22reportId%22%3A%22campaign-summary%22%2C%22dateRangeSelector%22%3A%7B%22id%22%3A%223%22%2C%22term%22%3A%22last%207%20day%22%2C%22range%22%3A6%2C%22dateStart%22%3A%222020-07-10%22%2C%22dateEnd%22%3A%222020-07-16%22%7D%2C%22queryFilter%22%3A%5B%7B%22id%22%3A%22campaign_param%22%2C%22operator%22%3A%22equal%22%2C%22value%22%3A%22-1%22%7D%2C%7B%22id%22%3A%22top_results%22%2C%22operator%22%3A%22equal%22%2C%22value%22%3A%22100%22%7D%5D%2C%22currentDimension%22%3A%7B%22tab%22%3A%22tab-campaign_breakdown%22%2C%22pages%22%3A%5B%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fday%22%2C%22table%22%3A%7B%22key%22%3A%22date%22%2C%22order%22%3A%22desc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200001000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fweek%22%2C%22table%22%3A%7B%22key%22%3A%22date%22%2C%22order%22%3A%22desc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200001000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fmonth%22%2C%22table%22%3A%7B%22key%22%3A%22date%22%2C%22order%22%3A%22desc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200001000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fby_day_of_week%22%2C%22table%22%3A%7B%22key%22%3A%22dow%22%2C%22order%22%3A%22asc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200000000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fby_hour_of_day%22%2C%22table%22%3A%7B%22key%22%3A%22hour_of_day%22%2C%22order%22%3A%22asc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200000000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fcontent_provider_breakdown%22%2C%22table%22%3A%7B%22key%22%3A%22spent%22%2C%22order%22%3A%22desc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200000000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fcampaign_breakdown%22%2C%22table%22%3A%7B%22key%22%3A%22spent%22%2C%22order%22%3A%22desc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200000000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fsite_breakdown%22%2C%22table%22%3A%7B%22key%22%3A%22spent%22%2C%22order%22%3A%22desc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200000000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fcountry_breakdown%22%2C%22table%22%3A%7B%22key%22%3A%22spent%22%2C%22order%22%3A%22desc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200000000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fregion_breakdown%22%2C%22table%22%3A%7B%22key%22%3A%22spent%22%2C%22order%22%3A%22desc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200000000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fdma_breakdown%22%2C%22table%22%3A%7B%22key%22%3A%22spent%22%2C%22order%22%3A%22desc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%22000000000%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fplatform_breakdown%22%2C%22table%22%3A%7B%22key%22%3A%22spent%22%2C%22order%22%3A%22desc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%2200000000000100%22%7D%2C%7B%22dim%22%3A%22campaigns%2Fcampaign-summary%2Fuser_segment_breakdown%22%2C%22table%22%3A%7B%22key%22%3A%22%22%2C%22order%22%3A%22asc%22%2C%22page%22%3A1%7D%2C%22legend%22%3A%220000000000010%22%7D%5D%7D%7D
Posted by Rijumone Choudhuri over 3 years ago