All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.facebook.ads.sdk.serverside.CustomEndpointRequest Maven / Gradle / Ivy

There is a newer version: 3.2.9
Show newest version
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 * All rights reserved.
 * This source code is licensed under the license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.ads.sdk.serverside;

import com.facebook.ads.sdk.APIContext;
import com.facebook.ads.sdk.APIException;
import com.google.common.util.concurrent.ListenableFuture;

import java.util.List;

public interface CustomEndpointRequest {

    public CustomEndpointResponse sendEvent(APIContext context, String pixelId, List data) throws APIException.FailedRequestException;

    public ListenableFuture sendEventAsync(APIContext context, String pixelId, List Data);

    public void setFilter(Filter filter);

    public void setSendToEndpointOnly(boolean sendToEndpointOnly);

    public boolean isSendToEndpointOnly();

    public String getEndpoint();

    interface Filter {
        public boolean shouldSendEvent(Event a);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy