Custom native ad formats
Custom (user-defined) native ad formats allow you to define your own variables for native ads that will be direct sold.
A native ad format is a set of variables and styles that comprises a native ad:
- Variables can be values such as headline, image, body, app icon, call to action, etc. These variables have no associated rendering or styling information. Traffickers provide values for the variables in these native app formats, and DFP uses these values for the content of native ads.
- Native styles determine how your ad will look when it’s served.
Our two standard (system-defined) native ad formats, App install ads and Content ads, cover many use cases for trafficking native ads. However, there may be times when you need the flexibility to create your own native ad format. With custom native ad formats, you select the variables you want to include.
Add a custom native ad format
You can add a custom native ad format when creating a native style. When adding variables for a custom native ad format, first you select the type of variable a trafficker can enter, such as a File, Number, or URL. DFP then displays the settings related to that type.
For Custom rendering, instead of native styles, you use the Google Mobile Ads SDK to custom request and render native ads from your app. However, you can add a native style if you want to create a custom native ad format. Learn more
|File||Trafficker will click the Choose file button and upload a file.|
|List||Trafficker will pick from a list of options.|
|Text||Trafficker will enter a string.|
|Number||Trafficker will enter an integer.|
|URL||Trafficker will enter a URL.|
Variable settings based on the type
|Setting||Available for these variable types||Description|
|Required||All||Select whether it will be required for the trafficker to add a value for the variable.|
|Name||All||Enter a name for the variable.|
|Help text||All||You can enter the text for a custom help pop-up. When the trafficker hovers over the question mark next to the variable, a help box with this text will appear.|
|Sample value||All||You can enter a value for the variable so it will appear in the native style preview. The “Sample value” isn’t used in actual serving.|
|Enter the default value that will appear for the field. If you don’t enter a value, the field will be empty until the trafficker enters a value.|
|Only allow certain file types||File||You can restrict the trafficker to upload only the file types you select here: jpg, png, gif, and swf.|
|Options||List||These are the options that traffickers will pick from when adding a creative. If you select “Allow other options”, traffickers will be able to add text in a box.|
|URL type||URL||The first three options are used for special behaviors. Note that all custom native ad formats automatically have a variable for “Click-through URL”; you don’t need to add this yourself.