Media

class ad_api.api.sb.Media(account='default', marketplace: Marketplaces = Marketplaces.EU, credentials=None, proxies=None, verify=True, timeout=None, debug=False, access_token=None)

Use this interface to request and retrieve store information. This can be used for Sponsored Brands campaign creation, to pull the store URL information, and for asset registration for Stores.

create_media(self, **kwargs) ApiResponse:

Creates an ephemeral resource (upload location) to upload Media for an Ad Program (SponsoredBrands).

The upload location is short lived and expires in 15 minutes. Once the upload is complete, /media/complete API should be used to notify that the upload is complete.

The upload location only supports PUT HTTP Method to upload the media content. If the upload location expires, API user will get 403 Forbidden response.

Request body
programType (string): [required] [ SponsoredBrands ].
creativeType (string): [required] [ Video ].
Returns:
ApiResponse