Git Product home page Git Product logo

dfp_api's Introduction

dfp_api

Sample scripts for manipulating audience segments on Google Ad Manager (formerly DFP API)

Pre-requisites

  1. Python 2.7
  2. A configration file called googleads.yaml in the users's home directory containing authentication information, the layout of the file is described in detail at https://github.com/googleads/googleads-python-lib/blob/master/googleads.yaml under section AdManagerClient
  3. Install the googleads library based on instructions described in https://github.com/googleads/googleads-python-lib

Key Scripts

  1. Create a new segment
python create_segment.py name systemcode

Where, 
  name = Name of the new segment
  systemcode = System code associated with the the segment on the segmentation platform
  1. Rename a segment
python rename_segment.py oldname newname

Where, 
  oldname = Current name of the segment
  newname = New name of the segment
  1. Activate, Deactivate or Populate
python segments.py action segment-id1 [segment-id2 .. segment-idN]

Where, 
  action = act OR activate for activating
         | deac OR deactivate for deactivating
         | pop OR populate for populating           
  segment-id1 ... N = List of segment IDs

dfp_api's People

Contributors

condesat avatar

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.