As part of its commitment to more transparency and security in the mobile advertising ecosystem, Facebook has adopted the IAB Tech Lab's App-ads.txt Specification. It’s important both ad networks and developers do their part to participate in this movement to help remove fraud.
Like ads.txt
, app-ads.txt
is a text file that app devs upload to their publisher website.
An app-ads.txt
record consists of a single line comprised of four fields separated by commas. The app-ads.txt record has the following fields.
Field | Description | Value |
---|---|---|
Ad System Domain | (Required) The canonical domain name of the advertising system to which the bidder connects. | facebook.com |
Publisher Account ID | (Required) The identifier associated with your direct account or the reseller account within the advertising system. | Your property ID, Business ID, or app ID |
Account Type/Relationship | (Required) An enumeration of the type of account. If you use third party resellers to sell your inventory, they should be listed as reseller. | DIRECT or RESELLER |
Certificate Authority ID | An ID that uniquely identifies the advertising system within a certification authority. | c3e20eee3f780d68 |
To add Facebook to your app-ads.txt
, you have the option of using property ID, business ID, or app ID. In all cases, you must list your developer website URL in the GooglePlay and iTunes app stores. You must have a valid developer website URL in all app stores hosting your apps.
Upload the app-ads.txt file to the root of your website domain (for example, https://example.com/app-ads.txt
).
This is the domain of the URL that you listed in the app stores, and it hosts your app-ads.txt file. If you have not listed a URL, it can take up to 7 days for the app listing to be updated. For more information, see Verify Ownership of Your Mobile App in the Meta Business Help Center documentation.
Please ensure you wait 24 hours after updating the app-ads.txt before running authentication again.
To add Facebook to your app-ads.txt
with property IDs, copy and paste the following string to each of your properties. (Note: You must also update the property ID for each string.)
facebook.com, Property ID, RESELLER, c3e20eee3f780d68
The following is an example.
[...] facebook.com, 1000001, RESELLER, c3e20eee3f780d68 facebook.com, 1000002, RESELLER, c3e20eee3f780d68 facebook.com, 1000003, RESELLER, c3e20eee3f780d68[...]
To add Facebook to your app-ads.txt
with a business ID, copy and paste the following string containing your Business ID. This is the option for publishers with several property IDs.
facebook.com, Business ID, RESELLER, c3e20eee3f780d68
For more information, see IAB Tech Lab's App-ads.txt Specification.
For help with troubleshooting common issues, go to Troubleshoot issues with app-ads.txt