/wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/V9/Enums/EducationPlaceholderFieldEnum/EducationPlaceholderField.php

https://gitlab.com/remyvianne/krowkaramel · PHP · 190 lines · 64 code · 9 blank · 117 comment · 2 complexity · cc026031e6c7ed8e1fad2a23b39d6d7c MD5 · raw file

  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/ads/googleads/v9/enums/education_placeholder_field.proto
  4. namespace Google\Ads\GoogleAds\V9\Enums\EducationPlaceholderFieldEnum;
  5. use UnexpectedValueException;
  6. /**
  7. * Possible values for Education placeholder fields.
  8. *
  9. * Protobuf type <code>google.ads.googleads.v9.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField</code>
  10. */
  11. class EducationPlaceholderField
  12. {
  13. /**
  14. * Not specified.
  15. *
  16. * Generated from protobuf enum <code>UNSPECIFIED = 0;</code>
  17. */
  18. const UNSPECIFIED = 0;
  19. /**
  20. * Used for return value only. Represents value unknown in this version.
  21. *
  22. * Generated from protobuf enum <code>UNKNOWN = 1;</code>
  23. */
  24. const UNKNOWN = 1;
  25. /**
  26. * Data Type: STRING. Required. Combination of PROGRAM ID and LOCATION ID
  27. * must be unique per offer.
  28. *
  29. * Generated from protobuf enum <code>PROGRAM_ID = 2;</code>
  30. */
  31. const PROGRAM_ID = 2;
  32. /**
  33. * Data Type: STRING. Combination of PROGRAM ID and LOCATION ID must be
  34. * unique per offer.
  35. *
  36. * Generated from protobuf enum <code>LOCATION_ID = 3;</code>
  37. */
  38. const LOCATION_ID = 3;
  39. /**
  40. * Data Type: STRING. Required. Main headline with program name to be shown
  41. * in dynamic ad.
  42. *
  43. * Generated from protobuf enum <code>PROGRAM_NAME = 4;</code>
  44. */
  45. const PROGRAM_NAME = 4;
  46. /**
  47. * Data Type: STRING. Area of study that can be shown in dynamic ad.
  48. *
  49. * Generated from protobuf enum <code>AREA_OF_STUDY = 5;</code>
  50. */
  51. const AREA_OF_STUDY = 5;
  52. /**
  53. * Data Type: STRING. Description of program that can be shown in dynamic
  54. * ad.
  55. *
  56. * Generated from protobuf enum <code>PROGRAM_DESCRIPTION = 6;</code>
  57. */
  58. const PROGRAM_DESCRIPTION = 6;
  59. /**
  60. * Data Type: STRING. Name of school that can be shown in dynamic ad.
  61. *
  62. * Generated from protobuf enum <code>SCHOOL_NAME = 7;</code>
  63. */
  64. const SCHOOL_NAME = 7;
  65. /**
  66. * Data Type: STRING. Complete school address, including postal code.
  67. *
  68. * Generated from protobuf enum <code>ADDRESS = 8;</code>
  69. */
  70. const ADDRESS = 8;
  71. /**
  72. * Data Type: URL. Image to be displayed in ads.
  73. *
  74. * Generated from protobuf enum <code>THUMBNAIL_IMAGE_URL = 9;</code>
  75. */
  76. const THUMBNAIL_IMAGE_URL = 9;
  77. /**
  78. * Data Type: URL. Alternative hosted file of image to be used in the ad.
  79. *
  80. * Generated from protobuf enum <code>ALTERNATIVE_THUMBNAIL_IMAGE_URL = 10;</code>
  81. */
  82. const ALTERNATIVE_THUMBNAIL_IMAGE_URL = 10;
  83. /**
  84. * Data Type: URL_LIST. Required. Final URLs to be used in ad when using
  85. * Upgraded URLs; the more specific the better (e.g. the individual URL of a
  86. * specific program and its location).
  87. *
  88. * Generated from protobuf enum <code>FINAL_URLS = 11;</code>
  89. */
  90. const FINAL_URLS = 11;
  91. /**
  92. * Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded
  93. * URLs.
  94. *
  95. * Generated from protobuf enum <code>FINAL_MOBILE_URLS = 12;</code>
  96. */
  97. const FINAL_MOBILE_URLS = 12;
  98. /**
  99. * Data Type: URL. Tracking template for the ad when using Upgraded URLs.
  100. *
  101. * Generated from protobuf enum <code>TRACKING_URL = 13;</code>
  102. */
  103. const TRACKING_URL = 13;
  104. /**
  105. * Data Type: STRING_LIST. Keywords used for product retrieval.
  106. *
  107. * Generated from protobuf enum <code>CONTEXTUAL_KEYWORDS = 14;</code>
  108. */
  109. const CONTEXTUAL_KEYWORDS = 14;
  110. /**
  111. * Data Type: STRING. Android app link. Must be formatted as:
  112. * android-app://{package_id}/{scheme}/{host_path}.
  113. * The components are defined as follows:
  114. * package_id: app ID as specified in Google Play.
  115. * scheme: the scheme to pass to the application. Can be HTTP, or a custom
  116. * scheme.
  117. * host_path: identifies the specific content within your application.
  118. *
  119. * Generated from protobuf enum <code>ANDROID_APP_LINK = 15;</code>
  120. */
  121. const ANDROID_APP_LINK = 15;
  122. /**
  123. * Data Type: STRING_LIST. List of recommended program IDs to show together
  124. * with this item.
  125. *
  126. * Generated from protobuf enum <code>SIMILAR_PROGRAM_IDS = 16;</code>
  127. */
  128. const SIMILAR_PROGRAM_IDS = 16;
  129. /**
  130. * Data Type: STRING. iOS app link.
  131. *
  132. * Generated from protobuf enum <code>IOS_APP_LINK = 17;</code>
  133. */
  134. const IOS_APP_LINK = 17;
  135. /**
  136. * Data Type: INT64. iOS app store ID.
  137. *
  138. * Generated from protobuf enum <code>IOS_APP_STORE_ID = 18;</code>
  139. */
  140. const IOS_APP_STORE_ID = 18;
  141. private static $valueToName = [
  142. self::UNSPECIFIED => 'UNSPECIFIED',
  143. self::UNKNOWN => 'UNKNOWN',
  144. self::PROGRAM_ID => 'PROGRAM_ID',
  145. self::LOCATION_ID => 'LOCATION_ID',
  146. self::PROGRAM_NAME => 'PROGRAM_NAME',
  147. self::AREA_OF_STUDY => 'AREA_OF_STUDY',
  148. self::PROGRAM_DESCRIPTION => 'PROGRAM_DESCRIPTION',
  149. self::SCHOOL_NAME => 'SCHOOL_NAME',
  150. self::ADDRESS => 'ADDRESS',
  151. self::THUMBNAIL_IMAGE_URL => 'THUMBNAIL_IMAGE_URL',
  152. self::ALTERNATIVE_THUMBNAIL_IMAGE_URL => 'ALTERNATIVE_THUMBNAIL_IMAGE_URL',
  153. self::FINAL_URLS => 'FINAL_URLS',
  154. self::FINAL_MOBILE_URLS => 'FINAL_MOBILE_URLS',
  155. self::TRACKING_URL => 'TRACKING_URL',
  156. self::CONTEXTUAL_KEYWORDS => 'CONTEXTUAL_KEYWORDS',
  157. self::ANDROID_APP_LINK => 'ANDROID_APP_LINK',
  158. self::SIMILAR_PROGRAM_IDS => 'SIMILAR_PROGRAM_IDS',
  159. self::IOS_APP_LINK => 'IOS_APP_LINK',
  160. self::IOS_APP_STORE_ID => 'IOS_APP_STORE_ID',
  161. ];
  162. public static function name($value)
  163. {
  164. if (!isset(self::$valueToName[$value])) {
  165. throw new UnexpectedValueException(sprintf(
  166. 'Enum %s has no name defined for value %s', __CLASS__, $value));
  167. }
  168. return self::$valueToName[$value];
  169. }
  170. public static function value($name)
  171. {
  172. $const = __CLASS__ . '::' . strtoupper($name);
  173. if (!defined($const)) {
  174. throw new UnexpectedValueException(sprintf(
  175. 'Enum %s has no value defined for name %s', __CLASS__, $name));
  176. }
  177. return constant($const);
  178. }
  179. }
  180. // Adding a class alias for backwards compatibility with the previous class name.
  181. class_alias(EducationPlaceholderField::class, \Google\Ads\GoogleAds\V9\Enums\EducationPlaceholderFieldEnum_EducationPlaceholderField::class);