Skip to content

Django app to help manage, schedule and control OpenX ads from one server to another.

License

Notifications You must be signed in to change notification settings

registerguard/django-ad-manager

Repository files navigation

Django Ad Manager (BETA)

An application that helps to manage, schedule and control OpenX ads from one server to another; intended for use on responsive webpages.

Tested and working with Djago 1.3.


RELATED

registerguard/ads-on-demand


SCHEMA

schema


EXAMPLE

URI:
http://site.com/manager/entertainment:go-entertainment/section/?callback=baz
Where:
  • manager: Django application name.
  • entertainment:go-entertainment: Are target names (i.e. website sections and sub-sections) seperated by a colon. Minimum of one target required.
  • section: Optional page type. If not defined, then all page types (for the group) are output.
  • ?callback=baz: JSONP callback name. If not defined, then the output will be a standard JSON response.
  • &cache=busted: Used to bust the Django cache (not shown in above exmaple).
JSONP output:
baz({
    "now": "2012-12-14 11:20",
    "target": [
        {
            "ad_group": [
                {
                    "ad": [
                        {
                            "ad_type": [
                                {
                                    "height": 90,
                                    "name": "Leaderboard",
                                    "slug": "leaderboard",
                                    "tag_type": "<iframe>",
                                    "width": 728
                                }
                            ],
                            "id": 322986
                        },
                        {
                            "ad_type": [
                                {
                                    "height": 50,
                                    "name": "Leaderboard",
                                    "slug": "leaderboard",
                                    "tag_type": "<iframe>",
                                    "width": 320
                                }
                            ],
                            "id": 322987
                        },
                        {
                            "ad_type": [
                                {
                                    "height": 250,
                                    "name": "Medium Rectangle 1",
                                    "slug": "medium-rectangle-1",
                                    "tag_type": "<iframe>",
                                    "width": 300
                                }
                            ],
                            "id": 322988
                        },
                        {
                            "ad_type": [
                                {
                                    "height": 250,
                                    "name": "Medium Rectangle 2",
                                    "slug": "medium-rectangle-2",
                                    "tag_type": "<iframe>",
                                    "width": 300
                                }
                            ],
                            "id": 322989
                        }
                    ],
                    "aug_id": 14055,
                    "page_type": "Section"
                }
            ],
            "name": "go Entertainment",
            "slug": "go-entertainment"
        },
        {
            "ad_group": [
                {
                    "ad": [
                        {
                            "ad_type": [
                                {
                                    "height": 60,
                                    "name": "Button",
                                    "slug": "button",
                                    "tag_type": "<iframe>",
                                    "width": 120
                                }
                            ],
                            "id": 327383
                        },
                        {
                            "ad_type": [
                                {
                                    "height": 60,
                                    "name": "Half Banner",
                                    "slug": "half-banner",
                                    "tag_type": "<iframe>",
                                    "width": 234
                                }
                            ],
                            "id": 328176
                        },
                        {
                            "ad_type": [
                                {
                                    "height": 250,
                                    "name": "Medium Rectangle 1",
                                    "slug": "medium-rectangle-1",
                                    "tag_type": "<iframe>",
                                    "width": 300
                                }
                            ],
                            "id": 278420
                        },
                        {
                            "ad_type": [
                                {
                                    "height": 90,
                                    "name": "Leaderboard",
                                    "slug": "leaderboard",
                                    "tag_type": "<iframe>",
                                    "width": 728
                                }
                            ],
                            "id": 328209
                        },
                        {
                            "ad_type": [
                                {
                                    "height": 50,
                                    "name": "Leaderboard",
                                    "slug": "leaderboard",
                                    "tag_type": "<iframe>",
                                    "width": 320
                                }
                            ],
                            "id": 328210
                        }
                    ],
                    "aug_id": 14229,
                    "page_type": ""
                }
            ],
            "name": "ROS",
            "slug": "ros"
        }
    ]
});

INSTALLATION

Install using pip:

$ sudo pip install -e git+https://github.com/registerguard/django-ad-manager.git#egg=django-ad-manager

Add 'ad_manager', to your installed_apps setting.

Put this in your URLs:

(r'^pages/', include('ad_manager.urls')),

Run:

$ sudo service apache2 restart

... or:

$ touch apache/django.wsgi

... or whatever you need to do to reload things.

Lastly:

$ python manage.py syncdb

... and you're ready to go (maybe do another touch?)!

Enjoy your Django Ad Manager app today!


LEGAL

Copyright © 2013 Micky Hulse/The Register-Guard

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Django app to help manage, schedule and control OpenX ads from one server to another.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages