Dailymotion enables you to easily retrieve the app-ads.txt file directly from your Dailymotion Studio and make sure it is up to date at all time with Dailymotion's lines for improved Player monetization.
We'll show you in this guide how to register your apps where the Dailymotion Player is embedded, and manage the app-ads.txt file.
Note
App-ads.txt is only required if you're embedding the Dailymotion Player in a mobile app environment
The overall flow is as follow:
- Register your app by adding details in your Dailymotion Studio
- Retrieve the app-ads.txt file with the Dailymotion lines required to optimize Player monetization
- Upload the file on your app's domain by hosting it at the root level
- Keep it up to date to optimize your app monetization
We'll go through each step in detail in the following sections.
1 - Register your app
To ensure that the Dailymotion Player embedded on your mobile apps is safely monetized with our authorized ad partners, you can add you app information on your Dailymotion Studio.
By doing so, your app-ads.txt file will be regularly crawled, and we'll notify you when it needs to be updated whenever we establish new relationships with ad entities.
- From your Dailymotion Studio, go to Embeds > Apps
- Click Add app
- Select your app platform: Android or iOS
- Type in your App ID
Examples: iOS App ID - 336978041 / Android App ID - com.example.example
If you're not sure where to find it, see below the FAQ "Where can I find my App ID?"
- Fill in your app name
- Fill in your app's domain, where the app-ads.txt file is hosted
Example: mydomain.com
Do not include https or www - Click Add
Note
If you are embedding the Dailymotion Player on multiple apps, make sure to register each of them
A first crawl is now automatically triggered to check if an app-ads.txt file can be found on the registered app's domain.
The status "Checking app-ads.txt" appears and will be updated once the crawl is completed:
- If the status changes to Valid: your app-ads.txt file has been successfully crawled and is up to date with Dailymotion's lines
- If it changes to any other status: your app-ads.txt file needs to be updated. In this case, the following steps will show you how to retrieve the updated file and host it properly.
2 - Retrieve the app-ads.txt file
You can easily retrieve your file from your Dailymotion Studio:
- Go to Embeds > Apps
- Select app
- Click on the displayed status to access your file
You'll see 2 tabs:
- Latest version of your app-ads.txt: displays the latest version of the app-ads.txt crawled from your app's domain, with the Dailymotion lines and the lines for all other ad publishers already added
-
Dailymotion lines: only displays the lines for the Dailymotion Player - you can add them directly to your existing app-ads.txt
Check the FAQ "How is an app-ads.txt file structured" if you aren't familiar with it
- Copy or download the file from the tab that best fit your needs, and make sure it is named "app-ads.txt".
Now that you retrieved your file, you can follow the next steps to see how to host it on your app's domain.
3 - Host the file on your app's domain
Your app-ads.txt file should be hosted in the root directory of your app domain.
Make sure about the followings:
- The app's domain must be the developer website URL listed on the mobile app stores, as advertising systems rely on this domain to access your file (see IAB advisory)
- Set the read permission of the file to World
Android
iOS
Verify URL accessibility
Check that your app-ads.txt file is accessible when searching for the URL in a browser.
For example, if you hosted the file on https://your-app.com/app-ads.txt
, searching for this URL should allow you to access it.
4 - Update the file regularly
Dailymotion establishes new ad relationships regularly, and end existing ones. As an app publisher, you need to keep your app-ads.txt file up to date to reflect these changes. This will ensure that your embedded Players can be monetized by our authorized ad sellers.
To make it easier for you, we are regularly crawling your app-ads.txt files and notifying you per email when you need to update them on your domains.
You can also trigger the crawl yourselve whenever you need by clicking the Check app-ads.txt button.
See below the different statuses your file can have in your Dailymotion Studio, and how to troubleshoot them.
Status and Troubleshooting
The status of your app-ads.txt file.s is updated every time our system has crawled your app domain.
If you followed the guidelines listed above and still have issues with your file, please check the troubleshooting steps dedicated to each status :
Right after you added your app information in the Dailymotion Studio, a first crawl is automatically triggered to check the app-ads.txt file on the registered app domain.
The status is visible on the first crawl and when you launch the crawler with "Check app-ads.txt" button. Based on the crawling results, you will see one of the statuses below.
If this status persists for more than 48 hours, please contact our Support Team.
Your domain could be reached and your app-ads.txt has been crawled: your file is up to date and includes all Dailymotion lines!
The videos embedded with the Dailymotion Player on the identified app will be monetized by all of our ad partners.
The app-ads.txt file has been crawled on your app domain, but some required or recommended lines are missing.
Adding these required/recommended lines ensures that your embedded videos can be monetized by all of our ad partners.
Troubleshooting steps:
Check if all required/recommended lines are in your app-ads.txt file |
The app-ads.txt can be reached on your app domain, but some required lines are missing. Make sure you host the latest version of your app-ads.txt:
|
---|---|
Manually trigger the crawler |
Once you've uploaded the updated file on your app domain, you can trigger the crawler manually by clicking the Check app-ads.txt button on your Dailymotion Studio. |
Check SSL certificate |
Your app-ads.txt file cannot be reached by crawlers if the SSL certificate of your app domain is expired. Make sure your SSL certificate is up to date. |
Check app-ads.txt visibility |
Make sure that your app-ads.txt file is public, and not in private or draft. |
Check robots.txt permission |
The robots.txt file on your domain needs to allow the crawl of the URL where the app-ads.txt has been placed. |
We were able to access your app domain but your app-ads.txt file couldn't be found.
Troubleshooting steps:
Check file name and URL |
Make sure the file follows IAB standards:
|
---|---|
Check your file content type |
Your app-ads.txt file must be hosted as a "text/plain" file. If your file is a "text/html" file, the crawler may not recognize your content. |
Dailymotion is unable to access your domain.
Troubleshooting steps:
Check the registered app domain | Make sure that the app domain registered on your Dailymotion Studio corresponds to the one where the app-ads.txt file has been uploaded |
---|---|
Check app-ads.txt accessibility using a browser | If your registered app domain is https://example.com, check if https://example.com/app-ads.txt is accessible from a web browser |
Check SSL certificate |
Your app-ads.txt file cannot be reached by crawlers if the SSL certificate of your app domain is expired. Make sure your SSL certificate is up to date. |
Check app-ads.txt visibility | Make sure that your app-ads.txt file is public, and not in private or draft. |
Check robots.txt permission | The robots.txt file on your domain needs to allow the crawl of the URL where the app-ads.txt has been placed. |
FAQ
Where can I find my App ID?
iOS
-
Find your app on the AppStore
Example: https://apps.apple.com/us/app/dailymotion/id336978041 -
The App ID is the number at the end of the URL
Example: 336978041
Android
-
Find your app on the PlayStore
Example: https://play.google.com/store/apps/details?id=com.example.example -
The App ID is at the end of the URL
Example: com.example.example
How is an app-ads.txt file structured?
The app-ads.txt file enables app publishers to list the authorized advertising entities that are allowed to sell ad inventory on their mobile apps.
The file is a simple text document that contains lines of text with specific information about each ad entity. Each line typically includes the followings:
Mandatory fields:
- Domain name of the ad entity
- Unique publisher ID of the ad entity
- Relationship type, which can be "DIRECT" (for direct relationships) or "RESELLER" (for intermediaries that resell ad inventory)
Optional fields:
- Certification authority ID, which certifies that a specific ad entity is compliant with the ad industry standards (extra level of transparency)
- Comments, which can be added after the “#” symbol - they aren't taken into account by the crawler
For example:
soundcast.io,D963EC97,DIRECT
smartadserver.com,3491,RESELLER
google.com,pub-7019376976432612,RESELLER,f08c47fec0942fa0
nsightvideo.com,161853948,DIRECT,fd25240165056a01 # username