Content mapping
Stay organized with collections
Save and categorize content based on your preferences.
Prerequisites
- Google Mobile Ads SDK 7.67.0 or higher
Content URL
Publishers who use
content mapping
to better monetize their app can pass a content URL for contextual targeting as
well as brand safety.
For example, if you'd like to request ads next to content represented by
https://www.example.com
, you can pass the URL using
contentUrl
:
Swift
let request = GADRequest()
request.contentURL = "https://www.example.com"
Objective-C
GADRequest *request = [GADRequest request];
request.contentURL = @"https://www.example.com";
Multi-content URL
If your content is represented by more than one URL, for example a feed app, you
can request ads next to the content with up to four URLs by using
neighboringContentURLStrings
:
Swift
let request = GADRequest()
request.neighboringContentURLStrings =
["https://www.example1.com", "https://www.example2.com",
"https://www.example3.com", "https://www.example4.com"]
Objective-C
GADRequest *request = [GADRequest request];
request.neighboringContentURLStrings =
@[@"https://www.example1.com", @"https://www.example2.com",
@"https://www.example3.com", @"https://www.example4.com"];
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003ePublishers can enhance ad targeting and brand safety by providing a content URL through the \u003ccode\u003econtentURL\u003c/code\u003e property of \u003ccode\u003eGADRequest\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eFor apps with content represented by multiple URLs, up to four URLs can be passed using the \u003ccode\u003eneighboringContentURLStrings\u003c/code\u003e property of \u003ccode\u003eGADRequest\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUtilizing content URLs enables contextual targeting, improving ad relevance and potentially increasing revenue.\u003c/p\u003e\n"],["\u003cp\u003eThese features require Google Mobile Ads SDK 7.67.0 or higher.\u003c/p\u003e\n"]]],["Publishers using content mapping can enhance app monetization by passing content URLs for contextual targeting and brand safety. Utilize the `contentUrl` property within a `GADRequest` to submit a single content URL, like \"https://www.example.com\". For multiple URLs, such as in feed apps, employ `neighboringContentURLStrings`, accommodating up to four URLs, for example [\"https://www.example1.com\", \"https://www.example2.com\"]. This requires Google Mobile Ads SDK 7.67.0 or higher.\n"],null,["Prerequisites\n\n- Google Mobile Ads SDK 7.67.0 or higher\n\nContent URL\n\nPublishers who use\n\n[content mapping](//support.google.com/admob/answer/6270563)\n\nto better monetize their app can pass a content URL for contextual targeting as\nwell as brand safety.\n\nFor example, if you'd like to request ads next to content represented by\n`https://www.example.com`, you can pass the URL using\n[`contentUrl`](/admob/ios/api/reference/Classes/GADRequest#contenturl): \n\nSwift \n\n let request = GADRequest()\n request.contentURL = \"https://www.example.com\"\n\nObjective-C \n\n GADRequest *request = [GADRequest request];\n request.contentURL = @\"https://www.example.com\";\n\nMulti-content URL\n\nIf your content is represented by more than one URL, for example a feed app, you\ncan request ads next to the content with up to four URLs by using\n\n[`neighboringContentURLStrings`](/admob/ios/api/reference/Classes/GADRequest#neighboringcontenturlstrings): \n\nSwift \n\n let request = GADRequest()\n request.neighboringContentURLStrings =\n [\"https://www.example1.com\", \"https://www.example2.com\",\n \"https://www.example3.com\", \"https://www.example4.com\"]\n\nObjective-C \n\n GADRequest *request = [GADRequest request];\n request.neighboringContentURLStrings =\n @[@\"https://www.example1.com\", @\"https://www.example2.com\",\n @\"https://www.example3.com\", @\"https://www.example4.com\"];"]]