Skip to content

No banner test ads unless exactly 320x50 #50

@andre-arsenault

Description

@andre-arsenault

This issue occurs when using test ads with the default inventory hash of fe96717d9875b9da4339ea5367eff1ec.

Current behaviour

Unless a CGRect whose width and height are exactly 320 and 50 respectively is passed to [MobFoxAd:init:withFrame], the following error will be returned:

MobFoxAdDidFailToReceiveAdWithError: Error Domain=no ad could be found for this request (no fill) Code=0 "(null)"

A CGRect of exactly 320x50 will result in test ads being returned correctly.

Expected behaviour:

The ad request parameters documentation shows that there is a parameter called adpsace_strict which is set to 0 by default.

Test ads should behave as the documentation suggests. If larger dimensions are passed, the service should return any available ads up to and including the given ad size.

Example

Running on an iPhone 7 Plus device with a screen width of 414px, I pass in a rect of 414 width and 50 height to [MobFoxAd:init:withFrame]. No ads are returned and the 'no fill' error referenced above is thrown.

Instead I would expect at least the default 320x50 test banner ad to be returned, if there are no natively-sized test banners for this device's dimensions.

Also, if a smaller ad is returned, I would expect for it to be centered within the rect specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions