Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Add affinity, in-market and detailed-demographics to search type campaign

134 views
Skip to first unread message

Osoftz Tech

unread,
Nov 19, 2020, 5:10:38 AM11/19/20
to AdWords API and Google Ads API Forum
Is it possible ? If it is, then using "CustomAffinityInfo and custom interest" or "UserInterestInfo and UserInterest"  is correct way to achieve it   ? 

Google Ads API Forum Advisor Prod

unread,
Nov 19, 2020, 11:40:58 AM11/19/20
to osoftz...@gmail.com, adwor...@googlegroups.com
Hello,

Unfortunately, these are not available for search campaigns. You can refer to this chart to see what criteria is available at what level. 

Regards,
Anthony
Google Ads API Team

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q27v56M:ref

Osoftz Tech

unread,
Nov 19, 2020, 11:47:29 PM11/19/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
But i can add these audiences in default "google ads UI" for search campaigns, there it seems to be working fine.

Google Ads API Forum Advisor Prod

unread,
Nov 20, 2020, 1:31:46 PM11/20/20
to osoftz...@gmail.com, adwor...@googlegroups.com
Hello,

Yes, although this is available in the UI, it is not possible through AdWords API. 

Danil Antonov

unread,
Oct 2, 2024, 9:48:36 AM10/2/24
to Google Ads API and AdWords API Forum
Any updates here? 

I want to use all available audiences similarly to how it works on Google Ads UI when we are creating a Search Campaign we can select needed Audiences. 

I tested APIs, using the "Campaign Criteria" I can add Affinities & In-Market options with the "userInterests" and it seems to work just fine. But I'm a bit confused about how I can add Detailed Demographics audience segments to my Search Campaigns. Could you please help with that?

Google Ads API Forum Advisor

unread,
Oct 3, 2024, 9:35:23 AM10/3/24
to antonovd...@gmail.com, adwor...@googlegroups.com
Hi,

Kindly note that adding 'Detailed Demographics' audience segments to the search campaigns are not yet supported in the Google Ads API. I will raise a request to add this feature to be available in the Google Ads API. We cannot provide a scheduled timeline for the availability of this feature in the Google Ads API. I would recommend you to follow our Release Notes and Blog Post for future updates.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q027v56M:ref" (ADR-00052361)

Thanks,
 
Google Logo Google Ads API Team


Danil Antonov

unread,
Oct 4, 2024, 6:41:35 AM10/4/24
to Google Ads API and AdWords API Forum
Thank you! I will wait for that feature!

Danil Antonov

unread,
Apr 18, 2025, 7:09:34 AMApr 18
to Google Ads API and AdWords API Forum
Hello! 

We tested that in case of a Search campaign, we can use CampaignCriterion with UserInterestInfo for Affinity & In-market options to create Audiences at the Campaign Level, meanwhile, for Display campaigns we can use only AdGroupCriterion with UserInterestInfo for Affinity & In-market options to create Audiences at the Ad Group Level. 

So now we want to know, can we use Detailed Demographics for Display Campaigns? If yes, how can we do it?

Google Ads API Forum Advisor

unread,
Apr 18, 2025, 8:18:39 AMApr 18
to antonovd...@gmail.com, adwor...@googlegroups.com
Hi,

Kindly note that fetching the 'Detailed Demographics' audience segments for the display campaigns is not yet supported in the Google Ads API. I will raise a request to add this feature to be available in the Google Ads API. We cannot provide a scheduled timeline for the availability of this feature in the Google Ads API. I would recommend you to follow our Release Notes and Blog Post for future updates.

I hope this helps! Feel free to get back to us in case of any further queries.
 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-18 12:17:52Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q027v56M:ref" (ADR-00052361)



Danil Antonov

unread,
Apr 18, 2025, 9:28:01 AMApr 18
to Google Ads API and AdWords API Forum
What do you mean by fetching?

Using the Google Ads API, we can retrieve Detailed Demographics where Display exists in "availability", but I'm note sure can we use this when we create a Display Campaign to create a Campaign with specifically selected Detailed Demographics

Google Ads API Forum Advisor

unread,
Apr 18, 2025, 8:00:38 PMApr 18
to antonovd...@gmail.com, adwor...@googlegroups.com
Hi,

Kindly note that its not possible to add the detailed demographics to the display campaigns either campaign level or adGroup level. However, you can add detailed demographics to the demand gen campaigns using the Google Ads API. As stated in this section of the guide, if you are using demand gen campaigns, can you try creating another AdGroup, this time set the use_audience_grouped to true upon creation of the AdGroup record. You may follow the steps in this guide for adding audience ad group criterion for Demand gen campaigns. Demand gen campaign uses AdGroupCriterion to target audiences. However, I am sharing you sample request and response logs to add detailed demographics to the Demand Gen campaigns using the Google Ads API: 
Request Body:
==============
POST https://googleads.googleapis.com/v19/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": [
          {
            "audienceSegments": {
              "segments": [
                {
                  "detailedDemographic": {
                    "detailedDemographic": "customers/{customerId}/detailedDemographics/30032" //Sample criterion ID
                  }
                }
              ]
            }
          }
        ],
        "name": "audience 2"
      }
    }
  ]
}
Response:
===========
HTTP/1.1 200 
content-encoding: gzip
content-length: 106
content-type: application/json; charset=UTF-8
date: Fri, 18 Apr 2025 22:55:01 GMT
server: ESF
vary: Origin, X-Origin, Referer

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

The you need to use the adGroupCriteria method and attach that detailed demographic audience using the Google Ads API: 

Request Body:
===============
POST https://googleads.googleapis.com/v19/customers/{customerId}/adGroupCriteria:mutate?key=[YOUR_API_KEY] HTTP/1.1

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

{
  "operations": [
    {
      "create": {
        "adGroup": "customers/{customerId}/adGroups/{adGroupId}",
        "audience": {
          "audience": "customers/{customerId}/audiences/{audienceId}"
        }
      }
    }
  ]
}

Response:
===========
HTTP/1.1 200 
content-encoding: gzip
content-length: 129
content-type: application/json; charset=UTF-8
date: Fri, 18 Apr 2025 23:10:26 GMT
server: ESF
vary: Origin, X-Origin, Referer

{
  "results": [
    {
      "resourceName": "customers/{customerId}/adGroupCriteria/{adGroupId}~{adGroupCriterionId}"
    }
  ]
}

Note that this approach only supports the demand gen campaign but this doesn't support the display campaigns as per your requirement. 

 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-04-18 23:59:47Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q027v56M:ref" (ADR-00052361)



Reply all
Reply to author
Forward
0 new messages