GET api/facebookads/ads

Request Information

URI Parameters

None.

Body Parameters

AgentFacebookAds
NameDescriptionTypeAdditional information
Id

integer

None.

AgentId

integer

None.

InputId

string

None.

GeoLocations

string

None.

Price

decimal number

None.

Duration

integer

None.

InsertedDate

date

None.

AdCreatedDate

date

None.

Error

string

None.

Status

integer

None.

Charge_Id

string

None.

CampaignName

string

None.

CampaignId

integer

None.

CreativeId

integer

None.

DateLastActionTaken

date

None.

AdSetId

integer

None.

AdId

integer

None.

Type

AdType

None.

CreativeMessage

string

None.

CreativeDescription

string

None.

CreativeName

string

None.

PageId

string

None.

ProductSetId

integer

None.

IsActive

boolean

None.

CatalogId

integer

None.

AdCategoryId

integer

None.

LeadFormId

integer

None.

EndDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "AgentId": 2,
  "InputId": "sample string 3",
  "GeoLocations": "sample string 4",
  "Price": 5.0,
  "Duration": 6,
  "InsertedDate": "2021-07-31T05:18:16.0466649+00:00",
  "AdCreatedDate": "2021-07-31T05:18:16.0466649+00:00",
  "Error": "sample string 7",
  "Status": 8,
  "Charge_Id": "sample string 9",
  "CampaignName": "sample string 10",
  "CampaignId": 1,
  "CreativeId": 1,
  "DateLastActionTaken": "2021-07-31T05:18:16.0466649+00:00",
  "AdSetId": 1,
  "AdId": 1,
  "Type": 1,
  "CreativeMessage": "sample string 11",
  "CreativeDescription": "sample string 12",
  "CreativeName": "sample string 13",
  "PageId": "sample string 14",
  "ProductSetId": 1,
  "IsActive": true,
  "CatalogId": 1,
  "AdCategoryId": 1,
  "LeadFormId": 1,
  "EndDate": "2021-07-31T05:18:16.0466649+00:00"
}

text/html

Sample:
{"Id":1,"AgentId":2,"InputId":"sample string 3","GeoLocations":"sample string 4","Price":5.0,"Duration":6,"InsertedDate":"2021-07-31T05:18:16.0466649+00:00","AdCreatedDate":"2021-07-31T05:18:16.0466649+00:00","Error":"sample string 7","Status":8,"Charge_Id":"sample string 9","CampaignName":"sample string 10","CampaignId":1,"CreativeId":1,"DateLastActionTaken":"2021-07-31T05:18:16.0466649+00:00","AdSetId":1,"AdId":1,"Type":1,"CreativeMessage":"sample string 11","CreativeDescription":"sample string 12","CreativeName":"sample string 13","PageId":"sample string 14","ProductSetId":1,"IsActive":true,"CatalogId":1,"AdCategoryId":1,"LeadFormId":1,"EndDate":"2021-07-31T05:18:16.0466649+00:00"}

application/xml, text/xml

Sample:
<AgentFacebookAds xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
  <AdCategoryId>1</AdCategoryId>
  <AdCreatedDate>2021-07-31T05:18:16.0466649+00:00</AdCreatedDate>
  <AdId>1</AdId>
  <AdSetId>1</AdSetId>
  <AgentId>2</AgentId>
  <CampaignId>1</CampaignId>
  <CampaignName>sample string 10</CampaignName>
  <CatalogId>1</CatalogId>
  <Charge_Id>sample string 9</Charge_Id>
  <CreativeDescription>sample string 12</CreativeDescription>
  <CreativeId>1</CreativeId>
  <CreativeMessage>sample string 11</CreativeMessage>
  <CreativeName>sample string 13</CreativeName>
  <DateLastActionTaken>2021-07-31T05:18:16.0466649+00:00</DateLastActionTaken>
  <Duration>6</Duration>
  <EndDate>2021-07-31T05:18:16.0466649+00:00</EndDate>
  <Error>sample string 7</Error>
  <GeoLocations>sample string 4</GeoLocations>
  <Id>1</Id>
  <InputId>sample string 3</InputId>
  <InsertedDate>2021-07-31T05:18:16.0466649+00:00</InsertedDate>
  <IsActive>true</IsActive>
  <LeadFormId>1</LeadFormId>
  <PageId>sample string 14</PageId>
  <Price>5</Price>
  <ProductSetId>1</ProductSetId>
  <Status>8</Status>
  <Type>Post</Type>
</AgentFacebookAds>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AgentFacebookAds'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.