I am new to adwords api and can't find a way to get information such as "required image sizes" for example. That would return all the image sizes that google accepts. As in "Square 200 x 200, Vertical 120 x 600" etc.
Is there any way to get this information so I won't have to update my project if anything new added or removed from google side?
You can find some information about supported image sizes in the Adwords documentation.
For non-animated image ads, the following sizes are available:
200×200 Small square
240×400 Vertical rectangle
250×250 Square
250×360 Triple widescreen
300×250 Inline rectangle
336×280 Large rectangle
580×400 Netboard
120×600 Skyscraper
160×600 Wide skyscraper
300×600 Half-page ad
300×1050 Portrait
468×60 Banner
728×90 Leaderboard
930×180 Top banner
970×90 Large leaderboard
970×250 Billboard
980×120 Panorama
300×50 Mobile banner
320×50 Mobile banner
320×100 Large mobile banner
Related
I am using AVFoundation for my camera app. I am using live video frames to grab picture using AVCaptureVideoDataOutput.
Right now i do filter all supported formats for device and then pick highest supported resolution for format.
So for example i do get 4032*3024 resolution supported format on iPhone 8/7 which i am using as active format. i do filter from videoSupportedFramRateRanges.
I would like to know how i can render video with 4:3 resolution so i can see black bars on side of camera.
I did play with AVCaptureVideoPreviewlayer properties and found that if i use resizeAspectFill it shows camera full screen but if i just dont assign then it adds black bars on side. (I assume .resize is default property) but i am not sure whether this is right approach to show/hide black bars.
In my opinion this is working because currently i am picking highest supported resolution format which in this case is 4032*3024 due to which its working since its 4:3 aspect ratio.
Basically i want make sure i show video in 4:3 format size view in some scenario with black bars and in some scenario full screen which i am already doing.
Open questions
Is there any way i can make sure i can show always 4:3 aspect ratio video feed.
How i can show black bars with 4:3
also after showing black bar how I can get camera area without black bars?
Thanks!
The AdMob page states the following "Smart Banner" Sizes.
Three ad heights (in density-independent pixels [dp]) are implemented in smart banners:
Ad height Screen height
32dp ≤400dp
50dp > 400dp and ≤ 720dp
90dp > 720dp
It isn't clear what that means for the various iOS devices in various orientations. I am looking at converting from iAd at the moment and am faced with resizing from the iAD 66 pixel high banner, but it isn't clear whether I am going to lose or gain space.
I see the ad height is defined in "dp"s based on the screen height "dp"s, but I am not really sure what this means.
On Snapchat, it allows you to take a full screen camera photo on iOS. The preview is full screen, and the image returned is full screen. There appears to be no cropping/stretching/etc... What you see is what you get.
Now I've looked all over the place, and I can't figure out how this is actually being done, seeing that the iPhone camera always returns an image with an aspect ratio of 4:3. Yes, you can use the camera view transform to have a full screen "preview", but the image returned is still 4:3 and needs to be cropped.
So my question is, how do you take a full screen camera photo on iOS without cropping? If your answer is that it can't be done, then how is Snapchat doing it (or appearing to do it)?
Snapchat isn't displaying everything the camera is picking up. By cropping a bit from the top/bottom or sides, they can create a 16:9 image from a 4:3 image. This is easy to verify.
Open up the snapchat and camera apps so it's easy to switch between them.
Place your phone on its side pointed at something with some marks for reference points.
Switch between the apps without moving the phone. There is content that you do not see on Snapchat.
I'm experimenting with Airdrop and sending a thumbnail preview image.
The receiving device shows the preview thumbnail image in the receive confirm dialog, but often the image is downsized so that there is blank space in the Airdrop receive dialog to the left and right of the thumbnail. I want to get rid of this horizontal border.
The Airdrop receive dialog is 540 pixels wide. If I send a thumbnail that is 540 pixels wide and <= 400 pixels high, there is no horizontal border. If I send a square 540 x 540 image, I get the horizontal border. And yet when you send an image from Camera roll using Airdrop, no horizontal border appears around the thumbnail in the receive dialog, despite the thumbnail being >400 pixels high.
I would recommend using the UIActivityItemSource to provide metadata (such as the preview photo).
When the UIActivityViewController machinery requests the preview photo using the UIActivityItemSource's method activityViewController:thumbnailImageForActivityType:suggestedSize: it will pass in a CGSize that you should make sure your image fits inside. Make sure to adjust the dimensions of the image to fit the suggestedSize if you want it to fill up the full width of the alert. See the AirDrop sample code for an example of how to do this.
In my application,I used PhotoLibrary,it get photo, small part of that image.In full image it picks only the corner part.i searched over the net it tells,it checks the device size and image size return device size image only.then how it is possible to bring whole image.
Many photos are larger than the screen size. Corona can only show what's on screen. You have two choices, put the larger image inside of a widget.newScrollVew() so you scroll around and see the larger image, or scale the image down until it fits on the screen.