admob_gapic.yaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. type: com.google.api.codegen.ConfigProto
  2. config_schema_version: 1.0.0
  3. # The settings of generated code in a specific language.
  4. language_settings:
  5. java:
  6. package_name: com.google.ads.admob.v1
  7. python:
  8. package_name: google.ads.admob_v1.gapic
  9. go:
  10. package_name: google.golang.org/api/admob/v1
  11. csharp:
  12. package_name: Google.Ads.Admob.V1
  13. ruby:
  14. package_name: Google::Ads::Admob::V1
  15. php:
  16. package_name: Google\Ads\Admob\V1
  17. nodejs:
  18. package_name: admob.v1
  19. # A list of API interface configurations.
  20. interfaces:
  21. # The fully qualified name of the API interface.
  22. - name: google.ads.admob.v1.AdMobApi
  23. # A list of resource collection configurations.
  24. # Consists of a name_pattern and an entity_name.
  25. # The name_pattern is a pattern to describe the names of the resources of this
  26. # collection, using the platform's conventions for URI patterns. A generator
  27. # may use this to generate methods to compose and decompose such names. The
  28. # pattern should use named placeholders as in `shelves/{shelf}/books/{book}`;
  29. # those will be taken as hints for the parameter names of the generated
  30. # methods. If empty, no name methods are generated.
  31. # The entity_name is the name to be used as a basis for generated methods and
  32. # classes.
  33. collections:
  34. - name_pattern: accounts/{account}
  35. entity_name: account
  36. # Definition for retryable codes.
  37. retry_codes_def:
  38. - name: idempotent
  39. retry_codes:
  40. - DEADLINE_EXCEEDED
  41. - UNAVAILABLE
  42. - name: non_idempotent
  43. retry_codes: []
  44. # Definition for retry/backoff parameters.
  45. retry_params_def:
  46. - name: default
  47. initial_retry_delay_millis: 100
  48. retry_delay_multiplier: 1.3
  49. max_retry_delay_millis: 60000
  50. initial_rpc_timeout_millis: 20000
  51. rpc_timeout_multiplier: 1
  52. max_rpc_timeout_millis: 20000
  53. total_timeout_millis: 600000
  54. # A list of method configurations.
  55. # Common properties:
  56. #
  57. # name - The simple name of the method.
  58. #
  59. # flattening - Specifies the configuration for parameter flattening.
  60. # Describes the parameter groups for which a generator should produce method
  61. # overloads which allow a client to directly pass request message fields as
  62. # method parameters. This information may or may not be used, depending on
  63. # the target language.
  64. # Consists of groups, which each represent a list of parameters to be
  65. # flattened. Each parameter listed must be a field of the request message.
  66. #
  67. # required_fields - Fields that are always required for a request to be
  68. # valid.
  69. #
  70. # page_streaming - Specifies the configuration for paging.
  71. # Describes information for generating a method which transforms a paging
  72. # list RPC into a stream of resources.
  73. # Consists of a request and a response.
  74. # The request specifies request information of the list method. It defines
  75. # which fields match the paging pattern in the request. The request consists
  76. # of a page_size_field and a token_field. The page_size_field is the name of
  77. # the optional field specifying the maximum number of elements to be
  78. # returned in the response. The token_field is the name of the field in the
  79. # request containing the page token.
  80. # The response specifies response information of the list method. It defines
  81. # which fields match the paging pattern in the response. The response
  82. # consists of a token_field and a resources_field. The token_field is the
  83. # name of the field in the response containing the next page token. The
  84. # resources_field is the name of the field in the response containing the
  85. # list of resources belonging to the page.
  86. #
  87. # retry_codes_name - Specifies the configuration for retryable codes. The
  88. # name must be defined in interfaces.retry_codes_def.
  89. #
  90. # retry_params_name - Specifies the configuration for retry/backoff
  91. # parameters. The name must be defined in interfaces.retry_params_def.
  92. #
  93. # field_name_patterns - Maps the field name of the request type to
  94. # entity_name of interfaces.collections.
  95. # Specifies the string pattern that the field must follow.
  96. #
  97. # timeout_millis - Specifies the default timeout for a non-retrying call. If
  98. # the call is retrying, refer to retry_params_name instead.
  99. methods:
  100. - name: GetPublisherAccount
  101. flattening:
  102. groups:
  103. - parameters:
  104. - name
  105. required_fields:
  106. - name
  107. retry_codes_name: idempotent
  108. retry_params_name: default
  109. field_name_patterns:
  110. name: account
  111. timeout_millis: 60000
  112. - name: ListPublisherAccounts
  113. page_streaming:
  114. request:
  115. page_size_field: page_size
  116. token_field: page_token
  117. response:
  118. token_field: next_page_token
  119. resources_field: account
  120. retry_codes_name: idempotent
  121. retry_params_name: default
  122. timeout_millis: 60000
  123. - name: GenerateNetworkReport
  124. flattening:
  125. groups:
  126. - parameters:
  127. - parent
  128. - report_spec
  129. required_fields:
  130. - parent
  131. - report_spec
  132. retry_codes_name: non_idempotent
  133. retry_params_name: default
  134. field_name_patterns:
  135. parent: account
  136. timeout_millis: 60000
  137. - name: GenerateMediationReport
  138. flattening:
  139. groups:
  140. - parameters:
  141. - parent
  142. - report_spec
  143. required_fields:
  144. - parent
  145. - report_spec
  146. retry_codes_name: non_idempotent
  147. retry_params_name: default
  148. field_name_patterns:
  149. parent: account
  150. timeout_millis: 60000