Requesting ads with an AJAX call

1,528 views
Skip to first unread message

PJOnori

unread,
Feb 26, 2010, 4:43:35 PM2/26/10
to Google's DoubleClick for Publishers API Forum
I wanted to see if requesting DART ads at after page load is
supported. A project I am working on may be highly AJAX-based, so it
would be beneficial to load ads at specific user behaviors that would
normally result in a traditional page load.

DFP API Advisor

unread,
Feb 26, 2010, 5:07:24 PM2/26/10
to Google's DoubleClick for Publishers API Forum
Hi PJOnori,

You would probably want to create a proxy server that you would be
able to make an async call too and then relay that information back to
your website. You can see an example of this in our sample PHP webapp.

Thanks,
Adam

Don Becker

unread,
Feb 26, 2010, 5:31:24 PM2/26/10
to google-doubleclick...@googlegroups.com
To expand on this, is it possible to display ads via Flash?

DFP API Advisor

unread,
Feb 26, 2010, 5:34:47 PM2/26/10
to Google's DoubleClick for Publishers API Forum
Hi Don,

Yes, you can use FlashCreatives to display flash.

Thanks,
Adam

DFP API Advisor

unread,
Mar 1, 2010, 9:53:58 AM3/1/10
to Google's DoubleClick for Publishers API Forum
Hi everyone,

I'd like to add that my earlier advice was incorrect. I had assumed
that this topic focused on a publisher console, rather than ad serving
from a web page. It is against our currently policy to employ a proxy
server during the process of fetching ads from our servers.

Thanks,
Adam Rogal, DFP API Team

Don Becker

unread,
Feb 26, 2010, 9:02:17 PM2/26/10
to google-doubleclick...@googlegroups.com
Not to display flash, to display ads IN flash. Some of my customers
publish games, and we have been looking into how we can serve dynamic
ads in the games.

PJOnori

unread,
Feb 27, 2010, 12:35:24 AM2/27/10
to Google's DoubleClick for Publishers API Forum
Wonderful - thanks for the guidance. I'll look into that.

P.J.

Oscar Cortes

unread,
Mar 12, 2010, 11:26:57 AM3/12/10
to Google's DoubleClick for Publishers API Forum
Adam,

Can you point me to some documentation about fetching ads from your
servers using Javascript?
Also, Are you working on some mechanism that would allow developers to
retrieve Rich media ads info ( video ad urls for example) that can be
played in HTML5?

Thanks

On Mar 1, 9:53 am, DFP API Advisor <dfpapi-advi...@google.com> wrote:
> Hi everyone,
>
> I'd like to add that my earlier advice was incorrect. I had assumed
> that this topic focused on a publisher console, rather than ad serving
> from a web page. It is against our currently policy to employ a proxy
> server during the process of fetching ads from our servers.
>
> Thanks,
> Adam Rogal, DFP API Team
>
> On Feb 26, 5:34 pm, DFP API Advisor <dfpapi-advi...@google.com> wrote:
>
>
>
> > Hi Don,
>
> > Yes, you can use FlashCreatives to display flash.
>
> > Thanks,
> > Adam
>
> > On Feb 26, 5:31 pm, Don Becker <ps...@psyon.org> wrote:
>
> > > To expand on this, is it possible to display ads via Flash?
>
> > > On 02/26/2010 04:07 PM, DFP API Advisor wrote:
>
> > > > Hi PJOnori,
>
> > > > You would probably want to create a proxy server that you would be
> > > > able to make an async call too and then relay that information back to
> > > > your website. You can see an example of this in our sample PHP webapp.
>
> > > > Thanks,
> > > > Adam
>
> > > > On Feb 26, 4:43 pm, PJOnori<pj.on...@gmail.com>  wrote:
>
> > > >> I wanted to see if requesting DART ads at after page load is

> > > >> supported. A project I am working on may be highlyAJAX-based, so it

DFP API Advisor

unread,
Mar 12, 2010, 4:16:32 PM3/12/10
to Google's DoubleClick for Publishers API Forum
Hi Oscar,

This depends on which platform you are coming from. The JavaScript
will be the same as seen in the current Google Ad Manager. More
details will follow about rich media ads as the product launches.

Thanks,
Adam

Oscar Cortes

unread,
Mar 12, 2010, 5:48:48 PM3/12/10
to Google's DoubleClick for Publishers API Forum

I'm coming from the Flash video players which make requests to DFP to
get the ad xml that contains information about the video url,
impressions tracking urls, etc. But I am starting to experiment with
getting the same xml (or other format) that I can load from an HTML
page and then play the video ad in a HTML5 video player. I know there
are many limitations and different support for video formats in
browsers at this moment but at this point it's just a quick test.

So in concrete, I would like to have a way to call an ad tag URL that
returns the information about a video ad in some format. Right now, if
I try to call with Ajax the same ad tag URL I use in a Flash video
player and that returns xml, I run into the crossdomain constraints
that have been explained here. The proxy is the alternative under any
other circumstance but I understand that for advertising is not the
right practice.

DFP API Advisor

unread,
Mar 17, 2010, 4:29:19 PM3/17/10
to Google's DoubleClick for Publishers API Forum
Hi Oscar,

This is something that we are building out as we move forward with
development with DFP Video and is not available yet. Eventually, you
would be able to either store your videos yourself, or host them in
our API as you would images. This would be similar to DART In-stream
now.

You can see the start of the tools we'll offer with the IMA SDK here:
http://code.google.com/apis/ima/docs/intro/index.html

We will most likely include support for javascript/HTML5 as well.

I will most likely do a blog post and an article with examples when
this feature is fully released

Thanks,
Adam

mi...@perfectsensedigital.com

unread,
Mar 31, 2010, 10:58:33 AM3/31/10
to Google's DoubleClick for Publishers API Forum
Can we get back to the original topic of this post?

What is the suggested method for:

1) Calling new ads within an RIA that is updated via AJAX.

2) Refreshing existing ad's within a page when a user has click on
something resulting in an AJAX update to page content.


Thank you,
Miles

DFP API Advisor

unread,
Mar 31, 2010, 11:07:10 PM3/31/10
to Google's DoubleClick for Publishers API Forum
Hi Miles,

I'm not quite sure and this is a bit outside of the realm of this
forum and its focus on the API.

I'd suggest posting this question in the DFP product forum when it is
released. I will post a topic in the forum directing where that is
when it is released.

Thanks,
Adam

On Mar 31, 10:58 am, "mi...@perfectsensedigital.com"

fuuzi

unread,
Aug 13, 2012, 10:35:38 AM8/13/12
to google-doubleclick...@googlegroups.com
Any new info with ads loaded with ajax calls?

Adam Rogal (DFP API Team)

unread,
Aug 13, 2012, 6:47:18 PM8/13/12
to google-doubleclick...@googlegroups.com
Hi, 

Pleas use the product support forum for these questions:


Thanks,
Adam Rogal, DFP API Team

Reply all
Reply to author
Forward
0 new messages