← Google Drive + AdRoll integrations

Replace Emails from CRM Audience with AdRoll API on New Presentation (Instant) from Google Drive API

Pipedream makes it easy to connect APIs for AdRoll, Google Drive and 1400+ other apps remarkably fast.

Trigger workflow on
New Presentation (Instant) from the Google Drive API
Next, do this
Replace Emails from CRM Audience with the AdRoll API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Google Drive trigger and AdRoll action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Presentation (Instant) trigger
    1. Connect your Google Drive account
    2. Select a Drive
    3. Optional- Configure Watch for changes to file properties
    4. Configure Push notification renewal schedule
    5. Optional- Select one or more Folders
  3. Configure the Replace Emails from CRM Audience action
    1. Connect your AdRoll account
    2. Select a Advertiser Id
    3. Select a Audience Id
    4. Configure Email List
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event each time a new presentation is created in a drive.
Version:0.0.2
Key:google_slides-new-presentation

Google Drive Overview

Using the Google Drive API, you can build applications that:

  • Create and manage files and folders
  • Download and upload files
  • Share and organize files
  • Search for files
  • Track changes to files
  • And much more!

Troubleshooting

Google Advanced Protection Program must be disabled in order to use the Google Drive app on Pipedream.

If you encounter the error "Google cannot give this app access to your account data because Advanced Protection is turned on for your Google Account", you will need to disable this setting as it blocks third-party apps from accessing Google Drive.

Trigger Code

import newFilesInstant from "../../../google_drive/sources/new-files-instant/new-files-instant.mjs";

export default {
  ...newFilesInstant,
  key: "google_slides-new-presentation",
  type: "source",
  name: "New Presentation (Instant)",
  description: "Emit new event each time a new presentation is created in a drive.",
  version: "0.0.2",
  hooks: {
    ...newFilesInstant.hooks,
    async deploy() {
      // Emit sample records on the first run
      const slides = await this.getPresentations(10);
      for (const fileInfo of slides) {
        const createdTime = Date.parse(fileInfo.createdTime);
        this.$emit(fileInfo, {
          summary: `New File: ${fileInfo.name}`,
          id: fileInfo.id,
          ts: createdTime,
        });
      }
    },
  },
  methods: {
    ...newFilesInstant.methods,
    shouldProcess(file) {
      return (
        file.mimeType.includes("presentation") &&
        newFilesInstant.methods.shouldProcess.bind(this)(file)
      );
    },
    getPresentationsFromFolderOpts(folderId) {
      const mimeQuery = "mimeType = 'application/vnd.google-apps.presentation'";
      let opts = {
        q: `${mimeQuery} and parents in '${folderId}' and trashed = false`,
      };
      if (!this.isMyDrive()) {
        opts = {
          corpora: "drive",
          driveId: this.getDriveId(),
          includeItemsFromAllDrives: true,
          supportsAllDrives: true,
          ...opts,
        };
      }
      return opts;
    },
    async getPresentations(limit) {
      const slides = [];
      const foldersIds = this.folders;
      for (const folderId of foldersIds) {
        const opts = this.getPresentationsFromFolderOpts(folderId);
        const filesWrapper = await this.googleDrive.listFilesInPage(null, opts);
        for (const file of filesWrapper.files) {
          const fileInfo = await this.googleDrive.getFile(file.id);
          slides.push(fileInfo);
          if (slides.length >= limit) { return slides; }
        }
      }
      return slides;
    },
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Google DrivegoogleDriveappThis component uses the Google Drive app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
DrivedrivestringSelect a value from the drop down menu.
Watch for changes to file propertieswatchForPropertiesChangesboolean

Watch for changes to file properties
in addition to changes to content. Defaults to false, watching for only changes to content.

Push notification renewal scheduletimer$.interface.timer

The Google Drive API requires occasional renewal of push notification subscriptions. This runs in the background, so you should not need to modify this schedule.

Foldersfoldersstring[]Select a value from the drop down menu.

Trigger Authentication

Google Drive uses OAuth authentication. When you connect your Google Drive account, Pipedream will open a popup window where you can sign into Google Drive and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Google Drive API.

Pipedream requests the following authorization scopes when you connect your account:

emailprofilehttps://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.readonly

About Google Drive

Internet-related services and products

Action

Description:Replace the email list from a CRM audience in AdRoll. [See docs here](https://developers.adroll.com/docs/adroll-audience-api/1/routes/segments/%7Bsegment_eid%7D/post)
Version:0.0.1
Key:adroll-replace-emails-from-crm-audience

AdRoll Overview

With AdRoll, you can build a variety of targeted ads and retargeting campaigns
to reach your ideal customers. You can reach new audiences with our powerful
targeting options, and then retarget them with personalized ads to close the
sale.

Here are some examples of what you can build with AdRoll:

  • Targeted ads: reach new audiences with our powerful targeting options
  • Retargeting campaigns: reach your ideal customers with personalized ads
  • Conversion tracking: track the effectiveness of your campaigns and optimize
    accordingly
  • Dynamic creatives: create personalized ads for each user for maximum impact
  • A/B testing: test different versions of your ads to see what works best

Action Code

import app from "../../adroll.app.mjs";

export default {
  key: "adroll-replace-emails-from-crm-audience",
  name: "Replace Emails from CRM Audience",
  description: "Replace the email list from a CRM audience in AdRoll. [See docs here](https://developers.adroll.com/docs/adroll-audience-api/1/routes/segments/%7Bsegment_eid%7D/post)",
  version: "0.0.1",
  type: "action",
  props: {
    app,
    advertiserId: {
      propDefinition: [
        app,
        "advertiserId",
      ],
    },
    audienceId: {
      propDefinition: [
        app,
        "audienceId",
        (c) => ({
          advertiserId: c.advertiserId,
        }),
      ],
    },
    emailList: {
      label: "Email List",
      description: "The email address list to replace in the CRM audience. List must contain at least 100 unique emails. [See docs here](https://help.adroll.com/hc/en-us/articles/211845528-CRM-Audience)",
      type: "string[]",
    },
  },
  async run({ $ }) {
    const {
      emailList,
      audienceId,
    } = this;

    const response = await this.app.replaceEmailsFromCRMAudience({
      $,
      emails: Array.isArray(emailList) && emailList || JSON.parse(emailList),
      audienceId,
    });

    $.export("$summary", `Successfully updated email address list from CRM audience with ID: "${audienceId}"`);

    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
AdRollappappThis component uses the AdRoll app.
Advertiser IdadvertiserIdstringSelect a value from the drop down menu.
Audience IdaudienceIdstringSelect a value from the drop down menu.
Email ListemailListstring[]

The email address list to replace in the CRM audience. List must contain at least 100 unique emails. See docs here

Action Authentication

AdRoll uses OAuth authentication. When you connect your AdRoll account, Pipedream will open a popup window where you can sign into AdRoll and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any AdRoll API.

Pipedream requests the following authorization scopes when you connect your account:

all

About AdRoll

Online advertising

More Ways to Connect AdRoll + Google Drive

Replace Emails from CRM Audience with AdRoll API on Changes to Specific Files (Shared Drive) from Google Drive API
Google Drive + AdRoll
 
Try it
Replace Emails from CRM Audience with AdRoll API on Changes to Specific Files from Google Drive API
Google Drive + AdRoll
 
Try it
Replace Emails from CRM Audience with AdRoll API on New or Modified Comments from Google Drive API
Google Drive + AdRoll
 
Try it
Replace Emails from CRM Audience with AdRoll API on New Files (Instant) from Google Drive API
Google Drive + AdRoll
 
Try it
Replace Emails from CRM Audience with AdRoll API on New Shared Drive from Google Drive API
Google Drive + AdRoll
 
Try it
Changes to Specific Files from the Google Drive API

Watches for changes to specific files, emitting an event any time a change is made to one of those files. To watch for changes to shared drive files, use the Changes to Specific Files (Shared Drive) source instead.

 
Try it
Changes to Specific Files (Shared Drive) from the Google Drive API

Watches for changes to specific files in a shared drive, emitting an event any time a change is made to one of those files

 
Try it
New Files (Instant) from the Google Drive API

Emit new event any time a new file is added in your linked Google Drive

 
Try it
New or Modified Comments from the Google Drive API

Emits a new event any time a file comment is added, modified, or deleted in your linked Google Drive

 
Try it
New or Modified Files from the Google Drive API

Emit new event any time any file in your linked Google Drive is added, modified, or deleted

 
Try it
Add File Sharing Preference with the Google Drive API

Add a sharing permission to the sharing preferences of a file and provide a sharing URL. See the docs for more information

 
Try it
Copy File with the Google Drive API

Create a copy of the specified file. See the docs for more information

 
Try it
Create a New File with the Google Drive API

Create a new file from a URL or /tmp/filepath. See the docs for more information

 
Try it
Create Folder with the Google Drive API

Create a new empty folder. See the docs for more information

 
Try it
Create New File From Template with the Google Drive API

Create a new Google Docs file from a template. Optionally include placeholders in the template document that will get replaced from this action. See documentation

 
Try it

Explore Other Apps

1
-
12
of
1400+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Beta
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Beta
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
Telegram Bot
Telegram Bot
Telegram is a cloud-based instant messaging and voice over IP service
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular apps like ChatGPT and DALL·E 2.
Google Sheets
Google Sheets
With Google Sheets, you can create, edit, and collaborate wherever you are
Discord
Discord
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
GitHub
GitHub
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.