Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Need Help Creating Demand Gen Campaign for YouTube Engagement

38 views
Skip to first unread message

Ashish Chaturvedi (Ashu)

unread,
Apr 24, 2025, 10:10:42 AMApr 24
to Google Ads API and AdWords API Forum

Hi team,

I heard that starting in July, video campaigns will transition to Demand Gen campaigns. Because of that, we need to start creating Demand Gen campaigns where the goal is YouTube engagement (like views and interactions).

Can you please help with the following?

  • Is it possible to set YouTube engagement as the campaign goal in a Demand Gen campaign?

  • I’m looking for a code example to create:

    • The campaign

    • The ad group

    • And the YouTube ad (or creative)

I’ve tried looking through the documentation, but I couldn’t find a clear example for this specific case.

Thanks a lot for your help!

Best,
Ashish Chaturvedi

Google Ads API Forum Advisor

unread,
Apr 24, 2025, 2:32:27 PMApr 24
to ashish007...@gmail.com, adwor...@googlegroups.com
Hi,

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

Yes, you can add the YouTube video-based ads within a Demand Gen Campaign using Google Ads APIs. You need to create a DemandGenVideoResponsiveAdInfo and add the YouTube based video asset IDs to the 'videos' field. I would recommend you to kindly refer to the adGroupAds.mutate method where you can create ads using the Google Ads API. However, I am sharing you the sample request and response logs as per your requirement:
Request Body:
===============
POST https://googleads.googleapis.com/v19/customers/{customerId}/adGroupAds: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}",
        "status": "ENABLED",
        "ad": {
          "demandGenVideoResponsiveAd": {
            "headlines": [
              {
                "text": "demand gen video ad"
              }
            ],
            "descriptions": [
              {
                "text": "a good demand gen video responsive ad"
              }
            ],
            "longHeadlines": [
              {
                "text": "a long headline for the demand gen video responsive ad"
              }
            ],
            "videos": [
              {
                "asset": "customers/{customerId}/assets/{assetId}" //YouTube Video asset ID
              }
            ],
            "logoImages": [
              {
                "asset": "customers/{customerId}/assets/{assetId}"
              }
            ],
            "breadcrumb1": "demand gen",
            "breadcrumb2": "video",
            "businessName": {
              "text": "Video Ads business"
            },
            "callToActions": [
              {
                "asset": "customers/{customerId}/assets/{assetId}"
              }
            ]
          },
          "name": "Demand gen video responsive",
          "finalUrls": [
            "https://www.example.com"
          ]
        }
      }
    }
  ]
}
Response:
===========
HTTP/1.1 200 
content-encoding: gzip
content-length: 121
content-type: application/json; charset=UTF-8
date: Tue, 22 Apr 2025 23:07:43 GMT
server: ESF
vary: Origin, X-Origin, Referer

{
  "results": [
    {
      "resourceName": "customers/{customerId}/adGroupAds/{adGroupId}~{adId}"
    }
  ]
}
 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-24 18:31:40Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qUrGN:ref" (ADR-00301549)



Reply all
Reply to author
Forward
0 new messages