Hi Khushboo,

Thank you for reaching out to the Google Ads API support team.

Kindly note that it's possible to set these demographic values (Gender and Age) 
in the signal audience of a PMax campaign using the Google Ads API. An Audience 
is a reusable collection of focused segments, demographic targeting, and 
exclusions. An AssetGroupSignal lets you specify which Audience is most likely 
to convert for your AssetGroup. I would recommend you to refer to this 
documentation for more detailed information. Firstly, you need to create the 
demographics like age and gender using the AudiencesService method then later 
you need to pass the audience to the AssetGroupSignalService by passing it in 
the AssetGroupSignals ​​​​​​method. However, I am sharing you the sample 
request and response logs for your reference:

Adding the demographics like 'Age', 'Gender' using the audiences method: 
========================================================================== 
Request Body: =============== POST 
https://googleads.googleapis.com/v21/customers/{customerId}/audiences:mutate?key=[YOUR_API_KEY]
 HTTP/1.1

developer-token: **********************
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json

{
  "operations": [
    {
      "create": {
        "dimensions": [
          {
            "age": {
              "ageRanges": [
                {
                  "maxAge": 64,
                  "minAge": 18
                }
              ]
            }
          }
        ],
        "assetGroup": "customers/{customerId}/assetGroups/{assetGroupId}",
        "name": "audience signal 34",
        "description": "audience group signal pmax campaigns3",
        "scope": "ASSET_GROUP"
      }
    }
  ]
}

Response: ========== HTTP/1.1 200 
content-encoding: gzip
content-length: 104
content-type: application/json; charset=UTF-8
date: Thu, 21 Aug 2025 06:08:29 GMT
server: ESF
vary: Origin, X-Origin, Referer

{
  "results": [
    {
      "resourceName": "customers/{customerId}/audiences/{audienceId}"
    }
  ]
}

Adding the demographic audience ID to the assetGroupSignals method: 
==================================================================== Request 
Body: =============== POST 
https://googleads.googleapis.com/v21/customers/{customerId}/assetGroupSignals:mutate?key=[YOUR_API_KEY]
 HTTP/1.1

developer-token: **********************
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json

{
  "operations": [
    {
      "create": {
        "assetGroup": "customers/{customerId}/assetGroups/{assetGroupId}",
        "audience": {
          "audience": "customers/{customerId}/audiences/{audienceId}"
        }
      }
    }
  ]
}
Response: ========== HTTP/1.1 200 
content-encoding: gzip
content-length: 128
content-type: application/json; charset=UTF-8
date: Thu, 21 Aug 2025 06:10:27 GMT
server: ESF
vary: Origin, X-Origin, Referer

{
  "results": [
    {
      "resourceName": 
"customers/{customerId}/assetGroupSignals/{assetGroupId}~{signal_id}"
    }
  ]
}

Note that I have added the Demographics for the 'Age' while creating the 
audiences. Similarly, you can create the 'Gender' demographic as well while 
creating the audiences using the Google Ads API. However, you should not 
include both the demographics 'Age' and 'Gender' using the AudiencesService 
method instead you need to create them separately. Using the asset_group_signal 
you can retrieve only the audience related information but it's not possible to 
retrieve the demographics. If you want to retrieve the targeted demographics to 
a particular asset group then you need to use the audience report. However, I 
am sharing with you the sample GAQL query as per your requirement:

SELECT audience.dimensions, audience.id, audience.name, audience.resource_name, 
audience.asset_group FROM audience 
WHERE audience.id = {audienceId}

You can use the search or searchStream methods in making the API calls while 
retrieving the data. Additionally, you can utilize the Google Ads Query Builder 
and Query Validator to build and validate the queries for retrieving the data 
from the Google Ads API.


Thanks,

Google Ads API Team


Feedback
How was our support today?


[2025-08-21 07:41:01Z GMT] This message is in relation to case 
"ref:!00D1U01174p.!500Ht01u4pmR:ref" (ADR-00330580)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/kA4mk000000000000000000000000000000000000000000000T1C2OD00i4n0HPcpTkWzxtEhdEjWsw%40sfdc.net.
  • Go... khushboo
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... khushboo
      • ... khushboo
        • ... khushboo
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to