Graph API Version

Ad Account Prepay Details

Reading

Information regarding ad account prepay details.

Example

Graph API Explorer
GET v2.11/...?fields={fieldname_of_type_AdAccountPrepayDetails} 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_AdAccountPrepayDetails}',
    '{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_AdAccountPrepayDetails}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "...?fields={fieldname_of_type_AdAccountPrepayDetails}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"...?fields={fieldname_of_type_AdAccountPrepayDetails}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

NameDescription
budget_amount
numeric string

Budget amount of the ad to be created.

budget_currency
ISO 4217 Currency Code

Currency for the budget the ad to be created.

budget_type
enum{daily_budget, lifetime_budget}

Budget type for the ad to be created: daily or lifetime.

credential_id
UTF-8 encoded string

Encoded credential id of the payment method for prepay.

Required
payment_method_type
enum {UNKNOWN, CC, NEW_CC, ADYEN, LIVEGAMER, PAYU}

Type of the payment method option.

type
enum {UNKNOWN, CC, NEW_CC, ADYEN, LIVEGAMER, PAYU}
Default value: cc

Deprecated. Type of the payment method option.

Fields

FieldDescription

default_funding_amount

Default funding amount for this prepay ad account.

max_acceptable_amount

Maximum acceptable amount for funding this prepay ad account.

min_acceptable_amount

Minimum acceptable amount for funding this prepay ad account.

should_collect_business_details

bool

Whether to collect business detail information for this ad account.

Edges

No edges

Creating

You can't perform this operation on this endpoint.

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.