Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.facebook.ads.sdk.Application Maven / Gradle / Ivy
/**
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Facebook.
*
* As with any software that integrates with the Facebook platform, your use
* of this software is subject to the Facebook Developer Principles and
* Policies [http://developers.facebook.com/policy/]. This copyright notice
* shall be included in all copies or substantial portions of the software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
*/
package com.facebook.ads.sdk;
import java.io.File;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.common.base.Function;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.SettableFuture;
import com.google.gson.JsonObject;
import com.google.gson.JsonArray;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import com.facebook.ads.sdk.APIException.MalformedResponseException;
/**
* This class is auto-generated.
*
* For any issues or feature requests related to this class, please let us know
* on github and we'll fix in our codegen framework. We'll not be able to accept
* pull request for this class.
*
*/
public class Application extends APINode {
@SerializedName("an_ad_space_limit")
private Long mAnAdSpaceLimit = null;
@SerializedName("an_platforms")
private List mAnPlatforms = null;
@SerializedName("android_key_hash")
private List mAndroidKeyHash = null;
@SerializedName("android_sdk_error_categories")
private List mAndroidSdkErrorCategories = null;
@SerializedName("app_domains")
private List mAppDomains = null;
@SerializedName("app_events_feature_bitmask")
private Long mAppEventsFeatureBitmask = null;
@SerializedName("app_events_session_timeout")
private Long mAppEventsSessionTimeout = null;
@SerializedName("app_install_tracked")
private Boolean mAppInstallTracked = null;
@SerializedName("app_name")
private String mAppName = null;
@SerializedName("app_signals_binding_ios")
private List mAppSignalsBindingIos = null;
@SerializedName("app_type")
private Long mAppType = null;
@SerializedName("auth_dialog_data_help_url")
private String mAuthDialogDataHelpUrl = null;
@SerializedName("auth_dialog_headline")
private String mAuthDialogHeadline = null;
@SerializedName("auth_dialog_perms_explanation")
private String mAuthDialogPermsExplanation = null;
@SerializedName("auth_referral_default_activity_privacy")
private String mAuthReferralDefaultActivityPrivacy = null;
@SerializedName("auth_referral_enabled")
private Long mAuthReferralEnabled = null;
@SerializedName("auth_referral_extended_perms")
private List mAuthReferralExtendedPerms = null;
@SerializedName("auth_referral_friend_perms")
private List mAuthReferralFriendPerms = null;
@SerializedName("auth_referral_response_type")
private String mAuthReferralResponseType = null;
@SerializedName("auth_referral_user_perms")
private List mAuthReferralUserPerms = null;
@SerializedName("auto_event_mapping_android")
private List mAutoEventMappingAndroid = null;
@SerializedName("auto_event_mapping_ios")
private List mAutoEventMappingIos = null;
@SerializedName("auto_event_setup_enabled")
private Boolean mAutoEventSetupEnabled = null;
@SerializedName("canvas_fluid_height")
private Boolean mCanvasFluidHeight = null;
@SerializedName("canvas_fluid_width")
private Long mCanvasFluidWidth = null;
@SerializedName("canvas_url")
private String mCanvasUrl = null;
@SerializedName("category")
private String mCategory = null;
@SerializedName("client_config")
private Map mClientConfig = null;
@SerializedName("company")
private String mCompany = null;
@SerializedName("configured_ios_sso")
private Boolean mConfiguredIosSso = null;
@SerializedName("contact_email")
private String mContactEmail = null;
@SerializedName("context")
private Object mContext = null;
@SerializedName("created_time")
private String mCreatedTime = null;
@SerializedName("creator_uid")
private String mCreatorUid = null;
@SerializedName("daily_active_users")
private String mDailyActiveUsers = null;
@SerializedName("daily_active_users_rank")
private Long mDailyActiveUsersRank = null;
@SerializedName("deauth_callback_url")
private String mDeauthCallbackUrl = null;
@SerializedName("default_share_mode")
private String mDefaultShareMode = null;
@SerializedName("description")
private String mDescription = null;
@SerializedName("financial_id")
private String mFinancialId = null;
@SerializedName("gdpv4_chrome_custom_tabs_enabled")
private Boolean mGdpv4ChromeCustomTabsEnabled = null;
@SerializedName("gdpv4_enabled")
private Boolean mGdpv4Enabled = null;
@SerializedName("gdpv4_nux_content")
private String mGdpv4NuxContent = null;
@SerializedName("gdpv4_nux_enabled")
private Boolean mGdpv4NuxEnabled = null;
@SerializedName("has_messenger_product")
private Boolean mHasMessengerProduct = null;
@SerializedName("hosting_url")
private String mHostingUrl = null;
@SerializedName("icon_url")
private String mIconUrl = null;
@SerializedName("id")
private String mId = null;
@SerializedName("ios_bundle_id")
private List mIosBundleId = null;
@SerializedName("ios_sdk_dialog_flows")
private Object mIosSdkDialogFlows = null;
@SerializedName("ios_sdk_error_categories")
private List mIosSdkErrorCategories = null;
@SerializedName("ios_sfvc_attr")
private Boolean mIosSfvcAttr = null;
@SerializedName("ios_supports_native_proxy_auth_flow")
private Boolean mIosSupportsNativeProxyAuthFlow = null;
@SerializedName("ios_supports_system_auth")
private Boolean mIosSupportsSystemAuth = null;
@SerializedName("ipad_app_store_id")
private String mIpadAppStoreId = null;
@SerializedName("iphone_app_store_id")
private String mIphoneAppStoreId = null;
@SerializedName("is_viewer_admin")
private Boolean mIsViewerAdmin = null;
@SerializedName("latest_sdk_version")
private Object mLatestSdkVersion = null;
@SerializedName("link")
private String mLink = null;
@SerializedName("logging_token")
private String mLoggingToken = null;
@SerializedName("login_secret")
private String mLoginSecret = null;
@SerializedName("logo_url")
private String mLogoUrl = null;
@SerializedName("migrations")
private Map mMigrations = null;
@SerializedName("mobile_profile_section_url")
private String mMobileProfileSectionUrl = null;
@SerializedName("mobile_web_url")
private String mMobileWebUrl = null;
@SerializedName("monthly_active_users")
private String mMonthlyActiveUsers = null;
@SerializedName("monthly_active_users_rank")
private Long mMonthlyActiveUsersRank = null;
@SerializedName("name")
private String mName = null;
@SerializedName("namespace")
private String mNamespace = null;
@SerializedName("object_store_urls")
private Object mObjectStoreUrls = null;
@SerializedName("page_tab_default_name")
private String mPageTabDefaultName = null;
@SerializedName("page_tab_url")
private String mPageTabUrl = null;
@SerializedName("photo_url")
private String mPhotoUrl = null;
@SerializedName("privacy_policy_url")
private String mPrivacyPolicyUrl = null;
@SerializedName("profile_section_url")
private String mProfileSectionUrl = null;
@SerializedName("property_id")
private String mPropertyId = null;
@SerializedName("real_time_mode_devices")
private List mRealTimeModeDevices = null;
@SerializedName("restrictions")
private Object mRestrictions = null;
@SerializedName("sdk_update_message")
private String mSdkUpdateMessage = null;
@SerializedName("seamless_login")
private Long mSeamlessLogin = null;
@SerializedName("secure_canvas_url")
private String mSecureCanvasUrl = null;
@SerializedName("secure_page_tab_url")
private String mSecurePageTabUrl = null;
@SerializedName("server_ip_whitelist")
private String mServerIpWhitelist = null;
@SerializedName("smart_login_bookmark_icon_url")
private String mSmartLoginBookmarkIconUrl = null;
@SerializedName("smart_login_menu_icon_url")
private String mSmartLoginMenuIconUrl = null;
@SerializedName("social_discovery")
private Long mSocialDiscovery = null;
@SerializedName("subcategory")
private String mSubcategory = null;
@SerializedName("supported_platforms")
private List mSupportedPlatforms = null;
@SerializedName("supports_apprequests_fast_app_switch")
private Object mSupportsApprequestsFastAppSwitch = null;
@SerializedName("supports_attribution")
private Boolean mSupportsAttribution = null;
@SerializedName("supports_implicit_sdk_logging")
private Boolean mSupportsImplicitSdkLogging = null;
@SerializedName("suppress_native_ios_gdp")
private Boolean mSuppressNativeIosGdp = null;
@SerializedName("terms_of_service_url")
private String mTermsOfServiceUrl = null;
@SerializedName("url_scheme_suffix")
private String mUrlSchemeSuffix = null;
@SerializedName("user_support_email")
private String mUserSupportEmail = null;
@SerializedName("user_support_url")
private String mUserSupportUrl = null;
@SerializedName("website_url")
private String mWebsiteUrl = null;
@SerializedName("weekly_active_users")
private String mWeeklyActiveUsers = null;
protected static Gson gson = null;
Application() {
}
public Application(Long id, APIContext context) {
this(id.toString(), context);
}
public Application(String id, APIContext context) {
this.mId = id;
this.context = context;
}
public Application fetch() throws APIException{
Application newInstance = fetchById(this.getPrefixedId().toString(), this.context);
this.copyFrom(newInstance);
return this;
}
public static Application fetchById(Long id, APIContext context) throws APIException {
return fetchById(id.toString(), context);
}
public static ListenableFuture fetchByIdAsync(Long id, APIContext context) throws APIException {
return fetchByIdAsync(id.toString(), context);
}
public static Application fetchById(String id, APIContext context) throws APIException {
return
new APIRequestGet(id, context)
.requestAllFields()
.execute();
}
public static ListenableFuture fetchByIdAsync(String id, APIContext context) throws APIException {
return
new APIRequestGet(id, context)
.requestAllFields()
.executeAsync();
}
public static APINodeList fetchByIds(List ids, List fields, APIContext context) throws APIException {
return (APINodeList)(
new APIRequest(context, "", "/", "GET", Application.getParser())
.setParam("ids", APIRequest.joinStringList(ids))
.requestFields(fields)
.execute()
);
}
public static ListenableFuture> fetchByIdsAsync(List ids, List fields, APIContext context) throws APIException {
return
new APIRequest(context, "", "/", "GET", Application.getParser())
.setParam("ids", APIRequest.joinStringList(ids))
.requestFields(fields)
.executeAsyncBase();
}
private String getPrefixedId() {
return getId();
}
public String getId() {
return getFieldId().toString();
}
public static Application loadJSON(String json, APIContext context, String header) {
Application application = getGson().fromJson(json, Application.class);
if (context.isDebug()) {
JsonParser parser = new JsonParser();
JsonElement o1 = parser.parse(json);
JsonElement o2 = parser.parse(application.toString());
if (o1.getAsJsonObject().get("__fb_trace_id__") != null) {
o2.getAsJsonObject().add("__fb_trace_id__", o1.getAsJsonObject().get("__fb_trace_id__"));
}
if (!o1.equals(o2)) {
context.log("[Warning] When parsing response, object is not consistent with JSON:");
context.log("[JSON]" + o1);
context.log("[Object]" + o2);
};
}
application.context = context;
application.rawValue = json;
application.header = header;
return application;
}
public static APINodeList parseResponse(String json, APIContext context, APIRequest request, String header) throws MalformedResponseException {
APINodeList applications = new APINodeList(request, json, header);
JsonArray arr;
JsonObject obj;
JsonParser parser = new JsonParser();
Exception exception = null;
try{
JsonElement result = parser.parse(json);
if (result.isJsonArray()) {
// First, check if it's a pure JSON Array
arr = result.getAsJsonArray();
for (int i = 0; i < arr.size(); i++) {
applications.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header));
};
return applications;
} else if (result.isJsonObject()) {
obj = result.getAsJsonObject();
if (obj.has("data")) {
if (obj.has("paging")) {
JsonObject paging = obj.get("paging").getAsJsonObject();
if (paging.has("cursors")) {
JsonObject cursors = paging.get("cursors").getAsJsonObject();
String before = cursors.has("before") ? cursors.get("before").getAsString() : null;
String after = cursors.has("after") ? cursors.get("after").getAsString() : null;
applications.setCursors(before, after);
}
String previous = paging.has("previous") ? paging.get("previous").getAsString() : null;
String next = paging.has("next") ? paging.get("next").getAsString() : null;
applications.setPaging(previous, next);
if (context.hasAppSecret()) {
applications.setAppSecret(context.getAppSecretProof());
}
}
if (obj.get("data").isJsonArray()) {
// Second, check if it's a JSON array with "data"
arr = obj.get("data").getAsJsonArray();
for (int i = 0; i < arr.size(); i++) {
applications.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header));
};
} else if (obj.get("data").isJsonObject()) {
// Third, check if it's a JSON object with "data"
obj = obj.get("data").getAsJsonObject();
boolean isRedownload = false;
for (String s : new String[]{"campaigns", "adsets", "ads"}) {
if (obj.has(s)) {
isRedownload = true;
obj = obj.getAsJsonObject(s);
for (Map.Entry entry : obj.entrySet()) {
applications.add(loadJSON(entry.getValue().toString(), context, header));
}
break;
}
}
if (!isRedownload) {
applications.add(loadJSON(obj.toString(), context, header));
}
}
return applications;
} else if (obj.has("images")) {
// Fourth, check if it's a map of image objects
obj = obj.get("images").getAsJsonObject();
for (Map.Entry entry : obj.entrySet()) {
applications.add(loadJSON(entry.getValue().toString(), context, header));
}
return applications;
} else {
// Fifth, check if it's an array of objects indexed by id
boolean isIdIndexedArray = true;
for (Map.Entry entry : obj.entrySet()) {
String key = (String) entry.getKey();
if (key.equals("__fb_trace_id__")) {
continue;
}
JsonElement value = (JsonElement) entry.getValue();
if (
value != null &&
value.isJsonObject() &&
value.getAsJsonObject().has("id") &&
value.getAsJsonObject().get("id") != null &&
value.getAsJsonObject().get("id").getAsString().equals(key)
) {
applications.add(loadJSON(value.toString(), context, header));
} else {
isIdIndexedArray = false;
break;
}
}
if (isIdIndexedArray) {
return applications;
}
// Sixth, check if it's pure JsonObject
applications.clear();
applications.add(loadJSON(json, context, header));
return applications;
}
}
} catch (Exception e) {
exception = e;
}
throw new MalformedResponseException(
"Invalid response string: " + json,
exception
);
}
@Override
public APIContext getContext() {
return context;
}
@Override
public void setContext(APIContext context) {
this.context = context;
}
@Override
public String toString() {
return getGson().toJson(this);
}
public APIRequestCreateLocalServiceBookingTest createLocalServiceBookingTest() {
return new APIRequestCreateLocalServiceBookingTest(this.getPrefixedId().toString(), context);
}
public APIRequestDeleteAccounts deleteAccounts() {
return new APIRequestDeleteAccounts(this.getPrefixedId().toString(), context);
}
public APIRequestGetAccounts getAccounts() {
return new APIRequestGetAccounts(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAccount createAccount() {
return new APIRequestCreateAccount(this.getPrefixedId().toString(), context);
}
public APIRequestGetAchievements getAchievements() {
return new APIRequestGetAchievements(this.getPrefixedId().toString(), context);
}
public APIRequestCreateActivity createActivity() {
return new APIRequestCreateActivity(this.getPrefixedId().toString(), context);
}
public APIRequestGetAdNetworkAnalytics getAdNetworkAnalytics() {
return new APIRequestGetAdNetworkAnalytics(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAdNetworkAnalytic createAdNetworkAnalytic() {
return new APIRequestCreateAdNetworkAnalytic(this.getPrefixedId().toString(), context);
}
public APIRequestGetAdNetworkAnalyticsResults getAdNetworkAnalyticsResults() {
return new APIRequestGetAdNetworkAnalyticsResults(this.getPrefixedId().toString(), context);
}
public APIRequestGetAgencies getAgencies() {
return new APIRequestGetAgencies(this.getPrefixedId().toString(), context);
}
public APIRequestGetAndroidDialogConfigs getAndroidDialogConfigs() {
return new APIRequestGetAndroidDialogConfigs(this.getPrefixedId().toString(), context);
}
public APIRequestGetAppEventTypes getAppEventTypes() {
return new APIRequestGetAppEventTypes(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAppIndexing createAppIndexing() {
return new APIRequestCreateAppIndexing(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAppIndexingSession createAppIndexingSession() {
return new APIRequestCreateAppIndexingSession(this.getPrefixedId().toString(), context);
}
public APIRequestGetAppInsights getAppInsights() {
return new APIRequestGetAppInsights(this.getPrefixedId().toString(), context);
}
public APIRequestGetAppInstalledGroups getAppInstalledGroups() {
return new APIRequestGetAppInstalledGroups(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAppLinkHost createAppLinkHost() {
return new APIRequestCreateAppLinkHost(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAppPushDeviceToken createAppPushDeviceToken() {
return new APIRequestCreateAppPushDeviceToken(this.getPrefixedId().toString(), context);
}
public APIRequestGetAppAssets getAppAssets() {
return new APIRequestGetAppAssets(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAsset createAsset() {
return new APIRequestCreateAsset(this.getPrefixedId().toString(), context);
}
public APIRequestGetAudiences getAudiences() {
return new APIRequestGetAudiences(this.getPrefixedId().toString(), context);
}
public APIRequestDeleteAuthorizedAdAccounts deleteAuthorizedAdAccounts() {
return new APIRequestDeleteAuthorizedAdAccounts(this.getPrefixedId().toString(), context);
}
public APIRequestGetAuthorizedAdAccounts getAuthorizedAdAccounts() {
return new APIRequestGetAuthorizedAdAccounts(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAuthorizedAdAccount createAuthorizedAdAccount() {
return new APIRequestCreateAuthorizedAdAccount(this.getPrefixedId().toString(), context);
}
public APIRequestDeleteBanned deleteBanned() {
return new APIRequestDeleteBanned(this.getPrefixedId().toString(), context);
}
public APIRequestGetBanned getBanned() {
return new APIRequestGetBanned(this.getPrefixedId().toString(), context);
}
public APIRequestCreateBanned createBanned() {
return new APIRequestCreateBanned(this.getPrefixedId().toString(), context);
}
public APIRequestGetButtonAutoDetectionDeviceSelection getButtonAutoDetectionDeviceSelection() {
return new APIRequestGetButtonAutoDetectionDeviceSelection(this.getPrefixedId().toString(), context);
}
public APIRequestCreateButtonIndexing createButtonIndexing() {
return new APIRequestCreateButtonIndexing(this.getPrefixedId().toString(), context);
}
public APIRequestCreateCodelessEventBinding createCodelessEventBinding() {
return new APIRequestCreateCodelessEventBinding(this.getPrefixedId().toString(), context);
}
public APIRequestCreateCodelessEventMapping createCodelessEventMapping() {
return new APIRequestCreateCodelessEventMapping(this.getPrefixedId().toString(), context);
}
public APIRequestGetConnections getConnections() {
return new APIRequestGetConnections(this.getPrefixedId().toString(), context);
}
public APIRequestGetCustomAudienceThirdPartyId getCustomAudienceThirdPartyId() {
return new APIRequestGetCustomAudienceThirdPartyId(this.getPrefixedId().toString(), context);
}
public APIRequestGetDaChecks getDaChecks() {
return new APIRequestGetDaChecks(this.getPrefixedId().toString(), context);
}
public APIRequestGetDirectDeals getDirectDeals() {
return new APIRequestGetDirectDeals(this.getPrefixedId().toString(), context);
}
public APIRequestGetEvents getEvents() {
return new APIRequestGetEvents(this.getPrefixedId().toString(), context);
}
public APIRequestGetFoodDrinkOrders getFoodDrinkOrders() {
return new APIRequestGetFoodDrinkOrders(this.getPrefixedId().toString(), context);
}
public APIRequestCreateFoodDrinkOrder createFoodDrinkOrder() {
return new APIRequestCreateFoodDrinkOrder(this.getPrefixedId().toString(), context);
}
public APIRequestGetFullAppIndexingInfos getFullAppIndexingInfos() {
return new APIRequestGetFullAppIndexingInfos(this.getPrefixedId().toString(), context);
}
public APIRequestCreateFullAppIndexingInfo createFullAppIndexingInfo() {
return new APIRequestCreateFullAppIndexingInfo(this.getPrefixedId().toString(), context);
}
public APIRequestGetInsightsEventLabels getInsightsEventLabels() {
return new APIRequestGetInsightsEventLabels(this.getPrefixedId().toString(), context);
}
public APIRequestGetIosDialogConfigs getIosDialogConfigs() {
return new APIRequestGetIosDialogConfigs(this.getPrefixedId().toString(), context);
}
public APIRequestCreateLeaderboardsCreate createLeaderboardsCreate() {
return new APIRequestCreateLeaderboardsCreate(this.getPrefixedId().toString(), context);
}
public APIRequestCreateLeaderboardsDeleteEntry createLeaderboardsDeleteEntry() {
return new APIRequestCreateLeaderboardsDeleteEntry(this.getPrefixedId().toString(), context);
}
public APIRequestCreateLeaderboardsReset createLeaderboardsReset() {
return new APIRequestCreateLeaderboardsReset(this.getPrefixedId().toString(), context);
}
public APIRequestCreateLeaderboardsSetScore createLeaderboardsSetScore() {
return new APIRequestCreateLeaderboardsSetScore(this.getPrefixedId().toString(), context);
}
public APIRequestGetLocalServiceBookingConfig getLocalServiceBookingConfig() {
return new APIRequestGetLocalServiceBookingConfig(this.getPrefixedId().toString(), context);
}
public APIRequestCreateLocalServiceBookingConfig createLocalServiceBookingConfig() {
return new APIRequestCreateLocalServiceBookingConfig(this.getPrefixedId().toString(), context);
}
public APIRequestCreateMachine createMachine() {
return new APIRequestCreateMachine(this.getPrefixedId().toString(), context);
}
public APIRequestCreateMmpAuditing createMmpAuditing() {
return new APIRequestCreateMmpAuditing(this.getPrefixedId().toString(), context);
}
public APIRequestGetMobileSdkGk getMobileSdkGk() {
return new APIRequestGetMobileSdkGk(this.getPrefixedId().toString(), context);
}
public APIRequestGetMoodsForApplication getMoodsForApplication() {
return new APIRequestGetMoodsForApplication(this.getPrefixedId().toString(), context);
}
public APIRequestGetObjectTypes getObjectTypes() {
return new APIRequestGetObjectTypes(this.getPrefixedId().toString(), context);
}
public APIRequestGetObjects getObjects() {
return new APIRequestGetObjects(this.getPrefixedId().toString(), context);
}
public APIRequestCreateObject createObject() {
return new APIRequestCreateObject(this.getPrefixedId().toString(), context);
}
public APIRequestCreateOccludesPopup createOccludesPopup() {
return new APIRequestCreateOccludesPopup(this.getPrefixedId().toString(), context);
}
public APIRequestGetOzoneRelease getOzoneRelease() {
return new APIRequestGetOzoneRelease(this.getPrefixedId().toString(), context);
}
public APIRequestCreateOzoneRelease createOzoneRelease() {
return new APIRequestCreateOzoneRelease(this.getPrefixedId().toString(), context);
}
public APIRequestDeletePaymentCurrencies deletePaymentCurrencies() {
return new APIRequestDeletePaymentCurrencies(this.getPrefixedId().toString(), context);
}
public APIRequestCreatePaymentCurrency createPaymentCurrency() {
return new APIRequestCreatePaymentCurrency(this.getPrefixedId().toString(), context);
}
public APIRequestDeletePaymentsTestUsers deletePaymentsTestUsers() {
return new APIRequestDeletePaymentsTestUsers(this.getPrefixedId().toString(), context);
}
public APIRequestGetPaymentsTestUsers getPaymentsTestUsers() {
return new APIRequestGetPaymentsTestUsers(this.getPrefixedId().toString(), context);
}
public APIRequestCreatePaymentsTestUser createPaymentsTestUser() {
return new APIRequestCreatePaymentsTestUser(this.getPrefixedId().toString(), context);
}
public APIRequestGetPermissions getPermissions() {
return new APIRequestGetPermissions(this.getPrefixedId().toString(), context);
}
public APIRequestCreatePhoto createPhoto() {
return new APIRequestCreatePhoto(this.getPrefixedId().toString(), context);
}
public APIRequestGetPicture getPicture() {
return new APIRequestGetPicture(this.getPrefixedId().toString(), context);
}
public APIRequestGetProducts getProducts() {
return new APIRequestGetProducts(this.getPrefixedId().toString(), context);
}
public APIRequestGetPurchases getPurchases() {
return new APIRequestGetPurchases(this.getPrefixedId().toString(), context);
}
public APIRequestDeleteRoles deleteRoles() {
return new APIRequestDeleteRoles(this.getPrefixedId().toString(), context);
}
public APIRequestGetRoles getRoles() {
return new APIRequestGetRoles(this.getPrefixedId().toString(), context);
}
public APIRequestCreateRole createRole() {
return new APIRequestCreateRole(this.getPrefixedId().toString(), context);
}
public APIRequestCreateStagingResource createStagingResource() {
return new APIRequestCreateStagingResource(this.getPrefixedId().toString(), context);
}
public APIRequestGetSubscribedDomains getSubscribedDomains() {
return new APIRequestGetSubscribedDomains(this.getPrefixedId().toString(), context);
}
public APIRequestCreateSubscribedDomain createSubscribedDomain() {
return new APIRequestCreateSubscribedDomain(this.getPrefixedId().toString(), context);
}
public APIRequestGetSubscribedDomainsPhishing getSubscribedDomainsPhishing() {
return new APIRequestGetSubscribedDomainsPhishing(this.getPrefixedId().toString(), context);
}
public APIRequestCreateSubscribedDomainsPhishing createSubscribedDomainsPhishing() {
return new APIRequestCreateSubscribedDomainsPhishing(this.getPrefixedId().toString(), context);
}
public APIRequestDeleteSubscriptions deleteSubscriptions() {
return new APIRequestDeleteSubscriptions(this.getPrefixedId().toString(), context);
}
public APIRequestCreateSubscription createSubscription() {
return new APIRequestCreateSubscription(this.getPrefixedId().toString(), context);
}
public APIRequestCreateSubscriptionsSample createSubscriptionsSample() {
return new APIRequestCreateSubscriptionsSample(this.getPrefixedId().toString(), context);
}
public APIRequestCreateUpload createUpload() {
return new APIRequestCreateUpload(this.getPrefixedId().toString(), context);
}
public APIRequestCreateUserProperty createUserProperty() {
return new APIRequestCreateUserProperty(this.getPrefixedId().toString(), context);
}
public APIRequestGet get() {
return new APIRequestGet(this.getPrefixedId().toString(), context);
}
public APIRequestUpdate update() {
return new APIRequestUpdate(this.getPrefixedId().toString(), context);
}
public Long getFieldAnAdSpaceLimit() {
return mAnAdSpaceLimit;
}
public List getFieldAnPlatforms() {
return mAnPlatforms;
}
public List getFieldAndroidKeyHash() {
return mAndroidKeyHash;
}
public List getFieldAndroidSdkErrorCategories() {
return mAndroidSdkErrorCategories;
}
public List getFieldAppDomains() {
return mAppDomains;
}
public Long getFieldAppEventsFeatureBitmask() {
return mAppEventsFeatureBitmask;
}
public Long getFieldAppEventsSessionTimeout() {
return mAppEventsSessionTimeout;
}
public Boolean getFieldAppInstallTracked() {
return mAppInstallTracked;
}
public String getFieldAppName() {
return mAppName;
}
public List getFieldAppSignalsBindingIos() {
return mAppSignalsBindingIos;
}
public Long getFieldAppType() {
return mAppType;
}
public String getFieldAuthDialogDataHelpUrl() {
return mAuthDialogDataHelpUrl;
}
public String getFieldAuthDialogHeadline() {
return mAuthDialogHeadline;
}
public String getFieldAuthDialogPermsExplanation() {
return mAuthDialogPermsExplanation;
}
public String getFieldAuthReferralDefaultActivityPrivacy() {
return mAuthReferralDefaultActivityPrivacy;
}
public Long getFieldAuthReferralEnabled() {
return mAuthReferralEnabled;
}
public List getFieldAuthReferralExtendedPerms() {
return mAuthReferralExtendedPerms;
}
public List getFieldAuthReferralFriendPerms() {
return mAuthReferralFriendPerms;
}
public String getFieldAuthReferralResponseType() {
return mAuthReferralResponseType;
}
public List getFieldAuthReferralUserPerms() {
return mAuthReferralUserPerms;
}
public List getFieldAutoEventMappingAndroid() {
return mAutoEventMappingAndroid;
}
public List getFieldAutoEventMappingIos() {
return mAutoEventMappingIos;
}
public Boolean getFieldAutoEventSetupEnabled() {
return mAutoEventSetupEnabled;
}
public Boolean getFieldCanvasFluidHeight() {
return mCanvasFluidHeight;
}
public Long getFieldCanvasFluidWidth() {
return mCanvasFluidWidth;
}
public String getFieldCanvasUrl() {
return mCanvasUrl;
}
public String getFieldCategory() {
return mCategory;
}
public Map getFieldClientConfig() {
return mClientConfig;
}
public String getFieldCompany() {
return mCompany;
}
public Boolean getFieldConfiguredIosSso() {
return mConfiguredIosSso;
}
public String getFieldContactEmail() {
return mContactEmail;
}
public Object getFieldContext() {
return mContext;
}
public String getFieldCreatedTime() {
return mCreatedTime;
}
public String getFieldCreatorUid() {
return mCreatorUid;
}
public String getFieldDailyActiveUsers() {
return mDailyActiveUsers;
}
public Long getFieldDailyActiveUsersRank() {
return mDailyActiveUsersRank;
}
public String getFieldDeauthCallbackUrl() {
return mDeauthCallbackUrl;
}
public String getFieldDefaultShareMode() {
return mDefaultShareMode;
}
public String getFieldDescription() {
return mDescription;
}
public String getFieldFinancialId() {
return mFinancialId;
}
public Boolean getFieldGdpv4ChromeCustomTabsEnabled() {
return mGdpv4ChromeCustomTabsEnabled;
}
public Boolean getFieldGdpv4Enabled() {
return mGdpv4Enabled;
}
public String getFieldGdpv4NuxContent() {
return mGdpv4NuxContent;
}
public Boolean getFieldGdpv4NuxEnabled() {
return mGdpv4NuxEnabled;
}
public Boolean getFieldHasMessengerProduct() {
return mHasMessengerProduct;
}
public String getFieldHostingUrl() {
return mHostingUrl;
}
public String getFieldIconUrl() {
return mIconUrl;
}
public String getFieldId() {
return mId;
}
public List getFieldIosBundleId() {
return mIosBundleId;
}
public Object getFieldIosSdkDialogFlows() {
return mIosSdkDialogFlows;
}
public List getFieldIosSdkErrorCategories() {
return mIosSdkErrorCategories;
}
public Boolean getFieldIosSfvcAttr() {
return mIosSfvcAttr;
}
public Boolean getFieldIosSupportsNativeProxyAuthFlow() {
return mIosSupportsNativeProxyAuthFlow;
}
public Boolean getFieldIosSupportsSystemAuth() {
return mIosSupportsSystemAuth;
}
public String getFieldIpadAppStoreId() {
return mIpadAppStoreId;
}
public String getFieldIphoneAppStoreId() {
return mIphoneAppStoreId;
}
public Boolean getFieldIsViewerAdmin() {
return mIsViewerAdmin;
}
public Object getFieldLatestSdkVersion() {
return mLatestSdkVersion;
}
public String getFieldLink() {
return mLink;
}
public String getFieldLoggingToken() {
return mLoggingToken;
}
public String getFieldLoginSecret() {
return mLoginSecret;
}
public String getFieldLogoUrl() {
return mLogoUrl;
}
public Map getFieldMigrations() {
return mMigrations;
}
public String getFieldMobileProfileSectionUrl() {
return mMobileProfileSectionUrl;
}
public String getFieldMobileWebUrl() {
return mMobileWebUrl;
}
public String getFieldMonthlyActiveUsers() {
return mMonthlyActiveUsers;
}
public Long getFieldMonthlyActiveUsersRank() {
return mMonthlyActiveUsersRank;
}
public String getFieldName() {
return mName;
}
public String getFieldNamespace() {
return mNamespace;
}
public Object getFieldObjectStoreUrls() {
return mObjectStoreUrls;
}
public String getFieldPageTabDefaultName() {
return mPageTabDefaultName;
}
public String getFieldPageTabUrl() {
return mPageTabUrl;
}
public String getFieldPhotoUrl() {
return mPhotoUrl;
}
public String getFieldPrivacyPolicyUrl() {
return mPrivacyPolicyUrl;
}
public String getFieldProfileSectionUrl() {
return mProfileSectionUrl;
}
public String getFieldPropertyId() {
return mPropertyId;
}
public List getFieldRealTimeModeDevices() {
return mRealTimeModeDevices;
}
public Object getFieldRestrictions() {
return mRestrictions;
}
public String getFieldSdkUpdateMessage() {
return mSdkUpdateMessage;
}
public Long getFieldSeamlessLogin() {
return mSeamlessLogin;
}
public String getFieldSecureCanvasUrl() {
return mSecureCanvasUrl;
}
public String getFieldSecurePageTabUrl() {
return mSecurePageTabUrl;
}
public String getFieldServerIpWhitelist() {
return mServerIpWhitelist;
}
public String getFieldSmartLoginBookmarkIconUrl() {
return mSmartLoginBookmarkIconUrl;
}
public String getFieldSmartLoginMenuIconUrl() {
return mSmartLoginMenuIconUrl;
}
public Long getFieldSocialDiscovery() {
return mSocialDiscovery;
}
public String getFieldSubcategory() {
return mSubcategory;
}
public List getFieldSupportedPlatforms() {
return mSupportedPlatforms;
}
public Object getFieldSupportsApprequestsFastAppSwitch() {
return mSupportsApprequestsFastAppSwitch;
}
public Boolean getFieldSupportsAttribution() {
return mSupportsAttribution;
}
public Boolean getFieldSupportsImplicitSdkLogging() {
return mSupportsImplicitSdkLogging;
}
public Boolean getFieldSuppressNativeIosGdp() {
return mSuppressNativeIosGdp;
}
public String getFieldTermsOfServiceUrl() {
return mTermsOfServiceUrl;
}
public String getFieldUrlSchemeSuffix() {
return mUrlSchemeSuffix;
}
public String getFieldUserSupportEmail() {
return mUserSupportEmail;
}
public String getFieldUserSupportUrl() {
return mUserSupportUrl;
}
public String getFieldWebsiteUrl() {
return mWebsiteUrl;
}
public String getFieldWeeklyActiveUsers() {
return mWeeklyActiveUsers;
}
public static class APIRequestCreateLocalServiceBookingTest extends APIRequest {
APINode lastResponse = null;
@Override
public APINode getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"api_name",
};
public static final String[] FIELDS = {
};
@Override
public APINode parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header).head();
}
@Override
public APINode execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINode execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public APINode apply(ResponseWrapper result) {
try {
return APIRequestCreateLocalServiceBookingTest.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateLocalServiceBookingTest(String nodeId, APIContext context) {
super(context, nodeId, "/LocalServiceBookingTest", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateLocalServiceBookingTest setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateLocalServiceBookingTest setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateLocalServiceBookingTest setApiName (EnumApiName apiName) {
this.setParam("api_name", apiName);
return this;
}
public APIRequestCreateLocalServiceBookingTest setApiName (String apiName) {
this.setParam("api_name", apiName);
return this;
}
public APIRequestCreateLocalServiceBookingTest requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateLocalServiceBookingTest requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateLocalServiceBookingTest requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateLocalServiceBookingTest requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateLocalServiceBookingTest requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateLocalServiceBookingTest requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestDeleteAccounts extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"type",
"uid",
};
public static final String[] FIELDS = {
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestDeleteAccounts.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestDeleteAccounts(String nodeId, APIContext context) {
super(context, nodeId, "/accounts", "DELETE", Arrays.asList(PARAMS));
}
@Override
public APIRequestDeleteAccounts setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestDeleteAccounts setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestDeleteAccounts setType (EnumType type) {
this.setParam("type", type);
return this;
}
public APIRequestDeleteAccounts setType (String type) {
this.setParam("type", type);
return this;
}
public APIRequestDeleteAccounts setUid (Long uid) {
this.setParam("uid", uid);
return this;
}
public APIRequestDeleteAccounts setUid (String uid) {
this.setParam("uid", uid);
return this;
}
public APIRequestDeleteAccounts requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestDeleteAccounts requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestDeleteAccounts requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestDeleteAccounts requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestDeleteAccounts requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestDeleteAccounts requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetAccounts extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"type",
};
public static final String[] FIELDS = {
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAccounts.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAccounts(String nodeId, APIContext context) {
super(context, nodeId, "/accounts", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAccounts setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAccounts setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAccounts setType (EnumType type) {
this.setParam("type", type);
return this;
}
public APIRequestGetAccounts setType (String type) {
this.setParam("type", type);
return this;
}
public APIRequestGetAccounts requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAccounts requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAccounts requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAccounts requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAccounts requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAccounts requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestCreateAccount extends APIRequest {
APINode lastResponse = null;
@Override
public APINode getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"uid",
"owner_access_token",
"installed",
"permissions",
"name",
"minor",
"type",
};
public static final String[] FIELDS = {
};
@Override
public APINode parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header).head();
}
@Override
public APINode execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINode execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public APINode apply(ResponseWrapper result) {
try {
return APIRequestCreateAccount.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateAccount(String nodeId, APIContext context) {
super(context, nodeId, "/accounts", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateAccount setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateAccount setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateAccount setUid (Long uid) {
this.setParam("uid", uid);
return this;
}
public APIRequestCreateAccount setUid (String uid) {
this.setParam("uid", uid);
return this;
}
public APIRequestCreateAccount setOwnerAccessToken (String ownerAccessToken) {
this.setParam("owner_access_token", ownerAccessToken);
return this;
}
public APIRequestCreateAccount setInstalled (Boolean installed) {
this.setParam("installed", installed);
return this;
}
public APIRequestCreateAccount setInstalled (String installed) {
this.setParam("installed", installed);
return this;
}
public APIRequestCreateAccount setPermissions (Object permissions) {
this.setParam("permissions", permissions);
return this;
}
public APIRequestCreateAccount setPermissions (String permissions) {
this.setParam("permissions", permissions);
return this;
}
public APIRequestCreateAccount setName (String name) {
this.setParam("name", name);
return this;
}
public APIRequestCreateAccount setMinor (Boolean minor) {
this.setParam("minor", minor);
return this;
}
public APIRequestCreateAccount setMinor (String minor) {
this.setParam("minor", minor);
return this;
}
public APIRequestCreateAccount setType (EnumType type) {
this.setParam("type", type);
return this;
}
public APIRequestCreateAccount setType (String type) {
this.setParam("type", type);
return this;
}
public APIRequestCreateAccount requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateAccount requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAccount requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateAccount requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAccount requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateAccount requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetAchievements extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"achievement",
};
public static final String[] FIELDS = {
"admins",
"application",
"audio",
"context",
"created_time",
"description",
"determiner",
"engagement",
"id",
"image",
"is_scraped",
"locale",
"location",
"post_action_id",
"profile_id",
"restrictions",
"see_also",
"site_name",
"title",
"type",
"updated_time",
"video",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return OpenGraphObject.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAchievements.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAchievements(String nodeId, APIContext context) {
super(context, nodeId, "/achievements", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAchievements setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAchievements setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAchievements setAchievement (Object achievement) {
this.setParam("achievement", achievement);
return this;
}
public APIRequestGetAchievements setAchievement (String achievement) {
this.setParam("achievement", achievement);
return this;
}
public APIRequestGetAchievements requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAchievements requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAchievements requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAchievements requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAchievements requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAchievements requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAchievements requestAdminsField () {
return this.requestAdminsField(true);
}
public APIRequestGetAchievements requestAdminsField (boolean value) {
this.requestField("admins", value);
return this;
}
public APIRequestGetAchievements requestApplicationField () {
return this.requestApplicationField(true);
}
public APIRequestGetAchievements requestApplicationField (boolean value) {
this.requestField("application", value);
return this;
}
public APIRequestGetAchievements requestAudioField () {
return this.requestAudioField(true);
}
public APIRequestGetAchievements requestAudioField (boolean value) {
this.requestField("audio", value);
return this;
}
public APIRequestGetAchievements requestContextField () {
return this.requestContextField(true);
}
public APIRequestGetAchievements requestContextField (boolean value) {
this.requestField("context", value);
return this;
}
public APIRequestGetAchievements requestCreatedTimeField () {
return this.requestCreatedTimeField(true);
}
public APIRequestGetAchievements requestCreatedTimeField (boolean value) {
this.requestField("created_time", value);
return this;
}
public APIRequestGetAchievements requestDescriptionField () {
return this.requestDescriptionField(true);
}
public APIRequestGetAchievements requestDescriptionField (boolean value) {
this.requestField("description", value);
return this;
}
public APIRequestGetAchievements requestDeterminerField () {
return this.requestDeterminerField(true);
}
public APIRequestGetAchievements requestDeterminerField (boolean value) {
this.requestField("determiner", value);
return this;
}
public APIRequestGetAchievements requestEngagementField () {
return this.requestEngagementField(true);
}
public APIRequestGetAchievements requestEngagementField (boolean value) {
this.requestField("engagement", value);
return this;
}
public APIRequestGetAchievements requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAchievements requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAchievements requestImageField () {
return this.requestImageField(true);
}
public APIRequestGetAchievements requestImageField (boolean value) {
this.requestField("image", value);
return this;
}
public APIRequestGetAchievements requestIsScrapedField () {
return this.requestIsScrapedField(true);
}
public APIRequestGetAchievements requestIsScrapedField (boolean value) {
this.requestField("is_scraped", value);
return this;
}
public APIRequestGetAchievements requestLocaleField () {
return this.requestLocaleField(true);
}
public APIRequestGetAchievements requestLocaleField (boolean value) {
this.requestField("locale", value);
return this;
}
public APIRequestGetAchievements requestLocationField () {
return this.requestLocationField(true);
}
public APIRequestGetAchievements requestLocationField (boolean value) {
this.requestField("location", value);
return this;
}
public APIRequestGetAchievements requestPostActionIdField () {
return this.requestPostActionIdField(true);
}
public APIRequestGetAchievements requestPostActionIdField (boolean value) {
this.requestField("post_action_id", value);
return this;
}
public APIRequestGetAchievements requestProfileIdField () {
return this.requestProfileIdField(true);
}
public APIRequestGetAchievements requestProfileIdField (boolean value) {
this.requestField("profile_id", value);
return this;
}
public APIRequestGetAchievements requestRestrictionsField () {
return this.requestRestrictionsField(true);
}
public APIRequestGetAchievements requestRestrictionsField (boolean value) {
this.requestField("restrictions", value);
return this;
}
public APIRequestGetAchievements requestSeeAlsoField () {
return this.requestSeeAlsoField(true);
}
public APIRequestGetAchievements requestSeeAlsoField (boolean value) {
this.requestField("see_also", value);
return this;
}
public APIRequestGetAchievements requestSiteNameField () {
return this.requestSiteNameField(true);
}
public APIRequestGetAchievements requestSiteNameField (boolean value) {
this.requestField("site_name", value);
return this;
}
public APIRequestGetAchievements requestTitleField () {
return this.requestTitleField(true);
}
public APIRequestGetAchievements requestTitleField (boolean value) {
this.requestField("title", value);
return this;
}
public APIRequestGetAchievements requestTypeField () {
return this.requestTypeField(true);
}
public APIRequestGetAchievements requestTypeField (boolean value) {
this.requestField("type", value);
return this;
}
public APIRequestGetAchievements requestUpdatedTimeField () {
return this.requestUpdatedTimeField(true);
}
public APIRequestGetAchievements requestUpdatedTimeField (boolean value) {
this.requestField("updated_time", value);
return this;
}
public APIRequestGetAchievements requestVideoField () {
return this.requestVideoField(true);
}
public APIRequestGetAchievements requestVideoField (boolean value) {
this.requestField("video", value);
return this;
}
}
public static class APIRequestCreateActivity extends APIRequest {
APINode lastResponse = null;
@Override
public APINode getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"event",
"attribution",
"advertiser_id",
"anon_id",
"advertiser_tracking_enabled",
"application_tracking_enabled",
"extinfo",
"bundle_id",
"bundle_version",
"bundle_short_version",
"auto_publish",
"custom_events",
"custom_events_file",
"installer_package",
"migration_bundle",
"url_schemes",
"device_token",
"windows_attribution_id",
"consider_views",
"include_video_data",
"include_dwell_data",
"page_id",
"page_scoped_user_id",
"ud",
"user_id",
"user_id_type",
"app_user_id",
"receipt_data",
};
public static final String[] FIELDS = {
};
@Override
public APINode parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header).head();
}
@Override
public APINode execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINode execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public APINode apply(ResponseWrapper result) {
try {
return APIRequestCreateActivity.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateActivity(String nodeId, APIContext context) {
super(context, nodeId, "/activities", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateActivity setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateActivity setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateActivity setEvent (EnumEvent event) {
this.setParam("event", event);
return this;
}
public APIRequestCreateActivity setEvent (String event) {
this.setParam("event", event);
return this;
}
public APIRequestCreateActivity setAttribution (String attribution) {
this.setParam("attribution", attribution);
return this;
}
public APIRequestCreateActivity setAdvertiserId (String advertiserId) {
this.setParam("advertiser_id", advertiserId);
return this;
}
public APIRequestCreateActivity setAnonId (String anonId) {
this.setParam("anon_id", anonId);
return this;
}
public APIRequestCreateActivity setAdvertiserTrackingEnabled (Boolean advertiserTrackingEnabled) {
this.setParam("advertiser_tracking_enabled", advertiserTrackingEnabled);
return this;
}
public APIRequestCreateActivity setAdvertiserTrackingEnabled (String advertiserTrackingEnabled) {
this.setParam("advertiser_tracking_enabled", advertiserTrackingEnabled);
return this;
}
public APIRequestCreateActivity setApplicationTrackingEnabled (Boolean applicationTrackingEnabled) {
this.setParam("application_tracking_enabled", applicationTrackingEnabled);
return this;
}
public APIRequestCreateActivity setApplicationTrackingEnabled (String applicationTrackingEnabled) {
this.setParam("application_tracking_enabled", applicationTrackingEnabled);
return this;
}
public APIRequestCreateActivity setExtinfo (Object extinfo) {
this.setParam("extinfo", extinfo);
return this;
}
public APIRequestCreateActivity setExtinfo (String extinfo) {
this.setParam("extinfo", extinfo);
return this;
}
public APIRequestCreateActivity setBundleId (String bundleId) {
this.setParam("bundle_id", bundleId);
return this;
}
public APIRequestCreateActivity setBundleVersion (String bundleVersion) {
this.setParam("bundle_version", bundleVersion);
return this;
}
public APIRequestCreateActivity setBundleShortVersion (String bundleShortVersion) {
this.setParam("bundle_short_version", bundleShortVersion);
return this;
}
public APIRequestCreateActivity setAutoPublish (Boolean autoPublish) {
this.setParam("auto_publish", autoPublish);
return this;
}
public APIRequestCreateActivity setAutoPublish (String autoPublish) {
this.setParam("auto_publish", autoPublish);
return this;
}
public APIRequestCreateActivity setCustomEvents (List customEvents) {
this.setParam("custom_events", customEvents);
return this;
}
public APIRequestCreateActivity setCustomEvents (String customEvents) {
this.setParam("custom_events", customEvents);
return this;
}
public APIRequestCreateActivity setCustomEventsFile (File customEventsFile) {
this.setParam("custom_events_file", customEventsFile);
return this;
}
public APIRequestCreateActivity setCustomEventsFile (String customEventsFile) {
this.setParam("custom_events_file", customEventsFile);
return this;
}
public APIRequestCreateActivity setInstallerPackage (String installerPackage) {
this.setParam("installer_package", installerPackage);
return this;
}
public APIRequestCreateActivity setMigrationBundle (String migrationBundle) {
this.setParam("migration_bundle", migrationBundle);
return this;
}
public APIRequestCreateActivity setUrlSchemes (List urlSchemes) {
this.setParam("url_schemes", urlSchemes);
return this;
}
public APIRequestCreateActivity setUrlSchemes (String urlSchemes) {
this.setParam("url_schemes", urlSchemes);
return this;
}
public APIRequestCreateActivity setDeviceToken (String deviceToken) {
this.setParam("device_token", deviceToken);
return this;
}
public APIRequestCreateActivity setWindowsAttributionId (String windowsAttributionId) {
this.setParam("windows_attribution_id", windowsAttributionId);
return this;
}
public APIRequestCreateActivity setConsiderViews (Boolean considerViews) {
this.setParam("consider_views", considerViews);
return this;
}
public APIRequestCreateActivity setConsiderViews (String considerViews) {
this.setParam("consider_views", considerViews);
return this;
}
public APIRequestCreateActivity setIncludeVideoData (Boolean includeVideoData) {
this.setParam("include_video_data", includeVideoData);
return this;
}
public APIRequestCreateActivity setIncludeVideoData (String includeVideoData) {
this.setParam("include_video_data", includeVideoData);
return this;
}
public APIRequestCreateActivity setIncludeDwellData (Boolean includeDwellData) {
this.setParam("include_dwell_data", includeDwellData);
return this;
}
public APIRequestCreateActivity setIncludeDwellData (String includeDwellData) {
this.setParam("include_dwell_data", includeDwellData);
return this;
}
public APIRequestCreateActivity setPageId (Long pageId) {
this.setParam("page_id", pageId);
return this;
}
public APIRequestCreateActivity setPageId (String pageId) {
this.setParam("page_id", pageId);
return this;
}
public APIRequestCreateActivity setPageScopedUserId (Long pageScopedUserId) {
this.setParam("page_scoped_user_id", pageScopedUserId);
return this;
}
public APIRequestCreateActivity setPageScopedUserId (String pageScopedUserId) {
this.setParam("page_scoped_user_id", pageScopedUserId);
return this;
}
public APIRequestCreateActivity setUd (Map ud) {
this.setParam("ud", ud);
return this;
}
public APIRequestCreateActivity setUd (String ud) {
this.setParam("ud", ud);
return this;
}
public APIRequestCreateActivity setUserId (String userId) {
this.setParam("user_id", userId);
return this;
}
public APIRequestCreateActivity setUserIdType (EnumUserIdType userIdType) {
this.setParam("user_id_type", userIdType);
return this;
}
public APIRequestCreateActivity setUserIdType (String userIdType) {
this.setParam("user_id_type", userIdType);
return this;
}
public APIRequestCreateActivity setAppUserId (String appUserId) {
this.setParam("app_user_id", appUserId);
return this;
}
public APIRequestCreateActivity setReceiptData (String receiptData) {
this.setParam("receipt_data", receiptData);
return this;
}
public APIRequestCreateActivity requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateActivity requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateActivity requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateActivity requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateActivity requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateActivity requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetAdNetworkAnalytics extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"aggregation_period",
"breakdowns",
"filters",
"limit",
"metrics",
"ordering_column",
"ordering_type",
"since",
"until",
};
public static final String[] FIELDS = {
"query_id",
"results",
"id",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return AdNetworkAnalyticsSyncQueryResult.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAdNetworkAnalytics.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAdNetworkAnalytics(String nodeId, APIContext context) {
super(context, nodeId, "/adnetworkanalytics", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAdNetworkAnalytics setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAdNetworkAnalytics setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAdNetworkAnalytics setAggregationPeriod (Application.EnumAggregationPeriod aggregationPeriod) {
this.setParam("aggregation_period", aggregationPeriod);
return this;
}
public APIRequestGetAdNetworkAnalytics setAggregationPeriod (String aggregationPeriod) {
this.setParam("aggregation_period", aggregationPeriod);
return this;
}
public APIRequestGetAdNetworkAnalytics setBreakdowns (List breakdowns) {
this.setParam("breakdowns", breakdowns);
return this;
}
public APIRequestGetAdNetworkAnalytics setBreakdowns (String breakdowns) {
this.setParam("breakdowns", breakdowns);
return this;
}
public APIRequestGetAdNetworkAnalytics setFilters (List> filters) {
this.setParam("filters", filters);
return this;
}
public APIRequestGetAdNetworkAnalytics setFilters (String filters) {
this.setParam("filters", filters);
return this;
}
public APIRequestGetAdNetworkAnalytics setLimit (Long limit) {
this.setParam("limit", limit);
return this;
}
public APIRequestGetAdNetworkAnalytics setLimit (String limit) {
this.setParam("limit", limit);
return this;
}
public APIRequestGetAdNetworkAnalytics setMetrics (List metrics) {
this.setParam("metrics", metrics);
return this;
}
public APIRequestGetAdNetworkAnalytics setMetrics (String metrics) {
this.setParam("metrics", metrics);
return this;
}
public APIRequestGetAdNetworkAnalytics setOrderingColumn (Application.EnumOrderingColumn orderingColumn) {
this.setParam("ordering_column", orderingColumn);
return this;
}
public APIRequestGetAdNetworkAnalytics setOrderingColumn (String orderingColumn) {
this.setParam("ordering_column", orderingColumn);
return this;
}
public APIRequestGetAdNetworkAnalytics setOrderingType (Application.EnumOrderingType orderingType) {
this.setParam("ordering_type", orderingType);
return this;
}
public APIRequestGetAdNetworkAnalytics setOrderingType (String orderingType) {
this.setParam("ordering_type", orderingType);
return this;
}
public APIRequestGetAdNetworkAnalytics setSince (Object since) {
this.setParam("since", since);
return this;
}
public APIRequestGetAdNetworkAnalytics setSince (String since) {
this.setParam("since", since);
return this;
}
public APIRequestGetAdNetworkAnalytics setUntil (Object until) {
this.setParam("until", until);
return this;
}
public APIRequestGetAdNetworkAnalytics setUntil (String until) {
this.setParam("until", until);
return this;
}
public APIRequestGetAdNetworkAnalytics requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAdNetworkAnalytics requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAdNetworkAnalytics requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAdNetworkAnalytics requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAdNetworkAnalytics requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAdNetworkAnalytics requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAdNetworkAnalytics requestQueryIdField () {
return this.requestQueryIdField(true);
}
public APIRequestGetAdNetworkAnalytics requestQueryIdField (boolean value) {
this.requestField("query_id", value);
return this;
}
public APIRequestGetAdNetworkAnalytics requestResultsField () {
return this.requestResultsField(true);
}
public APIRequestGetAdNetworkAnalytics requestResultsField (boolean value) {
this.requestField("results", value);
return this;
}
public APIRequestGetAdNetworkAnalytics requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAdNetworkAnalytics requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
}
public static class APIRequestCreateAdNetworkAnalytic extends APIRequest {
Application lastResponse = null;
@Override
public Application getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"aggregation_period",
"breakdowns",
"metrics",
"filters",
"limit",
"ordering_column",
"ordering_type",
"since",
"until",
};
public static final String[] FIELDS = {
};
@Override
public Application parseResponse(String response, String header) throws APIException {
return Application.parseResponse(response, getContext(), this, header).head();
}
@Override
public Application execute() throws APIException {
return execute(new HashMap());
}
@Override
public Application execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public Application apply(ResponseWrapper result) {
try {
return APIRequestCreateAdNetworkAnalytic.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateAdNetworkAnalytic(String nodeId, APIContext context) {
super(context, nodeId, "/adnetworkanalytics", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateAdNetworkAnalytic setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateAdNetworkAnalytic setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateAdNetworkAnalytic setAggregationPeriod (Application.EnumAggregationPeriod aggregationPeriod) {
this.setParam("aggregation_period", aggregationPeriod);
return this;
}
public APIRequestCreateAdNetworkAnalytic setAggregationPeriod (String aggregationPeriod) {
this.setParam("aggregation_period", aggregationPeriod);
return this;
}
public APIRequestCreateAdNetworkAnalytic setBreakdowns (List breakdowns) {
this.setParam("breakdowns", breakdowns);
return this;
}
public APIRequestCreateAdNetworkAnalytic setBreakdowns (String breakdowns) {
this.setParam("breakdowns", breakdowns);
return this;
}
public APIRequestCreateAdNetworkAnalytic setMetrics (List metrics) {
this.setParam("metrics", metrics);
return this;
}
public APIRequestCreateAdNetworkAnalytic setMetrics (String metrics) {
this.setParam("metrics", metrics);
return this;
}
public APIRequestCreateAdNetworkAnalytic setFilters (List filters) {
this.setParam("filters", filters);
return this;
}
public APIRequestCreateAdNetworkAnalytic setFilters (String filters) {
this.setParam("filters", filters);
return this;
}
public APIRequestCreateAdNetworkAnalytic setLimit (Long limit) {
this.setParam("limit", limit);
return this;
}
public APIRequestCreateAdNetworkAnalytic setLimit (String limit) {
this.setParam("limit", limit);
return this;
}
public APIRequestCreateAdNetworkAnalytic setOrderingColumn (Application.EnumOrderingColumn orderingColumn) {
this.setParam("ordering_column", orderingColumn);
return this;
}
public APIRequestCreateAdNetworkAnalytic setOrderingColumn (String orderingColumn) {
this.setParam("ordering_column", orderingColumn);
return this;
}
public APIRequestCreateAdNetworkAnalytic setOrderingType (Application.EnumOrderingType orderingType) {
this.setParam("ordering_type", orderingType);
return this;
}
public APIRequestCreateAdNetworkAnalytic setOrderingType (String orderingType) {
this.setParam("ordering_type", orderingType);
return this;
}
public APIRequestCreateAdNetworkAnalytic setSince (Object since) {
this.setParam("since", since);
return this;
}
public APIRequestCreateAdNetworkAnalytic setSince (String since) {
this.setParam("since", since);
return this;
}
public APIRequestCreateAdNetworkAnalytic setUntil (Object until) {
this.setParam("until", until);
return this;
}
public APIRequestCreateAdNetworkAnalytic setUntil (String until) {
this.setParam("until", until);
return this;
}
public APIRequestCreateAdNetworkAnalytic requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateAdNetworkAnalytic requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAdNetworkAnalytic requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateAdNetworkAnalytic requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAdNetworkAnalytic requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateAdNetworkAnalytic requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetAdNetworkAnalyticsResults extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"query_ids",
};
public static final String[] FIELDS = {
"data",
"error",
"query_id",
"results",
"status",
"id",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return AdNetworkAnalyticsAsyncQueryResult.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAdNetworkAnalyticsResults.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAdNetworkAnalyticsResults(String nodeId, APIContext context) {
super(context, nodeId, "/adnetworkanalytics_results", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAdNetworkAnalyticsResults setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAdNetworkAnalyticsResults setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAdNetworkAnalyticsResults setQueryIds (List queryIds) {
this.setParam("query_ids", queryIds);
return this;
}
public APIRequestGetAdNetworkAnalyticsResults setQueryIds (String queryIds) {
this.setParam("query_ids", queryIds);
return this;
}
public APIRequestGetAdNetworkAnalyticsResults requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAdNetworkAnalyticsResults requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAdNetworkAnalyticsResults requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAdNetworkAnalyticsResults requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAdNetworkAnalyticsResults requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAdNetworkAnalyticsResults requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAdNetworkAnalyticsResults requestDataField () {
return this.requestDataField(true);
}
public APIRequestGetAdNetworkAnalyticsResults requestDataField (boolean value) {
this.requestField("data", value);
return this;
}
public APIRequestGetAdNetworkAnalyticsResults requestErrorField () {
return this.requestErrorField(true);
}
public APIRequestGetAdNetworkAnalyticsResults requestErrorField (boolean value) {
this.requestField("error", value);
return this;
}
public APIRequestGetAdNetworkAnalyticsResults requestQueryIdField () {
return this.requestQueryIdField(true);
}
public APIRequestGetAdNetworkAnalyticsResults requestQueryIdField (boolean value) {
this.requestField("query_id", value);
return this;
}
public APIRequestGetAdNetworkAnalyticsResults requestResultsField () {
return this.requestResultsField(true);
}
public APIRequestGetAdNetworkAnalyticsResults requestResultsField (boolean value) {
this.requestField("results", value);
return this;
}
public APIRequestGetAdNetworkAnalyticsResults requestStatusField () {
return this.requestStatusField(true);
}
public APIRequestGetAdNetworkAnalyticsResults requestStatusField (boolean value) {
this.requestField("status", value);
return this;
}
public APIRequestGetAdNetworkAnalyticsResults requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAdNetworkAnalyticsResults requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
}
public static class APIRequestGetAgencies extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"block_offline_analytics",
"created_by",
"created_time",
"extended_updated_time",
"id",
"is_hidden",
"is_instagram_enabled_in_fb_analytics",
"link",
"name",
"primary_page",
"profile_picture_uri",
"timezone_id",
"two_factor_type",
"updated_by",
"updated_time",
"verification_status",
"vertical",
"vertical_id",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Business.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAgencies.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAgencies(String nodeId, APIContext context) {
super(context, nodeId, "/agencies", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAgencies setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAgencies setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAgencies requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAgencies requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAgencies requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAgencies requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAgencies requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAgencies requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAgencies requestBlockOfflineAnalyticsField () {
return this.requestBlockOfflineAnalyticsField(true);
}
public APIRequestGetAgencies requestBlockOfflineAnalyticsField (boolean value) {
this.requestField("block_offline_analytics", value);
return this;
}
public APIRequestGetAgencies requestCreatedByField () {
return this.requestCreatedByField(true);
}
public APIRequestGetAgencies requestCreatedByField (boolean value) {
this.requestField("created_by", value);
return this;
}
public APIRequestGetAgencies requestCreatedTimeField () {
return this.requestCreatedTimeField(true);
}
public APIRequestGetAgencies requestCreatedTimeField (boolean value) {
this.requestField("created_time", value);
return this;
}
public APIRequestGetAgencies requestExtendedUpdatedTimeField () {
return this.requestExtendedUpdatedTimeField(true);
}
public APIRequestGetAgencies requestExtendedUpdatedTimeField (boolean value) {
this.requestField("extended_updated_time", value);
return this;
}
public APIRequestGetAgencies requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAgencies requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAgencies requestIsHiddenField () {
return this.requestIsHiddenField(true);
}
public APIRequestGetAgencies requestIsHiddenField (boolean value) {
this.requestField("is_hidden", value);
return this;
}
public APIRequestGetAgencies requestIsInstagramEnabledInFbAnalyticsField () {
return this.requestIsInstagramEnabledInFbAnalyticsField(true);
}
public APIRequestGetAgencies requestIsInstagramEnabledInFbAnalyticsField (boolean value) {
this.requestField("is_instagram_enabled_in_fb_analytics", value);
return this;
}
public APIRequestGetAgencies requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetAgencies requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetAgencies requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetAgencies requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetAgencies requestPrimaryPageField () {
return this.requestPrimaryPageField(true);
}
public APIRequestGetAgencies requestPrimaryPageField (boolean value) {
this.requestField("primary_page", value);
return this;
}
public APIRequestGetAgencies requestProfilePictureUriField () {
return this.requestProfilePictureUriField(true);
}
public APIRequestGetAgencies requestProfilePictureUriField (boolean value) {
this.requestField("profile_picture_uri", value);
return this;
}
public APIRequestGetAgencies requestTimezoneIdField () {
return this.requestTimezoneIdField(true);
}
public APIRequestGetAgencies requestTimezoneIdField (boolean value) {
this.requestField("timezone_id", value);
return this;
}
public APIRequestGetAgencies requestTwoFactorTypeField () {
return this.requestTwoFactorTypeField(true);
}
public APIRequestGetAgencies requestTwoFactorTypeField (boolean value) {
this.requestField("two_factor_type", value);
return this;
}
public APIRequestGetAgencies requestUpdatedByField () {
return this.requestUpdatedByField(true);
}
public APIRequestGetAgencies requestUpdatedByField (boolean value) {
this.requestField("updated_by", value);
return this;
}
public APIRequestGetAgencies requestUpdatedTimeField () {
return this.requestUpdatedTimeField(true);
}
public APIRequestGetAgencies requestUpdatedTimeField (boolean value) {
this.requestField("updated_time", value);
return this;
}
public APIRequestGetAgencies requestVerificationStatusField () {
return this.requestVerificationStatusField(true);
}
public APIRequestGetAgencies requestVerificationStatusField (boolean value) {
this.requestField("verification_status", value);
return this;
}
public APIRequestGetAgencies requestVerticalField () {
return this.requestVerticalField(true);
}
public APIRequestGetAgencies requestVerticalField (boolean value) {
this.requestField("vertical", value);
return this;
}
public APIRequestGetAgencies requestVerticalIdField () {
return this.requestVerticalIdField(true);
}
public APIRequestGetAgencies requestVerticalIdField (boolean value) {
this.requestField("vertical_id", value);
return this;
}
}
public static class APIRequestGetAndroidDialogConfigs extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAndroidDialogConfigs.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAndroidDialogConfigs(String nodeId, APIContext context) {
super(context, nodeId, "/android_dialog_configs", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAndroidDialogConfigs setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAndroidDialogConfigs setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAndroidDialogConfigs requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAndroidDialogConfigs requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAndroidDialogConfigs requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAndroidDialogConfigs requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAndroidDialogConfigs requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAndroidDialogConfigs requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetAppEventTypes extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAppEventTypes.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAppEventTypes(String nodeId, APIContext context) {
super(context, nodeId, "/app_event_types", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAppEventTypes setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAppEventTypes setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAppEventTypes requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAppEventTypes requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAppEventTypes requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAppEventTypes requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAppEventTypes requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAppEventTypes requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestCreateAppIndexing extends APIRequest {
Application lastResponse = null;
@Override
public Application getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"app_version",
"platform",
"tree",
"extra_info",
"request_type",
"device_session_id",
};
public static final String[] FIELDS = {
};
@Override
public Application parseResponse(String response, String header) throws APIException {
return Application.parseResponse(response, getContext(), this, header).head();
}
@Override
public Application execute() throws APIException {
return execute(new HashMap());
}
@Override
public Application execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public Application apply(ResponseWrapper result) {
try {
return APIRequestCreateAppIndexing.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateAppIndexing(String nodeId, APIContext context) {
super(context, nodeId, "/app_indexing", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateAppIndexing setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateAppIndexing setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateAppIndexing setAppVersion (String appVersion) {
this.setParam("app_version", appVersion);
return this;
}
public APIRequestCreateAppIndexing setPlatform (Application.EnumPlatform platform) {
this.setParam("platform", platform);
return this;
}
public APIRequestCreateAppIndexing setPlatform (String platform) {
this.setParam("platform", platform);
return this;
}
public APIRequestCreateAppIndexing setTree (Map tree) {
this.setParam("tree", tree);
return this;
}
public APIRequestCreateAppIndexing setTree (String tree) {
this.setParam("tree", tree);
return this;
}
public APIRequestCreateAppIndexing setExtraInfo (String extraInfo) {
this.setParam("extra_info", extraInfo);
return this;
}
public APIRequestCreateAppIndexing setRequestType (Application.EnumRequestType requestType) {
this.setParam("request_type", requestType);
return this;
}
public APIRequestCreateAppIndexing setRequestType (String requestType) {
this.setParam("request_type", requestType);
return this;
}
public APIRequestCreateAppIndexing setDeviceSessionId (String deviceSessionId) {
this.setParam("device_session_id", deviceSessionId);
return this;
}
public APIRequestCreateAppIndexing requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateAppIndexing requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAppIndexing requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateAppIndexing requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAppIndexing requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateAppIndexing requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestCreateAppIndexingSession extends APIRequest {
Application lastResponse = null;
@Override
public Application getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"device_session_id",
"extinfo",
};
public static final String[] FIELDS = {
};
@Override
public Application parseResponse(String response, String header) throws APIException {
return Application.parseResponse(response, getContext(), this, header).head();
}
@Override
public Application execute() throws APIException {
return execute(new HashMap());
}
@Override
public Application execute(Map