Hi, 

  Could you please clarify how I can properly modify Demand Gen Final URL 
Suffix. 
  As far as I know, there isn’t a specific selector for Demand Gen 
campaigns to access the campaign or its ads directly.  

  Here’s an example of how I would like to handle this, but this not works:
if (channelType === "DEMAND_GEN") {  
    var adIterator = AdsApp.ads()  
        .withCondition("CampaignId = " + campaignId)  
        .get();  

    while (adIterator.hasNext()) {  
        var ad = adIterator.next();  
        var creativeName = ad.getHeadline();  

        var finalSuffix = encodeURI(  
            "utm_source=" +  
            source +  
            "&utm_medium=" +  
            medium +  
            "&utm_campaign=" +  
            encodeURIComponent(campaignName) +  
            "&utm_content=" +  
            encodeURIComponent(creativeName) +  
            "&utm_term={keyword}"  
        );  

        ad.urls().setFinalUrlSuffix(finalSuffix);  
    }  
}  
  

Google Ads API Forum Advisor schrieb am Donnerstag, 5. Dezember 2024 um 
21:31:43 UTC+1:

> Hi,
>
> Yes, Demand_Gen campaigns support final_url_suffix 
> <https://developers.google.com/google-ads/api/reference/rpc/v18/Campaign#:~:text=2037%2D12%2D30.-,final_url_suffix,-string>
> .
>
>
> Hope this helps. If you have any more queries, please feel free to get 
> back to us.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02vGmzJ:ref" (ADR-00277410)
>
> 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=5004Q00002vGmzJ>
>   
>   [image: rating2] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=5004Q00002vGmzJ>
>   
>   [image: rating3] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=5004Q00002vGmzJ>
>   
>   [image: rating4] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/formResponse?usp=pp_url&entry.141427034=4&entry.295079254=5004Q00002vGmzJ>
>   
>   [image: rating5] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/formResponse?usp=pp_url&entry.141427034=5&entry.295079254=5004Q00002vGmzJ>
>
>  
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/2b22456c-7953-479b-961e-94a1db9e3256n%40googlegroups.com.
  • Se... Markus
    • ... Markus
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Markus
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
            • ... Markus

Reply via email to