LARSAdController icon indicating copy to clipboard operation
LARSAdController copied to clipboard

google ads set to appear at top, which are not full-screen width, are placed in top left, not top center.

Open georgejecook opened this issue 11 years ago • 9 comments

How to correct this?

just had a look through the code and it seems extraordinarily difficult to resolve without hacking the source, i.e. using delegates, etc.

I'd prefer not to have to go hacking your source as I install your lib with cocoapods.

georgejecook avatar Dec 08 '14 21:12 georgejecook

Can you provide some more information such as OS, platform, logging, etc?

larsacus avatar Dec 08 '14 21:12 larsacus

iOS 8.

are there any hooks for resizing the ad views?

georgejecook avatar Dec 09 '14 17:12 georgejecook

You don't have any control as to the specific size of the ads. The ad network returns an ad at a particular size. I can only specify what type of ads to receive based on platform, etc.

larsacus avatar Dec 09 '14 17:12 larsacus

I mean the view it sits in.. any way for me to better control the position (i.e. center it horizontally?).. or at least know when it's been updated so I can place it into a correctly sized black view, and center it in that.

georgejecook avatar Dec 09 '14 17:12 georgejecook

It should automatically center itself horizontally internally -- if not, that should be a bug. You have access to the container view on LARSAdController to manipulate any way you please:

/** The container view that the ads are contained in. Exposed so you can do anything you would want with it.
 */
@property (nonatomic, readonly, strong) LARSAdContainer *containerView;

larsacus avatar Dec 10 '14 00:12 larsacus

But is there notification to say when it's added an ad? coz if not, I'd have no way of knowing it's done something silly with the sizing.

georgejecook avatar Dec 10 '14 18:12 georgejecook

What do you mean "added an ad"? You shouldn't have to listen for individual ads coming and going from the view as that's the entire point of this control and to abstract that information away from you.

larsacus avatar Dec 10 '14 19:12 larsacus

Ok, so is the bug fixed then? "It should automatically center itself horizontally internally -- if not, that should be a bug. You have access to the container view on LARSAdController to manipulate any way you please:"

It doesn't center horizontally if the ad is smaller than the screen width.

georgejecook avatar Feb 17 '15 15:02 georgejecook

Please attach some logs, screenshots, or any other information that could be used to determine if this actually is a "bug" or not before I can claim that it is fixed. Yes, it should currently center itself horizontally, as that is how I am currently seeing it on my device right now.

larsacus avatar Feb 17 '15 16:02 larsacus