Community Discussion
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