AdSense For Games & IMA SDK for HTML5

851 views
Skip to first unread message

Kang

unread,
Apr 11, 2019, 10:52:45 PM4/11/19
to Interactive Media Ads SDK
Hi

We are running a HTML5 game site.
Ads are served using AdSense For Games.
I have a question about IMA SDK for HTML5.

---------------

1) Is there a sample code of AdSense For Games for?

The sample code on GitHub seemed to be for AdSense For Video.
I do not know why the game requires the <video> tag.

There is no <video> tag on the game page, I'm doing this for Mobile Skippable Ads.

var dummyVideo = document.createElement("video");
dummyVideo.setAttribute("playsinline", true);
dummyVideo.muted = true;
...
var adDisplayContainer = new google.ima.AdDisplayContainer(adContainer, dummyVideo);
...
adsManager = adsManagerLoadedEvent.getAdsManager(dummyVideo, adsRenderingSettings);

Is this not a problem?

---------------

2) fullslot text ad on small devices

I want to be able to run ads on any device. but,
An error occurs when displaying text ad on a small device.

{h: 501, l: "The overlay ad content could not be displayed since creative dimensions do not align with display area.", o: "adPlayError"}

iPhone 6/7/8 Portrait Mode
width: 375 / height: 553

iPhone 6/7/8 Landscape mode
width: 667 / height: 375

The browser is Safari.
Although errors occur in Portrait mode, they do not occur in Landscape mode.
Even if it is successfully displayed in Landscape mode, if you change to Portrait mode, the same error will occur at adsManager.resize.

The size of the returned text ad is 450px, which is larger than the width of the device.

adsRequest.forceNonLinearFullSlot = true;

adsRequest.linearAdSlotWidth = deviceWidth;
adsRequest.linearAdSlotHeight = deviceHeight;
adsRequest.nonLinearAdSlotWidth = deviceWidth;
adsRequest.nonLinearAdSlotHeight = deviceHeight;

adsManager.init(deviceWidth, deviceHeight, google.ima.ViewMode.NORMAL);

In the case of Landscape mode deviceWidth is 375px, but the ads that are returned is 450px.
Does the setting at the time of request affect the returned ad?

---------------

3) Invalid traffic?

Is our AdSense For Games advertising regarded as a significant amount of invalid traffic, has been reduced sales.
If an error occurs in the IMA SDK, is it treated as invalid traffic?

Other, please share if there is information that can be shared about invalid traffic on the ima sdk use.

ima-sdk-fo...@google.com

unread,
Apr 12, 2019, 5:27:03 AM4/12/19
to ima...@googlegroups.com

Hi Kang,


Thank you for reaching out to us.


Please see my comments on your questions below.


1. Is there a sample code of AdSense For Games for?


I would suggest to check the Adsense for games tag generator documentation to help you integrate ads with IMA SDK for HTML5. Please note the important reminder on AFG tag generator.


  • AdSense for games (AFG) requires the game launcher to be integrated with Google IMA HTML5 SDK. 



2. Fullslot text ad on small devices / 3. Invalid traffic


For us to test on our end, could you please share the ad tag you used when these issues occurred? This will help us to investigate further.




Regards,
Sherwin Diesta
IMA SDK Team



--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

ima-sdk-fo...@google.com

unread,
Apr 23, 2019, 7:29:51 AM4/23/19
to ima...@googlegroups.com

Hi Kang,


Thank you for your response.


I've tested the link you have provided using IPod touch and it works fine, please see attached screenshot.

However, on the second time around the ads not showing up.


If you're using Inline skippable ads, I would suggest checking out this IMA SDK documentation to ensure that your ads will play in an inline video player on IPhone.


Regards,

Sherwin Diesta

IMA SDK Team



On 04/23/19 15:55:47 geoffrey....@gmail.com wrote:
Hello,

I'm getting similar issue for fullslot text ad on small devices ( iphone 5 for an example) as i could not display this ads.
Here is my game link with sdk implemened https://cdn.ludigames.com/h5/hexAquaticKrakenFree/
Could you pls tell me how can i fix it?
ipodTest.png
Reply all
Reply to author
Forward
0 new messages