PageRenderTime 37ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/V9/Common/AppEngagementAdInfo.php

https://gitlab.com/remyvianne/krowkaramel
PHP | 180 lines | 56 code | 18 blank | 106 comment | 0 complexity | e652570c5fc8d3a4198ae31ee69df3c6 MD5 | raw file
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/ads/googleads/v9/common/ad_type_infos.proto
  4. namespace Google\Ads\GoogleAds\V9\Common;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * App engagement ads allow you to write text encouraging a specific action in
  10. * the app, like checking in, making a purchase, or booking a flight.
  11. * They allow you to send users to a specific part of your app where they can
  12. * find what they're looking for easier and faster.
  13. *
  14. * Generated from protobuf message <code>google.ads.googleads.v9.common.AppEngagementAdInfo</code>
  15. */
  16. class AppEngagementAdInfo extends \Google\Protobuf\Internal\Message
  17. {
  18. /**
  19. * List of text assets for headlines. When the ad serves the headlines will
  20. * be selected from this list.
  21. *
  22. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;</code>
  23. */
  24. private $headlines;
  25. /**
  26. * List of text assets for descriptions. When the ad serves the descriptions
  27. * will be selected from this list.
  28. *
  29. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 2;</code>
  30. */
  31. private $descriptions;
  32. /**
  33. * List of image assets that may be displayed with the ad.
  34. *
  35. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdImageAsset images = 3;</code>
  36. */
  37. private $images;
  38. /**
  39. * List of video assets that may be displayed with the ad.
  40. *
  41. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 4;</code>
  42. */
  43. private $videos;
  44. /**
  45. * Constructor.
  46. *
  47. * @param array $data {
  48. * Optional. Data for populating the Message object.
  49. *
  50. * @type \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $headlines
  51. * List of text assets for headlines. When the ad serves the headlines will
  52. * be selected from this list.
  53. * @type \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $descriptions
  54. * List of text assets for descriptions. When the ad serves the descriptions
  55. * will be selected from this list.
  56. * @type \Google\Ads\GoogleAds\V9\Common\AdImageAsset[]|\Google\Protobuf\Internal\RepeatedField $images
  57. * List of image assets that may be displayed with the ad.
  58. * @type \Google\Ads\GoogleAds\V9\Common\AdVideoAsset[]|\Google\Protobuf\Internal\RepeatedField $videos
  59. * List of video assets that may be displayed with the ad.
  60. * }
  61. */
  62. public function __construct($data = NULL) {
  63. \GPBMetadata\Google\Ads\GoogleAds\V9\Common\AdTypeInfos::initOnce();
  64. parent::__construct($data);
  65. }
  66. /**
  67. * List of text assets for headlines. When the ad serves the headlines will
  68. * be selected from this list.
  69. *
  70. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;</code>
  71. * @return \Google\Protobuf\Internal\RepeatedField
  72. */
  73. public function getHeadlines()
  74. {
  75. return $this->headlines;
  76. }
  77. /**
  78. * List of text assets for headlines. When the ad serves the headlines will
  79. * be selected from this list.
  80. *
  81. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;</code>
  82. * @param \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $var
  83. * @return $this
  84. */
  85. public function setHeadlines($var)
  86. {
  87. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\AdTextAsset::class);
  88. $this->headlines = $arr;
  89. return $this;
  90. }
  91. /**
  92. * List of text assets for descriptions. When the ad serves the descriptions
  93. * will be selected from this list.
  94. *
  95. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 2;</code>
  96. * @return \Google\Protobuf\Internal\RepeatedField
  97. */
  98. public function getDescriptions()
  99. {
  100. return $this->descriptions;
  101. }
  102. /**
  103. * List of text assets for descriptions. When the ad serves the descriptions
  104. * will be selected from this list.
  105. *
  106. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 2;</code>
  107. * @param \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $var
  108. * @return $this
  109. */
  110. public function setDescriptions($var)
  111. {
  112. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\AdTextAsset::class);
  113. $this->descriptions = $arr;
  114. return $this;
  115. }
  116. /**
  117. * List of image assets that may be displayed with the ad.
  118. *
  119. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdImageAsset images = 3;</code>
  120. * @return \Google\Protobuf\Internal\RepeatedField
  121. */
  122. public function getImages()
  123. {
  124. return $this->images;
  125. }
  126. /**
  127. * List of image assets that may be displayed with the ad.
  128. *
  129. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdImageAsset images = 3;</code>
  130. * @param \Google\Ads\GoogleAds\V9\Common\AdImageAsset[]|\Google\Protobuf\Internal\RepeatedField $var
  131. * @return $this
  132. */
  133. public function setImages($var)
  134. {
  135. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\AdImageAsset::class);
  136. $this->images = $arr;
  137. return $this;
  138. }
  139. /**
  140. * List of video assets that may be displayed with the ad.
  141. *
  142. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 4;</code>
  143. * @return \Google\Protobuf\Internal\RepeatedField
  144. */
  145. public function getVideos()
  146. {
  147. return $this->videos;
  148. }
  149. /**
  150. * List of video assets that may be displayed with the ad.
  151. *
  152. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 4;</code>
  153. * @param \Google\Ads\GoogleAds\V9\Common\AdVideoAsset[]|\Google\Protobuf\Internal\RepeatedField $var
  154. * @return $this
  155. */
  156. public function setVideos($var)
  157. {
  158. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\AdVideoAsset::class);
  159. $this->videos = $arr;
  160. return $this;
  161. }
  162. }