How to add Audience to a Search Campaign

109 views
Skip to first unread message

Binu Mathew

unread,
May 18, 2023, 5:41:39 AM5/18/23
to Google Ads API and AdWords API Forum
Hello, 
I have a couple of questions regarding adding an audience to a search campaign. 
Firstly, when I attempt to add an audience to a campaign using PHP, how can I do so? I have used the following code:
$audienceSetting = new AudienceSetting(['use_audience_grouped' => true]);
$adGroup1 = new AdGroup([
    'name' => $request->adgroup['name'],
    'campaign' => $newCampaignID,
    'status' => AdGroupStatus::ENABLED,
    'type' => AdGroupType::SEARCH_STANDARD,
    'cpc_bid_micros' => $request->campaign['budget']['google'] * 100000,
    'audience_setting' => $audienceSetting
]);

However, it is showing an error message: "Expect Google\Ads\GoogleAds\V13\Resources\AdGroup\AudienceSetting." 
Is this the correct way to add an audience? 
My second question is: if I choose the audience setting, will other targeting options still work? Should I make changes based on the audience setting/targeting, or can both work together in a campaign? Thank you.

Google Ads API Forum Advisor

unread,
May 19, 2023, 6:16:00 AM5/19/23
to binumat...@gmail.com, adwor...@googlegroups.com

Hello,

Thank you for reaching out to Google Ads API Forum.

I understand that you want to add an audience to a search campaign. An Audience is a reusable collection of focused segments, demographic targeting, and exclusions. Please note that audience targeting is supported for Performance Max and Discovery campaigns. You may refer to this documentation guide (https://developers.google.com/google-ads/api/docs/remarketing/audiences) for more information. In parallel to this, our team has already raised a feature request to use detailed demographics or other audience segments in Display or Search campaigns and is subject for review. With this, I would recommend keeping an eye on our release notes and blog for new features and releases. 

On the other hand, if the above mentioned is not what you are referring to, kindly provide us the complete logs (request and response logs with request ID) generated on your end for your specific use case. This is so we could further check and provide appropriate guidance.

You may then send the requested information privately via the Reply to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Reference Link:

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2lJBrC:ref

Vijaysinh Parmar

unread,
Apr 28, 2024, 7:44:23 AM4/28/24
to Google Ads API and AdWords API Forum
Any updates regarding the feature? is it still open or we can use it, could you please help with this query?

I want to add 
  • Detailed demographic segments 
to my ad group using API.

Google Ads API Forum Advisor

unread,
Apr 29, 2024, 8:14:50 AM4/29/24
to er.parm...@gmail.com, adwor...@googlegroups.com
Hi,

Kindly note that the "Display or Search campaigns to use detailed demographics or other audience segments" is not yet implemented 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 please follow our Release Notes and Blog Post for future updates.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02lJBrC:ref" (ADR-00179717)

Thanks,

 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages