API:API Network Offer Files(Legacy)

From HasOffers

Contents

Definition

Returns a list of File information for an offer.


Required Parameters


Optional Parameters

Response

Field Definitions


id                 int                  The unique identifier of the file.

offer_id           int                  The unique identifier of the offer.

filename           string               The file's name.

display            string               A friendly version of the file's name.

status             string               The file's status (pending or active).

type               string               The file's type ('file', 'image banner', 'flash banner', or 'email creative').

width              int                  If the file is an image, the width in pixels.

height             int                  If the file is an image, the height in pixels.

url                string               Complete file URL.

creative_code               string               Creative code for offer file including tracking pixels and links.

JSON Example

.


      {
          "success": true,
          "rows": 2,
          "total_rows": 4,
          "data": {
              "offer_files": [
                  {
                      "id": "27",
                      "offer_id": "256",
                      "filename": "300x250-01.swf",
                      "display": "funcards-300x250-01",
                      "status": "active",
                      "type": "flash banner",
                      "width": "300",
                      "height": "250",
                      "url": "http://go2media.org/outbox/offer_files/demo/256/300x250-01.swf"
                  },
                  {
                      "id": "30",
                      "offer_id": "256",
                      "filename": "300x250-02.swf",
                      "display": "funcards-300x250-02",
                      "status": "active",
                      "type": "flash banner",
                      "width": "300",
                      "height": "250",
                      "url": "http://go2media.org/outbox/offer_files/demo/256/300x250-02.swf"
                  }
              ]
          }
      }
          

XML Example

.


      <rsp stat="ok" rows="2" total_rows="4" >
          <offer_file>
              <id>27</id>
              <offer_id>256</offer_id>
              <filename>300x250-01.swf</filename>
              <display>funcards-300x250-01</display>
              <status>active</status>
              <type>flash banner</type>
              <width>300</width>
              <height>250</height>
              <url>http://go2media.org/outbox/offer_files/demo/256/300x250-01.swf</url>
          </offer_file>
          <offer_file>
              <id>30</id>
              <offer_id>256</offer_id>
              <filename>300x250-02.swf</filename>
              <display>funcards-300x250-02</display>
              <status>active</status>
              <type>flash banner</type>
              <width>300</width>
              <height>250</height>
              <url>http://go2media.org/outbox/offer_files/demo/256/300x250-02.swf</url>
          </offer_file>
      </rsp>
          

 
Email this page to a friend or co-worker