Git Product home page Git Product logo

cm-creatives-drive-uploader's Introduction

Campaign Manager Creatives Drive Uploader

This repository contains Google Apps Script code that uses the Campaign Manager Trafficking API to upload HTML5 creatives stored in Google Drive to Campaign Manager.

DISCLAIMER: The code samples shared here are not formally supported by Google and are provided only as a reference. See LICENSE for more information.

Contributions are highly encouraged; see CONTRIBUTING.md.

Configuration and Setup

  1. Create a Google Sheets spreadsheet that contains the following:
    • A designated cell for referencing your CM User Profile ID
    • Columns for the following CM Creative attributes:
      • Advertiser ID
      • Creative Name
      • Creative Size ('width'x'height')
      • Creative Asset Name
      • Creative Asset Path (Drive ID)
      • Creative Backup Image Name
      • Creative Backup Image Path (Drive ID)
      • Creative Backup Image Custom Landing Page URL (optional)
      • Status
  2. Create an Apps Script project that is linked to this spreadsheet by navigating to Tools > Script Editor. Alternatively open the script directly from the Apps Script Project Dashboard.
  3. Copy the code samples provided in resources/ to the script project created above. Consider using clasp for easier code management.
  4. Modify the config JavaScript object in main.gs to correctly reference the user profile ID cell as well as the creative attributes columns.
  5. Retrieve your CM User Profile by logging into CM.
  6. Upload all HTML5 assets for your creatives to your Google Drive account, using any folder structure you prefer. We recommend using a single compressed folder per creative (refer to the guidelines for uploading HTML5 creatives here).
  7. Fill up the columns created earlier with information pertaining to your creatives. To retrieve the Drive File ID, right-click on your file in Drive, choose Get shareable link and copy the file ID from the URL. Example: /file/d/<this-is-the-file-id>/view.
  8. Ensure that there is at least one Landing Page maintained in CM for every advertiser you would like to upload creatives for. This landing page will be associated with all creative backup images that do not specify a custom landing page URL.
  9. Ensure that every uploaded HTML5 creative contains at least one click tag. Refer to these guidelines on how to prepare your creatives before upload.

cm-creatives-drive-uploader's People

Contributors

mohabfekry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cm-creatives-drive-uploader's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.