Hi Anushri,
Here's an example from the Python client library where we add an image using
the MediaFileService. The same operation via AssetService should be quite
similar, a rough example is below:
asset_operation = client.get_type('AssetOperation', version='v1')
asset = asset_operation.create
asset.image_asset.data.value = image_bytes
Here image_bytes is the raw image data. In the example I linked we retrieve it
by requesting the data from a URL here, but you could also read that data from
a file.
Hope that helps!
Best,
Ben Karl, Google Ads API Team
ref:_00D1U1174p._5001UAqinC:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/ZQHJm000000000000000000000000000000000000000000000PS82U300fzMob8EeQIypKOFZVuKWNA%40sfdc.net.
For more options, visit https://groups.google.com/d/optout.