サイトのトップへ戻る

Twitter 開発者 ドキュメント日本語訳

Native Ads Location Control

Native ads allow you to create ads that match the look and feel of your app. If you are adding native ads inside of a content stream, you can use the native ads location control feature to specify where the ads appear in the stream. This allows you to achieve the optimal balance of ads for your app without changing your app code or releasing a new version. Balance ads with content when you set the starting position for ads within your content stream and change how often an ad appears.

Note: To take advantage of this feature, you must integrate native ads using SDK Version 3.0+ and you must use the MPAdPlacer API described in the iOS and Android documentation.

In the settings above, your ads will appear in positions 1, 4, and 7, where 0 is the position of the first ad. After position 7, your ads will appear every 5 positions unless you uncheck the box or specify a different interval.
If you have an iOS app that uses sections in its stream, you can define specific positions by using the following notation [section].[position], e.g. 0.3.

FAQ

How do I take advantage of this feature?

Native Ads Location Control is only available on SDK version 3.0 or higher. Please make sure you’re using a compatible version.

Do I have to enter a frequency?

No, this number is not required.

What happens if I enter 0 as the starting ad position?

If you enter (0), the ad will show up in the first spot in the feed, before your app content. (This means if you set a starting position of 1, the ad show up in the second spot.) 255 is the last fixed position supported. The frequency control will begin counting after the last starting position that you enter.

Why can’t I enter 1 as a the frequency?

Ads would then show every position.

What starting position(s) and frequency do you recommend?

We recommend starting at 3 and entering a frequency of 10.