Closed
Description
In create_custom_creative example, the method createCreative does not exist according to the API Reference (v201602).
# Call service to create the creative.
creative = creative_service.createCreative(creative)
# Display results.
if creative:
print ('Template creative with id \'%s\', name \'%s\', and type \'%s\' was '
'created and can be previewed at %s.'
% (creative['id'], creative['name'], dfp.DfpClassType(creative),
creative['previewUrl']))
Must be:
# Call service to create the creative.
creative = creative_service.createCreatives(creative)
# Display results.
for creative in creatives:
print ('Template creative with id \'%s\', name \'%s\', and type \'%s\' was '
'created and can be previewed at %s.'
% (creative['id'], creative['name'], dfp.DfpClassType(creative),
creative['previewUrl']))
Metadata
Metadata
Assignees
Labels
No labels