Android & iOS app code for native

You can style a native ad directly in Android or iOS app code. This is a good choice for sophisticated app developers who want full control of their rendering in apps. The resulting native creatives can serve as programmatic or traditional ads.

Native ads with a width or height smaller than 32 dp (Android) or 32 pts (iOS) won’t serve when using the “Android & iOS app code” option. Ads this small can be difficult to see or interact with and may adversely affect the display quality of advertiser assets.

For native video ads, the main asset MediaView must be at least 120x120 dp (Android) or 120x120 pts (iOS). Ads with main asset MediaViews smaller than this won't serve programmatic video demand.

Request native ads from your app

  1. Import the Google Mobile Ads SDK (for Android or iOS), if you haven’t already.
  2. Use the Google Mobile Ads SDK (for Android or iOS) to request native ads from your app. Your mobile developer:
    • Defines a handler that receives the ads’ fields and can render the content as they choose.
    • Can pre-fetch native creatives to minimize latency for end users.
    • Can request multiple native ad formats in a single ad request; Ad Manager will select a native creative from any of the requested formats. 
  3. Review the native ads creative guidelines when editing app code.

(Optional) Create a custom format

You have the option to create a custom native ad format for traditional ads. However, creating and using a custom format will prevent you from serving programmatic ads.

To serve programmatic ads, or to select an existing custom format for traditional ads, skip this section.

Formats contain the variables that make up the content of your ad, such as a headline, image, body, app icon, and call to action.

  1. Sign in to Google Ad Manager.
  2. Click Delivery and then Native
  3. Click New native ad and then Single ad.
    Learn more about the Multiplex ad option.
  4. Click Select in the "Android & iOS app code" box.
    The "Define ad settings" page appears.
  5. Enter an internal Name and Description for the new custom native ad format.
    This is the name that will appear as an option when selecting a native ad format for a new creative.
  6. (Optional) Enter the identifier that's needed for you to be certified as a partner by the IAB.
  7. Click Add variable.
  8. Select the type and settings for the variable.
  9. In the “Variable” pop-up, click Continue.
  10. Add as many variables as needed.
  11. Click Save and Finish.
Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

Clear search
Close search
Google apps
Main menu
Search Help Center