Module Expr Str Import alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Dict Str Str Str Str NameLoad Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num If NameLoad body Assign NameStore Call NameLoad ListComp TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str orelse Print Str decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad
N/A N/A This example uploads an image.

To get images, run get_all_images.py.

The LoadFromStorage method is pulling credentials and properties from a
"googleads.yaml" file. By default, it looks for this file in your home
directory. For more information, see the "Caching authentication information"
section of our README.

 N/A base64 googleads adwords N/A IMAGE_FILENAME INSERT_IMAGE_PATH_HERE main N/A N/A client image_filename N/A N/A N/A media_service N/A N/A client GetService MediaService version v201509 N/A N/A open image_filename r image_handle N/A N/A image_data N/A N/A base64 encodestring N/A N/A image_handle read N/A media N/A N/A xsi_type data type Image image_data IMAGE N/A media N/A N/A N/A media_service upload media N/A 0 N/A media N/A N/A dimensions N/A dict N/A N/A N/A entry N/A key N/A entry N/A value N/A entry N/A media N/A dimensions N/A N/A Image with id '%s', dimensions '%sx%s', and MimeType '%s' was uploaded. N/A N/A media N/A mediaId N/A N/A dimensions N/A FULL N/A height N/A N/A dimensions N/A FULL N/A width N/A media N/A mimeType N/A N/A No images were uploaded. N/A N/A N/A __name__ __main__ N/A N/A adwords_client N/A N/A N/A adwords AdWordsClient LoadFromStorage N/A N/A main adwords_client IMAGE_FILENAME