I just received an email that Google has added a new ad embedding method to DFP type called Google Publisher Tag.

This new ad embedding method supports asynchronous loading, out of page units, and ad refreshing (for Ajax support). It would be fantastic if we could add support for the new ad method.

Google Publisher Tag documentation

Comments

gordon’s picture

subscribe

jcisio’s picture

Marking #1322754: Support Google Publisher Tags as duplicate.

Glad to see that we have active users ;-) Sad news is that I haven't used this module for a while (we outsourced to a third party, who does not use Google Publisher Tags but their own servers). So I could just eventually test or commit patch.

tfo’s picture

+1

HS’s picture

+1

gordon’s picture

Is there any progress on this, as I have a client who is pretty keen to get this going.

gordon’s picture

I have built an implementation of the GPT in my own fork. see http://drupal.org/sandbox/gordon/1358952

it is only for 6.x ATM, and I am not sure if I should merge this back in, as the way I implemented it, I think that I could add plugins for any type of ad provider.

Let me know if there are any issues. I am currently in the process of testing this with one of my clients, and I am looing to add in the GPT Sync soon.

jcisio’s picture

No problem on ctools dependency. I like the idea of different providers GAM, GPT-async and GPT-sync. Lazy loading is still very useful in sync-implementations.

If one or two developers can review and test the patch, I'm willing to create a 3.x branch and commit it.

gordon’s picture

I am happy to put it into Google AdManage, but because it could load anything I thought about renaming it to just ad manager and then going on from there.

There is still a lot of cleaning up to do on it, but this is now working, and for my client they are testing with the idea of going live with it.

Gordon.

agoel@axelerant.com’s picture

Any update on this?

udijw’s picture

subscribing

scothiam’s picture

I'd love to try this out, however, I'm having trouble getting a hold of your code. Would love to help out if I can.
EDIT: got the code, new to git, sorry. should be testing shortly.

scothiam’s picture

Working great for me so far in testing. Re-working other custom modules to work with it in hopes of going live. Thanks!

gordon’s picture

I have been running this in production for a couple of months. the great thing is that it has taken one sites overall site load time from 35-45 seconds to 15-20 seconds

scothiam’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev

I hope this is the right place to discuss this...(?)

@gordon, thanks again for your efforts!

I'm having a bit of trouble with adding attributes (node, vocabs, and custom variables) and think I may have found a typo at line 407 of google_admanager.module (sandbox/gordon/1358952)

google_admanager_get_variables($variable. $value);

renders as (node type is 'gallery')

.setTargeting('node-typegallery', '');

changing the "." to a "," fixes node types at least.

google_admanager_get_variables($variable, $value);

now renders correctly as

.setTargeting('node-type', 'gallery');

I'll keep troubleshooting... if I can solve the other issues I'll submit a patch.

Next tasks:
Custom variables are not displaying the value, rendering as: .setTargeting('node', ''). Looks like there is an issue with Token-replace... still need to make sure this isn't my local dev or code causing this issue. Update: only GLOBAL tokens work for me. Looking into this, not sure if there is a solution.

Vocabs are displaying like this .setTargeting('v-', '') (works as designed)

gordon’s picture

Thanks for pointing this out. I have fixed this on my fork http://drupal.org/sandbox/gordon/1358952

There is also an issue queue over there as well which you can log issues and I can properly attribute you when this is done.

Thanks.

jcisio’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev

Gordon, even it needs a lot of clean up, I'm willing to merge your branch back to 6.x-2.x branch if you could maintain it. I think toemaz will be ok with that.

Or will I just create 6.x-3.x branch with GPT support? Then there will be more work unless we deprecate 2.x branches.

HS’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev

Any update on this?

jcisio’s picture

Assigned: Unassigned » jcisio

I'm working on this on the 6.x-3.x branch based on gordon's work.

jcisio’s picture

@gordon: could you explain this commit http://drupalcode.org/sandbox/gordon/1358952.git/commitdiff/dc84ef7? I think we have two undefined variables $conf and $plugin.

jcisio’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev

I went ahead and created 6.x-3.x branch. All commits from gordon's branch have been merged. I only did a quick check. Please wait for a few more commits.

codycraven’s picture

As a note for D7, I originally opened this ticket for Google Ad Manager 7.x-2.x, I've created a module for Google Publisher Tags: http://drupal.org/project/gpt

jcisio’s picture

I haven't checked that module. But why duplicate instead of working on the 7.x branch?

codycraven’s picture

jcisio, when I really dove into GPT I found that its implementation was drastically different than GAM. Meaning this would have been a whole new branch, not just improving the existing 7.x-2.x. I also started on the GPT module before August 15th when you said you were creating a new branch for GPT support.

Not to mention the Google Ad Manager module is specifically named after the GAM method, which wouldn't make much sense for users searching for a Google Publisher Tag module.

jcisio’s picture

I said in 2011 (#7) that I was willing to open 3.x branch if someone was interested in working with it. However there was no one (it looks like gordon did not want to maintain that branch ;-) so he keeps it in a sandbox project).

Well, what's done is done. Now I'm again using this module, so I've made the 3.x branch. If you are interested in maintaining the (upcoming) 7.x-3.x branch, I think we can ask toemaz (the project owner) to add you as co-maintainer.

The module name is really not that important.

crea’s picture

Guys, any hints on stability of 3.x branch ?
I really want to switch to async mode but don't want to break anything on a live site :)
Is it production-ready ?

jcisio’s picture

Version: 6.x-3.x-dev » 7.x-2.x-dev
Status: Active » Patch (to be ported)

@crea I'm using it on a live site. But test it to see if it breaks on yours.

I think the D6 branch is ok. Move back to D7 for a forward port.

crea’s picture

Ok, I've switched to 3.x
Async loading is too sweet to skip it.

jason_purdy’s picture

Just got 6.x-3.x working on our production sites and it's mega-sweet! Thanks for that!

I'm looking long-term into upgrading to 7 ... is there interest in a 7.x-3.x branch or should we move to the gpt project for that core version?

Thanks again!

jcisio’s picture

I can't tell. I haven't look at the gpt project. But I'm willing to review/commit if someone submit a patch to port 3.x branch to D7.

DamienMcKenna’s picture

Assigned: jcisio » Unassigned
Issue summary: View changes

Note: you should only set the "assigned" field to your name if you plan on working on it.

jcisio’s picture

Version: 7.x-2.x-dev » 6.x-3.x-dev
Status: Patch (to be ported) » Fixed

Yeah, I committed it in the 6.x branch but forgot to unassign. BTW I updated the project page a few days ago saying that you should check the dfp module, or use the 7.x branch of google_dfp module.

DamienMcKenna’s picture

I suggest instead adding a node on the project page suggesting people use the GPT module if they want async ad loading.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.