mistake on python example of create_custom_creative

オープン
#371 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@christopherseeley がすでに取り組んでいます。

2019年3月14日 から。

評価

この issue はまだ評価されていません。

説明

@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()
                   }
     `
主要言語
Python
スター
749
フォーク
967
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleads/googleads-python-lib のほかの issue

googleads/googleads-python-lib の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。