Can I display admob ads with a custom size in iphone, such as 280×50, not 320×50 typically ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Custom Ad Size
In addition to the standard AdMob ad units, DFP allows you to serve any sized ad unit into an application. Note that the ad size (width, height) defined for an ad request should match the dimensions of the ad view displayed on the application (i.e. DFPBannerView).
Example:
Note: DFP does not currently support Smart Banners.
Multiple Ad Sizes
DFP allows you to specify multiple ad sizes which may be eligible to serve into a DFPBannerView. There are three steps needed in order to use this feature:
In the DFP UI, create a line item targeting the same ad unit that is associated with different size creatives.
In your application, set the validAdSizes property on DFPBannerView:
Implement the GADAdSizeDelegate method to detect an ad size change.
Remember to set the delegate using the setAdSizeDelegate: before making the request for an ad.
Be sure to set the GADBannerView’s adSizeDelegate property to nil before releasing the view: