Google Ads

Template Ads  |  AdWords API  |  Google Developers

Template ads provide a flexible way of introducing new ad formats in addition to the
specific ad types built into the AdWords API.

A template ad is comprised of a template (specified by the template ID) and the
data that populates the template’s fields. With template ads, you can create
an ad that’s not available as a concrete ad type, such as Gmail ads,
YouTube Promoted Video ads, and many others. See the
Template Ad reference data page
for a full list of supported template ads.

Once you’ve created a template ad, you can make copies of the ad by referring to its
originadid
instead of re-uploading the same media.

This guide describes how to get started with a few different kinds of template ads.

You can use the AdWords API to create
mobile app promotion ads.
Below is a sample SOAP request for creating an
app promotion ad:


  
    
      ...
      ...
      ...
    
  
  
    
      
        ADD
        
          XXXXX
          
            http://play.google.com/store/apps/details?id=INSERT_ANDROID_APP_PACKAGE_HERE
            play.google.com/store
            353
            
              adData
              
                appId
                TEXT
                XXXXX
              
              
                appStore
                ENUM
                XXXXX
              
              
                headline
                TEXT
                My awesome app
              
              
                description1
                TEXT
                Must download
              
              
                description2
                TEXT
                Best app ever
              
            
            My App Promotion Ad
          
          ENABLED
        
      
    
  

You can create app reengagement ads for
Search Network app engagement campaigns.
These are ads targeted at users who have already installed your app.

An app reengagement ad has a deep link to a
specific action in your app to encourage users to perform the action.

Below is a sample SOAP request for creating an
app reengagement ad:


  
    
      ...
      ...
      ...
      false
      false
    
  
  
    
      
        ADD
        
          XXXXX
          
            
            android-app://com.example.android/exampleapp/productid_1234
            example.com
            453
            
              adData
              
                appStore
                ENUM
                2
              
              
                appId
                TEXT
                com.example.app
              
              
                headline
                TEXT
                Intergalactic cruise
              
              
                description1
                TEXT
                Free pretzels
              
              
                description2
                TEXT
                In-flight movies available
              
            
            My App Reengagement Ad
          
          ENABLED
        
      
    
  

Gmail Ads

The following sections describe how to create several different types of
Gmail ads.

Gmail Image Ad

Below is a sample SOAP request for creating a
Gmail image ad:


  
    
      ...
      ...
      ...
    
  
  
    
        
            ADD
            
                XXXXX
                
                    www.example.com
                    http://www.example.com
                    459
                    
                        adData
                        
                            layout
                            ENUM
                            gmail_image_ad_v1
                        
                        
                            image
                            IMAGE
                            
                                INSERT_BASE_64_ENCODED_BYTES_FROM_IMAGE_FILE_HERE
                            
                        
                        
                            description
                            TEXT
                            Round trip to Mars
                        
                        
                            subject
                            TEXT
                            Intergalactic cruise
                        
                        
                            advertiser
                            TEXT
                            Intergalactic Cruises, Inc.
                        
                        
                            logo
                            IMAGE
                            
                                INSERT_BASE_64_ENCODED_BYTES_FROM_IMAGE_FILE_HERE
                            
                        
                    
                    Gmail image ad
                
                PAUSED
            
        
    
  

Gmail Single Promotion Ad

Below is a sample SOAP request for creating a
Gmail single promotion ad:


  
    
      ...
      ...
      ...
    
  
  
    
        
            ADD
            
                XXXXX
                
                    www.example.com
                    http://www.example.com
                    464
                    
                        adData
                        
                            layout
                            ENUM
                            gmail_single_promotion_ad_v1
                        
                        
                            callToActionUrl1
                            URL
                            http://www.example.com/booktrip
                        
                        
                            callToActionButton1ButtonColor
                            ENUM
                            #4486f8
                        
                        
                            callToActionButton1TextColor
                            ENUM
                            #ffffff
                        
                        
                            callToActionButton1
                            TEXT
                            Book trip
                        
                        
                            content
                            TEXT
                            Great deals on Venus
                        
                        
                            headlineTextColor
                            ENUM
                            #4486f9
                        
                        
                            headline
                            TEXT
                            Book now
                        
                        
                            image
                            IMAGE
                            
                                INSERT_BASE_64_ENCODED_BYTES_FROM_IMAGE_FILE_HERE
                            
                        
                        
                            description
                            TEXT
                            Space flights
                        
                        
                            subject
                            TEXT
                            Intergalactic cruises
                        
                        
                            advertiser
                            TEXT
                            Intergalactic Cruises, Inc.
                        
                        
                            logo
                            IMAGE
                            
                                INSERT_BASE_64_ENCODED_BYTES_FROM_IMAGE_FILE_HERE
                            
                        
                    
                    Gmail single promotion ad
                
                PAUSED
            
        
    
  

Gmail multi-product Ad

Below is a sample SOAP request for creating a
Gmail multi-product ad:


  
    
      ...
      ...
      ...
    
  
  
    
        
            ADD
            
                XXXXX
                
                    www.example.com
                    http://www.example.com
                    466
                    
                        adData
                        
                            layout
                            ENUM
                            gmail_multi_product_ad_v1
                        
                        
                            content
                            TEXT
                            Choose your destination
                        
                        
                            headlineTextColor
                            ENUM
                            #4486f9
                        
                        
                            headline
                            TEXT
                            Multiple destinations available
                        
                        
                            header
                            IMAGE
                            
                                INSERT_BASE_64_ENCODED_BYTES_FROM_IMAGE_FILE_HERE
                            
                        
                        
                            product_5_buttonColor
                            ENUM
                            #4486f8
                        
                        
                            product_5_buttonTextColor
                            ENUM
                            #ffffff
                        
                        
                            product_5_titleColor
                            ENUM
                            #000000
                        
                        
                            product_4_buttonColor
                            ENUM
                            #4486f8
                        
                        
                            product_4_buttonTextColor
                            ENUM
                            #ffffff
                        
                        
                            product_4_titleColor
                            ENUM
                            #000000
                        
                        
                            product_3_buttonColor
                            ENUM
                            #4486f8
                        
                        
                            product_3_buttonTextColor
                            ENUM
                            #ffffff
                        
                        
                            product_3_titleColor
                            ENUM
                            #000000
                        
                        
                            product_2_buttonColor
                            ENUM
                            #4486f8
                        
                        
                            product_2_buttonTextColor
                            ENUM
                            #ffffff
                        
                        
                            product_2_titleColor
                            ENUM
                            #000000
                        
                        
                            product_1_buttonColor
                            ENUM
                            #4486f8
                        
                        
                            product_1_buttonTextColor
                            ENUM
                            #ffffff
                        
                        
                            product_1_titleColor
                            ENUM
                            #000000
                        
                        
                            product_0_buttonColor
                            ENUM
                            #4486f8
                        
                        
                            product_0_buttonTextColor
                            ENUM
                            #ffffff
                        
                        
                            product_0_titleColor
                            ENUM
                            #000000
                        
                        
                            product_1_buttonText
                            TEXT
                            Cruise to Venus
                        
                        
                            product_1_buttonUrl
                            URL
                            http://www.example.com/venus
                        
                        
                            product_1_title
                            TEXT
                            Book Venus trip
                        
                        
                            product_1_image
                            IMAGE
                            
                                INSERT_BASE_64_ENCODED_BYTES_FROM_IMAGE_FILE_HERE
                            
                        
                        
                            product_0_buttonText
                            TEXT
                            Cruise to Mars
                        
                        
                            product_0_buttonUrl
                            URL
                            http://www.example.com/mars
                        
                        
                            product_0_title
                            TEXT
                            Book Mars trip
                        
                        
                            product_0_image
                            IMAGE
                            
                                INSERT_BASE_64_ENCODED_BYTES_FROM_IMAGE_FILE_HERE
                            
                        
                        
                            description
                            TEXT
                            Travel to your favorite planet
                        
                        
                            subject
                            TEXT
                            Intergalactic cruises
                        
                        
                            advertiser
                            TEXT
                            Intergalactic Cruises, Inc.
                        
                        
                            logo
                            IMAGE
                            
                                INSERT_BASE_64_ENCODED_BYTES_FROM_IMAGE_FILE_HERE
                            
                        
                    
                    Gmail multi-product ad
                
                PAUSED
            
        
    
  

HTML5 Ads

You can use the API to create HTML5 ads.

Below is a sample SOAP request for creating an
HTML5 ad using a ZIP file
as the source:


  
    
      ...
      ...
      ...
    
  
  
    
      
        ADD
        
          XXXXX
            
            www.example.com/html5
            http://example.com/html5
            419
            
              adData
              
                Custom_layout
                MEDIA_BUNDLE
                
                  MEDIA_BUNDLE
                  INSERT_BASE_64_ENCODED_BYTES_FROM_ZIP_FILE_HERE
                  carousel/index.html
                
              
              
                layout
                ENUM
                Custom
              
            
            
              300
              250
            
            Ad for HTML5
          
          ENABLED
        
      
    
  

HTML5 Media Bundles

You can upload HTML5 media bundles,
such as ZIP files containing HTML5 content, using the
MediaService.

Below is a sample request uploading HTML5 content using the MediaService:


  
    
      ...
      ...
      ...
    
  
  
    
      
        MEDIA_BUNDLE
        INSERT_BASE_64_ENCODED_BYTES_FROM_ZIP_FILE_HERE
      
    
  

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
Close