Мy预览代码:
creative = AdCreative(6064648xxxxxx)
ad_preview = creative.get_previews(
params={'ad_format': AdPreview.AdFormat.desktop_feed_standard}
)
答案 0 :(得分:0)
您可以在广告素材级别进行广告预览,然后打印广告预览。
creative = AdCreative('60xxxxxxxx')
params = {
'ad_format': AdPreview.AdFormat.desktop_feed_standard,
}
ad_preview = creative.get_previews(params=params)
for p in ad_preview:
preview = p["body"]
preview = str(preview)
preview = preview.replace("amp;", "")
preview = (preview.split('src="')[1].split('" width')[0])
print preview
使用此代码更改广告素材ID。