Community Discussion
404 calling campaigns/base
I'm currently developing an api loader and following these 3 api calls to gather daily campaign stats for our account.
1. https://backstage.taboola.com/backstage/api/1.0/users/current/allowed-accounts
2. https://backstage.taboola.com/backstage/api/1.0/<account id from 2>/campaigns/base?start
3. https://backstage.taboola.com/backstage/api/1.0/<network-account-id>/reports/campaign-summary/dimensions/day?start_date=<start date>&end_date=<end date>&campaign=<campaginID from 3>
I'm currently getting 404 errors making a call to campaigns/base for some of the "type": "PARTNER" accounts but not for others.
Can you please give any insights as to how an account has to be setup for the campaigns/base url to function correctly?
Posted by John B almost 2 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 about 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 about 3 years ago