PageRenderTime 27ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://gitlab.com/remyvianne/krowkaramel
PHP | 488 lines | 192 code | 54 blank | 242 comment | 0 complexity | 4aa325a29cfc32208d48a9cbe8131be6 MD5 | raw file
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/ads/googleads/v9/common/simulation.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. * Projected metrics for a specific target CPA amount.
  10. *
  11. * Generated from protobuf message <code>google.ads.googleads.v9.common.TargetCpaSimulationPoint</code>
  12. */
  13. class TargetCpaSimulationPoint extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Projected required daily budget that the advertiser must set in order to
  17. * receive the estimated traffic, in micros of advertiser currency.
  18. *
  19. * Generated from protobuf field <code>int64 required_budget_amount_micros = 19;</code>
  20. */
  21. protected $required_budget_amount_micros = 0;
  22. /**
  23. * Projected number of biddable conversions.
  24. *
  25. * Generated from protobuf field <code>optional double biddable_conversions = 9;</code>
  26. */
  27. protected $biddable_conversions = null;
  28. /**
  29. * Projected total value of biddable conversions.
  30. *
  31. * Generated from protobuf field <code>optional double biddable_conversions_value = 10;</code>
  32. */
  33. protected $biddable_conversions_value = null;
  34. /**
  35. * Projected number of app installs.
  36. *
  37. * Generated from protobuf field <code>double app_installs = 15;</code>
  38. */
  39. protected $app_installs = 0.0;
  40. /**
  41. * Projected number of in-app actions.
  42. *
  43. * Generated from protobuf field <code>double in_app_actions = 16;</code>
  44. */
  45. protected $in_app_actions = 0.0;
  46. /**
  47. * Projected number of clicks.
  48. *
  49. * Generated from protobuf field <code>optional int64 clicks = 11;</code>
  50. */
  51. protected $clicks = null;
  52. /**
  53. * Projected cost in micros.
  54. *
  55. * Generated from protobuf field <code>optional int64 cost_micros = 12;</code>
  56. */
  57. protected $cost_micros = null;
  58. /**
  59. * Projected number of impressions.
  60. *
  61. * Generated from protobuf field <code>optional int64 impressions = 13;</code>
  62. */
  63. protected $impressions = null;
  64. /**
  65. * Projected number of top slot impressions.
  66. * Only search advertising channel type supports this field.
  67. *
  68. * Generated from protobuf field <code>optional int64 top_slot_impressions = 14;</code>
  69. */
  70. protected $top_slot_impressions = null;
  71. protected $target_cpa_simulation_key_value;
  72. /**
  73. * Constructor.
  74. *
  75. * @param array $data {
  76. * Optional. Data for populating the Message object.
  77. *
  78. * @type int|string $required_budget_amount_micros
  79. * Projected required daily budget that the advertiser must set in order to
  80. * receive the estimated traffic, in micros of advertiser currency.
  81. * @type float $biddable_conversions
  82. * Projected number of biddable conversions.
  83. * @type float $biddable_conversions_value
  84. * Projected total value of biddable conversions.
  85. * @type float $app_installs
  86. * Projected number of app installs.
  87. * @type float $in_app_actions
  88. * Projected number of in-app actions.
  89. * @type int|string $clicks
  90. * Projected number of clicks.
  91. * @type int|string $cost_micros
  92. * Projected cost in micros.
  93. * @type int|string $impressions
  94. * Projected number of impressions.
  95. * @type int|string $top_slot_impressions
  96. * Projected number of top slot impressions.
  97. * Only search advertising channel type supports this field.
  98. * @type int|string $target_cpa_micros
  99. * The simulated target CPA upon which projected metrics are based.
  100. * @type float $target_cpa_scaling_modifier
  101. * The simulated scaling modifier upon which projected metrics are based.
  102. * All CPA targets relevant to the simulated entity are scaled by this
  103. * modifier.
  104. * }
  105. */
  106. public function __construct($data = NULL) {
  107. \GPBMetadata\Google\Ads\GoogleAds\V9\Common\Simulation::initOnce();
  108. parent::__construct($data);
  109. }
  110. /**
  111. * Projected required daily budget that the advertiser must set in order to
  112. * receive the estimated traffic, in micros of advertiser currency.
  113. *
  114. * Generated from protobuf field <code>int64 required_budget_amount_micros = 19;</code>
  115. * @return int|string
  116. */
  117. public function getRequiredBudgetAmountMicros()
  118. {
  119. return $this->required_budget_amount_micros;
  120. }
  121. /**
  122. * Projected required daily budget that the advertiser must set in order to
  123. * receive the estimated traffic, in micros of advertiser currency.
  124. *
  125. * Generated from protobuf field <code>int64 required_budget_amount_micros = 19;</code>
  126. * @param int|string $var
  127. * @return $this
  128. */
  129. public function setRequiredBudgetAmountMicros($var)
  130. {
  131. GPBUtil::checkInt64($var);
  132. $this->required_budget_amount_micros = $var;
  133. return $this;
  134. }
  135. /**
  136. * Projected number of biddable conversions.
  137. *
  138. * Generated from protobuf field <code>optional double biddable_conversions = 9;</code>
  139. * @return float
  140. */
  141. public function getBiddableConversions()
  142. {
  143. return isset($this->biddable_conversions) ? $this->biddable_conversions : 0.0;
  144. }
  145. public function hasBiddableConversions()
  146. {
  147. return isset($this->biddable_conversions);
  148. }
  149. public function clearBiddableConversions()
  150. {
  151. unset($this->biddable_conversions);
  152. }
  153. /**
  154. * Projected number of biddable conversions.
  155. *
  156. * Generated from protobuf field <code>optional double biddable_conversions = 9;</code>
  157. * @param float $var
  158. * @return $this
  159. */
  160. public function setBiddableConversions($var)
  161. {
  162. GPBUtil::checkDouble($var);
  163. $this->biddable_conversions = $var;
  164. return $this;
  165. }
  166. /**
  167. * Projected total value of biddable conversions.
  168. *
  169. * Generated from protobuf field <code>optional double biddable_conversions_value = 10;</code>
  170. * @return float
  171. */
  172. public function getBiddableConversionsValue()
  173. {
  174. return isset($this->biddable_conversions_value) ? $this->biddable_conversions_value : 0.0;
  175. }
  176. public function hasBiddableConversionsValue()
  177. {
  178. return isset($this->biddable_conversions_value);
  179. }
  180. public function clearBiddableConversionsValue()
  181. {
  182. unset($this->biddable_conversions_value);
  183. }
  184. /**
  185. * Projected total value of biddable conversions.
  186. *
  187. * Generated from protobuf field <code>optional double biddable_conversions_value = 10;</code>
  188. * @param float $var
  189. * @return $this
  190. */
  191. public function setBiddableConversionsValue($var)
  192. {
  193. GPBUtil::checkDouble($var);
  194. $this->biddable_conversions_value = $var;
  195. return $this;
  196. }
  197. /**
  198. * Projected number of app installs.
  199. *
  200. * Generated from protobuf field <code>double app_installs = 15;</code>
  201. * @return float
  202. */
  203. public function getAppInstalls()
  204. {
  205. return $this->app_installs;
  206. }
  207. /**
  208. * Projected number of app installs.
  209. *
  210. * Generated from protobuf field <code>double app_installs = 15;</code>
  211. * @param float $var
  212. * @return $this
  213. */
  214. public function setAppInstalls($var)
  215. {
  216. GPBUtil::checkDouble($var);
  217. $this->app_installs = $var;
  218. return $this;
  219. }
  220. /**
  221. * Projected number of in-app actions.
  222. *
  223. * Generated from protobuf field <code>double in_app_actions = 16;</code>
  224. * @return float
  225. */
  226. public function getInAppActions()
  227. {
  228. return $this->in_app_actions;
  229. }
  230. /**
  231. * Projected number of in-app actions.
  232. *
  233. * Generated from protobuf field <code>double in_app_actions = 16;</code>
  234. * @param float $var
  235. * @return $this
  236. */
  237. public function setInAppActions($var)
  238. {
  239. GPBUtil::checkDouble($var);
  240. $this->in_app_actions = $var;
  241. return $this;
  242. }
  243. /**
  244. * Projected number of clicks.
  245. *
  246. * Generated from protobuf field <code>optional int64 clicks = 11;</code>
  247. * @return int|string
  248. */
  249. public function getClicks()
  250. {
  251. return isset($this->clicks) ? $this->clicks : 0;
  252. }
  253. public function hasClicks()
  254. {
  255. return isset($this->clicks);
  256. }
  257. public function clearClicks()
  258. {
  259. unset($this->clicks);
  260. }
  261. /**
  262. * Projected number of clicks.
  263. *
  264. * Generated from protobuf field <code>optional int64 clicks = 11;</code>
  265. * @param int|string $var
  266. * @return $this
  267. */
  268. public function setClicks($var)
  269. {
  270. GPBUtil::checkInt64($var);
  271. $this->clicks = $var;
  272. return $this;
  273. }
  274. /**
  275. * Projected cost in micros.
  276. *
  277. * Generated from protobuf field <code>optional int64 cost_micros = 12;</code>
  278. * @return int|string
  279. */
  280. public function getCostMicros()
  281. {
  282. return isset($this->cost_micros) ? $this->cost_micros : 0;
  283. }
  284. public function hasCostMicros()
  285. {
  286. return isset($this->cost_micros);
  287. }
  288. public function clearCostMicros()
  289. {
  290. unset($this->cost_micros);
  291. }
  292. /**
  293. * Projected cost in micros.
  294. *
  295. * Generated from protobuf field <code>optional int64 cost_micros = 12;</code>
  296. * @param int|string $var
  297. * @return $this
  298. */
  299. public function setCostMicros($var)
  300. {
  301. GPBUtil::checkInt64($var);
  302. $this->cost_micros = $var;
  303. return $this;
  304. }
  305. /**
  306. * Projected number of impressions.
  307. *
  308. * Generated from protobuf field <code>optional int64 impressions = 13;</code>
  309. * @return int|string
  310. */
  311. public function getImpressions()
  312. {
  313. return isset($this->impressions) ? $this->impressions : 0;
  314. }
  315. public function hasImpressions()
  316. {
  317. return isset($this->impressions);
  318. }
  319. public function clearImpressions()
  320. {
  321. unset($this->impressions);
  322. }
  323. /**
  324. * Projected number of impressions.
  325. *
  326. * Generated from protobuf field <code>optional int64 impressions = 13;</code>
  327. * @param int|string $var
  328. * @return $this
  329. */
  330. public function setImpressions($var)
  331. {
  332. GPBUtil::checkInt64($var);
  333. $this->impressions = $var;
  334. return $this;
  335. }
  336. /**
  337. * Projected number of top slot impressions.
  338. * Only search advertising channel type supports this field.
  339. *
  340. * Generated from protobuf field <code>optional int64 top_slot_impressions = 14;</code>
  341. * @return int|string
  342. */
  343. public function getTopSlotImpressions()
  344. {
  345. return isset($this->top_slot_impressions) ? $this->top_slot_impressions : 0;
  346. }
  347. public function hasTopSlotImpressions()
  348. {
  349. return isset($this->top_slot_impressions);
  350. }
  351. public function clearTopSlotImpressions()
  352. {
  353. unset($this->top_slot_impressions);
  354. }
  355. /**
  356. * Projected number of top slot impressions.
  357. * Only search advertising channel type supports this field.
  358. *
  359. * Generated from protobuf field <code>optional int64 top_slot_impressions = 14;</code>
  360. * @param int|string $var
  361. * @return $this
  362. */
  363. public function setTopSlotImpressions($var)
  364. {
  365. GPBUtil::checkInt64($var);
  366. $this->top_slot_impressions = $var;
  367. return $this;
  368. }
  369. /**
  370. * The simulated target CPA upon which projected metrics are based.
  371. *
  372. * Generated from protobuf field <code>int64 target_cpa_micros = 17;</code>
  373. * @return int|string
  374. */
  375. public function getTargetCpaMicros()
  376. {
  377. return $this->readOneof(17);
  378. }
  379. public function hasTargetCpaMicros()
  380. {
  381. return $this->hasOneof(17);
  382. }
  383. /**
  384. * The simulated target CPA upon which projected metrics are based.
  385. *
  386. * Generated from protobuf field <code>int64 target_cpa_micros = 17;</code>
  387. * @param int|string $var
  388. * @return $this
  389. */
  390. public function setTargetCpaMicros($var)
  391. {
  392. GPBUtil::checkInt64($var);
  393. $this->writeOneof(17, $var);
  394. return $this;
  395. }
  396. /**
  397. * The simulated scaling modifier upon which projected metrics are based.
  398. * All CPA targets relevant to the simulated entity are scaled by this
  399. * modifier.
  400. *
  401. * Generated from protobuf field <code>double target_cpa_scaling_modifier = 18;</code>
  402. * @return float
  403. */
  404. public function getTargetCpaScalingModifier()
  405. {
  406. return $this->readOneof(18);
  407. }
  408. public function hasTargetCpaScalingModifier()
  409. {
  410. return $this->hasOneof(18);
  411. }
  412. /**
  413. * The simulated scaling modifier upon which projected metrics are based.
  414. * All CPA targets relevant to the simulated entity are scaled by this
  415. * modifier.
  416. *
  417. * Generated from protobuf field <code>double target_cpa_scaling_modifier = 18;</code>
  418. * @param float $var
  419. * @return $this
  420. */
  421. public function setTargetCpaScalingModifier($var)
  422. {
  423. GPBUtil::checkDouble($var);
  424. $this->writeOneof(18, $var);
  425. return $this;
  426. }
  427. /**
  428. * @return string
  429. */
  430. public function getTargetCpaSimulationKeyValue()
  431. {
  432. return $this->whichOneof("target_cpa_simulation_key_value");
  433. }
  434. }