googleads / googleads/googleads-python-lib
mistake on python example of create_custom_creative
Aperta
@christopherseeley ci sta già lavorando.
Dal 14/3/2019.
- Lingua principale
- Python
- Stelle
- 749
- Fork
- 967
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
@grivescorbett
according to the api document, the type of assetByteArray attribute should be base64Binary, but the example set the content of image data directly, as below
`image_data = open(os.path.join(os.path.split(__file__)[0], '..', '..', 'data', medium_rectangle.jpg'), 'r').read()
... ...
'asset': {
'assetByteArray': image_data,
'fileName': 'image%s.jpg' % uuid.uuid4()
}
`
the correct one should be:
` 'asset': {
'assetByteArray': base64.b64encode(image_data),
'fileName': 'image%s.jpg' % uuid.uuid4()
}
`
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.