update what? this page has wrong code? i want to get help . you can see my
page:https://groups.google.com/forum/#!topic/protobuf/Y1MrMGG_Ic4
在 2019年10月27日星期日 UTC+8上午2:24:16,shayegan hooshyari写道:
>
> Hi,
> I want to update docs for this page:
>
python 3.7
proto 2
openrtb 2.5
在 2019年10月28日星期一 UTC+8下午2:53:18,schopenhauer zhang写道:
>
>
>
> proto file :
> syntax = "proto2";
> option java_outer_classname = "OpenRtb";
> package com.google.openrtb;
> message Person {
> required string name = 1;
&
proto file :
syntax = "proto2";
option java_outer_classname = "OpenRtb";
package com.google.openrtb;
message Person {
required string name = 1;
required int32 id = 2;
repeated Phone number = 3;
}
message Phone{
required string id = 5;
}
person_pb2.py:
# -*- coding: utf-8 -*-
# Generated
import person_pb2
import json
from google.protobuf import json_format
bidResponse = person_pb2.Person()
bidResponse.name = "https://play.google.com\;>""
bidResponse.id = 123
bid_resp_bid = bidResponse.number.add()
bid_resp_bid.id = 'zhehsi'
p1 = bidResponse.SerializeToString()
print(p1)
##
I use python 3.7 and proto 2.5(openrtb2.0),I set the message from the
proto(https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-proto)
in the proto file,you can see the seatbid and bid is repeated, both of them are
array.but the support team said the seatbid and bid must is