The Cometly API allows you to track ad performance and automate the analysis and optimization of advertising campaigns. With Pipedream, you can create serverless workflows that interact with the Cometly API to streamline campaign management tasks, such as retrieving campaign metrics, updating ad spend, and generating performance reports. Using Cometly in conjunction with Pipedream’s robust integration capabilities, you can connect to numerous other services to enrich your ads data, automate actions based on performance thresholds, and synchronize your marketing efforts across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cometly: {
type: "app",
app: "cometly",
}
},
async run({steps, $}) {
const data = {
"event_name": `developer`,
"email": `sergio@pipekit.pro`,
"comet_token": `ddffd8d8338383883838484843838388d8dfaf`,
"ip": `123.123.123.123`,
"event_time": `test`,
}
return await axios($, {
method: "post",
url: `https://app.cometly.com/public-api/v1/events`,
headers: {
Authorization: `Bearer ${this.cometly.$auth.api_token}`,
"Content-Type": `application/json`,
},
data,
})
},
})
Campaign Metrics to Google Sheets: Extract daily ad performance metrics from Cometly and append them to a Google Sheets spreadsheet for easy tracking and visualization. This workflow enables you to maintain an up-to-date record of your campaign's progress and share it with your team or clients.
Slack Alerts for Performance Thresholds: Set up a Pipedream workflow that monitors your Cometly campaign metrics and sends alerts to a Slack channel when performance dips below a certain threshold. This immediate notification allows for quick reaction to optimize campaigns and control ad spend.
Email Reports with Mailgun: Generate weekly performance reports by aggregating Cometly ad data and using Mailgun to send customized email summaries to stakeholders. This workflow ensures regular updates on campaign status and ROI, helping with informed decision-making.
Sends an event to the Cometly API. [See the documentation]https://developers.cometly.com/#endpoint-advanced-method)
Cometly uses API keys for authentication. When you connect your Cometly account, Pipedream securely stores the keys so you can easily authenticate to Cometly APIs in both code and no-code steps.