Hi!

With their first question they're asking specifically about the *YouTube 
Engagements *campaign goal (and I'd like to know the same thing please!).

Is the YouTube Engagements campaign goal specifically supported?

Thanks

On Thursday, 24 April 2025 at 15:28:55 UTC-5 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team. 
>
> Please find the answers for your questions below: 
>
> *1. Is this campaign goal supported in API version 18?*
>
>    - Yes, campaign goals are supported for the Google Ads API version 18. 
> Campaign 
>    goals <https://support.google.com/google-ads/answer/9143218> allow you 
>    to optimize individual campaigns for specific conversion actions. If 
>    certain campaigns have goals that differ from your overall account-level 
>    objectives, you can adjust each 'CampaignConversionGoal' accordingly by 
>    modifying its 'biddable' setting. For instance, if your account typically 
>    focuses on eCommerce conversions but you have one campaign aimed at 
> driving 
>    store visits, you can set 'biddable=true' for all 
>    'CampaignConversionGoal' objects with the category 'STORE_VISIT', and set 
>    'biddable=false' for all others. I would recommend you to refer to the 
> Campaign 
>    goals 
>    
> <https://developers.google.com/google-ads/api/docs/conversions/goals/campaign-goals>
>  
>    documentation for more detailed information.  
>
> *2. If yes, could you please provide the relevant resource 
> names/endpoints and the required parameters for creating this campaign via 
> the Google Ads API?*
>
>    - You can use this campaigns.mutate 
>    
> <https://developers.google.com/google-ads/api/rest/reference/rest/v19/customers.campaigns/mutate>
>  
>    endpoint for creating campaigns using the API. I would recommend you to 
>    refer to this guide 
>    
> <https://developers.google.com/google-ads/api/rest/reference/rest/v19/Campaign#:~:text=campaign_bidding_strategy.%0A%7D-,Fields,-resourceName>
>  
>    to find the required and optional fields while creating campaigns using 
> the 
>    Google Ads API.  
>
> *3. Additionally, if possible, could you share a sample code 
> snippet showing how to set up: The campaign itself, An ad group, And a 
> YouTube ad (asset/ad creative)*
>
>    - There are no specific code snippets on how to create a demand gen 
>    campaign, ad group and ad. However, I am sharing with you the sample 
>    request and response logs for each of these for your reference.  
>    - I would recommend you to refer to the Create a Demand Gen Campaign 
>    
> <https://developers.google.com/google-ads/api/docs/demand-gen/create-campaign>
>  
>    documentation for more detailed information.  
>
> For creating a campaign first you need to create a campaign budget using 
> the campaignBudgets 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v19/customers.campaignBudgets/mutate>
>  
> method in the Google Ads API:  
>
> *Request Body:
> ==============*
> POST 
> https://googleads.googleapis.com/v19/customers/{customerId}/campaignBudgets:mutate?key=[YOUR_API_KEY]
>  HTTP/1.1
>
> developer-token: **********************
> Authorization: Bearer [YOUR_ACCESS_TOKEN]
> Accept: application/json
> Content-Type: application/json
>
> {
>   "operations": [
>     {
>       "create": {
>         "amountMicros": 100000,
>         "deliveryMethod": "STANDARD",
>         "name": "campaign budget1289",
>         "type": "STANDARD"
>       }
>     }
>   ]
> }
> *Response:
> ===========*
> HTTP/1.1 200 
> content-encoding: gzip
> content-length: 114
> content-type: application/json; charset=UTF-8
> date: Thu, 24 Apr 2025 20:00:45 GMT
> server: ESF
> vary: Origin, X-Origin, Referer
>
> {
>   "results": [
>     {
>       "resourceName": 
> "customers/{customerId}/campaignBudgets/{campaignBudgetId}"
>     }
>   ]
> }
>
> Then you need to create a campaign using the campaigns 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v19/customers.campaigns/mutate>
>  
> method:  
>
> *Request Body:
> ==============*
> POST 
> https://googleads.googleapis.com/v19/customers/{customerId}/campaigns:mutate?key=[YOUR_API_KEY]
>  HTTP/1.1
>
> developer-token: **********************
> Authorization: Bearer [YOUR_ACCESS_TOKEN]
> Accept: application/json
> Content-Type: application/json
>
> {
>   "operations": [
>     {
>       "create": {
>         "name": "demand gen campaign233",
>         "advertisingChannelType": "DEMAND_GEN",
>         "campaignBudget": 
> "customers/{customerId}/campaignBudgets/{campaignBudgetId}",
>         "targetCpa": {
>           "targetCpaMicros": 10000
>         }
>       }
>     }
>   ]
> }*Response:
> ==========*
> HTTP/1.1 200 
> content-encoding: gzip
> content-length: 108
> content-type: application/json; charset=UTF-8
> date: Thu, 24 Apr 2025 20:04:49 GMT
> server: ESF
> vary: Origin, X-Origin, Referer
>
> {
>   "results": [
>     {
>       "resourceName": "customers/{customerId}/campaigns/{campaignId}"
>     }
>   ]
> }
>
> Then you need to create an ad group using the adGroups 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v19/customers.adGroups/mutate?apix=true>
>  
> method: 
>
> *Request Body:
> ===============*
> POST 
> https://googleads.googleapis.com/v19/customers/{customerId}/adGroups:mutate?key=[YOUR_API_KEY]
>  HTTP/1.1
>
> developer-token: **********************
> Authorization: Bearer [YOUR_ACCESS_TOKEN]
> Accept: application/json
> Content-Type: application/json
>
> {
>   "operations": [
>     {
>       "create": {
>         "campaign": "customers/{customerId}/campaigns/{campaignId}",
>         "name": "demand gen ad group 20",
>         "status": "ENABLED"
>       }
>     }
>   ]
> }*Response:
> ==========*
> HTTP/1.1 200 
> content-encoding: gzip
> content-length: 106
> content-type: application/json; charset=UTF-8
> date: Thu, 24 Apr 2025 20:06:05 GMT
> server: ESF
> vary: Origin, X-Origin, Referer
>
> {
>   "results": [
>     {
>       "resourceName": "customers/{customerId}/adGroups/{adGroupId}"
>     }
>   ]
> }
>
> As you are specifically looking for the YouTube videos related ad, you 
> need to create a DemandGenVideoResponsiveAdInfo 
> <https://developers.google.com/google-ads/api/reference/rpc/v19/DemandGenVideoResponsiveAdInfo>
>  and 
> add the YouTube based video asset IDs to the 'videos 
> <https://developers.google.com/google-ads/api/reference/rpc/v19/DemandGenVideoResponsiveAdInfo#videos[]>'
>  
> field. I would recommend you to kindly refer to the adGroupAds.mutate 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v19/customers.adGroupAds/mutate>
>  method 
> where you can create ads using the Google Ads API.  
>
> *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}"
>               }
>             ],
>             "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: Thu, 24 Apr 2025 20:07:58 GMT
> server: ESF
> vary: Origin, X-Origin, Referer
>
> {
>   "results": [
>     {
>       "resourceName": "customers/{customerId}/adGroupAds/{adGroupId}~{adId}"
>     }
>   ]
> }
>
> I hope this clarifies.  
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
> Feedback
> How was our support today? 
>
> [image: rating1] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=500Ht00001qUt5qIAC>
>   
>   [image: rating2] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=500Ht00001qUt5qIAC>
>   
>   [image: rating3] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=500Ht00001qUt5qIAC>
>   
>   [image: rating4] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=500Ht00001qUt5qIAC>
>   
>   [image: rating5] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=500Ht00001qUt5qIAC>
> [2025-04-24 20:28:02Z GMT] This message is in relation to case 
> "ref:!00D1U01174p.!500Ht01qUt5q:ref" (ADR-00301597)
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/649efd39-78bc-4a1d-9b80-a059523e0c7fn%40googlegroups.com.

Reply via email to