/wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/V9/Resources/AccessibleBiddingStrategy/TargetSpend.php

https://gitlab.com/remyvianne/krowkaramel · PHP · 160 lines · 55 code · 17 blank · 88 comment · 0 complexity · ef1eee953281e9d373bac977e6d2c9df MD5 · raw file

  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/ads/googleads/v9/resources/accessible_bidding_strategy.proto
  4. namespace Google\Ads\GoogleAds\V9\Resources\AccessibleBiddingStrategy;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * An automated bid strategy that sets your bids to help get as many clicks
  10. * as possible within your budget.
  11. *
  12. * Generated from protobuf message <code>google.ads.googleads.v9.resources.AccessibleBiddingStrategy.TargetSpend</code>
  13. */
  14. class TargetSpend extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * Output only. The spend target under which to maximize clicks.
  18. * A TargetSpend bidder will attempt to spend the smaller of this value
  19. * or the natural throttling spend amount.
  20. * If not specified, the budget is used as the spend target.
  21. * This field is deprecated and should no longer be used. See
  22. * https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html
  23. * for details.
  24. *
  25. * Generated from protobuf field <code>optional int64 target_spend_micros = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];</code>
  26. * @deprecated
  27. */
  28. protected $target_spend_micros = null;
  29. /**
  30. * Output only. Maximum bid limit that can be set by the bid strategy.
  31. * The limit applies to all keywords managed by the strategy.
  32. *
  33. * Generated from protobuf field <code>optional int64 cpc_bid_ceiling_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  34. */
  35. protected $cpc_bid_ceiling_micros = null;
  36. /**
  37. * Constructor.
  38. *
  39. * @param array $data {
  40. * Optional. Data for populating the Message object.
  41. *
  42. * @type int|string $target_spend_micros
  43. * Output only. The spend target under which to maximize clicks.
  44. * A TargetSpend bidder will attempt to spend the smaller of this value
  45. * or the natural throttling spend amount.
  46. * If not specified, the budget is used as the spend target.
  47. * This field is deprecated and should no longer be used. See
  48. * https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html
  49. * for details.
  50. * @type int|string $cpc_bid_ceiling_micros
  51. * Output only. Maximum bid limit that can be set by the bid strategy.
  52. * The limit applies to all keywords managed by the strategy.
  53. * }
  54. */
  55. public function __construct($data = NULL) {
  56. \GPBMetadata\Google\Ads\GoogleAds\V9\Resources\AccessibleBiddingStrategy::initOnce();
  57. parent::__construct($data);
  58. }
  59. /**
  60. * Output only. The spend target under which to maximize clicks.
  61. * A TargetSpend bidder will attempt to spend the smaller of this value
  62. * or the natural throttling spend amount.
  63. * If not specified, the budget is used as the spend target.
  64. * This field is deprecated and should no longer be used. See
  65. * https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html
  66. * for details.
  67. *
  68. * Generated from protobuf field <code>optional int64 target_spend_micros = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];</code>
  69. * @return int|string
  70. * @deprecated
  71. */
  72. public function getTargetSpendMicros()
  73. {
  74. @trigger_error('target_spend_micros is deprecated.', E_USER_DEPRECATED);
  75. return isset($this->target_spend_micros) ? $this->target_spend_micros : 0;
  76. }
  77. public function hasTargetSpendMicros()
  78. {
  79. @trigger_error('target_spend_micros is deprecated.', E_USER_DEPRECATED);
  80. return isset($this->target_spend_micros);
  81. }
  82. public function clearTargetSpendMicros()
  83. {
  84. @trigger_error('target_spend_micros is deprecated.', E_USER_DEPRECATED);
  85. unset($this->target_spend_micros);
  86. }
  87. /**
  88. * Output only. The spend target under which to maximize clicks.
  89. * A TargetSpend bidder will attempt to spend the smaller of this value
  90. * or the natural throttling spend amount.
  91. * If not specified, the budget is used as the spend target.
  92. * This field is deprecated and should no longer be used. See
  93. * https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html
  94. * for details.
  95. *
  96. * Generated from protobuf field <code>optional int64 target_spend_micros = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];</code>
  97. * @param int|string $var
  98. * @return $this
  99. * @deprecated
  100. */
  101. public function setTargetSpendMicros($var)
  102. {
  103. @trigger_error('target_spend_micros is deprecated.', E_USER_DEPRECATED);
  104. GPBUtil::checkInt64($var);
  105. $this->target_spend_micros = $var;
  106. return $this;
  107. }
  108. /**
  109. * Output only. Maximum bid limit that can be set by the bid strategy.
  110. * The limit applies to all keywords managed by the strategy.
  111. *
  112. * Generated from protobuf field <code>optional int64 cpc_bid_ceiling_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  113. * @return int|string
  114. */
  115. public function getCpcBidCeilingMicros()
  116. {
  117. return isset($this->cpc_bid_ceiling_micros) ? $this->cpc_bid_ceiling_micros : 0;
  118. }
  119. public function hasCpcBidCeilingMicros()
  120. {
  121. return isset($this->cpc_bid_ceiling_micros);
  122. }
  123. public function clearCpcBidCeilingMicros()
  124. {
  125. unset($this->cpc_bid_ceiling_micros);
  126. }
  127. /**
  128. * Output only. Maximum bid limit that can be set by the bid strategy.
  129. * The limit applies to all keywords managed by the strategy.
  130. *
  131. * Generated from protobuf field <code>optional int64 cpc_bid_ceiling_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  132. * @param int|string $var
  133. * @return $this
  134. */
  135. public function setCpcBidCeilingMicros($var)
  136. {
  137. GPBUtil::checkInt64($var);
  138. $this->cpc_bid_ceiling_micros = $var;
  139. return $this;
  140. }
  141. }
  142. // Adding a class alias for backwards compatibility with the previous class name.
  143. class_alias(TargetSpend::class, \Google\Ads\GoogleAds\V9\Resources\AccessibleBiddingStrategy_TargetSpend::class);