Implemented Ad Manager - Size mapping for responsive ads

  • Romuald Yonga
  • Onderwerp Auteur
  • Offline
Lees meer
1 jaar 2 maanden geleden #2930 door Romuald Yonga
Ad Manager - Size mapping for responsive ads werd gestart door Romuald Yonga
Hi Ruud, 
Thanks again for the great tool.

We have a new request. We would like to publish responsive ads, i.e. we would like the ad unit to adapt automatically to the device where it’s being served.
Apparently, Google Ad Manager can handle the responsive behavior of the ad units by the use of Size Mapping. 

Would it be possible to implement that?

Here is more detail about what we need: Thank you.
Best,
R.
Discussie gesloten.
Lees meer
1 jaar 2 maanden geleden - 1 jaar 2 maanden geleden #2931 door Ruud van Lent
Beantwoord door Ruud van Lent in topic Ad Manager - Size mapping for responsive ads
Hi Romuald,

Thanks for your compliment and for your request.

I will look at this next week on Monday.

Have a great weekend!
Regards,
Ruud.
Laatst bewerkt 1 jaar 2 maanden geleden doorRuud van Lent.
Discussie gesloten.
Lees meer
1 jaar 1 maand geleden #2934 door Ruud van Lent
Beantwoord door Ruud van Lent in topic Ad Manager - Size mapping for responsive ads
Hi Romuald,
I checked the documentation links you provided and this is definitely something i can build in, just need to think what would be the best way to do it, adding the mapping:
  1. easiest: similar to how we now add the fixed-size / multi-sized ads (via a json string holding the values)
  2. via multiple fields that will guide you through it via the interface
My initial feeling is doing it via 1, as that is the easiest to implement as this setting (just like the size setting) is likely a one time setting: so configure once and then it will work indefinitely.

Is that something you could 'live' with or do you have any other suggestions?

also pinging @daclina here as this might be a feature he would also be interested in.
 
Discussie gesloten.
Lees meer
1 jaar 1 maand geleden #2936 door Ruud van Lent
Beantwoord door Ruud van Lent in topic Ad Manager - Size mapping for responsive ads
Ok,
so after some more in-depth investigating this I decided that it is best to configure this new setting confirm how other settings are configured (via adding a JSON array).

in the private message tab I have added a new dev version that has this feature in it. If you could test if it is working that would be great!

Looking forward to your feedback.
regards,
Ruud.
Discussie gesloten.
  • Romuald Yonga
  • Onderwerp Auteur
  • Offline
Lees meer
1 jaar 1 maand geleden #2939 door Romuald Yonga
Beantwoord door Romuald Yonga in topic Ad Manager - Size mapping for responsive ads
Hi Ruud, 
Thanks for the quick response!
I tried the test parameters you provided (those available in the Google Documentation) and I received the following message from the Google Published Console: 
"Exception in googletag.cmd function: TypeError: googletag.pubads(...).defineSizeMapping is not a function." 
The error directs us towards this page:  developers.google.com/publisher-tag/guid...EN_INVOKING_FUNCTION

Can you check, please?
Thank you.

Regards,
Romuald
 
Discussie gesloten.
Lees meer
1 jaar 1 maand geleden - 1 jaar 1 maand geleden #2940 door Ruud van Lent
Beantwoord door Ruud van Lent in topic Ad Manager - Size mapping for responsive ads
Hi Romuald,

found it, changed it, not able to check if it is working > so that is up to you :)

Added new downloadlink (in private tab)

regards,
Ruud
Laatst bewerkt 1 jaar 1 maand geleden doorRuud van Lent.
De volgende gebruiker (s) zei dank u: Romuald Yonga
Discussie gesloten.
  • Romuald Yonga
  • Onderwerp Auteur
  • Offline
Lees meer
1 jaar 1 maand geleden #2946 door Romuald Yonga
Beantwoord door Romuald Yonga in topic Ad Manager - Size mapping for responsive ads
Hi Ruud,

We are running a series of tests and it works perfectly so far!
Thanks a lot.
We will get back to you tomorrow morning with any remarks.

Best,
R.
Discussie gesloten.
Lees meer
1 jaar 1 maand geleden #2947 door Ruud van Lent
Beantwoord door Ruud van Lent in topic Ad Manager - Size mapping for responsive ads
Cool!

Thanks for reporting back.
Looking forward to your final test results.

Have a nice evening,
Ruud
Discussie gesloten.
  • Romuald Yonga
  • Onderwerp Auteur
  • Offline
Lees meer
1 jaar 1 maand geleden #2952 door Romuald Yonga
Beantwoord door Romuald Yonga in topic Ad Manager - Size mapping for responsive ads
Dit bericht bevat beveiligde informatie
Discussie gesloten.
Lees meer
1 jaar 1 maand geleden - 1 jaar 1 maand geleden #2953 door Ruud van Lent
Beantwoord door Ruud van Lent in topic Ad Manager - Size mapping for responsive ads
Hi Romuald,

in the downloadlink I have added a version that adds some additional logging. In the plugin you need to set debug to yes in the advances tab

I have the following add code:
Code:
<div align="center" class="leaderboard-all"> <div class="adslot" data-ad-unitsizemapping="[[[1264,500],[[750,200],[728, 90]]],[[640,480], [[300,250]]],[[0,0],]]" data-ad-unitpath="/17954357/leaderboard-all-test" data-ad-unitsize="[[728, 90], [970, 90], [970, 250]]"  ></div> </div>


so I set the data-ad-unitsizemapping in the ad code
as fallback I have configured:
Code:
[[[1024, 768],[[750,200],[728, 90]]],[[640, 480], [[300, 250]]],[[0, 0], ]]


now in the browser console you will see new log entries:  
Can you install the new version and see if you can get some useful information from the console log?

also, when adding "?google_console=1" to your URL a Google console will open and that might also give some insights / useful information.
Laatst bewerkt 1 jaar 1 maand geleden doorRuud van Lent.
Discussie gesloten.