openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 6.57 kB
JSON
{"openapi":"3.0.0","info":{"description":"This is a Native Ads Publisher API it provides same functionality as Native Ads Publisher Account GUI.\n","title":"Native Ads Publisher API","version":"1.0.0","x-apisguru-categories":["marketing"],"x-logo":{"url":"https://api.nativeads.com/docs/publisher/images/nativeads-logo.png"},"x-origin":[{"format":"swagger","url":"https://api.nativeads.com/docs/publisher/swagger.json","version":"2.0"}],"x-providerName":"nativeads.com"},"paths":{"/auth/default/login":{"post":{"description":"Returns Native Ads Publisher API token","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"username":{"description":"Native Ads Publisher username","type":"string"},"password":{"description":"Native Ads Publisher password","type":"string"}},"required":["username","password"]}}},"required":true},"responses":{"200":{"description":"authentication response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/authResponse"}}}},"400":{"description":"error message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/modelError"}}}}},"tags":["auth"]}},"/publisher/reports/daily":{"get":{"description":"Returns publisher statistics split by date","parameters":[{"description":"Native Ads Publisher API authentication token","in":"query","name":"token","required":true,"schema":{"type":"string"}},{"description":"start date in format YYYY-MM-DD","in":"query","name":"startDate","required":true,"schema":{"type":"string","format":"date"}},{"description":"end date in format YYYY-MM-DD","in":"query","name":"endDate","required":true,"schema":{"type":"string","format":"date"}},{"description":"maximum number of results per page","in":"query","name":"limit","required":true,"schema":{"type":"integer","format":"int32","default":100}},{"description":"page number","in":"query","name":"page","required":true,"schema":{"type":"integer","format":"int32","default":1}}],"responses":{"200":{"description":"report response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/reportsDailyResponse"}}}},"400":{"description":"error message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/modelError"}}}}},"tags":["reports"]}},"/publisher/reports/website":{"get":{"description":"Returns publisher statistics split by website","parameters":[{"description":"Native Ads Publisher API authentication token","in":"query","name":"token","required":true,"schema":{"type":"string"}},{"description":"start date in format YYYY-MM-DD","in":"query","name":"startDate","required":true,"schema":{"type":"string","format":"date"}},{"description":"end date in format YYYY-MM-DD","in":"query","name":"endDate","required":true,"schema":{"type":"string","format":"date"}},{"description":"maximum number of results per page","in":"query","name":"limit","required":true,"schema":{"type":"integer","format":"int32","default":100}},{"description":"page number","in":"query","name":"page","required":true,"schema":{"type":"integer","format":"int32","default":1}}],"responses":{"200":{"description":"report response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/reportsWebsiteResponse"}}}},"400":{"description":"authentication error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/modelError"}}}}},"tags":["reports"]}},"/publisher/reports/widget":{"get":{"description":"Returns publisher statistics split by widget","parameters":[{"description":"Native Ads Publisher API authentication token","in":"query","name":"token","required":true,"schema":{"type":"string"}},{"description":"start date in format YYYY-MM-DD","in":"query","name":"startDate","required":true,"schema":{"type":"string","format":"date"}},{"description":"end date in format YYYY-MM-DD","in":"query","name":"endDate","required":true,"schema":{"type":"string","format":"date"}},{"description":"maximum number of results per page","in":"query","name":"limit","required":true,"schema":{"type":"integer","format":"int32","default":100}},{"description":"page number","in":"query","name":"page","required":true,"schema":{"type":"integer","format":"int32","default":1}}],"responses":{"200":{"description":"report response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/reportsWidgetResponse"}}}},"400":{"description":"authentication error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/modelError"}}}}},"tags":["reports"]}}},"servers":[{"url":"https://api.nativeads.com"}],"components":{"schemas":{"authResponse":{"properties":{"success":{"type":"boolean"},"token":{"type":"string"}}},"modelError":{"properties":{"errors":{"items":{"type":"string"},"type":"array"},"success":{"type":"boolean"}}},"reportsDailyItem":{"properties":{"clicks":{"type":"string"},"cpc":{"type":"string"},"ctr":{"type":"string"},"date":{"type":"string"},"earnings":{"type":"string"},"impressions":{"type":"string"},"net_ecpm":{"type":"string"},"rpm":{"type":"string"}}},"reportsDailyResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/reportsDailyItem"},"type":"array"},"success":{"type":"boolean"},"total_count":{"type":"integer"},"totals":{"$ref":"#/components/schemas/totals"}}},"reportsWebsiteItem":{"properties":{"clicks":{"type":"string"},"cpc":{"type":"string"},"ctr":{"type":"string"},"date":{"type":"string"},"earnings":{"type":"string"},"impressions":{"type":"string"},"net_ecpm":{"type":"string"},"rpm":{"type":"string"}}},"reportsWebsiteResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/reportsWebsiteItem"},"type":"array"},"success":{"type":"boolean"},"total_count":{"type":"integer"},"totals":{"$ref":"#/components/schemas/totals"}}},"reportsWidgetItem":{"properties":{"campaign":{"description":"widget name","type":"string"},"campaign_id":{"description":"widget id","type":"string"},"clicks":{"type":"string"},"cpc":{"type":"string"},"ctr":{"type":"string"},"earnings":{"type":"string"},"impressions":{"type":"string"},"net_ecpm":{"type":"string"},"rpm":{"type":"string"}}},"reportsWidgetResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/reportsWidgetItem"},"type":"array"},"success":{"type":"boolean"},"total_count":{"type":"integer"},"totals":{"$ref":"#/components/schemas/totals"}}},"totals":{"properties":{"total_clicks":{"type":"string"},"total_cpc":{"type":"string"},"total_ctr":{"type":"string"},"total_earnings":{"type":"string"},"total_impressions":{"type":"string"},"total_net_ecpm":{"type":"string"},"total_rpm":{"type":"string"}}}}}}