These are the operations in python

headlinesList = []
descriptionList = []
imagesList = []

asset = {
    'asset': {
        'xsi_type': 'TextAsset',
        'assetText': "dfdggdgs"
    },
    'pinnedField': None
}

headlinesList.append(asset)

asset = {
    'asset': {
        'xsi_type': 'TextAsset',
        'assetText': "dfdggdgs"
    },
    'pinnedField': None
}

descriptionList.append(asset)


image_data = self.create_b64_from_image(media['url'])

asset = {
    'asset': {
        'xsi_type': 'ImageAsset',
        'imageData': image_data
    }
}

imagesList.append(asset)

operation = {
    'xsi_type': 'AdGroupAdOperation',
    'operator': 'ADD',
    'operand': {
        'xsi_type': 'AdGroupAd',
        'adGroupId': ad_group_id,
        'ad': {
            'xsi_type': 'UniversalAppAd',
            'headlines': headlinesList,
            'descriptions': descriptionList,
            'images': imagesList
        },
        'status': 'ENABLED'
    }
}


When i try create a UniversalAppAd with images i did receive an error 
REQUIRED.ERROR assetId is Required. which assetId? if i want create a 
ImageAsset why should put the assetId, how get assetId?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/268c6bda-4333-4c02-89f4-2ef187c5bf99%40googlegroups.com.

Reply via email to