Class awTemplateAd

Description

Represents a <a href=

"http://www.google.com/adwords/displaynetwork/plan-creative-campaigns/display-ad-builder.html" >Display Ad Builder</a> template ad. A template ad is composed of a template (specified by its ID) and the data that populates the template's fields. For a list of available templates and their required fields, see the <a href= "/apis/adwords/docs/appendix/templateads.html">Template Ads appendix</a>.

Located in /classes/cm/TemplateAd.php

awComplexObject
   |
   --awAd
      |
      --awTemplateAd
Variable Summary
Method Summary
 void getRow ()
Variables
awAdUnionId $adUnionId

Group ID of all template ads, which should be created together.

Template ads in the same union reference the same data but have different dimensions. Single ads do not have a union ID. If a template ad specifies an ad union with only one ad, no union will be created. <span class="constraint Selectable">This field can be selected using the value "TemplateAdUnionId".</span>

awDimensions $dimensions

The dimensions for this ad.

int $duration

Duration of this ad (if it contains playable media).

<span class="constraint Selectable">This field can be selected using the value "TemplateAdDuration".</span> <span class="constraint ReadOnly">This field is read only and should not be set. If this field is sent to the API, it will be ignored.</span>

string $name

Name of this ad.

<span class="constraint Selectable">This field can be selected using the value "TemplateAdName".</span> <span class="constraint Required">This field is required and should not be {@code null}.</span>

awTemplateElement[] $templateElements

List of elements (each containing a set of fields) for the template referenced by {@code templateId}. See the <a href="/apis/adwords/docs/appendix/templateads.html">Template Ads appendix</a> for the elements and fields required for each template.

long $templateId

ID of the template to use.

<span class="constraint Selectable">This field can be selected using the value "TemplateId".</span>

mixed $_checkFields = array(
'adUnionId' => array(
'objName' => 'awAdUnionId',
'type' => 'obj'
),'templateElements'=>array('objName'=>'awTemplateElement','type'=>'array'),'dimensions'=>array('objName'=>'awDimensions','type'=>'obj'),)
  • access: public

Redefinition of:
awComplexObject::$_checkFields

Inherited Variables

Inherited from awAd

awAd::$approvalStatus
awAd::$disapprovalReasons
awAd::$displayUrl
awAd::$id
awAd::$trademarkDisapproved
awAd::$url

Inherited from awComplexObject

awComplexObject::$_cachedCheckFields
awComplexObject::$_row
Methods

Documentation generated on Fri, 23 Mar 2012 13:44:15 +0200 by phpDocumentor 1.4.3