Skip to content

Create Custom Creative example: createCreative is not a method #108

Closed
@zaiddabaeen

Description

@zaiddabaeen

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions