Support » Plugin: Ad Inserter - Ad Manager & AdSense Ads » Is it possible to insert different ads for each users?

  • Resolved tropicalista

    (@tropicalista)


    I’d like to have each user has its own adsense code. It’s possible to have an option so that each user can automatically add his own adsense code?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Spacetime

    (@spacetime)

    Can you please explain how do you (or would you) store adsense codes for users?

    Plugin Author Spacetime

    (@spacetime)

    You need some way (plugin) to add custom fields to each user profile.
    For AdSense you will need Publisher ID and slot ID.

    Then it should be possible to generate AdSense code for each user with a simple PHP code.

    At the moment there are 16 slot. An option is to add a check to match user id to show the ads only on post by that user id.

    For example in the options there are “On all posts” check, you can add a dropdown select with “by user” and choose user id.

    Plugin Author Spacetime

    (@spacetime)

    This would not be very useful as it would limit ads to only 16 users and you would use all blocks just for one ad for 16 users.

    However, if you need this you can easily do with a short PHP code in each code block to check user ID.

    Thanks for your support.

    Do you have any example code?

    Plugin Author Spacetime

    (@spacetime)

    First you have to provide your code to get user data fields for ads. Then I can suggest how to generate ads.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Is it possible to insert different ads for each users?’ is closed to new replies.