...
In the same way as the other endpoints, you have an array of filtering options such as ?campaign.id=x
Code Block | ||
---|---|---|
| ||
{ "@context": "/api/v4/contexts/CampaignPublisher", "@id": "/api/v4/campaign-publishers", "@type": "hydra:Collection", "hydra:member": [ { "@id": "/api/v4/campaign-publishers/984", "@type": "CampaignPublisher", "id": 984, "leadsRequired": 10, "startTs": "2021-09-01T09:55:56+00:00", "endTs": null, "signName": "Star Publisher", "signRole": "Publisher", "signedTs": "2021-09-01T09:55:56+00:00", "signedIp": "89.36.71.125", "updatedTs": "2021-09-01T09:55:56+00:00", "createdTs": "2021-09-01T09:55:40+00:00", "terms": null, "linkHash": "ba9ceff4e807fc7e00d058e0764e365d", "publisher": { "@id": "/api/v4/publishers/5", "@type": "Publisher", "id": 5, "name": "Star Publisher", "email": "test@convertr.io" }, "campaign": { "@id": "/api/v4/campaigns/601", "@type": "Campaign", "status": "Active", "id": 601, "name": "d20210901", "startTs": "2021-08-31T23:00:00+00:00", "endTs": "2021-11-30T23:59:59+00:00", "advertiser": { "@id": "/api/v4/advertisers/319", "@type": "Advertiser", "id": 319, "name": "Test Advertiser", "email": "test@convertr.io" }, "currency": { "@id": "/api/v4/currencies/1", "@type": "Currency", "name": "GBP", "symbol": "£" }, "allowPublisherImportExport": true }, "updatedBy": { "@id": "/api/v4/users/223", "@type": "User", "id": 223, "username": "cvtr.rokas" }, "createdBy": { "@id": "/api/v4/users/223", "@type": "User", "id": 223, "username": "cvtr.rokas" }, "publisherApplication": { "@id": "/api/v4/campaign-publisher-applications/709", "@type": "CampaignPublisherApplication", "id": 709, "status": "Accepted" }, "trackConversion": [], "current": true, "campaignPublisherBands": [ { "@id": "/api/v4/campaign-publisher-bands/1565", "@type": "CampaignPublisherBand", "payout": "5.50", "baseCurrencyPayout": "5.50", "campaignPayoutBand": null, "leadsRequired": null, "statistics": { "earnings": "16.50", "baseCurrencyEarnings": "16.50", " ": 4, "invalidLeads": 1, "cautionLeads": 1, "validLeads": 3, "billableLeads": 3, "deliveredLeads": 3, "heldLeads": 0, "processingLeads": 0 } } ], "uncapped": false, "capsOnBands": false, "statistics": { "earnings": "16.50", "baseCurrencyEarnings": "16.50", "totalLeads": 4, "invalidLeads": 1, "cautionLeads": 1, "validLeads": 3, "billableLeads": 3, "deliveredLeads": 3, "heldLeads": 0, "processingLeads": 0, "impressions": 0, "conversions": 2, "lastConversion": "2021-09-01T10:56:35+01:00", "clicks": 2 }, "contractType": "cpl", "fixedAmountPayout": null, "fixedAmountBasePayout": null, "fixedAmountFulfilled": null, "currentContractStatus": "Active" } ], "hydra:totalItems": 555, "hydra:view": { "@id": "/api/v4/campaign-publishers?latest=true&itemsPerPage=1&page=1", "@type": "hydra:PartialCollectionView", "hydra:first": "/api/v4/campaign-publishers?latest=true&itemsPerPage=1&page=1", "hydra:last": "/api/v4/campaign-publishers?latest=true&itemsPerPage=1&page=555", "hydra:next": "/api/v4/campaign-publishers?latest=true&itemsPerPage=1&page=2" }, "hydra:search": { "@type": "hydra:IriTemplate", "hydra:template": "/api/v4/campaign-publishers{?id,id[],campaign.id,campaign.id[],order[id],createdTs[before],createdTs[strictly_before],createdTs[after],createdTs[strictly_after],updatedTs[before],updatedTs[strictly_before],updatedTs[after],updatedTs[strictly_after],startTs[before],startTs[strictly_before],startTs[after],startTs[strictly_after],endTs[before],endTs[strictly_before],endTs[after],endTs[strictly_after],publisher.id,publisher.id[],publisher.name,publisherApplication.id,publisherApplication.id[],publisherApplication.status,publisherApplication.status[],campaign.name,order[publisher.id],order[publisher.name],order[publisherApplication.id],order[publisherApplication.status],order[campaign.id],order[campaign.name],order[statistics.invalidLeads],order[statistics.validLeads],order[statistics.cautionLeads],order[statistics.heldLeads],order[statistics.processingLeads],order[statistics.billableLeads],order[statistics.impressions],order[statistics.conversions],order[statistics.clicks],campaign.status[],latest,currentContractStatus[],currentContractStatus}", "hydra:variableRepresentation": "BasicRepresentation", "hydra:mapping": [ { "@type": "IriTemplateMapping", "variable": "id", "property": "id", "required": false }, { "@type": "IriTemplateMapping", "variable": "id[]", "property": "id", "required": false }, { "@type": "IriTemplateMapping", "variable": "campaign.id", "property": "campaign.id", "required": false }, { "@type": "IriTemplateMapping", "variable": "campaign.id[]", "property": "campaign.id", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[id]", "property": "id", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdTs[before]", "property": "createdTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdTs[strictly_before]", "property": "createdTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdTs[after]", "property": "createdTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdTs[strictly_after]", "property": "createdTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "updatedTs[before]", "property": "updatedTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "updatedTs[strictly_before]", "property": "updatedTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "updatedTs[after]", "property": "updatedTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "updatedTs[strictly_after]", "property": "updatedTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "startTs[before]", "property": "startTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "startTs[strictly_before]", "property": "startTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "startTs[after]", "property": "startTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "startTs[strictly_after]", "property": "startTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "endTs[before]", "property": "endTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "endTs[strictly_before]", "property": "endTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "endTs[after]", "property": "endTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "endTs[strictly_after]", "property": "endTs", "required": false }, { "@type": "IriTemplateMapping", "variable": "publisher.id", "property": "publisher.id", "required": false }, { "@type": "IriTemplateMapping", "variable": "publisher.id[]", "property": "publisher.id", "required": false }, { "@type": "IriTemplateMapping", "variable": "publisher.name", "property": "publisher.name", "required": false }, { "@type": "IriTemplateMapping", "variable": "publisherApplication.id", "property": "publisherApplication.id", "required": false }, { "@type": "IriTemplateMapping", "variable": "publisherApplication.id[]", "property": "publisherApplication.id", "required": false }, { "@type": "IriTemplateMapping", "variable": "publisherApplication.status", "property": "publisherApplication.status", "required": false }, { "@type": "IriTemplateMapping", "variable": "publisherApplication.status[]", "property": "publisherApplication.status", "required": false }, { "@type": "IriTemplateMapping", "variable": "campaign.name", "property": "campaign.name", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[publisher.id]", "property": "publisher.id", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[publisher.name]", "property": "publisher.name", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[publisherApplication.id]", "property": "publisherApplication.id", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[publisherApplication.status]", "property": "publisherApplication.status", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[campaign.id]", "property": "campaign.id", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[campaign.name]", "property": "campaign.name", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[statistics.invalidLeads]", "property": "statistics.invalidLeads", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[statistics.validLeads]", "property": "statistics.validLeads", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[statistics.cautionLeads]", "property": "statistics.cautionLeads", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[statistics.heldLeads]", "property": "statistics.heldLeads", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[statistics.processingLeads]", "property": "statistics.processingLeads", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[statistics.billableLeads]", "property": "statistics.billableLeads", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[statistics.impressions]", "property": "query", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[statistics.conversions]", "property": "statistics.conversions", "required": false }, { "@type": "IriTemplateMapping", "variable": "order[statistics.clicks]", "property": "statistics.clicks", "required": false }, { "@type": "IriTemplateMapping", "variable": "campaign.status[]", "property": "campaign.status", "required": false }, { "@type": "IriTemplateMapping", "variable": "latest", "property": "latest", "required": false }, { "@type": "IriTemplateMapping", "variable": "currentContractStatus[]", "property": "currentContractStatus", "required": false }, { "@type": "IriTemplateMapping", "variable": "currentContractStatus", "property": "currentContractStatus", "required": false } ] } } |