Experiencing a 401 Unauthorized Error During Update?

If you're seeing a 401 Unauthorized error when trying to update your Joomla extension, it's likely due to our new two-factor authentication (2FA) security measure for your Download ID.
To resolve this, check your email (Spam folder?) for a message to approve your server or device, or read our detailed blog post here( onlinecommunityhub.nl/best-practice/new-...-extension-downloads) to understand the steps involved. This will guide you through approving your server for future updates.

Implemented Ad Manager - Size mapping for responsive ads

More
6 months 23 hours ago #2930 by Romuald Yonga
Ad Manager - Size mapping for responsive ads was created by 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.
The topic has been locked.
More
6 months 18 hours ago - 6 months 18 hours ago #2931 by Ruud van Lent
Replied by Ruud van Lent on 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.
Last edit: 6 months 18 hours ago by Ruud van Lent.
The topic has been locked.
More
5 months 4 weeks ago #2934 by Ruud van Lent
Replied by Ruud van Lent on 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.
 
The topic has been locked.
More
5 months 4 weeks ago #2936 by Ruud van Lent
Replied by Ruud van Lent on 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.
The topic has been locked.
More
5 months 3 weeks ago #2939 by Romuald Yonga
Replied by Romuald Yonga on 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
 
The topic has been locked.
More
5 months 3 weeks ago - 5 months 3 weeks ago #2940 by Ruud van Lent
Replied by Ruud van Lent on 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
Last edit: 5 months 3 weeks ago by Ruud van Lent.
The following user(s) said Thank You: Romuald Yonga
The topic has been locked.
More
5 months 3 weeks ago #2946 by Romuald Yonga
Replied by Romuald Yonga on 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.
The topic has been locked.
More
5 months 3 weeks ago #2947 by Ruud van Lent
Replied by Ruud van Lent on 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
The topic has been locked.
More
5 months 3 weeks ago #2952 by Romuald Yonga
Replied by Romuald Yonga on topic Ad Manager - Size mapping for responsive ads
This message contains secure information
The topic has been locked.
More
5 months 3 weeks ago - 5 months 3 weeks ago #2953 by Ruud van Lent
Replied by Ruud van Lent on 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.
Last edit: 5 months 3 weeks ago by Ruud van Lent.
The topic has been locked.