Page Summary
-
The AudienceSegment resource represents a specific audience segment.
-
The AudienceSegment resource has
nameanddisplayNamefields. -
You can retrieve a specific AudienceSegment object using the
getmethod or a list of them using thelistmethod.
- Resource: AudienceSegment
- NonRuleBasedFirstPartyAudienceSegment
- RuleBasedFirstPartyAudienceSegment
- Rule
- ThirdPartyAudienceSegment
- AudienceSegmentApprovalStatus
- AudienceSegmentLicenseType
- AudienceSegmentStatus
- AudienceSegmentType
- Methods
Resource: AudienceSegment
The AudienceSegment resource.
| JSON representation |
|---|
{ "name": string, "sharedId": string, "categoryIds": [ string ], // Union field |
| Fields | |
|---|---|
name |
Identifier. The resource name of the |
sharedId |
Output only. The ID of the |
categoryIds[] |
Optional. Unordered list. IDs of the categories that this audience segment belongs to. See |
Union field sub_type. Based on the type classification, the AudienceSegment has additional information in zero or one of the following sub-types. sub_type can be only one of the following: |
|
nonRuleBasedFirstPartyAudienceSegment |
Optional. An |
ruleBasedFirstPartyAudienceSegment |
Optional. An |
thirdPartyAudienceSegment |
Output only. An |
displayName |
Required. Display name of the |
description |
Optional. Description of the |
status |
Output only. Non-empty default. Status of the |
size |
Output only. Number of unique identifiers in the |
mobileWebSize |
Output only. Number of unique mobile web identifiers in the |
idfaSize |
Output only. Number of unique Identifier for Advertisers (IDFA) identifiers in the |
adIdSize |
Output only. Number of unique AdID identifiers in the |
ppidSize |
Output only. Number of unique publisher-provided (PPID) identifiers in the |
dataProviderDisplayName |
Output only. Display name of the owner data provider. For a first-party audience segment, this is the display name of the publisher network. Otherwise, this is the display name of the entity providing the audience segment. |
segmentType |
Output only. Non-empty default. Type of the |
NonRuleBasedFirstPartyAudienceSegment
An AudienceSegment owned by the publisher network that does not contain a rule. Cookies are usually added to these segments through cookie upload.
| JSON representation |
|---|
{ "membershipExpirationDays": string } |
| Fields | |
|---|---|
membershipExpirationDays |
Required. Number of days after which a user's cookie will be removed from the |
RuleBasedFirstPartyAudienceSegment
An AudienceSegment owned by the publisher network that contains a rule.
| JSON representation |
|---|
{
"rule": {
object ( |
| Fields | |
|---|---|
rule |
Required. The rule definition which determines the eligibility criteria for the |
pageViews |
Required. Number of times a user's cookie must match the |
recencyDays |
Optional. Number of days within which a user's cookie must match the |
membershipExpirationDays |
Required. Number of days after which a user's cookie will be removed from the |
Rule
Eligibility criteria for a user to be part of an AudienceSegment.
| JSON representation |
|---|
{ "inventoryTargeting": { object ( |
| Fields | |
|---|---|
inventoryTargeting |
Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment. |
customTargeting |
Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See |
ThirdPartyAudienceSegment
An AudienceSegment owned by a data provider and licensed to the Ad Manager publisher network.
| JSON representation |
|---|
{ "cost": { object ( |
| Fields | |
|---|---|
cost |
Output only. The CPM cost for the given segment. This is assigned by the data provider. The CPM cost comes from the active pricing if it exists, otherwise it comes from the latest pricing. |
startTime |
Output only. Time which this segment becomes available for use. It is assigned by the data provider. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endTime |
Output only. Time which this segment ceases to be available. It is assigned by the data provider. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
approvalStatus |
Output only. Whether the publisher has approved or rejected the segment. |
licenseType |
Output only. The license type of the external segment. |
AudienceSegmentApprovalStatus
Specifies the approval status of a ThirdPartyAudienceSegment.
| Enums | |
|---|---|
AUDIENCE_SEGMENT_APPROVAL_STATUS_UNSPECIFIED |
Default value. This value is unused. |
APPROVED |
Indicates that this segment is approved and can be targeted. |
REJECTED |
Indicates that this segment is rejected and cannot be targeted. |
UNAPPROVED |
Indicates that this segment is waiting to be approved or rejected. It cannot be targeted. |
AudienceSegmentLicenseType
Specifies the license type of a ThirdPartyAudienceSegment.
| Enums | |
|---|---|
AUDIENCE_SEGMENT_LICENSE_TYPE_UNSPECIFIED |
Default value. This value is unused. |
DIRECT |
Indicates that the license is the result of a direct contract between the data provider and the publisher. |
GLOBAL |
Indicates that the license is the result of an agreement between Google and the data provider, which agrees to license their audience segments to all the publishers and/or advertisers of the Google ecosystem. |
AudienceSegmentStatus
Specifies the status of an AudienceSegment.
| Enums | |
|---|---|
AUDIENCE_SEGMENT_STATUS_UNSPECIFIED |
Default value. This value is unused. |
ACTIVE |
Indicates that this audience segment is available for targeting. |
INACTIVE |
Indicates that this audience segment is not available for targeting. |
UNUSED |
Indicates that this audience segment was deactivated by Google because it is unused. |
AudienceSegmentType
Specifies the type of an AudienceSegment.
| Enums | |
|---|---|
AUDIENCE_SEGMENT_TYPE_UNSPECIFIED |
Default value. This value is unused. |
FIRST_PARTY |
Indicates that the segment is a first party segment created and owned by the publisher. |
SHARED |
Indicates that the segment is a first party segment shared by other clients. |
THIRD_PARTY |
Indicates that the segment is a third party segment licensed by the publisher from data providers. This does not include Google-provided licensed segments. |
Methods |
|
|---|---|
|
Activates AudienceSegment objects. |
|
Approves AudienceSegment objects. |
|
Deactivates AudienceSegment objects. |
|
Populates AudienceSegment objects. |
|
Rejects AudienceSegment objects. |
|
Retrieves an AudienceSegment object. |
|
Lists AudienceSegment objects. |