Graph API Version

Ad Account Payment Options

Reading

Information regarding existing payment methods and new payment methods that can be added by an ad account.

Examples

Graph API Explorer
GET v2.10/...?fields={fieldname_of_type_AdAccountPaymentOptions} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '...?fields={fieldname_of_type_AdAccountPaymentOptions}'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "...?fields={fieldname_of_type_AdAccountPaymentOptions}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "...?fields={fieldname_of_type_AdAccountPaymentOptions}",
    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_AdAccountPaymentOptions}"
                                      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
country_code
string

The country code of the ad account belongs to.

Required

Fields

FieldDescription

available_altpay_options

list<AdAccountPaymentOption>

The altpay options that can be used to fund the ad account's stored balance.

available_card_types

list<enum>

The type of cards the ad account can add e.g. Visa, JCB.

available_payment_options

list<string>

The type of payments the ad account can add.

existing_payment_methods

list<PaymentMethod>

The payment methods ad account already has on file

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.