Upsert segment
Create or update a Google Ads audience segment
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
adPublishing. writeOAuthPrivate IntegrationSub-Account TokenRequest
Headers
API Version
v3v3Query Parameters
Location identifier
HChooFuiyPpVYzeJ4HMeSegment type
CUSTOM_SEGMENTSWEBSITE_VISITORCUSTOMER_MATCHLOOKALIKECUSTOM_SEGMENTSBody
Segment name
My SegmentSegment description
Target audience segmentSegment members — keywords, URLs, or apps that define the custom segment
Segment status
ENABLEDGoogle custom-audience type, used only when the type query parameter is CUSTOM_SEGMENTS. Defaults to AUTO when omitted. This is NOT the same field as the type query parameter, which selects which kind of segment to upsert — settable values here are AUTO, INTEREST, PURCHASE_INTENT and SEARCH.
AUTOSegment identifier
seg_123Membership status
OPENRule-based user list config
Membership life span
30Seed user list IDs
["list_1"]Country codes
["US","CA"]Expansion level
BALANCEDBROADNARROWBALANCEDResponse
The saved segment, shaped by the requested type: a custom audience for CUSTOM_SEGMENTS, or a Google user list for DATA_SEGMENTS.
- GoogleSegmentDetailDTO
- GoogleDataSegmentDetailDTO
Google Ads resource name
customers/6776452901/customAudiences/874396901Segment id
874396901Segment status
ENABLEDSegment name
Running shoe shoppersGoogle custom-audience type. AUTO is the default applied when none is supplied on create.
AUTOKeywords, URLs and apps that define the segment