Ad Contract
GET v25.0/...?fields={fieldname_of_type_AdContract} HTTP/1.1
Host: graph.facebook.com/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'...?fields={fieldname_of_type_AdContract}',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result *//* make the API call */
FB.api(
"...?fields={fieldname_of_type_AdContract}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"...?fields={fieldname_of_type_AdContract}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"...?fields={fieldname_of_type_AdContract}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];| Field | Description |
|---|---|
account_idid | Account ID |
account_mgr_fbidid | FB ID of the Account Manager |
account_mgr_namestring | Account Manager Name |
adops_person_namestring | Ad Ops Person Name |
advertiser_address_fbidnumeric string | FBID of Advertiser address |
advertiser_fbidnumeric string | FBID of Advertiser Organization |
advertiser_namestring | Advertiser Name |
agency_discountfloat | Ad Agency Discount |
agency_namestring | Ad Agency Name |
bill_to_address_fbidnumeric string | FBID of billed Organization address |
bill_to_fbidnumeric string | FBID to Organization billed |
campaign_namestring | Campaign Name |
created_bystring | Created By |
created_dateunsigned int32 | Created Date |
customer_iostring | Customer IO Number |
io_numberunsigned int32 | Insertion Order Number |
io_termsstring | IO Terms |
io_typestring | Insertion Order Type, which is used to identify type of product associated with this IO. Currently, possible values are UNSPECIFIED (0) and RF (1). |
last_updated_bystring | Last Updated By |
last_updated_dateunsigned int32 | Last Updated Date |
max_end_dateunsigned int32 | Max End Date |
mdc_fbidid | FB ID of MDC |
media_plan_numberstring | Media Plan Number |
min_start_dateunsigned int32 | Min Start Date |
msa_contractstring | MSA Contract Number |
payment_termsstring | Payment Terms |
rev_hold_flagbool | Rev Hold Flag |
rev_hold_released_byinteger | User id to release the rev hold |
rev_hold_released_onunsigned int32 | Date to release the rev hold |
salesrep_fbidid | FB ID of the Sales Rep |
salesrep_namestring | Sales Rep Name |
sold_to_address_fbidnumeric string | FBID of sold to Organization address |
sold_to_fbidnumeric string | FBID of Organization sold to |
statusstring | Status |
subverticalstring | Sub-Vertical |
thirdparty_billedunsigned int32 | Third Party Billed |
thirdparty_uidstring | Third Party uid |
thirdparty_urlstring | Third Party URL |
vat_countrystring | VAT Country |
versionunsigned int32 | Version |
verticalstring | Vertical |