Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Need a Hello World OpenX Example

10 replies [Last post]
Reply

I can get the example of the OVA working just fine and the ad and short film works great. I'm trying to pull an ad from my OpenX server but I can't seem to get it to work. I can use the OpenX Direct code to pull from the campaign just fine so I know that OpenX is configured and working. I just can't get the OVA to play nice.

Can someone send me an example of how to make the demo work with something other than the butter ad and the black hole short?

Thanks.

Reply

Hi Mike,

Ok, I can work up a simple configuration for you. What OpenX zone is your linear (pre-roll) ad being served on?

Paul

Reply

Hi Mike,

Actually, re-reading your post, I'm a little confused about something - you mentioned using an "OpenX Direct" based approach to pull the campaign.

I didn't think that was possible with video ads.

Does this mean that you have a static URL like the following that generates the VAST response from OpenX?

http://openx.openvideoads.org/openx/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&zones=pre-roll0-0%3D5&nz=1&source=&r=R0.023106331005692482&block=1&format=vast&charset=UTF-8

If so, then I need to give you a slightly different example configuration to serve your ad. Normally in OpenX, video ads are served via "banners" attached to "zones" and the ad call to OpenX normally reflects that. See:

http://www.openx.org/docs/2.8/userguide/banners%20video%20ads

Anyway, let me know about the "direct" approach and I'll provide the example config for you...

Paul

Reply

Hi Paul,

Thanks for the reply. When I say "OpenX Direct mode", I mean the "direct" mode from the OpenX standard documentation (non-OVA). For example:

<script type='text/javascript' src='http://d1.openx.org/ajs.php?what=bannerid:621858&cb=90398130169&charset=ISO-8859-1&loc=http//www.playlifemedia.com/dev/&mmm_fo=1'></script>

I can also make it work using a campaign ID rather than a banner ID. Presumably I could make it work with a zone too but I haven't yet tried that.

I'm attempting to just serve a video ad and have been able to modify the demo by removing the playlist and just using a pre-roll. That seems to accomplish what I want to do. I just can't seem to make it work using creative from my OpenX instance.

Ideally, I'd like to be able to accomplish two things:

1. Use OVA to pull a video from my designated zone or campaign (I'm using 100 as the zone number).
2. Use OVA to pull a specific video using the bannerid as a specifier.

Hopefully that's useful information. Sorry if I'm using the wrong terminology as working with ads is fairly new to me.

Thanks for your assistance.

-Mike

Reply

Thanks - ok - I think there's a bit of a misunderstanding here.

OpenX Video Ads can't be served using the standard "direct" type mode, or via the standard banners etc.

The key thing is that you need to setup the video ads as "inline video banners" via the OpenX Video Ads plugin...

If you look at this OpenX doc, it should give you a place to start:

http://www.openx.org/docs/2.8/userguide/banners%20video%20ads

Basically, you need to be running an OpenX instance with the Video Ads plugin enabled, and then setup the banners via the new banner types that plugin introduces, associate those banners with one or more "zones" and then tell OVA in the configuration what "zones" you've setup and the video ads will be served.

When it all comes down to it, OVA ends up making a request to the OpenX for the "zones" you've specified and OpenX responds with a VAST data structure that tells OVA how to play the ads.

For instance, the demo zones I've got setup result in a request like:

http://openx.openvideoads.org/openx/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&zones=pre-roll0-0%3D5&nz=1&source=&r=R0.9841383094899356&block=1&format=vast&charset=UTF-8

And if you pop that URL into a browser you'll see the VAST response that OpenX returns.

That VAST response is created by the OpenX video ads plugin, so everything needs to be setup via that on the OpenX side.

Can I check - are you setting up the pre-roll via the OpenX inline video ad banner type?

You'll know if you are doing the right thing because you'll see a video player in OpenX and your video ad will play in that player if you've configured it correctly...

Paul

Reply

Hi Paul, I'm pretty sure OpenX is configured correctly. I click on Zones and then 100 (the name of my zone). Then I click on "linked banners" and choose my test video. I do see the video player in OpenX and am able to play my video as expected.

My thought is that I'd need to modify the "trial" code as follows:

<script type="text/javascript" src="http://player.longtailvideo.com/flowplayer/flowplayer-3.1.4.min.js"></script>
<div id="player1" style="width:360;height:240;"></div>
<script type="text/javascript">
flowplayer("player1",
  "http://player.longtailvideo.com/flowplayer/flowplayer-3.2.1.swf", {
  "playlist": [
    {
<!-- removed playlist since I'm only interested in serving ads  -->
    }
  ],
"plugins": {
  "controls": { "autoHide": "always" },
  "ova": {
    "url": "http://player.longtailvideo.com/flowplayer/ova-trial.swf",
  "autoPlay": true,
  "ads": {
     "servers": [
       {
          "type": "OpenX",
          "apiAddress": "http://d1.openx.org/ajs.php"
       }
     ],
     "notice": { "textStyle": "smalltext" },
     "displayCompanions": true,
     "companions": [
       {
          "id":"companion",
          "width":"200",
          "height":"240"
       }
     ],
     "schedule": [
       {
          "zone": "100",
          "position": "pre-roll"
       }
<!-- removed the second zone  -->
    ]
  },
<!-- added debug options -->
     "debug": { "levels": "fatal", "debugger": "firebug" }
   }
}
});
</script>

I get the Flowplayer on my web page but when I click on the "play" button, nothing happens.

I've configured the debug options but I actually see more spew in the Firebug console when I remove the debug options so I'm guessing I've got it inserted in the wrong place.

-Mike

Reply

One more thing. I modified the above code to point to my flowplayer-3.2.6.min.js and my flowplayer-3.2.7.swf with the same results.

Reply

Hi,

Ok - thanks - that gives enough info for me to help...

The issue is your "apiAddress" - "d1.openx.org/ajs.php"

That's incorrect.

If you turn up the debug in your OVA config to include "fatal, config, vast_template" and look at the Chrome developer tools console, firefox console etc. you'll see what OVA is calling as the ad tag and the response that is coming back.

Based on your config, the following call is being made:

http://d1.openx.org/ajs.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&zones=pre-roll0-0%3D100&nz=1&source=&r=R0.6558070136234164&block=1&format=vast&charset=UTF-8

If you put that URL into a browser you'll see the result:

var OX_7e93cfb9 = '';
document.write(OX_7e93cfb9);

This isn't a valid VAST response, so the ad call is not returning what is required.

Now normally I'd expect to see the API address with "fc.php" instead of "ajs.php".

I changed that in your setup and ran it, but that call returns:

<?xml version="1.0" encoding="UTF-8"?> <VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
<!-- You are requesting vast xml for zone 100 which does not apear to be a video overlay banner nor a vast inline banner. -->
</VideoAdServingTemplate>

Which is basically saying that you don't have zone 100 configured.

To be honest, I really don't know much about the "hosted" version of OpenX - are there any instructions etc. as to the right API address for a "hosted" setup?

I think you may have to ask OpenX about the right settings for this to work? I'll keep thinking, but I'm shooting in the dark.

I do know however that your issue is the apiAddress/zone settings.

Hope that helps a little..

Paul

Reply

Well, that actually helps a lot. It turns out that the OpenX API isn't available with their hosted solution. I've got a call in to OpenX to see if I can get access to an Enterprise sandbox so I can continue prototyping.

Although, I don't know where you're seeing the debug information. I don't see anything at all similar to that in Firebug. Should my debug be working if I use the code shown above?

Thanks a bunch for your help.

-Mike

Reply

Hi Mike,

Ah, really - it used to be available - they must have turned it off.

OVA supports OpenX V3 (the Enterprise edition) so it will work for you if they give you access.

To see the debug, you need to increase the debug levels that you've specified in the OVA config. Add the following:

"debug": { "levels": "fatal, config, vast_template, http_calls" }

That will help increase the level of debug output so you see the VAST ad call and response...

By the way, to run with OpenX V3 (Enterprise), you need to download the latest OVA release from the OVA developer site (http://developer.longtailvideo.com/ova - register on there and go to the Download the Latest page to grab the latest "development" release).

OpenX V3 is quite new, and I've build in additional support for that now in the latest release.

You can find some config examples for OpenX V3 here:

http://static.openvideoads.org/qa/latest/ova.jwplayer.5x/examples/pages/ad-servers/index.html

(see the OpenX V3 section)

Although they don't run (there aren't any ads loaded on those OpenX URLs), but the config will work if you load up some ads with the right addresses etc.

Paul

Reply

Issue – While creating campaign using “AddCampaign” method of “CampaignService”, we are setting the region to a specific country as Sweden (#198) through RegionStruct as a part of TargetingStruct. When we get the campaign data for the same campaign using “GetCampaign” method, we get the country id as 198. However, when logged in to http://www.ac.openx.com, we could not see country set to Sweden and it shows default option as “Target All Locations”.

What other ways we tried?
1) We tried setting specific country, but we faced the same challenge.
2) We raised this on OpenX market forum, but did not get any reply yet. Please see attached.
3) We tried sending separate additional tag for regional targeting while calling “AddCampaign” method, but did not work.

API Reference Used:
1) PDF documents shared by you on yammer (OpenX Market_API_1.pdf, OpenX Market_API_2.pdf).
2) http://openx.com/sites/default/files/images/openxmkt_api_ac.pdf This document is last updated on 21st Nov 2011.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options