Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to Activate WebGL ads According to WebSite's Name?

Discussion in 'Unity Ads & User Acquisition' started by bekiryanik, Jul 21, 2019.

Thread Status:
Not open for further replies.
  1. bekiryanik

    bekiryanik

    Joined:
    Jul 6, 2014
    Posts:
    191
    Hello everyone,
    I applied google adsense WebGL ads. I would like to publish the ads according to Web site's name. I think i need to read the web site name inside of the game like;

    For example;

    if(websitename == "www.xyz.com")
    {
    ShowAds();
    }

    Is it possible to do something like this in the game?

    Thanks in advance.

    Edit: i think i found the solution. Sory that i opened this thread. I searched a lot but i think i didn't search correctly. Please correct me if i am wrong. The solution that i've found is "Application.absoluteURL".
     
    Last edited: Jul 21, 2019
Thread Status:
Not open for further replies.