You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

312 lines
15 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v1/resources/campaign_budget.proto
  3. package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import wrappers "github.com/golang/protobuf/ptypes/wrappers"
  8. import enums "google.golang.org/genproto/googleapis/ads/googleads/v1/enums"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  19. // A campaign budget.
  20. type CampaignBudget struct {
  21. // The resource name of the campaign budget.
  22. // Campaign budget resource names have the form:
  23. //
  24. // `customers/{customer_id}/campaignBudgets/{budget_id}`
  25. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  26. // The ID of the campaign budget.
  27. //
  28. // A campaign budget is created using the CampaignBudgetService create
  29. // operation and is assigned a budget ID. A budget ID can be shared across
  30. // different campaigns; the system will then allocate the campaign budget
  31. // among different campaigns to get optimum results.
  32. Id *wrappers.Int64Value `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
  33. // The name of the campaign budget.
  34. //
  35. // When creating a campaign budget through CampaignBudgetService, every
  36. // explicitly shared campaign budget must have a non-null, non-empty name.
  37. // Campaign budgets that are not explicitly shared derive their name from the
  38. // attached campaign's name.
  39. //
  40. // The length of this string must be between 1 and 255, inclusive,
  41. // in UTF-8 bytes, (trimmed).
  42. Name *wrappers.StringValue `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
  43. // The amount of the budget, in the local currency for the account.
  44. // Amount is specified in micros, where one million is equivalent to one
  45. // currency unit.
  46. AmountMicros *wrappers.Int64Value `protobuf:"bytes,5,opt,name=amount_micros,json=amountMicros,proto3" json:"amount_micros,omitempty"`
  47. // The lifetime amount of the budget, in the local currency for the account.
  48. // Amount is specified in micros, where one million is equivalent to one
  49. // currency unit.
  50. TotalAmountMicros *wrappers.Int64Value `protobuf:"bytes,10,opt,name=total_amount_micros,json=totalAmountMicros,proto3" json:"total_amount_micros,omitempty"`
  51. // The status of this campaign budget. This field is read-only.
  52. Status enums.BudgetStatusEnum_BudgetStatus `protobuf:"varint,6,opt,name=status,proto3,enum=google.ads.googleads.v1.enums.BudgetStatusEnum_BudgetStatus" json:"status,omitempty"`
  53. // The delivery method that determines the rate at which the campaign budget
  54. // is spent.
  55. //
  56. // Defaults to STANDARD if unspecified in a create operation.
  57. DeliveryMethod enums.BudgetDeliveryMethodEnum_BudgetDeliveryMethod `protobuf:"varint,7,opt,name=delivery_method,json=deliveryMethod,proto3,enum=google.ads.googleads.v1.enums.BudgetDeliveryMethodEnum_BudgetDeliveryMethod" json:"delivery_method,omitempty"`
  58. // Specifies whether the budget is explicitly shared. Defaults to true if
  59. // unspecified in a create operation.
  60. //
  61. // If true, the budget was created with the purpose of sharing
  62. // across one or more campaigns.
  63. //
  64. // If false, the budget was created with the intention of only being used
  65. // with a single campaign. The budget's name and status will stay in sync
  66. // with the campaign's name and status. Attempting to share the budget with a
  67. // second campaign will result in an error.
  68. //
  69. // A non-shared budget can become an explicitly shared. The same operation
  70. // must also assign the budget a name.
  71. //
  72. // A shared campaign budget can never become non-shared.
  73. ExplicitlyShared *wrappers.BoolValue `protobuf:"bytes,8,opt,name=explicitly_shared,json=explicitlyShared,proto3" json:"explicitly_shared,omitempty"`
  74. // The number of campaigns actively using the budget.
  75. //
  76. // This field is read-only.
  77. ReferenceCount *wrappers.Int64Value `protobuf:"bytes,9,opt,name=reference_count,json=referenceCount,proto3" json:"reference_count,omitempty"`
  78. // Indicates whether there is a recommended budget for this campaign budget.
  79. //
  80. // This field is read-only.
  81. HasRecommendedBudget *wrappers.BoolValue `protobuf:"bytes,11,opt,name=has_recommended_budget,json=hasRecommendedBudget,proto3" json:"has_recommended_budget,omitempty"`
  82. // The recommended budget amount. If no recommendation is available, this will
  83. // be set to the budget amount.
  84. // Amount is specified in micros, where one million is equivalent to one
  85. // currency unit.
  86. //
  87. // This field is read-only.
  88. RecommendedBudgetAmountMicros *wrappers.Int64Value `protobuf:"bytes,12,opt,name=recommended_budget_amount_micros,json=recommendedBudgetAmountMicros,proto3" json:"recommended_budget_amount_micros,omitempty"`
  89. // Period over which to spend the budget. Defaults to DAILY if not specified.
  90. Period enums.BudgetPeriodEnum_BudgetPeriod `protobuf:"varint,13,opt,name=period,proto3,enum=google.ads.googleads.v1.enums.BudgetPeriodEnum_BudgetPeriod" json:"period,omitempty"`
  91. // The estimated change in weekly clicks if the recommended budget is applied.
  92. //
  93. // This field is read-only.
  94. RecommendedBudgetEstimatedChangeWeeklyClicks *wrappers.Int64Value `protobuf:"bytes,14,opt,name=recommended_budget_estimated_change_weekly_clicks,json=recommendedBudgetEstimatedChangeWeeklyClicks,proto3" json:"recommended_budget_estimated_change_weekly_clicks,omitempty"`
  95. // The estimated change in weekly cost in micros if the recommended budget is
  96. // applied. One million is equivalent to one currency unit.
  97. //
  98. // This field is read-only.
  99. RecommendedBudgetEstimatedChangeWeeklyCostMicros *wrappers.Int64Value `protobuf:"bytes,15,opt,name=recommended_budget_estimated_change_weekly_cost_micros,json=recommendedBudgetEstimatedChangeWeeklyCostMicros,proto3" json:"recommended_budget_estimated_change_weekly_cost_micros,omitempty"`
  100. // The estimated change in weekly interactions if the recommended budget is
  101. // applied.
  102. //
  103. // This field is read-only.
  104. RecommendedBudgetEstimatedChangeWeeklyInteractions *wrappers.Int64Value `protobuf:"bytes,16,opt,name=recommended_budget_estimated_change_weekly_interactions,json=recommendedBudgetEstimatedChangeWeeklyInteractions,proto3" json:"recommended_budget_estimated_change_weekly_interactions,omitempty"`
  105. // The estimated change in weekly views if the recommended budget is applied.
  106. //
  107. // This field is read-only.
  108. RecommendedBudgetEstimatedChangeWeeklyViews *wrappers.Int64Value `protobuf:"bytes,17,opt,name=recommended_budget_estimated_change_weekly_views,json=recommendedBudgetEstimatedChangeWeeklyViews,proto3" json:"recommended_budget_estimated_change_weekly_views,omitempty"`
  109. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  110. XXX_unrecognized []byte `json:"-"`
  111. XXX_sizecache int32 `json:"-"`
  112. }
  113. func (m *CampaignBudget) Reset() { *m = CampaignBudget{} }
  114. func (m *CampaignBudget) String() string { return proto.CompactTextString(m) }
  115. func (*CampaignBudget) ProtoMessage() {}
  116. func (*CampaignBudget) Descriptor() ([]byte, []int) {
  117. return fileDescriptor_campaign_budget_13a5491b14476a5d, []int{0}
  118. }
  119. func (m *CampaignBudget) XXX_Unmarshal(b []byte) error {
  120. return xxx_messageInfo_CampaignBudget.Unmarshal(m, b)
  121. }
  122. func (m *CampaignBudget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  123. return xxx_messageInfo_CampaignBudget.Marshal(b, m, deterministic)
  124. }
  125. func (dst *CampaignBudget) XXX_Merge(src proto.Message) {
  126. xxx_messageInfo_CampaignBudget.Merge(dst, src)
  127. }
  128. func (m *CampaignBudget) XXX_Size() int {
  129. return xxx_messageInfo_CampaignBudget.Size(m)
  130. }
  131. func (m *CampaignBudget) XXX_DiscardUnknown() {
  132. xxx_messageInfo_CampaignBudget.DiscardUnknown(m)
  133. }
  134. var xxx_messageInfo_CampaignBudget proto.InternalMessageInfo
  135. func (m *CampaignBudget) GetResourceName() string {
  136. if m != nil {
  137. return m.ResourceName
  138. }
  139. return ""
  140. }
  141. func (m *CampaignBudget) GetId() *wrappers.Int64Value {
  142. if m != nil {
  143. return m.Id
  144. }
  145. return nil
  146. }
  147. func (m *CampaignBudget) GetName() *wrappers.StringValue {
  148. if m != nil {
  149. return m.Name
  150. }
  151. return nil
  152. }
  153. func (m *CampaignBudget) GetAmountMicros() *wrappers.Int64Value {
  154. if m != nil {
  155. return m.AmountMicros
  156. }
  157. return nil
  158. }
  159. func (m *CampaignBudget) GetTotalAmountMicros() *wrappers.Int64Value {
  160. if m != nil {
  161. return m.TotalAmountMicros
  162. }
  163. return nil
  164. }
  165. func (m *CampaignBudget) GetStatus() enums.BudgetStatusEnum_BudgetStatus {
  166. if m != nil {
  167. return m.Status
  168. }
  169. return enums.BudgetStatusEnum_UNSPECIFIED
  170. }
  171. func (m *CampaignBudget) GetDeliveryMethod() enums.BudgetDeliveryMethodEnum_BudgetDeliveryMethod {
  172. if m != nil {
  173. return m.DeliveryMethod
  174. }
  175. return enums.BudgetDeliveryMethodEnum_UNSPECIFIED
  176. }
  177. func (m *CampaignBudget) GetExplicitlyShared() *wrappers.BoolValue {
  178. if m != nil {
  179. return m.ExplicitlyShared
  180. }
  181. return nil
  182. }
  183. func (m *CampaignBudget) GetReferenceCount() *wrappers.Int64Value {
  184. if m != nil {
  185. return m.ReferenceCount
  186. }
  187. return nil
  188. }
  189. func (m *CampaignBudget) GetHasRecommendedBudget() *wrappers.BoolValue {
  190. if m != nil {
  191. return m.HasRecommendedBudget
  192. }
  193. return nil
  194. }
  195. func (m *CampaignBudget) GetRecommendedBudgetAmountMicros() *wrappers.Int64Value {
  196. if m != nil {
  197. return m.RecommendedBudgetAmountMicros
  198. }
  199. return nil
  200. }
  201. func (m *CampaignBudget) GetPeriod() enums.BudgetPeriodEnum_BudgetPeriod {
  202. if m != nil {
  203. return m.Period
  204. }
  205. return enums.BudgetPeriodEnum_UNSPECIFIED
  206. }
  207. func (m *CampaignBudget) GetRecommendedBudgetEstimatedChangeWeeklyClicks() *wrappers.Int64Value {
  208. if m != nil {
  209. return m.RecommendedBudgetEstimatedChangeWeeklyClicks
  210. }
  211. return nil
  212. }
  213. func (m *CampaignBudget) GetRecommendedBudgetEstimatedChangeWeeklyCostMicros() *wrappers.Int64Value {
  214. if m != nil {
  215. return m.RecommendedBudgetEstimatedChangeWeeklyCostMicros
  216. }
  217. return nil
  218. }
  219. func (m *CampaignBudget) GetRecommendedBudgetEstimatedChangeWeeklyInteractions() *wrappers.Int64Value {
  220. if m != nil {
  221. return m.RecommendedBudgetEstimatedChangeWeeklyInteractions
  222. }
  223. return nil
  224. }
  225. func (m *CampaignBudget) GetRecommendedBudgetEstimatedChangeWeeklyViews() *wrappers.Int64Value {
  226. if m != nil {
  227. return m.RecommendedBudgetEstimatedChangeWeeklyViews
  228. }
  229. return nil
  230. }
  231. func init() {
  232. proto.RegisterType((*CampaignBudget)(nil), "google.ads.googleads.v1.resources.CampaignBudget")
  233. }
  234. func init() {
  235. proto.RegisterFile("google/ads/googleads/v1/resources/campaign_budget.proto", fileDescriptor_campaign_budget_13a5491b14476a5d)
  236. }
  237. var fileDescriptor_campaign_budget_13a5491b14476a5d = []byte{
  238. // 724 bytes of a gzipped FileDescriptorProto
  239. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x95, 0xdf, 0x4e, 0xdc, 0x46,
  240. 0x14, 0xc6, 0xe5, 0x85, 0xd2, 0x32, 0xc0, 0x02, 0xa6, 0xaa, 0x2c, 0x4a, 0xab, 0xa5, 0x15, 0x12,
  241. 0x12, 0x95, 0xcd, 0xd2, 0x0a, 0x24, 0xb7, 0x17, 0xdd, 0x5d, 0x10, 0xa2, 0x0d, 0xd1, 0x6a, 0x89,
  242. 0x36, 0x52, 0xb4, 0x92, 0x35, 0x78, 0x0e, 0xde, 0x11, 0xf6, 0x8c, 0x35, 0x33, 0x5e, 0xc2, 0x5d,
  243. 0x14, 0xe5, 0x36, 0x52, 0x9e, 0x21, 0x97, 0x79, 0x86, 0x3c, 0x41, 0x1e, 0x25, 0x4f, 0x11, 0xed,
  244. 0xf8, 0x0f, 0xfb, 0x27, 0xc4, 0xbb, 0x77, 0xe3, 0x99, 0xf3, 0xfd, 0xe6, 0x9b, 0xcf, 0xc7, 0x1e,
  245. 0x74, 0x12, 0x70, 0x1e, 0x84, 0xe0, 0x60, 0x22, 0x9d, 0x74, 0x38, 0x1c, 0x0d, 0xea, 0x8e, 0x00,
  246. 0xc9, 0x13, 0xe1, 0x83, 0x74, 0x7c, 0x1c, 0xc5, 0x98, 0x06, 0xcc, 0xbb, 0x4e, 0x48, 0x00, 0xca,
  247. 0x8e, 0x05, 0x57, 0xdc, 0xdc, 0x4d, 0xab, 0x6d, 0x4c, 0xa4, 0x5d, 0x08, 0xed, 0x41, 0xdd, 0x2e,
  248. 0x84, 0xdb, 0xee, 0x63, 0x6c, 0x60, 0x49, 0x24, 0x9d, 0x14, 0xe7, 0x11, 0x08, 0xe9, 0x00, 0xc4,
  249. 0xbd, 0x17, 0x81, 0xea, 0x73, 0x92, 0xe2, 0xb7, 0xeb, 0x33, 0x69, 0x63, 0x10, 0x74, 0x4e, 0x89,
  250. 0x54, 0x58, 0x25, 0x32, 0x93, 0xfc, 0x9a, 0x49, 0xf4, 0xd3, 0x75, 0x72, 0xe3, 0xdc, 0x09, 0x1c,
  251. 0xc7, 0x20, 0xf2, 0xf5, 0x9d, 0x1c, 0x19, 0x53, 0x07, 0x33, 0xc6, 0x15, 0x56, 0x94, 0xb3, 0x6c,
  252. 0xf5, 0xb7, 0x8f, 0x2b, 0xa8, 0xda, 0xca, 0xc2, 0x69, 0x6a, 0xba, 0xf9, 0x3b, 0x5a, 0xcb, 0xcf,
  253. 0xef, 0x31, 0x1c, 0x81, 0x65, 0xd4, 0x8c, 0xfd, 0xe5, 0xce, 0x6a, 0x3e, 0xf9, 0x14, 0x47, 0x60,
  254. 0x1e, 0xa0, 0x0a, 0x25, 0xd6, 0x42, 0xcd, 0xd8, 0x5f, 0x39, 0xfa, 0x39, 0x0b, 0xcf, 0xce, 0x2d,
  255. 0xd8, 0x17, 0x4c, 0x1d, 0xff, 0xd5, 0xc5, 0x61, 0x02, 0x9d, 0x0a,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0xb1, 0xf4, 0x04, 0xf8, 0x3c, 0x8a, 0x80,
  267. 0x11, 0x20, 0xd9, 0x47, 0x6a, 0xad, 0x94, 0x7a, 0xfa, 0xb1, 0x8f, 0x65, 0xe7, 0x41, 0x98, 0x35,
  268. 0x30, 0x41, 0xb5, 0x69, 0xda, 0x44, 0x1f, 0xac, 0x96, 0x1b, 0xfd, 0x45, 0x4c, 0x92, 0x27, 0x7b,
  269. 0x22, 0xfd, 0x74, 0xad, 0xb5, 0x39, 0x7a, 0xa2, 0xad, 0x25, 0x23, 0x2f, 0x2b, 0x9d, 0xe8, 0x64,
  270. 0x2c, 0xf3, 0x8d, 0x81, 0xea, 0x5f, 0x31, 0x0f, 0x52, 0xd1, 0x08, 0x2b, 0x20, 0x9e, 0xdf, 0xc7,
  271. 0x2c, 0x00, 0xef, 0x0e, 0xe0, 0x36, 0xbc, 0xf7, 0xfc, 0x90, 0xfa, 0xb7, 0xd2, 0xaa, 0x96, 0x9f,
  272. 0xe6, 0x8f, 0xa9, 0xd3, 0x9c, 0xe5, 0xcc, 0x96, 0x46, 0x3e, 0xd7, 0xc4, 0x96, 0x06, 0x9a, 0x6f,
  273. 0x0d, 0x74, 0x3c, 0x8f, 0x0d, 0x2e, 0x8b, 0x64, 0xd7, 0xcb, 0xbd, 0x1c, 0xce, 0xe8, 0x85, 0xcb,
  274. 0x3c, 0xec, 0x77, 0x06, 0x3a, 0x99, 0xc3, 0x0f, 0x65, 0x0a, 0x04, 0xf6, 0xf5, 0x8f, 0xce, 0xda,
  275. 0x28, 0x37, 0x74, 0x34, 0x9b, 0xa1, 0x8b, 0x11, 0xac, 0xf9, 0xda, 0x40, 0x87, 0x73, 0x58, 0x1a,
  276. 0x50, 0xb8, 0x93, 0xd6, 0x66, 0xb9, 0x97, 0x83, 0xd9, 0xbc, 0x74, 0x87, 0xbc, 0xe6, 0xab, 0x0a,
  277. 0xda, 0xf3, 0x79, 0x64, 0x97, 0x5e, 0x64, 0xcd, 0xad, 0xf1, 0xbf, 0x7c, 0x7b, 0xb8, 0x73, 0xdb,
  278. 0x78, 0xf1, 0x5f, 0xa6, 0x0c, 0x78, 0x88, 0x59, 0x60, 0x73, 0x11, 0x38, 0x01, 0x30, 0xed, 0x2b,
  279. 0xbf, 0x80, 0x62, 0x2a, 0xbf, 0x71, 0xb5, 0xfe, 0x5d, 0x8c, 0xde, 0x57, 0x16, 0xce, 0x1b, 0x8d,
  280. 0x0f, 0x95, 0xdd, 0xf3, 0x14, 0xd9, 0x20, 0xd2, 0x4e, 0x87, 0xc3, 0x51, 0xb7, 0x6e, 0x77, 0xf2,
  281. 0xca, 0x4f, 0x79, 0x4d, 0xaf, 0x41, 0x64, 0xaf, 0xa8, 0xe9, 0x75, 0xeb, 0xbd, 0xa2, 0xe6, 0x73,
  282. 0x65, 0x2f, 0x5d, 0x70, 0xdd, 0x06, 0x91, 0xae, 0x5b, 0x54, 0xb9, 0x6e, 0xb7, 0xee, 0xba, 0x45,
  283. 0xdd, 0xf5, 0x92, 0x36, 0xfb, 0xe7, 0x97, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa2, 0x7f, 0xdd, 0xc4,
  284. 0x06, 0x08, 0x00, 0x00,
  285. }