Caution: You are viewing documentation for the API's REST interface. Most of our official client libraries use gRPC. See the
REST Introduction for details.
TopicInfo
A topic criterion. Use topics to target or exclude placements in the Google Display Network based on the category into which the placement falls (for example, "Pets & Animals/Pets/Dogs").
JSON representation |
{
"path": [
string
],
"topicConstant": string
} |
Fields |
path[] |
string
The category to target or exclude. Each subsequent element in the array describes a more specific sub-category. For example, "Pets & Animals", "Pets", "Dogs" represents the "Pets & Animals/Pets/Dogs" category.
|
topicConstant |
string
The Topic Constant resource name.
|
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-03-06 UTC.
[null,null,["Last updated 2025-03-06 UTC."],[[["Topic criterion allows targeting or excluding placements on the Google Display Network based on their category."],["The criterion uses a JSON representation with `path` defining the category and sub-categories and `topicConstant` specifying the Topic Constant resource name."],["`path` is an array of strings with each element representing a more specific sub-category within the broader category."],["`topicConstant` is a string representing the unique identifier for the topic within the Google Display Network."]]],["The content defines a topic criterion for targeting or excluding placements in the Google Display Network. It utilizes a JSON representation with two key fields: `path[]`, an array of strings representing hierarchical categories (e.g., \"Pets & Animals\", \"Pets\", \"Dogs\"), and `topicConstant`, a string containing the Topic Constant resource name. These elements allow for specific targeting based on placement categories. Each array item represents a sub-category.\n"]]