Community Discussion

Ask a Question

Duplicate campaigns - MAX_CONVERSIONS

Hi, Is it possible to duplicate SMARTBID campaigns to MAX_CONVERSIONS campaigns with the API? Is it possible to duplicate MAX_CONVERSIONS campaigns to MAX_CONVERSIONS campaigns with the API? We tried it many times different options with no success. Thanks, Amir.

Site blocking doesnt work

![](<>) (Tried to upload Images but the option was bugged after the first Image and couldn't upload more than 1 Image it got stuck) Patch Request- <https://cdn.discordapp.com/attachments/1159048574802350133/1164601329591783555/image.png?ex=6543ce82&is=65315982&hm=4645126c2e29b6577114877904355f62ebd676696d25d9ac35a136af8f5a7935&> Patch Response - <https://cdn.discordapp.com/attachments/1159048574802350133/1164601353394462730/image.png?ex=6543ce87&is=65315987&hm=2a33bf9fec0393cd66023d3eb92ad2b02167ff675c9d626b337a3068eb6c998c&> Checking after patch to see if the site is blocked - <https://cdn.discordapp.com/attachments/1159048574802350133/1164601461511045251/image.png?ex=6543cea1&is=653159a1&hm=f8a446bbe7b57464d7a1ee2cfc3c947fb3da4542f2d76e8b68109a62e0fe05b8&> Post Request - <https://cdn.discordapp.com/attachments/1159048574802350133/1164601387804540968/image.png?ex=6543ce90&is=65315990&hm=3aa88ba032091f9bb557ee75f8de9603548de0e65f508697363ad662c6f8150c&> Post Response + With checking on the Response - <https://cdn.discordapp.com/attachments/1159048574802350133/1164601425951735869/image.png?ex=6543ce99&is=65315999&hm=4f74769f6357a725e354812d7174427d6b9b9a2a0aadf48cbb8d76cce7adc32a&> I've tried to upload blocking sites with both options Patch and Post. I got on both options successful response but the site never appeared on the campaign on neither options. when i send a get request for the campaign to check if the site got excluded Thanks, Amir.

my question is Internal Server Error

When I posted the question, I was able to view the screen, but at about the time I got the reply, I am getting an Internal Server Error. <https://developers.taboola.com/backstage-api/discuss/65250e8b1d53db006206f61f>

Publisher_Bid_Modification Error

I have an issue when i try to use the Patch a Collection: <https://backstage.taboola.com/backstage/api/1.0/{account_id}/campaigns/{campaign_id}> I get this error: ![Error Message](https://media.discordapp.net/attachments/1159048574802350133/1159048909059014696/image_2023_10_04T08_29_55_014Z.png?ex=651e77ea&is=651d266a&hm=fdb409acf496eb539b7698639a41c4cd1489b56d9c4503bd3b56b94fa7e62c4d&=&width=2400&height=195) but what i do is sending it under the ADD option: ![My Code](https://cdn.discordapp.com/attachments/1159048574802350133/1159048909260324864/image_2023_10_04T08_29_03_577Z.png?ex=651e77ea&is=651d266a&hm=0f33504493325dc7a35b9392c100f7524b5d10029bada51cb963669e1dd0060f&) and the campaign doesn't contain any data inside of it: ![Campaign Data](https://media.discordapp.net/attachments/1159048574802350133/1159048909495214111/image_2023_10_04T08_28_47_902Z.png?ex=651e77ea&is=651d266a&hm=564ee50dab78f0d2f94d2f50bb60385f14ada67a68cf4b9577157ddd7d3269ea&=&width=2120&height=1170) the line that suppose to contain data is marked.

Why am I getting a 400 when trying to update the publisher targeting?

This is the function: ``` def update_exclusions(campaign_id): payload = get_sites_to_block(campaign_id) print(payload) url = f'<https://backstage.taboola.com/backstage/api/1.0/lubamediaeursl-22-sc/campaigns/{campaign_id}'> print(url) response = requests.post(url, headers=headers, json=payload) response.raise_for_status() print(response.text) return response.status_code ``` This is the payload: ``` {"publisher_targeting": {"type": "EXCLUDE", "value": ["tollywood-english", "informalnewz", "dailynewskannada-viralarticlesherecom", "talkaaj-publisher", "whiteplanettechnologies-essaybanyan", "timebucks-timecave", "pinkvilla-network", "hindikiduniya", "onevisiontechnologies-cinejosh", "lemaleadmachine-tipsandtricks", "keralakaumudi-keralakaumudi", "addatoday", "izonweb-businessleague", "govnokri", "iploc-elgoog", "izonweb-rightsofemployees", "crowdyfan", "academynewspaper-mysurumithra", "vivo-browser-chrome-english", "kashmirlife", "vitaminnews", "vivo-browser-sc-india-english", "greaterkashmircom", "tamilspark", "xfreehub", "cinereporters", "gadgetheory-mobilet", "studentsea", "vivo-browser-sc-india-gujarati", "vivo-browser-sc-india-tamil", "valappottukal", "healthynews-tv", "learnitwise", "pinoydesigns-ulrichome", "nalandalive", "lankasri-viduppu", "sunmixnetwork-cineulagam", "sunmixnetwork-ibctamil", "excusemeodisha-excusemeodisha", "nationalherald-english", "storytohearhu-p19553600", "jobsbazzar-vivasaayathaikappom", "eurasiantimes", "albvisioninternational-insidedogsworld", "momagic-retailpn", "entertainmentportal", "mods4you", "lankasri-ibctamilnadu", "housejogger", "newsaromamedia", "odiapost-enews23", "prabodhanprakshan-saamana", "fpj-amp", "odishatv-khabarodishatv", "tastyrecipesnew-jobsatqatar", "tastyrecipesnew-upstudent", "tastyrecipesnew-jobatcanada", "tastyrecipesnew-omanjobvacancy", "jobsbazzar-viewkhabar", "odishabhaskar", "prabhasakshi-prabhasakshi", "unidadeditorial-marcaenglish", "sexpacket-trendigt", "messagecube-supereasygame", "ptcnetwork-ptcnews", "foodhealth-astrologyviral", "krishijagran-odia", "zeemedia-dnaindiahindi", "firstnaukris", "indiagovtexam", "kolkata24x7india", "hellomaharastra", "ellomaharastra-hellokrushi", "ekanktechnologies-samhita", "etvbharat-etvbharathindibihar", "etvbharat-etvbharathindiuttar-pradesh", "etvbharat-etvbharathindiuttarakhand", "etvbharat-etvbharatkannadakarnataka", "etvbharat-etvbharatenglishnational", "etvbharat-etvbharathindiharyana", "etvbharat-etvbharattamiltamil-nadu", "worldfamilys", "banglahunt-bongtrend", "thetribuneindia-tribuneindia", "sattarani-publisher", "tastyrecipesnew-cookingvideos", "dainikbharat24-publisher", "prabhatkhabarindia-prabhatkhabar", "upuklive-loveindianational", "gujaratsamacharindia-gujaratsamacharweb", "gadgetsupdateshindi", "jagrannewmedia-gujaratijagran", "network18media-news18tamil", "network18media-news18telugu", "network18media-news18bengali", "network18media-cnbc-tv18english", "tastyrecipesnew-footballwing", "tastyrecipesnew-movieshows", "technewswebs", "lalluram", "thetelugunews-publisher", "siddhmaniconsultants-samarcharjagat", "rozanaspokesman-publisher", "ndtv-tools", "backtobollywood-publisher", "hellobdnewz-publisher", "lfimedia-goodtoknowthist", "gadgetsupdateshindi-bharatyojanaorg", "stepsetgoindia-sdk-android", "ecovahan-publisher", "mediamangalam-publisher", "infokhabars-publisher", "vtv-gujarati", "allindiasamachar2021-thekarnatakanews", "karimizhi-thani-nadanin", "royalbulletin-publisher", "fantoo-android", "indianspost-publisher", "tamizhanmedia", "divyahimachal-publisher", "ntvtelugu-publisher", "vikatandigital-vikatancom", "kajersubidha-publisher", "sarkarihelp-publisher", "updatenews360-publisher", "tv9-hindi", "tv9-telugu", "ecovahan-vyaparkaro", "kannadanewstoday-publisher", "tastyrecipesnew-cricketindnews", "sstvkannada-publisher", "ndtv-mp", "primereel-publisher", "t2blive-publisher", "hosakannada-hosavishya", "shethepeopleindia-hindi", "tnstudycorner-publisher"]}} ``` This is the response: 400 Client Error: Bad Request for url: <https://backstage.taboola.com/backstage/api/1.0/lubamediaeursl-22-sc/campaigns/27990851>

Add to Pixel Audience via API

We're looking to create a custom pixel audience, so we can exclude users in this audience for 1 day. We're looking to add a user frequency cap basically across certain accounts. This specific implementation doesn't give us the option to fire a pixel, since it's going direct to a landing page we don't have control over. We could add a page in between the landing page and our ads, but we could lose some users that way. Is there a way to post a user to a pixel audience via api? The reason we're looking to use a pixel audience vs a custom audience is the ability to include a user in the audience for only 1 day, which is available in the pixel audience, and also not having first party user data. What are our best options to add users to this audience via api?

Getting error "Requested action is forbidden: Duplication of bid modifiers for Max Conversions or Target CPA is not allowed"

Dear Support Team, While trying to create a duplicate campaign, I'm getting error for some campaigns. **Endpoint:** <https://developers.taboola.com/backstage-api/reference/duplicate-a-campaign> **Error Message:** Requested action is forbidden: Duplication of bid modifiers for Max Conversions or Target CPA is not allowed. Kindly do check it and let me know if you need more information from my side. Thanks & Regards, Mayank Sharma

When creating a campaign, how do we specify the custom conversion we would like to use?

Hi, When creating a campaign via an API call, how can I specify the conversion event we would like to use? This field doesn't appear in your documentation under the available campaign fields. I'm talking about the conversion events field under the Conversion Goal, as shown in the image below: <https://i.ibb.co/tJ9R1WR/Screenshot-from-2023-08-17-15-49-55.png>

Cannot pause/unpause a campaign via the API

We have two campaigns that fail to update the is_active status. The update for all the other ones work fine. We use the <https://developers.taboola.com/backstage-api/reference/update-a-campaign> endpoint and send the following payload: { "is_active": false } As a result, we get this: { "http_status": 400, "message": "Number of exclude countries exceeded the allowed amount", "offending_field": "geo_targeting", "message_code": "campaign.geoTargeting.server.error.GENERIC" } How can we update these campaigns? Any idea? It looks like a bug.

Different values of clicks and cost when same api call made on different times

Different values of clicks and cost when same api call made on different times while calling same reporting api we get different answers and fluctuating values for clicks costs etc if we call even in 10 minute interval it gives different values it leads to inconsistent data Also cost and clicks do not match for adgroup and camapign level report (i.e. clicks for same date same accountID gives different values for campaign and adgroup level )
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Χ