Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleJSON
{"publisher": {"name": "AAAA", "is_oo":true, "code": "BBBB", "reselling_exposure":"CCCC"}}

...

Once you have POST'ed successfully, the API will provide the ID of the newly-created object in its response.  You'll need to store this value for further use.

Step 4.

...

...

Creating a Site (a.k.a. Placement Group)

Next, we'll create one or more Sites (or Placement Groups), which are simply a grouping mechanism if you have a large number of placements within one Publisher.  Using one is mandatory, multiple is optional.

...

  • AAAA: set a name for the site
  • BBBB: allowed values are "web", "mobile_web", or "mobile_app"
    • if you set "web", AppNexus will assume that all impressions for underlying placements are for desktop browser inventory (regardless of banner, video, native, etc)
    • if you set "mobile_web", we will assume that all impressions are for mobile browser
    • if you set "mobile_app", we will assume that all impressions are for mobile applications

Step 5. Creating a Placement

Finally, we'll create one or more Placements, which are the most granular sell-side objects.

POST: http://api.appnexus.com/placement?member_id=XXXX&publisher_id=YYYY&site_id=ZZZZ (where XXXX is your member ID, YYYY is the ID of the publisher you created earlier, ZZZZ is the ID of the site you created in the previous step)

Code Block
languagejs
titleJSON
{"placement": {"name": "AAAA", "code": "BBBB"}}
  • AAAA: set a name for the placement
  • BBBB: (optional) set this to the value passed in the bid request for mapping to the placement object