Unless I am overlooking something, there is currently no way to serve native/responsive ads from Google Ad Manager. The only options are for fixed sizes.
The line in the Google Publisher Tag looks like this for native/responsive only:
I know I could manually put the full tags wherever I want with theme components, but then I wouldnāt get any of the other plugin features like no ads for certain groups, etc. I would be hugely appreciative if this size option could be added to the plugin.
Iām not using AdSense at all so that doesnāt help me. I show custom native ads and ads from a different network, which are all served through DFP. The size code for these in DFP is āfluidā, but this isnāt currently an option in the ad plugin.
The only way I can get them to display is to assign them an incorrect fixed size in DFP and then override the CSS in a custom theme. This does work in limited cases, but itās an ugly hack and not very scalable.
When I tried to add responsive ad sizes to DFP in 2017, there was no āfluidā option. Iāll have to look at how it works, and keep in mind that AdSense responsive ads changed recently.
Is there a reason for the plugin to be setting sizes at all? I noticed in the other topic you said that if multiple sizes are set it rotates through them evenly. This explains another problem Iāve had and is behavior I donāt want. If I have 10 ads in size āAā and 1 in size āBā, I donāt want those sizes to have equal representation.
I already have very granular control over everything in Ad Manager, so I really donāt need or want the plugin to do anything more than display the ad units from the tags I generate. Is there a way to do this and just display it in an empty, unsized div?
@torsi I added support for fluid ad size to the plugin. When chosen, it wonāt set a width or height on the container. I would appreciate it if you could test it out.
I spent most of my time trying to setup a fluid ad in Ad Manager, but couldnāt figure out how to do it. I got stuck in the Line Item step after defining my native creative using html + css, I have an Order for it, I have an Ad Unit for it, but itās still complaining about needing creative. Looking at the Line Item page, I have no idea what to do. So I can only verify that the plugin doesnāt set width and height on the container, but donāt know how to see a fluid ad delivered from Ad Manager. If thatās not good enough, Iām going to need help with Ad Manager.
I can also confirm that getting fluid line items to work in Ad Manager is annoyingly obscure and not well documented. You need to explicitly target all creatives to the ad units or they wonāt be recognized.