Aucune description

DoubleClickBidManager.php 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for DoubleClickBidManager (v1).
  19. *
  20. * <p>
  21. * API for viewing and managing your reports in DoubleClick Bid Manager.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/bid-manager/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_DoubleClickBidManager extends Google_Service
  31. {
  32. /** View and manage your reports in DoubleClick Bid Manager. */
  33. const DOUBLECLICKBIDMANAGER =
  34. "https://www.googleapis.com/auth/doubleclickbidmanager";
  35. public $lineitems;
  36. public $queries;
  37. public $reports;
  38. public $sdf;
  39. /**
  40. * Constructs the internal representation of the DoubleClickBidManager
  41. * service.
  42. *
  43. * @param Google_Client $client
  44. */
  45. public function __construct(Google_Client $client)
  46. {
  47. parent::__construct($client);
  48. $this->rootUrl = 'https://www.googleapis.com/';
  49. $this->servicePath = 'doubleclickbidmanager/v1/';
  50. $this->version = 'v1';
  51. $this->serviceName = 'doubleclickbidmanager';
  52. $this->lineitems = new Google_Service_DoubleClickBidManager_Resource_Lineitems(
  53. $this,
  54. $this->serviceName,
  55. 'lineitems',
  56. array(
  57. 'methods' => array(
  58. 'downloadlineitems' => array(
  59. 'path' => 'lineitems/downloadlineitems',
  60. 'httpMethod' => 'POST',
  61. 'parameters' => array(),
  62. ),'uploadlineitems' => array(
  63. 'path' => 'lineitems/uploadlineitems',
  64. 'httpMethod' => 'POST',
  65. 'parameters' => array(),
  66. ),
  67. )
  68. )
  69. );
  70. $this->queries = new Google_Service_DoubleClickBidManager_Resource_Queries(
  71. $this,
  72. $this->serviceName,
  73. 'queries',
  74. array(
  75. 'methods' => array(
  76. 'createquery' => array(
  77. 'path' => 'query',
  78. 'httpMethod' => 'POST',
  79. 'parameters' => array(),
  80. ),'deletequery' => array(
  81. 'path' => 'query/{queryId}',
  82. 'httpMethod' => 'DELETE',
  83. 'parameters' => array(
  84. 'queryId' => array(
  85. 'location' => 'path',
  86. 'type' => 'string',
  87. 'required' => true,
  88. ),
  89. ),
  90. ),'getquery' => array(
  91. 'path' => 'query/{queryId}',
  92. 'httpMethod' => 'GET',
  93. 'parameters' => array(
  94. 'queryId' => array(
  95. 'location' => 'path',
  96. 'type' => 'string',
  97. 'required' => true,
  98. ),
  99. ),
  100. ),'listqueries' => array(
  101. 'path' => 'queries',
  102. 'httpMethod' => 'GET',
  103. 'parameters' => array(),
  104. ),'runquery' => array(
  105. 'path' => 'query/{queryId}',
  106. 'httpMethod' => 'POST',
  107. 'parameters' => array(
  108. 'queryId' => array(
  109. 'location' => 'path',
  110. 'type' => 'string',
  111. 'required' => true,
  112. ),
  113. ),
  114. ),
  115. )
  116. )
  117. );
  118. $this->reports = new Google_Service_DoubleClickBidManager_Resource_Reports(
  119. $this,
  120. $this->serviceName,
  121. 'reports',
  122. array(
  123. 'methods' => array(
  124. 'listreports' => array(
  125. 'path' => 'queries/{queryId}/reports',
  126. 'httpMethod' => 'GET',
  127. 'parameters' => array(
  128. 'queryId' => array(
  129. 'location' => 'path',
  130. 'type' => 'string',
  131. 'required' => true,
  132. ),
  133. ),
  134. ),
  135. )
  136. )
  137. );
  138. $this->sdf = new Google_Service_DoubleClickBidManager_Resource_Sdf(
  139. $this,
  140. $this->serviceName,
  141. 'sdf',
  142. array(
  143. 'methods' => array(
  144. 'download' => array(
  145. 'path' => 'sdf/download',
  146. 'httpMethod' => 'POST',
  147. 'parameters' => array(),
  148. ),
  149. )
  150. )
  151. );
  152. }
  153. }