From 454cc0ef0f274d5e1a4927a06893e5595e28bda9 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Sat, 14 Oct 2023 13:47:00 -0700 Subject: [PATCH] Auto-generated java SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D50280492 fbshipit-source-id: 0779efafd657f4eac93206c88b717abe01395cdd --- pom.xml | 2 +- .../java/com/facebook/ads/sdk/APIConfig.java | 2 +- .../java/com/facebook/ads/sdk/AdAccount.java | 361 +----------------- .../facebook/ads/sdk/AdAccountAdVolume.java | 16 +- .../java/com/facebook/ads/sdk/AdActivity.java | 2 + .../com/facebook/ads/sdk/AdAssetFeedSpec.java | 2 + .../java/com/facebook/ads/sdk/AdCreative.java | 2 + .../sdk/AdCreativeLinkDataCallToAction.java | 2 + .../facebook/ads/sdk/AdPromotedObject.java | 12 - .../com/facebook/ads/sdk/AdReportRun.java | 2 + .../java/com/facebook/ads/sdk/AdVideo.java | 48 ++- .../com/facebook/ads/sdk/AdsInsights.java | 9 + .../java/com/facebook/ads/sdk/AdsPixel.java | 134 +++++++ .../java/com/facebook/ads/sdk/Business.java | 92 ++++- .../facebook/ads/sdk/BusinessAssetGroup.java | 24 +- .../com/facebook/ads/sdk/BusinessUser.java | 24 +- src/main/java/com/facebook/ads/sdk/Group.java | 226 ----------- .../java/com/facebook/ads/sdk/IGMedia.java | 155 ++++++++ .../java/com/facebook/ads/sdk/IGUser.java | 32 ++ ...VideoCopyrightCheckMatchesInformation.java | 252 ++++++++++++ .../ads/sdk/IGVideoCopyrightCheckStatus.java | 247 ++++++++++++ .../facebook/ads/sdk/InstagramCarousel.java | 8 + .../facebook/ads/sdk/InstagramComment.java | 23 ++ .../com/facebook/ads/sdk/InstagramMedia.java | 8 + .../java/com/facebook/ads/sdk/LiveVideo.java | 24 +- .../ads/sdk/OpenBridgeConfiguration.java | 46 +++ src/main/java/com/facebook/ads/sdk/Page.java | 161 +++++--- .../java/com/facebook/ads/sdk/PagePost.java | 24 +- src/main/java/com/facebook/ads/sdk/Photo.java | 24 +- src/main/java/com/facebook/ads/sdk/Post.java | 24 +- .../com/facebook/ads/sdk/ProductFeed.java | 2 + .../com/facebook/ads/sdk/ShadowIGHashtag.java | 16 + .../ads/sdk/ShadowIGMediaBuilder.java | 15 + ...e.java => ShadowIGMediaCollaborators.java} | 130 +++---- .../java/com/facebook/ads/sdk/SystemUser.java | 24 +- src/main/java/com/facebook/ads/sdk/User.java | 96 +++-- .../ads/sdk/WhatsAppBusinessAccount.java | 59 +++ 37 files changed, 1485 insertions(+), 845 deletions(-) create mode 100644 src/main/java/com/facebook/ads/sdk/IGVideoCopyrightCheckMatchesInformation.java create mode 100644 src/main/java/com/facebook/ads/sdk/IGVideoCopyrightCheckStatus.java rename src/main/java/com/facebook/ads/sdk/{MessengerDestinationPageWelcomeMessage.java => ShadowIGMediaCollaborators.java} (55%) diff --git a/pom.xml b/pom.xml index 74514549..bb9e53ca 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.facebook.business.sdk facebook-java-business-sdk jar - 18.0.1 + 18.0.2 ${project.groupId}:${project.artifactId} Facebook Business Solutions SDK for Java https://developers.facebook.com/docs/marketing-api/sdks diff --git a/src/main/java/com/facebook/ads/sdk/APIConfig.java b/src/main/java/com/facebook/ads/sdk/APIConfig.java index 1a9f1349..7456f47a 100644 --- a/src/main/java/com/facebook/ads/sdk/APIConfig.java +++ b/src/main/java/com/facebook/ads/sdk/APIConfig.java @@ -27,5 +27,5 @@ public class APIConfig { public static final String DEFAULT_API_VERSION = "v18.0"; public static final String DEFAULT_API_BASE = "https://graph.facebook.com"; public static final String DEFAULT_VIDEO_API_BASE = "https://graph-video.facebook.com"; - public static final String USER_AGENT = "fbbizsdk-java-v18.0.1"; + public static final String USER_AGENT = "fbbizsdk-java-v18.0.2"; }; diff --git a/src/main/java/com/facebook/ads/sdk/AdAccount.java b/src/main/java/com/facebook/ads/sdk/AdAccount.java index 4a845b6b..1d7279a4 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccount.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccount.java @@ -497,10 +497,6 @@ public APIRequestCreateAd createAd() { return new APIRequestCreateAd(this.getPrefixedId().toString(), context); } - public APIRequestCreateAdsConversionGoal createAdsConversionGoal() { - return new APIRequestCreateAdsConversionGoal(this.getPrefixedId().toString(), context); - } - public APIRequestGetAdsReportingMmmReports getAdsReportingMmmReports() { return new APIRequestGetAdsReportingMmmReports(this.getPrefixedId().toString(), context); } @@ -6745,172 +6741,6 @@ public APIRequestCreateAd requestField (String field, boolean value) { } - public static class APIRequestCreateAdsConversionGoal extends APIRequest { - - APINode lastResponse = null; - @Override - public APINode getLastResponse() { - return lastResponse; - } - public static final String[] PARAMS = { - "conversion_event_value_source", - "description", - "goal_creation_method", - "goal_name", - "performance_goal", - "single_channel_conversion_events", - "value_adjustment_rule", - }; - - 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 APIRequestCreateAdsConversionGoal.this.parseResponse(result.getBody(), result.getHeader()); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - ); - }; - - public APIRequestCreateAdsConversionGoal(String nodeId, APIContext context) { - super(context, nodeId, "/ads_conversion_goal", "POST", Arrays.asList(PARAMS)); - } - - @Override - public APIRequestCreateAdsConversionGoal setParam(String param, Object value) { - setParamInternal(param, value); - return this; - } - - @Override - public APIRequestCreateAdsConversionGoal setParams(Map params) { - setParamsInternal(params); - return this; - } - - - public APIRequestCreateAdsConversionGoal setConversionEventValueSource (EnumConversionEventValueSource conversionEventValueSource) { - this.setParam("conversion_event_value_source", conversionEventValueSource); - return this; - } - public APIRequestCreateAdsConversionGoal setConversionEventValueSource (String conversionEventValueSource) { - this.setParam("conversion_event_value_source", conversionEventValueSource); - return this; - } - - public APIRequestCreateAdsConversionGoal setDescription (String description) { - this.setParam("description", description); - return this; - } - - public APIRequestCreateAdsConversionGoal setGoalCreationMethod (EnumGoalCreationMethod goalCreationMethod) { - this.setParam("goal_creation_method", goalCreationMethod); - return this; - } - public APIRequestCreateAdsConversionGoal setGoalCreationMethod (String goalCreationMethod) { - this.setParam("goal_creation_method", goalCreationMethod); - return this; - } - - public APIRequestCreateAdsConversionGoal setGoalName (String goalName) { - this.setParam("goal_name", goalName); - return this; - } - - public APIRequestCreateAdsConversionGoal setPerformanceGoal (EnumPerformanceGoal performanceGoal) { - this.setParam("performance_goal", performanceGoal); - return this; - } - public APIRequestCreateAdsConversionGoal setPerformanceGoal (String performanceGoal) { - this.setParam("performance_goal", performanceGoal); - return this; - } - - public APIRequestCreateAdsConversionGoal setSingleChannelConversionEvents (List> singleChannelConversionEvents) { - this.setParam("single_channel_conversion_events", singleChannelConversionEvents); - return this; - } - public APIRequestCreateAdsConversionGoal setSingleChannelConversionEvents (String singleChannelConversionEvents) { - this.setParam("single_channel_conversion_events", singleChannelConversionEvents); - return this; - } - - public APIRequestCreateAdsConversionGoal setValueAdjustmentRule (Map valueAdjustmentRule) { - this.setParam("value_adjustment_rule", valueAdjustmentRule); - return this; - } - public APIRequestCreateAdsConversionGoal setValueAdjustmentRule (String valueAdjustmentRule) { - this.setParam("value_adjustment_rule", valueAdjustmentRule); - return this; - } - - public APIRequestCreateAdsConversionGoal requestAllFields () { - return this.requestAllFields(true); - } - - public APIRequestCreateAdsConversionGoal requestAllFields (boolean value) { - for (String field : FIELDS) { - this.requestField(field, value); - } - return this; - } - - @Override - public APIRequestCreateAdsConversionGoal requestFields (List fields) { - return this.requestFields(fields, true); - } - - @Override - public APIRequestCreateAdsConversionGoal requestFields (List fields, boolean value) { - for (String field : fields) { - this.requestField(field, value); - } - return this; - } - - @Override - public APIRequestCreateAdsConversionGoal requestField (String field) { - this.requestField(field, true); - return this; - } - - @Override - public APIRequestCreateAdsConversionGoal requestField (String field, boolean value) { - this.requestFieldInternal(field, value); - return this; - } - - } - public static class APIRequestGetAdsReportingMmmReports extends APIRequest { APINodeList lastResponse = null; @@ -22470,6 +22300,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -22498,6 +22329,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -22517,7 +22349,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -22931,6 +22762,13 @@ public APIRequestGetPromotePages requestDisplayedMessageResponseTimeField (boole this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetPromotePages requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetPromotePages requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetPromotePages requestEmailsField () { return this.requestEmailsField(true); } @@ -23127,6 +22965,13 @@ public APIRequestGetPromotePages requestIsEligibleForBrandedContentField (boolea this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetPromotePages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetPromotePages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetPromotePages requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -23260,13 +23105,6 @@ public APIRequestGetPromotePages requestMessengerAdsDefaultIcebreakersField (boo this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetPromotePages requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetPromotePages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetPromotePages requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -29384,173 +29222,6 @@ public String toString() { } } - public static enum EnumConversionEventValueSource { - @SerializedName("DATA_SOURCE") - VALUE_DATA_SOURCE("DATA_SOURCE"), - @SerializedName("VALUE_RULE") - VALUE_VALUE_RULE("VALUE_RULE"), - ; - - private String value; - - private EnumConversionEventValueSource(String value) { - this.value = value; - } - - @Override - public String toString() { - return value; - } - } - - public static enum EnumGoalCreationMethod { - @SerializedName("ADVERTISER_CREATED_UI") - VALUE_ADVERTISER_CREATED_UI("ADVERTISER_CREATED_UI"), - @SerializedName("AUTO_MIGRATION") - VALUE_AUTO_MIGRATION("AUTO_MIGRATION"), - @SerializedName("L2_ENHANCE_API_MIGRATION") - VALUE_L2_ENHANCE_API_MIGRATION("L2_ENHANCE_API_MIGRATION"), - ; - - private String value; - - private EnumGoalCreationMethod(String value) { - this.value = value; - } - - @Override - public String toString() { - return value; - } - } - - public static enum EnumPerformanceGoal { - @SerializedName("AD_OPTIMIZATION_GOAL_AD_RECALL_LIFT") - VALUE_AD_OPTIMIZATION_GOAL_AD_RECALL_LIFT("AD_OPTIMIZATION_GOAL_AD_RECALL_LIFT"), - @SerializedName("AD_OPTIMIZATION_GOAL_APP_DOWNLOADS") - VALUE_AD_OPTIMIZATION_GOAL_APP_DOWNLOADS("AD_OPTIMIZATION_GOAL_APP_DOWNLOADS"), - @SerializedName("AD_OPTIMIZATION_GOAL_APP_INSTALLS") - VALUE_AD_OPTIMIZATION_GOAL_APP_INSTALLS("AD_OPTIMIZATION_GOAL_APP_INSTALLS"), - @SerializedName("AD_OPTIMIZATION_GOAL_APP_INSTALLS_AND_OFFSITE_CONVERSIONS") - VALUE_AD_OPTIMIZATION_GOAL_APP_INSTALLS_AND_OFFSITE_CONVERSIONS("AD_OPTIMIZATION_GOAL_APP_INSTALLS_AND_OFFSITE_CONVERSIONS"), - @SerializedName("AD_OPTIMIZATION_GOAL_BRAND_AWARENESS") - VALUE_AD_OPTIMIZATION_GOAL_BRAND_AWARENESS("AD_OPTIMIZATION_GOAL_BRAND_AWARENESS"), - @SerializedName("AD_OPTIMIZATION_GOAL_CLICKS") - VALUE_AD_OPTIMIZATION_GOAL_CLICKS("AD_OPTIMIZATION_GOAL_CLICKS"), - @SerializedName("AD_OPTIMIZATION_GOAL_COMPLETED_VIDEO_VIEWS") - VALUE_AD_OPTIMIZATION_GOAL_COMPLETED_VIDEO_VIEWS("AD_OPTIMIZATION_GOAL_COMPLETED_VIDEO_VIEWS"), - @SerializedName("AD_OPTIMIZATION_GOAL_CONVERSATIONS") - VALUE_AD_OPTIMIZATION_GOAL_CONVERSATIONS("AD_OPTIMIZATION_GOAL_CONVERSATIONS"), - @SerializedName("AD_OPTIMIZATION_GOAL_DERIVED_EVENTS") - VALUE_AD_OPTIMIZATION_GOAL_DERIVED_EVENTS("AD_OPTIMIZATION_GOAL_DERIVED_EVENTS"), - @SerializedName("AD_OPTIMIZATION_GOAL_DWELLS") - VALUE_AD_OPTIMIZATION_GOAL_DWELLS("AD_OPTIMIZATION_GOAL_DWELLS"), - @SerializedName("AD_OPTIMIZATION_GOAL_ENGAGED_REACH") - VALUE_AD_OPTIMIZATION_GOAL_ENGAGED_REACH("AD_OPTIMIZATION_GOAL_ENGAGED_REACH"), - @SerializedName("AD_OPTIMIZATION_GOAL_ENGAGED_USERS") - VALUE_AD_OPTIMIZATION_GOAL_ENGAGED_USERS("AD_OPTIMIZATION_GOAL_ENGAGED_USERS"), - @SerializedName("AD_OPTIMIZATION_GOAL_EVENT_RESPONSES") - VALUE_AD_OPTIMIZATION_GOAL_EVENT_RESPONSES("AD_OPTIMIZATION_GOAL_EVENT_RESPONSES"), - @SerializedName("AD_OPTIMIZATION_GOAL_EXTERNAL") - VALUE_AD_OPTIMIZATION_GOAL_EXTERNAL("AD_OPTIMIZATION_GOAL_EXTERNAL"), - @SerializedName("AD_OPTIMIZATION_GOAL_IMPRESSIONS") - VALUE_AD_OPTIMIZATION_GOAL_IMPRESSIONS("AD_OPTIMIZATION_GOAL_IMPRESSIONS"), - @SerializedName("AD_OPTIMIZATION_GOAL_INCREMENTAL_OFFSITE_CONVERSIONS") - VALUE_AD_OPTIMIZATION_GOAL_INCREMENTAL_OFFSITE_CONVERSIONS("AD_OPTIMIZATION_GOAL_INCREMENTAL_OFFSITE_CONVERSIONS"), - @SerializedName("AD_OPTIMIZATION_GOAL_IN_APP_VALUE") - VALUE_AD_OPTIMIZATION_GOAL_IN_APP_VALUE("AD_OPTIMIZATION_GOAL_IN_APP_VALUE"), - @SerializedName("AD_OPTIMIZATION_GOAL_JOB_APPLICATIONS") - VALUE_AD_OPTIMIZATION_GOAL_JOB_APPLICATIONS("AD_OPTIMIZATION_GOAL_JOB_APPLICATIONS"), - @SerializedName("AD_OPTIMIZATION_GOAL_LANDING_PAGE_VIEWS") - VALUE_AD_OPTIMIZATION_GOAL_LANDING_PAGE_VIEWS("AD_OPTIMIZATION_GOAL_LANDING_PAGE_VIEWS"), - @SerializedName("AD_OPTIMIZATION_GOAL_LEAD_GENERATION") - VALUE_AD_OPTIMIZATION_GOAL_LEAD_GENERATION("AD_OPTIMIZATION_GOAL_LEAD_GENERATION"), - @SerializedName("AD_OPTIMIZATION_GOAL_MEDIA_DOWNLOADS") - VALUE_AD_OPTIMIZATION_GOAL_MEDIA_DOWNLOADS("AD_OPTIMIZATION_GOAL_MEDIA_DOWNLOADS"), - @SerializedName("AD_OPTIMIZATION_GOAL_MESSAGING_APPOINTMENT_CONVERSION") - VALUE_AD_OPTIMIZATION_GOAL_MESSAGING_APPOINTMENT_CONVERSION("AD_OPTIMIZATION_GOAL_MESSAGING_APPOINTMENT_CONVERSION"), - @SerializedName("AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_FOLLOW") - VALUE_AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_FOLLOW("AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_FOLLOW"), - @SerializedName("AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_REPLY") - VALUE_AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_REPLY("AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_REPLY"), - @SerializedName("AD_OPTIMIZATION_GOAL_MESSAGING_PURCHASE_CONVERSION") - VALUE_AD_OPTIMIZATION_GOAL_MESSAGING_PURCHASE_CONVERSION("AD_OPTIMIZATION_GOAL_MESSAGING_PURCHASE_CONVERSION"), - @SerializedName("AD_OPTIMIZATION_GOAL_MID_FUNNEL_EVENT") - VALUE_AD_OPTIMIZATION_GOAL_MID_FUNNEL_EVENT("AD_OPTIMIZATION_GOAL_MID_FUNNEL_EVENT"), - @SerializedName("AD_OPTIMIZATION_GOAL_MRC_VIDEO_VIEWS") - VALUE_AD_OPTIMIZATION_GOAL_MRC_VIDEO_VIEWS("AD_OPTIMIZATION_GOAL_MRC_VIDEO_VIEWS"), - @SerializedName("AD_OPTIMIZATION_GOAL_MULTI_CONVERSIONS") - VALUE_AD_OPTIMIZATION_GOAL_MULTI_CONVERSIONS("AD_OPTIMIZATION_GOAL_MULTI_CONVERSIONS"), - @SerializedName("AD_OPTIMIZATION_GOAL_NONE") - VALUE_AD_OPTIMIZATION_GOAL_NONE("AD_OPTIMIZATION_GOAL_NONE"), - @SerializedName("AD_OPTIMIZATION_GOAL_OFFER_CLAIMS") - VALUE_AD_OPTIMIZATION_GOAL_OFFER_CLAIMS("AD_OPTIMIZATION_GOAL_OFFER_CLAIMS"), - @SerializedName("AD_OPTIMIZATION_GOAL_OFFLINE_CONVERSIONS") - VALUE_AD_OPTIMIZATION_GOAL_OFFLINE_CONVERSIONS("AD_OPTIMIZATION_GOAL_OFFLINE_CONVERSIONS"), - @SerializedName("AD_OPTIMIZATION_GOAL_OFFSITE_CLICKS") - VALUE_AD_OPTIMIZATION_GOAL_OFFSITE_CLICKS("AD_OPTIMIZATION_GOAL_OFFSITE_CLICKS"), - @SerializedName("AD_OPTIMIZATION_GOAL_OFFSITE_CONVERSIONS") - VALUE_AD_OPTIMIZATION_GOAL_OFFSITE_CONVERSIONS("AD_OPTIMIZATION_GOAL_OFFSITE_CONVERSIONS"), - @SerializedName("AD_OPTIMIZATION_GOAL_ONSITE_CONVERSIONS") - VALUE_AD_OPTIMIZATION_GOAL_ONSITE_CONVERSIONS("AD_OPTIMIZATION_GOAL_ONSITE_CONVERSIONS"), - @SerializedName("AD_OPTIMIZATION_GOAL_PAGE_ENGAGEMENT") - VALUE_AD_OPTIMIZATION_GOAL_PAGE_ENGAGEMENT("AD_OPTIMIZATION_GOAL_PAGE_ENGAGEMENT"), - @SerializedName("AD_OPTIMIZATION_GOAL_PAGE_FOLLOWS") - VALUE_AD_OPTIMIZATION_GOAL_PAGE_FOLLOWS("AD_OPTIMIZATION_GOAL_PAGE_FOLLOWS"), - @SerializedName("AD_OPTIMIZATION_GOAL_PAGE_LIKES") - VALUE_AD_OPTIMIZATION_GOAL_PAGE_LIKES("AD_OPTIMIZATION_GOAL_PAGE_LIKES"), - @SerializedName("AD_OPTIMIZATION_GOAL_POST_ENGAGEMENT") - VALUE_AD_OPTIMIZATION_GOAL_POST_ENGAGEMENT("AD_OPTIMIZATION_GOAL_POST_ENGAGEMENT"), - @SerializedName("AD_OPTIMIZATION_GOAL_QUALITY_CALL") - VALUE_AD_OPTIMIZATION_GOAL_QUALITY_CALL("AD_OPTIMIZATION_GOAL_QUALITY_CALL"), - @SerializedName("AD_OPTIMIZATION_GOAL_QUALITY_LEAD") - VALUE_AD_OPTIMIZATION_GOAL_QUALITY_LEAD("AD_OPTIMIZATION_GOAL_QUALITY_LEAD"), - @SerializedName("AD_OPTIMIZATION_GOAL_REACH") - VALUE_AD_OPTIMIZATION_GOAL_REACH("AD_OPTIMIZATION_GOAL_REACH"), - @SerializedName("AD_OPTIMIZATION_GOAL_REMINDERS_SET") - VALUE_AD_OPTIMIZATION_GOAL_REMINDERS_SET("AD_OPTIMIZATION_GOAL_REMINDERS_SET"), - @SerializedName("AD_OPTIMIZATION_GOAL_REPLIES") - VALUE_AD_OPTIMIZATION_GOAL_REPLIES("AD_OPTIMIZATION_GOAL_REPLIES"), - @SerializedName("AD_OPTIMIZATION_GOAL_RESEARCH_POLL_RESPONSES") - VALUE_AD_OPTIMIZATION_GOAL_RESEARCH_POLL_RESPONSES("AD_OPTIMIZATION_GOAL_RESEARCH_POLL_RESPONSES"), - @SerializedName("AD_OPTIMIZATION_GOAL_RETENTION") - VALUE_AD_OPTIMIZATION_GOAL_RETENTION("AD_OPTIMIZATION_GOAL_RETENTION"), - @SerializedName("AD_OPTIMIZATION_GOAL_RETURN_ON_AD_SPEND") - VALUE_AD_OPTIMIZATION_GOAL_RETURN_ON_AD_SPEND("AD_OPTIMIZATION_GOAL_RETURN_ON_AD_SPEND"), - @SerializedName("AD_OPTIMIZATION_GOAL_SOCIAL_IMPRESSIONS") - VALUE_AD_OPTIMIZATION_GOAL_SOCIAL_IMPRESSIONS("AD_OPTIMIZATION_GOAL_SOCIAL_IMPRESSIONS"), - @SerializedName("AD_OPTIMIZATION_GOAL_STORE_VISITS") - VALUE_AD_OPTIMIZATION_GOAL_STORE_VISITS("AD_OPTIMIZATION_GOAL_STORE_VISITS"), - @SerializedName("AD_OPTIMIZATION_GOAL_SUBSCRIBERS") - VALUE_AD_OPTIMIZATION_GOAL_SUBSCRIBERS("AD_OPTIMIZATION_GOAL_SUBSCRIBERS"), - @SerializedName("AD_OPTIMIZATION_GOAL_TICKET_PURCHASE") - VALUE_AD_OPTIMIZATION_GOAL_TICKET_PURCHASE("AD_OPTIMIZATION_GOAL_TICKET_PURCHASE"), - @SerializedName("AD_OPTIMIZATION_GOAL_VALUE") - VALUE_AD_OPTIMIZATION_GOAL_VALUE("AD_OPTIMIZATION_GOAL_VALUE"), - @SerializedName("AD_OPTIMIZATION_GOAL_VIDEO_LONG_VIEWS") - VALUE_AD_OPTIMIZATION_GOAL_VIDEO_LONG_VIEWS("AD_OPTIMIZATION_GOAL_VIDEO_LONG_VIEWS"), - @SerializedName("AD_OPTIMIZATION_GOAL_VIDEO_VIEWS") - VALUE_AD_OPTIMIZATION_GOAL_VIDEO_VIEWS("AD_OPTIMIZATION_GOAL_VIDEO_VIEWS"), - @SerializedName("AD_OPTIMIZATION_GOAL_VIDEO_VIEWS_15S") - VALUE_AD_OPTIMIZATION_GOAL_VIDEO_VIEWS_15S("AD_OPTIMIZATION_GOAL_VIDEO_VIEWS_15S"), - @SerializedName("AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE") - VALUE_AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE("AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE"), - @SerializedName("AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE_AND_PROFILE_ACTIONS") - VALUE_AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE_AND_PROFILE_ACTIONS("AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE_AND_PROFILE_ACTIONS"), - ; - - private String value; - - private EnumPerformanceGoal(String value) { - this.value = value; - } - - @Override - public String toString() { - return value; - } - } - public static enum EnumDeleteStrategy { @SerializedName("DELETE_ANY") VALUE_DELETE_ANY("DELETE_ANY"), diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountAdVolume.java b/src/main/java/com/facebook/ads/sdk/AdAccountAdVolume.java index ba0388ae..84900b88 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountAdVolume.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountAdVolume.java @@ -342,6 +342,12 @@ public static enum EnumRecommendationType { VALUE_ADS_REPORTING("ADS_REPORTING"), @SerializedName("ADVANCED_CAMPAIGN_BUDGET") VALUE_ADVANCED_CAMPAIGN_BUDGET("ADVANCED_CAMPAIGN_BUDGET"), + @SerializedName("ADVANTAGE_CUSTOM_AUDIENCE_UPSELL") + VALUE_ADVANTAGE_CUSTOM_AUDIENCE_UPSELL("ADVANTAGE_CUSTOM_AUDIENCE_UPSELL"), + @SerializedName("ADVANTAGE_PLUS_AUDIENCE_FRICTION") + VALUE_ADVANTAGE_PLUS_AUDIENCE_FRICTION("ADVANTAGE_PLUS_AUDIENCE_FRICTION"), + @SerializedName("ADVANTAGE_PLUS_AUDIENCE_TOGGLE") + VALUE_ADVANTAGE_PLUS_AUDIENCE_TOGGLE("ADVANTAGE_PLUS_AUDIENCE_TOGGLE"), @SerializedName("ADVANTAGE_PLUS_CREATIVE") VALUE_ADVANTAGE_PLUS_CREATIVE("ADVANTAGE_PLUS_CREATIVE"), @SerializedName("ADVANTAGE_PLUS_CREATIVE_CATALOG") @@ -412,6 +418,8 @@ public static enum EnumRecommendationType { VALUE_CREATOR_ADS_PA_CONVERSION("CREATOR_ADS_PA_CONVERSION"), @SerializedName("CTA") VALUE_CTA("CTA"), + @SerializedName("DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS") + VALUE_DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS("DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS"), @SerializedName("DEAD_LINK") VALUE_DEAD_LINK("DEAD_LINK"), @SerializedName("DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET") @@ -426,10 +434,14 @@ public static enum EnumRecommendationType { VALUE_GUIDANCE_CENTER_CODE_GEN("GUIDANCE_CENTER_CODE_GEN"), @SerializedName("LEARNING_LIMITED") VALUE_LEARNING_LIMITED("LEARNING_LIMITED"), + @SerializedName("LEARNING_PAUSE_FRICTION") + VALUE_LEARNING_PAUSE_FRICTION("LEARNING_PAUSE_FRICTION"), @SerializedName("LOW_OUTCOME") VALUE_LOW_OUTCOME("LOW_OUTCOME"), @SerializedName("MERLIN_GUIDANCE") VALUE_MERLIN_GUIDANCE("MERLIN_GUIDANCE"), + @SerializedName("MIXED_PA_COMBINE_ADSETS") + VALUE_MIXED_PA_COMBINE_ADSETS("MIXED_PA_COMBINE_ADSETS"), @SerializedName("MMT_CAROUSEL_TO_VIDEO") VALUE_MMT_CAROUSEL_TO_VIDEO("MMT_CAROUSEL_TO_VIDEO"), @SerializedName("MOBILE_FIRST_VIDEO") @@ -440,8 +452,8 @@ public static enum EnumRecommendationType { VALUE_MULTI_TEXT("MULTI_TEXT"), @SerializedName("MUSIC") VALUE_MUSIC("MUSIC"), - @SerializedName("OPTIMAL_SPEND") - VALUE_OPTIMAL_SPEND("OPTIMAL_SPEND"), + @SerializedName("OPTIMAL_BAU") + VALUE_OPTIMAL_BAU("OPTIMAL_BAU"), @SerializedName("PAYMENT_METHOD") VALUE_PAYMENT_METHOD("PAYMENT_METHOD"), @SerializedName("PERFORMANT_CREATIVE_REELS_OPT_IN") diff --git a/src/main/java/com/facebook/ads/sdk/AdActivity.java b/src/main/java/com/facebook/ads/sdk/AdActivity.java index e39cbee0..df361e0f 100644 --- a/src/main/java/com/facebook/ads/sdk/AdActivity.java +++ b/src/main/java/com/facebook/ads/sdk/AdActivity.java @@ -466,6 +466,8 @@ public static enum EnumEventType { VALUE_UPDATE_CAMPAIGN_BUDGET_OPTIMIZATION_TOGGLING_STATUS("update_campaign_budget_optimization_toggling_status"), @SerializedName("update_campaign_budget_scheduling_state") VALUE_UPDATE_CAMPAIGN_BUDGET_SCHEDULING_STATE("update_campaign_budget_scheduling_state"), + @SerializedName("update_campaign_conversion_goal") + VALUE_UPDATE_CAMPAIGN_CONVERSION_GOAL("update_campaign_conversion_goal"), @SerializedName("update_campaign_delivery_type") VALUE_UPDATE_CAMPAIGN_DELIVERY_TYPE("update_campaign_delivery_type"), @SerializedName("update_campaign_group_ad_scheduling") diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpec.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpec.java index f7b2afb3..addbb6c7 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpec.java @@ -475,6 +475,8 @@ public static enum EnumCallToActionTypes { VALUE_CALL_ME("CALL_ME"), @SerializedName("CALL_NOW") VALUE_CALL_NOW("CALL_NOW"), + @SerializedName("CONFIRM") + VALUE_CONFIRM("CONFIRM"), @SerializedName("CONTACT") VALUE_CONTACT("CONTACT"), @SerializedName("CONTACT_US") diff --git a/src/main/java/com/facebook/ads/sdk/AdCreative.java b/src/main/java/com/facebook/ads/sdk/AdCreative.java index 0b20d390..a049f014 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreative.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreative.java @@ -2481,6 +2481,8 @@ public static enum EnumCallToActionType { VALUE_CALL_ME("CALL_ME"), @SerializedName("CALL_NOW") VALUE_CALL_NOW("CALL_NOW"), + @SerializedName("CONFIRM") + VALUE_CONFIRM("CONFIRM"), @SerializedName("CONTACT") VALUE_CONTACT("CONTACT"), @SerializedName("CONTACT_US") diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToAction.java b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToAction.java index b9529fc1..c72f13eb 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToAction.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToAction.java @@ -243,6 +243,8 @@ public static enum EnumType { VALUE_CALL_ME("CALL_ME"), @SerializedName("CALL_NOW") VALUE_CALL_NOW("CALL_NOW"), + @SerializedName("CONFIRM") + VALUE_CONFIRM("CONFIRM"), @SerializedName("CONTACT") VALUE_CONTACT("CONTACT"), @SerializedName("CONTACT_US") diff --git a/src/main/java/com/facebook/ads/sdk/AdPromotedObject.java b/src/main/java/com/facebook/ads/sdk/AdPromotedObject.java index 311c9b63..ee7bd118 100644 --- a/src/main/java/com/facebook/ads/sdk/AdPromotedObject.java +++ b/src/main/java/com/facebook/ads/sdk/AdPromotedObject.java @@ -86,8 +86,6 @@ public class AdPromotedObject extends APINode { private String mProductSetId = null; @SerializedName("retention_days") private String mRetentionDays = null; - @SerializedName("whats_app_business_phone_number_id") - private Object mWhatsAppBusinessPhoneNumberId = null; protected static Gson gson = null; public AdPromotedObject() { @@ -454,15 +452,6 @@ public AdPromotedObject setFieldRetentionDays(String value) { return this; } - public Object getFieldWhatsAppBusinessPhoneNumberId() { - return mWhatsAppBusinessPhoneNumberId; - } - - public AdPromotedObject setFieldWhatsAppBusinessPhoneNumberId(Object value) { - this.mWhatsAppBusinessPhoneNumberId = value; - return this; - } - public static enum EnumCustomEventType { @@ -574,7 +563,6 @@ public AdPromotedObject copyFrom(AdPromotedObject instance) { this.mProductItemId = instance.mProductItemId; this.mProductSetId = instance.mProductSetId; this.mRetentionDays = instance.mRetentionDays; - this.mWhatsAppBusinessPhoneNumberId = instance.mWhatsAppBusinessPhoneNumberId; this.context = instance.context; this.rawValue = instance.rawValue; return this; diff --git a/src/main/java/com/facebook/ads/sdk/AdReportRun.java b/src/main/java/com/facebook/ads/sdk/AdReportRun.java index a3c544fe..19a86838 100644 --- a/src/main/java/com/facebook/ads/sdk/AdReportRun.java +++ b/src/main/java/com/facebook/ads/sdk/AdReportRun.java @@ -1853,6 +1853,8 @@ public static enum EnumBreakdowns { VALUE_LINK_URL_ASSET("link_url_asset"), @SerializedName("marketing_messages_btn_name") VALUE_MARKETING_MESSAGES_BTN_NAME("marketing_messages_btn_name"), + @SerializedName("mdsa_landing_destination") + VALUE_MDSA_LANDING_DESTINATION("mdsa_landing_destination"), @SerializedName("media_asset_url") VALUE_MEDIA_ASSET_URL("media_asset_url"), @SerializedName("media_creator") diff --git a/src/main/java/com/facebook/ads/sdk/AdVideo.java b/src/main/java/com/facebook/ads/sdk/AdVideo.java index 7303f5cd..0c001778 100644 --- a/src/main/java/com/facebook/ads/sdk/AdVideo.java +++ b/src/main/java/com/facebook/ads/sdk/AdVideo.java @@ -1649,6 +1649,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -1677,6 +1678,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -1696,7 +1698,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -2110,6 +2111,13 @@ public APIRequestGetCrosspostSharedPages requestDisplayedMessageResponseTimeFiel this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetCrosspostSharedPages requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetCrosspostSharedPages requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetCrosspostSharedPages requestEmailsField () { return this.requestEmailsField(true); } @@ -2306,6 +2314,13 @@ public APIRequestGetCrosspostSharedPages requestIsEligibleForBrandedContentField this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetCrosspostSharedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetCrosspostSharedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetCrosspostSharedPages requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -2439,13 +2454,6 @@ public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultIcebreakersFi this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -3809,6 +3817,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -3837,6 +3846,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -3856,7 +3866,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -4270,6 +4279,13 @@ public APIRequestGetSponsorTags requestDisplayedMessageResponseTimeField (boolea this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetSponsorTags requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetSponsorTags requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetSponsorTags requestEmailsField () { return this.requestEmailsField(true); } @@ -4466,6 +4482,13 @@ public APIRequestGetSponsorTags requestIsEligibleForBrandedContentField (boolean this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetSponsorTags requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetSponsorTags requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetSponsorTags requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -4599,13 +4622,6 @@ public APIRequestGetSponsorTags requestMessengerAdsDefaultIcebreakersField (bool this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetSponsorTags requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetSponsorTags requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetSponsorTags requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/AdsInsights.java b/src/main/java/com/facebook/ads/sdk/AdsInsights.java index c517f83e..fe762b25 100644 --- a/src/main/java/com/facebook/ads/sdk/AdsInsights.java +++ b/src/main/java/com/facebook/ads/sdk/AdsInsights.java @@ -347,6 +347,8 @@ public class AdsInsights extends APINode { private String mLinkUrlAsset = null; @SerializedName("marketing_messages_btn_name") private String mMarketingMessagesBtnName = null; + @SerializedName("mdsa_landing_destination") + private String mMdsaLandingDestination = null; @SerializedName("media_asset_url") private String mMediaAssetUrl = null; @SerializedName("media_creator") @@ -2090,6 +2092,10 @@ public String getFieldMarketingMessagesBtnName() { return mMarketingMessagesBtnName; } + public String getFieldMdsaLandingDestination() { + return mMdsaLandingDestination; + } + public String getFieldMediaAssetUrl() { return mMediaAssetUrl; } @@ -2310,6 +2316,8 @@ public static enum EnumBreakdowns { VALUE_LINK_URL_ASSET("link_url_asset"), @SerializedName("marketing_messages_btn_name") VALUE_MARKETING_MESSAGES_BTN_NAME("marketing_messages_btn_name"), + @SerializedName("mdsa_landing_destination") + VALUE_MDSA_LANDING_DESTINATION("mdsa_landing_destination"), @SerializedName("media_asset_url") VALUE_MEDIA_ASSET_URL("media_asset_url"), @SerializedName("media_creator") @@ -2647,6 +2655,7 @@ public AdsInsights copyFrom(AdsInsights instance) { this.mIsConversionIdModeled = instance.mIsConversionIdModeled; this.mLinkUrlAsset = instance.mLinkUrlAsset; this.mMarketingMessagesBtnName = instance.mMarketingMessagesBtnName; + this.mMdsaLandingDestination = instance.mMdsaLandingDestination; this.mMediaAssetUrl = instance.mMediaAssetUrl; this.mMediaCreator = instance.mMediaCreator; this.mMediaDestinationUrl = instance.mMediaDestinationUrl; diff --git a/src/main/java/com/facebook/ads/sdk/AdsPixel.java b/src/main/java/com/facebook/ads/sdk/AdsPixel.java index 0900c26c..780d5456 100644 --- a/src/main/java/com/facebook/ads/sdk/AdsPixel.java +++ b/src/main/java/com/facebook/ads/sdk/AdsPixel.java @@ -323,6 +323,10 @@ public APIRequestGetAgencies getAgencies() { return new APIRequestGetAgencies(this.getPrefixedId().toString(), context); } + public APIRequestCreateAhpConfig createAhpConfig() { + return new APIRequestCreateAhpConfig(this.getPrefixedId().toString(), context); + } + public APIRequestGetAssignedUsers getAssignedUsers() { return new APIRequestGetAssignedUsers(this.getPrefixedId().toString(), context); } @@ -1465,6 +1469,120 @@ public APIRequestGetAgencies requestVerticalIdField (boolean value) { } } + public static class APIRequestCreateAhpConfig extends APIRequest { + + APINode lastResponse = null; + @Override + public APINode getLastResponse() { + return lastResponse; + } + public static final String[] PARAMS = { + "applink_autosetup", + }; + + 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 APIRequestCreateAhpConfig.this.parseResponse(result.getBody(), result.getHeader()); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + } + ); + }; + + public APIRequestCreateAhpConfig(String nodeId, APIContext context) { + super(context, nodeId, "/ahp_configs", "POST", Arrays.asList(PARAMS)); + } + + @Override + public APIRequestCreateAhpConfig setParam(String param, Object value) { + setParamInternal(param, value); + return this; + } + + @Override + public APIRequestCreateAhpConfig setParams(Map params) { + setParamsInternal(params); + return this; + } + + + public APIRequestCreateAhpConfig setApplinkAutosetup (Boolean applinkAutosetup) { + this.setParam("applink_autosetup", applinkAutosetup); + return this; + } + public APIRequestCreateAhpConfig setApplinkAutosetup (String applinkAutosetup) { + this.setParam("applink_autosetup", applinkAutosetup); + return this; + } + + public APIRequestCreateAhpConfig requestAllFields () { + return this.requestAllFields(true); + } + + public APIRequestCreateAhpConfig requestAllFields (boolean value) { + for (String field : FIELDS) { + this.requestField(field, value); + } + return this; + } + + @Override + public APIRequestCreateAhpConfig requestFields (List fields) { + return this.requestFields(fields, true); + } + + @Override + public APIRequestCreateAhpConfig requestFields (List fields, boolean value) { + for (String field : fields) { + this.requestField(field, value); + } + return this; + } + + @Override + public APIRequestCreateAhpConfig requestField (String field) { + this.requestField(field, true); + return this; + } + + @Override + public APIRequestCreateAhpConfig requestField (String field, boolean value) { + this.requestFieldInternal(field, value); + return this; + } + + } + public static class APIRequestGetAssignedUsers extends APIRequest { APINodeList lastResponse = null; @@ -2445,6 +2563,8 @@ public APINodeList getLastResponse() { "access_key", "active", "endpoint", + "fallback_domain", + "fallback_domain_enabled", "host_business_id", "host_external_id", "id", @@ -2561,6 +2681,20 @@ public APIRequestGetOpenBridgeConfigurations requestEndpointField (boolean value this.requestField("endpoint", value); return this; } + public APIRequestGetOpenBridgeConfigurations requestFallbackDomainField () { + return this.requestFallbackDomainField(true); + } + public APIRequestGetOpenBridgeConfigurations requestFallbackDomainField (boolean value) { + this.requestField("fallback_domain", value); + return this; + } + public APIRequestGetOpenBridgeConfigurations requestFallbackDomainEnabledField () { + return this.requestFallbackDomainEnabledField(true); + } + public APIRequestGetOpenBridgeConfigurations requestFallbackDomainEnabledField (boolean value) { + this.requestField("fallback_domain_enabled", value); + return this; + } public APIRequestGetOpenBridgeConfigurations requestHostBusinessIdField () { return this.requestHostBusinessIdField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/Business.java b/src/main/java/com/facebook/ads/sdk/Business.java index df4eaea1..22fe1416 100644 --- a/src/main/java/com/facebook/ads/sdk/Business.java +++ b/src/main/java/com/facebook/ads/sdk/Business.java @@ -6729,6 +6729,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -6757,6 +6758,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -6776,7 +6778,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -7190,6 +7191,13 @@ public APIRequestGetClientPages requestDisplayedMessageResponseTimeField (boolea this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetClientPages requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetClientPages requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetClientPages requestEmailsField () { return this.requestEmailsField(true); } @@ -7386,6 +7394,13 @@ public APIRequestGetClientPages requestIsEligibleForBrandedContentField (boolean this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetClientPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetClientPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetClientPages requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -7519,13 +7534,6 @@ public APIRequestGetClientPages requestMessengerAdsDefaultIcebreakersField (bool this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetClientPages requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetClientPages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetClientPages requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -14221,6 +14229,8 @@ public APINodeList getLastResponse() { "access_key", "active", "endpoint", + "fallback_domain", + "fallback_domain_enabled", "host_business_id", "host_external_id", "id", @@ -14337,6 +14347,20 @@ public APIRequestGetOpenBridgeConfigurations requestEndpointField (boolean value this.requestField("endpoint", value); return this; } + public APIRequestGetOpenBridgeConfigurations requestFallbackDomainField () { + return this.requestFallbackDomainField(true); + } + public APIRequestGetOpenBridgeConfigurations requestFallbackDomainField (boolean value) { + this.requestField("fallback_domain", value); + return this; + } + public APIRequestGetOpenBridgeConfigurations requestFallbackDomainEnabledField () { + return this.requestFallbackDomainEnabledField(true); + } + public APIRequestGetOpenBridgeConfigurations requestFallbackDomainEnabledField (boolean value) { + this.requestField("fallback_domain_enabled", value); + return this; + } public APIRequestGetOpenBridgeConfigurations requestHostBusinessIdField () { return this.requestHostBusinessIdField(true); } @@ -14378,6 +14402,8 @@ public OpenBridgeConfiguration getLastResponse() { "access_key", "active", "endpoint", + "fallback_domain", + "fallback_domain_enabled", "host_business_id", "host_external_id", "pixel_id", @@ -14458,6 +14484,20 @@ public APIRequestCreateOpenBridgeConfiguration setEndpoint (String endpoint) { return this; } + public APIRequestCreateOpenBridgeConfiguration setFallbackDomain (String fallbackDomain) { + this.setParam("fallback_domain", fallbackDomain); + return this; + } + + public APIRequestCreateOpenBridgeConfiguration setFallbackDomainEnabled (Boolean fallbackDomainEnabled) { + this.setParam("fallback_domain_enabled", fallbackDomainEnabled); + return this; + } + public APIRequestCreateOpenBridgeConfiguration setFallbackDomainEnabled (String fallbackDomainEnabled) { + this.setParam("fallback_domain_enabled", fallbackDomainEnabled); + return this; + } + public APIRequestCreateOpenBridgeConfiguration setHostBusinessId (Long hostBusinessId) { this.setParam("host_business_id", hostBusinessId); return this; @@ -17263,6 +17303,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -17291,6 +17332,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -17310,7 +17352,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -17724,6 +17765,13 @@ public APIRequestGetOwnedPages requestDisplayedMessageResponseTimeField (boolean this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetOwnedPages requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetOwnedPages requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetOwnedPages requestEmailsField () { return this.requestEmailsField(true); } @@ -17920,6 +17968,13 @@ public APIRequestGetOwnedPages requestIsEligibleForBrandedContentField (boolean this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetOwnedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetOwnedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetOwnedPages requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -18053,13 +18108,6 @@ public APIRequestGetOwnedPages requestMessengerAdsDefaultIcebreakersField (boole this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetOwnedPages requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetOwnedPages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetOwnedPages requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -18512,6 +18560,7 @@ public Business getLastResponse() { } public static final String[] PARAMS = { "code", + "entry_point", "page_id", }; @@ -18576,6 +18625,11 @@ public APIRequestCreateOwnedPage setCode (String code) { return this; } + public APIRequestCreateOwnedPage setEntryPoint (String entryPoint) { + this.setParam("entry_point", entryPoint); + return this; + } + public APIRequestCreateOwnedPage setPageId (Long pageId) { this.setParam("page_id", pageId); return this; @@ -23531,6 +23585,7 @@ public Business getLastResponse() { return lastResponse; } public static final String[] PARAMS = { + "entry_point", "name", "primary_page", "timezone_id", @@ -23594,6 +23649,11 @@ public APIRequestUpdate setParams(Map params) { } + public APIRequestUpdate setEntryPoint (String entryPoint) { + this.setParam("entry_point", entryPoint); + return this; + } + public APIRequestUpdate setName (String name) { this.setParam("name", name); return this; diff --git a/src/main/java/com/facebook/ads/sdk/BusinessAssetGroup.java b/src/main/java/com/facebook/ads/sdk/BusinessAssetGroup.java index 78b88e2c..0873fde6 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessAssetGroup.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessAssetGroup.java @@ -4449,6 +4449,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -4477,6 +4478,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -4496,7 +4498,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -4910,6 +4911,13 @@ public APIRequestGetContainedPages requestDisplayedMessageResponseTimeField (boo this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetContainedPages requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetContainedPages requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetContainedPages requestEmailsField () { return this.requestEmailsField(true); } @@ -5106,6 +5114,13 @@ public APIRequestGetContainedPages requestIsEligibleForBrandedContentField (bool this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetContainedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetContainedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetContainedPages requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -5239,13 +5254,6 @@ public APIRequestGetContainedPages requestMessengerAdsDefaultIcebreakersField (b this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetContainedPages requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetContainedPages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetContainedPages requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessUser.java b/src/main/java/com/facebook/ads/sdk/BusinessUser.java index 893d380f..7ff1a761 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessUser.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessUser.java @@ -1209,6 +1209,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -1237,6 +1238,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -1256,7 +1258,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -1679,6 +1680,13 @@ public APIRequestGetAssignedPages requestDisplayedMessageResponseTimeField (bool this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetAssignedPages requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetAssignedPages requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetAssignedPages requestEmailsField () { return this.requestEmailsField(true); } @@ -1875,6 +1883,13 @@ public APIRequestGetAssignedPages requestIsEligibleForBrandedContentField (boole this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetAssignedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetAssignedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetAssignedPages requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -2008,13 +2023,6 @@ public APIRequestGetAssignedPages requestMessengerAdsDefaultIcebreakersField (bo this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetAssignedPages requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetAssignedPages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetAssignedPages requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/Group.java b/src/main/java/com/facebook/ads/sdk/Group.java index 9a7634d3..9e7a4a5e 100644 --- a/src/main/java/com/facebook/ads/sdk/Group.java +++ b/src/main/java/com/facebook/ads/sdk/Group.java @@ -303,14 +303,6 @@ public APIRequestCreateAlbum createAlbum() { return new APIRequestCreateAlbum(this.getPrefixedId().toString(), context); } - public APIRequestGetAttachmentSurfaces getAttachmentSurfaces() { - return new APIRequestGetAttachmentSurfaces(this.getPrefixedId().toString(), context); - } - - public APIRequestCreateAttachmentSurface createAttachmentSurface() { - return new APIRequestCreateAttachmentSurface(this.getPrefixedId().toString(), context); - } - public APIRequestGetDocs getDocs() { return new APIRequestGetDocs(this.getPrefixedId().toString(), context); } @@ -1174,224 +1166,6 @@ public APIRequestCreateAlbum requestField (String field, boolean value) { } - public static class APIRequestGetAttachmentSurfaces 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 APIRequestGetAttachmentSurfaces.this.parseResponse(result.getBody(), result.getHeader()); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - ); - }; - - public APIRequestGetAttachmentSurfaces(String nodeId, APIContext context) { - super(context, nodeId, "/attachment_surfaces", "GET", Arrays.asList(PARAMS)); - } - - @Override - public APIRequestGetAttachmentSurfaces setParam(String param, Object value) { - setParamInternal(param, value); - return this; - } - - @Override - public APIRequestGetAttachmentSurfaces setParams(Map params) { - setParamsInternal(params); - return this; - } - - - public APIRequestGetAttachmentSurfaces requestAllFields () { - return this.requestAllFields(true); - } - - public APIRequestGetAttachmentSurfaces requestAllFields (boolean value) { - for (String field : FIELDS) { - this.requestField(field, value); - } - return this; - } - - @Override - public APIRequestGetAttachmentSurfaces requestFields (List fields) { - return this.requestFields(fields, true); - } - - @Override - public APIRequestGetAttachmentSurfaces requestFields (List fields, boolean value) { - for (String field : fields) { - this.requestField(field, value); - } - return this; - } - - @Override - public APIRequestGetAttachmentSurfaces requestField (String field) { - this.requestField(field, true); - return this; - } - - @Override - public APIRequestGetAttachmentSurfaces requestField (String field, boolean value) { - this.requestFieldInternal(field, value); - return this; - } - - } - - public static class APIRequestCreateAttachmentSurface extends APIRequest { - - APINode lastResponse = null; - @Override - public APINode getLastResponse() { - return lastResponse; - } - public static final String[] PARAMS = { - "title", - }; - - 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 APIRequestCreateAttachmentSurface.this.parseResponse(result.getBody(), result.getHeader()); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - ); - }; - - public APIRequestCreateAttachmentSurface(String nodeId, APIContext context) { - super(context, nodeId, "/attachment_surfaces", "POST", Arrays.asList(PARAMS)); - } - - @Override - public APIRequestCreateAttachmentSurface setParam(String param, Object value) { - setParamInternal(param, value); - return this; - } - - @Override - public APIRequestCreateAttachmentSurface setParams(Map params) { - setParamsInternal(params); - return this; - } - - - public APIRequestCreateAttachmentSurface setTitle (Map title) { - this.setParam("title", title); - return this; - } - public APIRequestCreateAttachmentSurface setTitle (String title) { - this.setParam("title", title); - return this; - } - - public APIRequestCreateAttachmentSurface requestAllFields () { - return this.requestAllFields(true); - } - - public APIRequestCreateAttachmentSurface requestAllFields (boolean value) { - for (String field : FIELDS) { - this.requestField(field, value); - } - return this; - } - - @Override - public APIRequestCreateAttachmentSurface requestFields (List fields) { - return this.requestFields(fields, true); - } - - @Override - public APIRequestCreateAttachmentSurface requestFields (List fields, boolean value) { - for (String field : fields) { - this.requestField(field, value); - } - return this; - } - - @Override - public APIRequestCreateAttachmentSurface requestField (String field) { - this.requestField(field, true); - return this; - } - - @Override - public APIRequestCreateAttachmentSurface requestField (String field, boolean value) { - this.requestFieldInternal(field, value); - return this; - } - - } - public static class APIRequestGetDocs extends APIRequest { APINodeList lastResponse = null; diff --git a/src/main/java/com/facebook/ads/sdk/IGMedia.java b/src/main/java/com/facebook/ads/sdk/IGMedia.java index b29b3be5..68fecc77 100644 --- a/src/main/java/com/facebook/ads/sdk/IGMedia.java +++ b/src/main/java/com/facebook/ads/sdk/IGMedia.java @@ -44,6 +44,8 @@ public class IGMedia extends APINode { private String mCaption = null; @SerializedName("comments_count") private Long mCommentsCount = null; + @SerializedName("copyright_check_information") + private IGVideoCopyrightCheckMatchesInformation mCopyrightCheckInformation = null; @SerializedName("id") private String mId = null; @SerializedName("ig_id") @@ -285,6 +287,10 @@ public APIRequestGetChildren getChildren() { return new APIRequestGetChildren(this.getPrefixedId().toString(), context); } + public APIRequestGetCollaborators getCollaborators() { + return new APIRequestGetCollaborators(this.getPrefixedId().toString(), context); + } + public APIRequestGetComments getComments() { return new APIRequestGetComments(this.getPrefixedId().toString(), context); } @@ -326,6 +332,10 @@ public Long getFieldCommentsCount() { return mCommentsCount; } + public IGVideoCopyrightCheckMatchesInformation getFieldCopyrightCheckInformation() { + return mCopyrightCheckInformation; + } + public String getFieldId() { return mId; } @@ -400,6 +410,7 @@ public APINodeList getLastResponse() { public static final String[] FIELDS = { "caption", "comments_count", + "copyright_check_information", "id", "ig_id", "is_comment_enabled", @@ -519,6 +530,13 @@ public APIRequestGetChildren requestCommentsCountField (boolean value) { this.requestField("comments_count", value); return this; } + public APIRequestGetChildren requestCopyrightCheckInformationField () { + return this.requestCopyrightCheckInformationField(true); + } + public APIRequestGetChildren requestCopyrightCheckInformationField (boolean value) { + this.requestField("copyright_check_information", value); + return this; + } public APIRequestGetChildren requestIdField () { return this.requestIdField(true); } @@ -619,6 +637,134 @@ public APIRequestGetChildren requestUsernameField (boolean value) { } } + public static class APIRequestGetCollaborators extends APIRequest { + + APINodeList lastResponse = null; + @Override + public APINodeList getLastResponse() { + return lastResponse; + } + public static final String[] PARAMS = { + }; + + public static final String[] FIELDS = { + "id", + "invite_status", + "username", + }; + + @Override + public APINodeList parseResponse(String response, String header) throws APIException { + return ShadowIGMediaCollaborators.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 APIRequestGetCollaborators.this.parseResponse(result.getBody(), result.getHeader()); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + } + ); + }; + + public APIRequestGetCollaborators(String nodeId, APIContext context) { + super(context, nodeId, "/collaborators", "GET", Arrays.asList(PARAMS)); + } + + @Override + public APIRequestGetCollaborators setParam(String param, Object value) { + setParamInternal(param, value); + return this; + } + + @Override + public APIRequestGetCollaborators setParams(Map params) { + setParamsInternal(params); + return this; + } + + + public APIRequestGetCollaborators requestAllFields () { + return this.requestAllFields(true); + } + + public APIRequestGetCollaborators requestAllFields (boolean value) { + for (String field : FIELDS) { + this.requestField(field, value); + } + return this; + } + + @Override + public APIRequestGetCollaborators requestFields (List fields) { + return this.requestFields(fields, true); + } + + @Override + public APIRequestGetCollaborators requestFields (List fields, boolean value) { + for (String field : fields) { + this.requestField(field, value); + } + return this; + } + + @Override + public APIRequestGetCollaborators requestField (String field) { + this.requestField(field, true); + return this; + } + + @Override + public APIRequestGetCollaborators requestField (String field, boolean value) { + this.requestFieldInternal(field, value); + return this; + } + + public APIRequestGetCollaborators requestIdField () { + return this.requestIdField(true); + } + public APIRequestGetCollaborators requestIdField (boolean value) { + this.requestField("id", value); + return this; + } + public APIRequestGetCollaborators requestInviteStatusField () { + return this.requestInviteStatusField(true); + } + public APIRequestGetCollaborators requestInviteStatusField (boolean value) { + this.requestField("invite_status", value); + return this; + } + public APIRequestGetCollaborators requestUsernameField () { + return this.requestUsernameField(true); + } + public APIRequestGetCollaborators requestUsernameField (boolean value) { + this.requestField("username", value); + return this; + } + } + public static class APIRequestGetComments extends APIRequest { APINodeList lastResponse = null; @@ -1556,6 +1702,7 @@ public IGMedia getLastResponse() { public static final String[] FIELDS = { "caption", "comments_count", + "copyright_check_information", "id", "ig_id", "is_comment_enabled", @@ -1675,6 +1822,13 @@ public APIRequestGet requestCommentsCountField (boolean value) { this.requestField("comments_count", value); return this; } + public APIRequestGet requestCopyrightCheckInformationField () { + return this.requestCopyrightCheckInformationField(true); + } + public APIRequestGet requestCopyrightCheckInformationField (boolean value) { + this.requestField("copyright_check_information", value); + return this; + } public APIRequestGet requestIdField () { return this.requestIdField(true); } @@ -1906,6 +2060,7 @@ public APIRequestUpdate requestField (String field, boolean value) { public IGMedia copyFrom(IGMedia instance) { this.mCaption = instance.mCaption; this.mCommentsCount = instance.mCommentsCount; + this.mCopyrightCheckInformation = instance.mCopyrightCheckInformation; this.mId = instance.mId; this.mIgId = instance.mIgId; this.mIsCommentEnabled = instance.mIsCommentEnabled; diff --git a/src/main/java/com/facebook/ads/sdk/IGUser.java b/src/main/java/com/facebook/ads/sdk/IGUser.java index 59e8cab6..aead4d19 100644 --- a/src/main/java/com/facebook/ads/sdk/IGUser.java +++ b/src/main/java/com/facebook/ads/sdk/IGUser.java @@ -1219,6 +1219,7 @@ public APINodeList getLastResponse() { public static final String[] FIELDS = { "caption", "comments_count", + "copyright_check_information", "id", "ig_id", "is_comment_enabled", @@ -1348,6 +1349,13 @@ public APIRequestGetLiveMedia requestCommentsCountField (boolean value) { this.requestField("comments_count", value); return this; } + public APIRequestGetLiveMedia requestCopyrightCheckInformationField () { + return this.requestCopyrightCheckInformationField(true); + } + public APIRequestGetLiveMedia requestCopyrightCheckInformationField (boolean value) { + this.requestField("copyright_check_information", value); + return this; + } public APIRequestGetLiveMedia requestIdField () { return this.requestIdField(true); } @@ -1463,6 +1471,7 @@ public APINodeList getLastResponse() { public static final String[] FIELDS = { "caption", "comments_count", + "copyright_check_information", "id", "ig_id", "is_comment_enabled", @@ -1592,6 +1601,13 @@ public APIRequestGetMedia requestCommentsCountField (boolean value) { this.requestField("comments_count", value); return this; } + public APIRequestGetMedia requestCopyrightCheckInformationField () { + return this.requestCopyrightCheckInformationField(true); + } + public APIRequestGetMedia requestCopyrightCheckInformationField (boolean value) { + this.requestField("copyright_check_information", value); + return this; + } public APIRequestGetMedia requestIdField () { return this.requestIdField(true); } @@ -2731,6 +2747,7 @@ public APINodeList getLastResponse() { public static final String[] FIELDS = { "caption", "comments_count", + "copyright_check_information", "id", "ig_id", "is_comment_enabled", @@ -2850,6 +2867,13 @@ public APIRequestGetStories requestCommentsCountField (boolean value) { this.requestField("comments_count", value); return this; } + public APIRequestGetStories requestCopyrightCheckInformationField () { + return this.requestCopyrightCheckInformationField(true); + } + public APIRequestGetStories requestCopyrightCheckInformationField (boolean value) { + this.requestField("copyright_check_information", value); + return this; + } public APIRequestGetStories requestIdField () { return this.requestIdField(true); } @@ -2963,6 +2987,7 @@ public APINodeList getLastResponse() { public static final String[] FIELDS = { "caption", "comments_count", + "copyright_check_information", "id", "ig_id", "is_comment_enabled", @@ -3082,6 +3107,13 @@ public APIRequestGetTags requestCommentsCountField (boolean value) { this.requestField("comments_count", value); return this; } + public APIRequestGetTags requestCopyrightCheckInformationField () { + return this.requestCopyrightCheckInformationField(true); + } + public APIRequestGetTags requestCopyrightCheckInformationField (boolean value) { + this.requestField("copyright_check_information", value); + return this; + } public APIRequestGetTags requestIdField () { return this.requestIdField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/IGVideoCopyrightCheckMatchesInformation.java b/src/main/java/com/facebook/ads/sdk/IGVideoCopyrightCheckMatchesInformation.java new file mode 100644 index 00000000..b0eb802b --- /dev/null +++ b/src/main/java/com/facebook/ads/sdk/IGVideoCopyrightCheckMatchesInformation.java @@ -0,0 +1,252 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +package com.facebook.ads.sdk; + +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 IGVideoCopyrightCheckMatchesInformation extends APINode { + @SerializedName("copyright_matches") + private List mCopyrightMatches = null; + @SerializedName("status") + private IGVideoCopyrightCheckStatus mStatus = null; + protected static Gson gson = null; + + public IGVideoCopyrightCheckMatchesInformation() { + } + + public String getId() { + return null; + } + public static IGVideoCopyrightCheckMatchesInformation loadJSON(String json, APIContext context, String header) { + IGVideoCopyrightCheckMatchesInformation igVideoCopyrightCheckMatchesInformation = getGson().fromJson(json, IGVideoCopyrightCheckMatchesInformation.class); + if (context.isDebug()) { + JsonParser parser = new JsonParser(); + JsonElement o1 = parser.parse(json); + JsonElement o2 = parser.parse(igVideoCopyrightCheckMatchesInformation.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); + } + } + igVideoCopyrightCheckMatchesInformation.context = context; + igVideoCopyrightCheckMatchesInformation.rawValue = json; + igVideoCopyrightCheckMatchesInformation.header = header; + return igVideoCopyrightCheckMatchesInformation; + } + + public static APINodeList parseResponse(String json, APIContext context, APIRequest request, String header) throws MalformedResponseException { + APINodeList igVideoCopyrightCheckMatchesInformations = 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++) { + igVideoCopyrightCheckMatchesInformations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); + }; + return igVideoCopyrightCheckMatchesInformations; + } 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; + igVideoCopyrightCheckMatchesInformations.setCursors(before, after); + } + String previous = paging.has("previous") ? paging.get("previous").getAsString() : null; + String next = paging.has("next") ? paging.get("next").getAsString() : null; + igVideoCopyrightCheckMatchesInformations.setPaging(previous, next); + if (context.hasAppSecret()) { + igVideoCopyrightCheckMatchesInformations.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++) { + igVideoCopyrightCheckMatchesInformations.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()) { + igVideoCopyrightCheckMatchesInformations.add(loadJSON(entry.getValue().toString(), context, header)); + } + break; + } + } + if (!isRedownload) { + igVideoCopyrightCheckMatchesInformations.add(loadJSON(obj.toString(), context, header)); + } + } + return igVideoCopyrightCheckMatchesInformations; + } 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()) { + igVideoCopyrightCheckMatchesInformations.add(loadJSON(entry.getValue().toString(), context, header)); + } + return igVideoCopyrightCheckMatchesInformations; + } 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) + ) { + igVideoCopyrightCheckMatchesInformations.add(loadJSON(value.toString(), context, header)); + } else { + isIdIndexedArray = false; + break; + } + } + if (isIdIndexedArray) { + return igVideoCopyrightCheckMatchesInformations; + } + + // Sixth, check if it's pure JsonObject + igVideoCopyrightCheckMatchesInformations.clear(); + igVideoCopyrightCheckMatchesInformations.add(loadJSON(json, context, header)); + return igVideoCopyrightCheckMatchesInformations; + } + } + } 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 List getFieldCopyrightMatches() { + return mCopyrightMatches; + } + + public IGVideoCopyrightCheckMatchesInformation setFieldCopyrightMatches(List value) { + this.mCopyrightMatches = value; + return this; + } + + public IGVideoCopyrightCheckStatus getFieldStatus() { + return mStatus; + } + + public IGVideoCopyrightCheckMatchesInformation setFieldStatus(IGVideoCopyrightCheckStatus value) { + this.mStatus = value; + return this; + } + + public IGVideoCopyrightCheckMatchesInformation setFieldStatus(String value) { + Type type = new TypeToken(){}.getType(); + this.mStatus = IGVideoCopyrightCheckStatus.getGson().fromJson(value, type); + return this; + } + + + + synchronized /*package*/ static Gson getGson() { + if (gson != null) { + return gson; + } else { + gson = new GsonBuilder() + .excludeFieldsWithModifiers(Modifier.STATIC) + .excludeFieldsWithModifiers(Modifier.PROTECTED) + .disableHtmlEscaping() + .create(); + } + return gson; + } + + public IGVideoCopyrightCheckMatchesInformation copyFrom(IGVideoCopyrightCheckMatchesInformation instance) { + this.mCopyrightMatches = instance.mCopyrightMatches; + this.mStatus = instance.mStatus; + this.context = instance.context; + this.rawValue = instance.rawValue; + return this; + } + + public static APIRequest.ResponseParser getParser() { + return new APIRequest.ResponseParser() { + public APINodeList parseResponse(String response, APIContext context, APIRequest request, String header) throws MalformedResponseException { + return IGVideoCopyrightCheckMatchesInformation.parseResponse(response, context, request, header); + } + }; + } +} diff --git a/src/main/java/com/facebook/ads/sdk/IGVideoCopyrightCheckStatus.java b/src/main/java/com/facebook/ads/sdk/IGVideoCopyrightCheckStatus.java new file mode 100644 index 00000000..3ff6f3ed --- /dev/null +++ b/src/main/java/com/facebook/ads/sdk/IGVideoCopyrightCheckStatus.java @@ -0,0 +1,247 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +package com.facebook.ads.sdk; + +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 IGVideoCopyrightCheckStatus extends APINode { + @SerializedName("matches_found") + private Boolean mMatchesFound = null; + @SerializedName("status") + private String mStatus = null; + protected static Gson gson = null; + + public IGVideoCopyrightCheckStatus() { + } + + public String getId() { + return null; + } + public static IGVideoCopyrightCheckStatus loadJSON(String json, APIContext context, String header) { + IGVideoCopyrightCheckStatus igVideoCopyrightCheckStatus = getGson().fromJson(json, IGVideoCopyrightCheckStatus.class); + if (context.isDebug()) { + JsonParser parser = new JsonParser(); + JsonElement o1 = parser.parse(json); + JsonElement o2 = parser.parse(igVideoCopyrightCheckStatus.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); + } + } + igVideoCopyrightCheckStatus.context = context; + igVideoCopyrightCheckStatus.rawValue = json; + igVideoCopyrightCheckStatus.header = header; + return igVideoCopyrightCheckStatus; + } + + public static APINodeList parseResponse(String json, APIContext context, APIRequest request, String header) throws MalformedResponseException { + APINodeList igVideoCopyrightCheckStatuss = 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++) { + igVideoCopyrightCheckStatuss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); + }; + return igVideoCopyrightCheckStatuss; + } 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; + igVideoCopyrightCheckStatuss.setCursors(before, after); + } + String previous = paging.has("previous") ? paging.get("previous").getAsString() : null; + String next = paging.has("next") ? paging.get("next").getAsString() : null; + igVideoCopyrightCheckStatuss.setPaging(previous, next); + if (context.hasAppSecret()) { + igVideoCopyrightCheckStatuss.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++) { + igVideoCopyrightCheckStatuss.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()) { + igVideoCopyrightCheckStatuss.add(loadJSON(entry.getValue().toString(), context, header)); + } + break; + } + } + if (!isRedownload) { + igVideoCopyrightCheckStatuss.add(loadJSON(obj.toString(), context, header)); + } + } + return igVideoCopyrightCheckStatuss; + } 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()) { + igVideoCopyrightCheckStatuss.add(loadJSON(entry.getValue().toString(), context, header)); + } + return igVideoCopyrightCheckStatuss; + } 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) + ) { + igVideoCopyrightCheckStatuss.add(loadJSON(value.toString(), context, header)); + } else { + isIdIndexedArray = false; + break; + } + } + if (isIdIndexedArray) { + return igVideoCopyrightCheckStatuss; + } + + // Sixth, check if it's pure JsonObject + igVideoCopyrightCheckStatuss.clear(); + igVideoCopyrightCheckStatuss.add(loadJSON(json, context, header)); + return igVideoCopyrightCheckStatuss; + } + } + } 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 Boolean getFieldMatchesFound() { + return mMatchesFound; + } + + public IGVideoCopyrightCheckStatus setFieldMatchesFound(Boolean value) { + this.mMatchesFound = value; + return this; + } + + public String getFieldStatus() { + return mStatus; + } + + public IGVideoCopyrightCheckStatus setFieldStatus(String value) { + this.mStatus = value; + return this; + } + + + + + synchronized /*package*/ static Gson getGson() { + if (gson != null) { + return gson; + } else { + gson = new GsonBuilder() + .excludeFieldsWithModifiers(Modifier.STATIC) + .excludeFieldsWithModifiers(Modifier.PROTECTED) + .disableHtmlEscaping() + .create(); + } + return gson; + } + + public IGVideoCopyrightCheckStatus copyFrom(IGVideoCopyrightCheckStatus instance) { + this.mMatchesFound = instance.mMatchesFound; + this.mStatus = instance.mStatus; + this.context = instance.context; + this.rawValue = instance.rawValue; + return this; + } + + public static APIRequest.ResponseParser getParser() { + return new APIRequest.ResponseParser() { + public APINodeList parseResponse(String response, APIContext context, APIRequest request, String header) throws MalformedResponseException { + return IGVideoCopyrightCheckStatus.parseResponse(response, context, request, header); + } + }; + } +} diff --git a/src/main/java/com/facebook/ads/sdk/InstagramCarousel.java b/src/main/java/com/facebook/ads/sdk/InstagramCarousel.java index 3572ba14..5cbbb8cd 100644 --- a/src/main/java/com/facebook/ads/sdk/InstagramCarousel.java +++ b/src/main/java/com/facebook/ads/sdk/InstagramCarousel.java @@ -345,6 +345,7 @@ public APINodeList getLastResponse() { "instagram_user", "mentioned_instagram_users", "message", + "username", }; @Override @@ -485,6 +486,13 @@ public APIRequestGetComments requestMessageField (boolean value) { this.requestField("message", value); return this; } + public APIRequestGetComments requestUsernameField () { + return this.requestUsernameField(true); + } + public APIRequestGetComments requestUsernameField (boolean value) { + this.requestField("username", value); + return this; + } } public static class APIRequestCreateComment extends APIRequest { diff --git a/src/main/java/com/facebook/ads/sdk/InstagramComment.java b/src/main/java/com/facebook/ads/sdk/InstagramComment.java index 5643ec87..00395827 100644 --- a/src/main/java/com/facebook/ads/sdk/InstagramComment.java +++ b/src/main/java/com/facebook/ads/sdk/InstagramComment.java @@ -54,6 +54,8 @@ public class InstagramComment extends APINode { private List mMentionedInstagramUsers = null; @SerializedName("message") private String mMessage = null; + @SerializedName("username") + private String mUsername = null; protected static Gson gson = null; InstagramComment() { @@ -315,6 +317,10 @@ public String getFieldMessage() { return mMessage; } + public String getFieldUsername() { + return mUsername; + } + public static class APIRequestGetReplies extends APIRequest { @@ -335,6 +341,7 @@ public APINodeList getLastResponse() { "instagram_user", "mentioned_instagram_users", "message", + "username", }; @Override @@ -475,6 +482,13 @@ public APIRequestGetReplies requestMessageField (boolean value) { this.requestField("message", value); return this; } + public APIRequestGetReplies requestUsernameField () { + return this.requestUsernameField(true); + } + public APIRequestGetReplies requestUsernameField (boolean value) { + this.requestField("username", value); + return this; + } } public static class APIRequestCreateReply extends APIRequest { @@ -721,6 +735,7 @@ public InstagramComment getLastResponse() { "instagram_user", "mentioned_instagram_users", "message", + "username", }; @Override @@ -861,6 +876,13 @@ public APIRequestGet requestMessageField (boolean value) { this.requestField("message", value); return this; } + public APIRequestGet requestUsernameField () { + return this.requestUsernameField(true); + } + public APIRequestGet requestUsernameField (boolean value) { + this.requestField("username", value); + return this; + } } public static class APIRequestUpdate extends APIRequest { @@ -1005,6 +1027,7 @@ public InstagramComment copyFrom(InstagramComment instance) { this.mInstagramUser = instance.mInstagramUser; this.mMentionedInstagramUsers = instance.mMentionedInstagramUsers; this.mMessage = instance.mMessage; + this.mUsername = instance.mUsername; this.context = instance.context; this.rawValue = instance.rawValue; return this; diff --git a/src/main/java/com/facebook/ads/sdk/InstagramMedia.java b/src/main/java/com/facebook/ads/sdk/InstagramMedia.java index 3bb47d40..54189a44 100644 --- a/src/main/java/com/facebook/ads/sdk/InstagramMedia.java +++ b/src/main/java/com/facebook/ads/sdk/InstagramMedia.java @@ -375,6 +375,7 @@ public APINodeList getLastResponse() { "instagram_user", "mentioned_instagram_users", "message", + "username", }; @Override @@ -515,6 +516,13 @@ public APIRequestGetComments requestMessageField (boolean value) { this.requestField("message", value); return this; } + public APIRequestGetComments requestUsernameField () { + return this.requestUsernameField(true); + } + public APIRequestGetComments requestUsernameField (boolean value) { + this.requestField("username", value); + return this; + } } public static class APIRequestCreateComment extends APIRequest { diff --git a/src/main/java/com/facebook/ads/sdk/LiveVideo.java b/src/main/java/com/facebook/ads/sdk/LiveVideo.java index eda4388e..39b4da37 100644 --- a/src/main/java/com/facebook/ads/sdk/LiveVideo.java +++ b/src/main/java/com/facebook/ads/sdk/LiveVideo.java @@ -1342,6 +1342,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -1370,6 +1371,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -1389,7 +1391,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -1803,6 +1804,13 @@ public APIRequestGetCrosspostSharedPages requestDisplayedMessageResponseTimeFiel this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetCrosspostSharedPages requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetCrosspostSharedPages requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetCrosspostSharedPages requestEmailsField () { return this.requestEmailsField(true); } @@ -1999,6 +2007,13 @@ public APIRequestGetCrosspostSharedPages requestIsEligibleForBrandedContentField this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetCrosspostSharedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetCrosspostSharedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetCrosspostSharedPages requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -2132,13 +2147,6 @@ public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultIcebreakersFi this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/OpenBridgeConfiguration.java b/src/main/java/com/facebook/ads/sdk/OpenBridgeConfiguration.java index a2c6aa3b..fba49016 100644 --- a/src/main/java/com/facebook/ads/sdk/OpenBridgeConfiguration.java +++ b/src/main/java/com/facebook/ads/sdk/OpenBridgeConfiguration.java @@ -46,6 +46,10 @@ public class OpenBridgeConfiguration extends APINode { private Boolean mActive = null; @SerializedName("endpoint") private String mEndpoint = null; + @SerializedName("fallback_domain") + private String mFallbackDomain = null; + @SerializedName("fallback_domain_enabled") + private Boolean mFallbackDomainEnabled = null; @SerializedName("host_business_id") private String mHostBusinessId = null; @SerializedName("host_external_id") @@ -288,6 +292,14 @@ public String getFieldEndpoint() { return mEndpoint; } + public String getFieldFallbackDomain() { + return mFallbackDomain; + } + + public Boolean getFieldFallbackDomainEnabled() { + return mFallbackDomainEnabled; + } + public String getFieldHostBusinessId() { return mHostBusinessId; } @@ -424,6 +436,8 @@ public OpenBridgeConfiguration getLastResponse() { "access_key", "active", "endpoint", + "fallback_domain", + "fallback_domain_enabled", "host_business_id", "host_external_id", "id", @@ -540,6 +554,20 @@ public APIRequestGet requestEndpointField (boolean value) { this.requestField("endpoint", value); return this; } + public APIRequestGet requestFallbackDomainField () { + return this.requestFallbackDomainField(true); + } + public APIRequestGet requestFallbackDomainField (boolean value) { + this.requestField("fallback_domain", value); + return this; + } + public APIRequestGet requestFallbackDomainEnabledField () { + return this.requestFallbackDomainEnabledField(true); + } + public APIRequestGet requestFallbackDomainEnabledField (boolean value) { + this.requestField("fallback_domain_enabled", value); + return this; + } public APIRequestGet requestHostBusinessIdField () { return this.requestHostBusinessIdField(true); } @@ -581,6 +609,8 @@ public OpenBridgeConfiguration getLastResponse() { "access_key", "active", "endpoint", + "fallback_domain", + "fallback_domain_enabled", "host_business_id", "host_external_id", }; @@ -660,6 +690,20 @@ public APIRequestUpdate setEndpoint (String endpoint) { return this; } + public APIRequestUpdate setFallbackDomain (String fallbackDomain) { + this.setParam("fallback_domain", fallbackDomain); + return this; + } + + public APIRequestUpdate setFallbackDomainEnabled (Boolean fallbackDomainEnabled) { + this.setParam("fallback_domain_enabled", fallbackDomainEnabled); + return this; + } + public APIRequestUpdate setFallbackDomainEnabled (String fallbackDomainEnabled) { + this.setParam("fallback_domain_enabled", fallbackDomainEnabled); + return this; + } + public APIRequestUpdate setHostBusinessId (Long hostBusinessId) { this.setParam("host_business_id", hostBusinessId); return this; @@ -730,6 +774,8 @@ public OpenBridgeConfiguration copyFrom(OpenBridgeConfiguration instance) { this.mAccessKey = instance.mAccessKey; this.mActive = instance.mActive; this.mEndpoint = instance.mEndpoint; + this.mFallbackDomain = instance.mFallbackDomain; + this.mFallbackDomainEnabled = instance.mFallbackDomainEnabled; this.mHostBusinessId = instance.mHostBusinessId; this.mHostExternalId = instance.mHostExternalId; this.mId = instance.mId; diff --git a/src/main/java/com/facebook/ads/sdk/Page.java b/src/main/java/com/facebook/ads/sdk/Page.java index ed58cf03..31ec1bfb 100644 --- a/src/main/java/com/facebook/ads/sdk/Page.java +++ b/src/main/java/com/facebook/ads/sdk/Page.java @@ -114,6 +114,8 @@ public class Page extends APINode { private String mDisplaySubtext = null; @SerializedName("displayed_message_response_time") private String mDisplayedMessageResponseTime = null; + @SerializedName("does_viewer_have_page_permission_link_ig") + private Boolean mDoesViewerHavePagePermissionLinkIg = null; @SerializedName("emails") private List mEmails = null; @SerializedName("engagement") @@ -170,6 +172,8 @@ public class Page extends APINode { private Boolean mIsCommunityPage = null; @SerializedName("is_eligible_for_branded_content") private Boolean mIsEligibleForBrandedContent = null; + @SerializedName("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web") + private Boolean mIsEligibleForDisableConnectIgBtnForNonPageAdminAmWeb = null; @SerializedName("is_messenger_bot_get_started_enabled") private Boolean mIsMessengerBotGetStartedEnabled = null; @SerializedName("is_messenger_platform_bot") @@ -208,8 +212,6 @@ public class Page extends APINode { private MessagingFeatureStatus mMessagingFeatureStatus = null; @SerializedName("messenger_ads_default_icebreakers") private List mMessengerAdsDefaultIcebreakers = null; - @SerializedName("messenger_ads_default_page_welcome_message") - private MessengerDestinationPageWelcomeMessage mMessengerAdsDefaultPageWelcomeMessage = null; @SerializedName("messenger_ads_default_quick_replies") private List mMessengerAdsDefaultQuickReplies = null; @SerializedName("messenger_ads_quick_replies_type") @@ -1185,6 +1187,10 @@ public String getFieldDisplayedMessageResponseTime() { return mDisplayedMessageResponseTime; } + public Boolean getFieldDoesViewerHavePagePermissionLinkIg() { + return mDoesViewerHavePagePermissionLinkIg; + } + public List getFieldEmails() { return mEmails; } @@ -1303,6 +1309,10 @@ public Boolean getFieldIsEligibleForBrandedContent() { return mIsEligibleForBrandedContent; } + public Boolean getFieldIsEligibleForDisableConnectIgBtnForNonPageAdminAmWeb() { + return mIsEligibleForDisableConnectIgBtnForNonPageAdminAmWeb; + } + public Boolean getFieldIsMessengerBotGetStartedEnabled() { return mIsMessengerBotGetStartedEnabled; } @@ -1382,10 +1392,6 @@ public List getFieldMessengerAdsDefaultIcebreakers() { return mMessengerAdsDefaultIcebreakers; } - public MessengerDestinationPageWelcomeMessage getFieldMessengerAdsDefaultPageWelcomeMessage() { - return mMessengerAdsDefaultPageWelcomeMessage; - } - public List getFieldMessengerAdsDefaultQuickReplies() { return mMessengerAdsDefaultQuickReplies; } @@ -7604,6 +7610,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -7632,6 +7639,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -7651,7 +7659,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -8065,6 +8072,13 @@ public APIRequestGetCrosspostWhitelistedPages requestDisplayedMessageResponseTim this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetCrosspostWhitelistedPages requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetCrosspostWhitelistedPages requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetCrosspostWhitelistedPages requestEmailsField () { return this.requestEmailsField(true); } @@ -8261,6 +8275,13 @@ public APIRequestGetCrosspostWhitelistedPages requestIsEligibleForBrandedContent this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetCrosspostWhitelistedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetCrosspostWhitelistedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetCrosspostWhitelistedPages requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -8394,13 +8415,6 @@ public APIRequestGetCrosspostWhitelistedPages requestMessengerAdsDefaultIcebreak this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetCrosspostWhitelistedPages requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetCrosspostWhitelistedPages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetCrosspostWhitelistedPages requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -11856,6 +11870,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -11884,6 +11899,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -11903,7 +11919,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -12317,6 +12332,13 @@ public APIRequestGetGlobalBrandChildren requestDisplayedMessageResponseTimeField this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetGlobalBrandChildren requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetGlobalBrandChildren requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetGlobalBrandChildren requestEmailsField () { return this.requestEmailsField(true); } @@ -12513,6 +12535,13 @@ public APIRequestGetGlobalBrandChildren requestIsEligibleForBrandedContentField this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetGlobalBrandChildren requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetGlobalBrandChildren requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetGlobalBrandChildren requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -12646,13 +12675,6 @@ public APIRequestGetGlobalBrandChildren requestMessengerAdsDefaultIcebreakersFie this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetGlobalBrandChildren requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetGlobalBrandChildren requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetGlobalBrandChildren requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -15405,6 +15427,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -15433,6 +15456,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -15452,7 +15476,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -15871,6 +15894,13 @@ public APIRequestGetLikes requestDisplayedMessageResponseTimeField (boolean valu this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetLikes requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetLikes requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetLikes requestEmailsField () { return this.requestEmailsField(true); } @@ -16067,6 +16097,13 @@ public APIRequestGetLikes requestIsEligibleForBrandedContentField (boolean value this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetLikes requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetLikes requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetLikes requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -16200,13 +16237,6 @@ public APIRequestGetLikes requestMessengerAdsDefaultIcebreakersField (boolean va this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetLikes requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetLikes requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetLikes requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -17326,8 +17356,8 @@ public APINodeList getLastResponse() { return lastResponse; } public static final String[] PARAMS = { - "location_page_id", - "store_number", + "location_page_ids", + "store_numbers", }; public static final String[] FIELDS = { @@ -17386,17 +17416,21 @@ public APIRequestDeleteLocations setParams(Map params) { } - public APIRequestDeleteLocations setLocationPageId (String locationPageId) { - this.setParam("location_page_id", locationPageId); + public APIRequestDeleteLocations setLocationPageIds (List locationPageIds) { + this.setParam("location_page_ids", locationPageIds); + return this; + } + public APIRequestDeleteLocations setLocationPageIds (String locationPageIds) { + this.setParam("location_page_ids", locationPageIds); return this; } - public APIRequestDeleteLocations setStoreNumber (Long storeNumber) { - this.setParam("store_number", storeNumber); + public APIRequestDeleteLocations setStoreNumbers (List storeNumbers) { + this.setParam("store_numbers", storeNumbers); return this; } - public APIRequestDeleteLocations setStoreNumber (String storeNumber) { - this.setParam("store_number", storeNumber); + public APIRequestDeleteLocations setStoreNumbers (String storeNumbers) { + this.setParam("store_numbers", storeNumbers); return this; } @@ -17486,6 +17520,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -17514,6 +17549,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -17533,7 +17569,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -17947,6 +17982,13 @@ public APIRequestGetLocations requestDisplayedMessageResponseTimeField (boolean this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetLocations requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetLocations requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetLocations requestEmailsField () { return this.requestEmailsField(true); } @@ -18143,6 +18185,13 @@ public APIRequestGetLocations requestIsEligibleForBrandedContentField (boolean v this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetLocations requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetLocations requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetLocations requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -18276,13 +18325,6 @@ public APIRequestGetLocations requestMessengerAdsDefaultIcebreakersField (boolea this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetLocations requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetLocations requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetLocations requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -34281,6 +34323,7 @@ public Page getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -34309,6 +34352,7 @@ public Page getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -34328,7 +34372,6 @@ public Page getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -34747,6 +34790,13 @@ public APIRequestGet requestDisplayedMessageResponseTimeField (boolean value) { this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGet requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGet requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGet requestEmailsField () { return this.requestEmailsField(true); } @@ -34943,6 +34993,13 @@ public APIRequestGet requestIsEligibleForBrandedContentField (boolean value) { this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGet requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGet requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGet requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -35076,13 +35133,6 @@ public APIRequestGet requestMessengerAdsDefaultIcebreakersField (boolean value) this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGet requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGet requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGet requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -37294,6 +37344,7 @@ public Page copyFrom(Page instance) { this.mDirectedBy = instance.mDirectedBy; this.mDisplaySubtext = instance.mDisplaySubtext; this.mDisplayedMessageResponseTime = instance.mDisplayedMessageResponseTime; + this.mDoesViewerHavePagePermissionLinkIg = instance.mDoesViewerHavePagePermissionLinkIg; this.mEmails = instance.mEmails; this.mEngagement = instance.mEngagement; this.mFanCount = instance.mFanCount; @@ -37322,6 +37373,7 @@ public Page copyFrom(Page instance) { this.mIsChain = instance.mIsChain; this.mIsCommunityPage = instance.mIsCommunityPage; this.mIsEligibleForBrandedContent = instance.mIsEligibleForBrandedContent; + this.mIsEligibleForDisableConnectIgBtnForNonPageAdminAmWeb = instance.mIsEligibleForDisableConnectIgBtnForNonPageAdminAmWeb; this.mIsMessengerBotGetStartedEnabled = instance.mIsMessengerBotGetStartedEnabled; this.mIsMessengerPlatformBot = instance.mIsMessengerPlatformBot; this.mIsOwned = instance.mIsOwned; @@ -37341,7 +37393,6 @@ public Page copyFrom(Page instance) { this.mMerchantReviewStatus = instance.mMerchantReviewStatus; this.mMessagingFeatureStatus = instance.mMessagingFeatureStatus; this.mMessengerAdsDefaultIcebreakers = instance.mMessengerAdsDefaultIcebreakers; - this.mMessengerAdsDefaultPageWelcomeMessage = instance.mMessengerAdsDefaultPageWelcomeMessage; this.mMessengerAdsDefaultQuickReplies = instance.mMessengerAdsDefaultQuickReplies; this.mMessengerAdsQuickRepliesType = instance.mMessengerAdsQuickRepliesType; this.mMiniShopStorefront = instance.mMiniShopStorefront; diff --git a/src/main/java/com/facebook/ads/sdk/PagePost.java b/src/main/java/com/facebook/ads/sdk/PagePost.java index e928fb32..963fa404 100644 --- a/src/main/java/com/facebook/ads/sdk/PagePost.java +++ b/src/main/java/com/facebook/ads/sdk/PagePost.java @@ -2934,6 +2934,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -2962,6 +2963,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -2981,7 +2983,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -3395,6 +3396,13 @@ public APIRequestGetSponsorTags requestDisplayedMessageResponseTimeField (boolea this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetSponsorTags requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetSponsorTags requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetSponsorTags requestEmailsField () { return this.requestEmailsField(true); } @@ -3591,6 +3599,13 @@ public APIRequestGetSponsorTags requestIsEligibleForBrandedContentField (boolean this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetSponsorTags requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetSponsorTags requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetSponsorTags requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -3724,13 +3739,6 @@ public APIRequestGetSponsorTags requestMessengerAdsDefaultIcebreakersField (bool this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetSponsorTags requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetSponsorTags requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetSponsorTags requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/Photo.java b/src/main/java/com/facebook/ads/sdk/Photo.java index 3f79b95a..324f9af5 100644 --- a/src/main/java/com/facebook/ads/sdk/Photo.java +++ b/src/main/java/com/facebook/ads/sdk/Photo.java @@ -1554,6 +1554,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -1582,6 +1583,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -1601,7 +1603,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -2015,6 +2016,13 @@ public APIRequestGetSponsorTags requestDisplayedMessageResponseTimeField (boolea this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetSponsorTags requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetSponsorTags requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetSponsorTags requestEmailsField () { return this.requestEmailsField(true); } @@ -2211,6 +2219,13 @@ public APIRequestGetSponsorTags requestIsEligibleForBrandedContentField (boolean this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetSponsorTags requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetSponsorTags requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetSponsorTags requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -2344,13 +2359,6 @@ public APIRequestGetSponsorTags requestMessengerAdsDefaultIcebreakersField (bool this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetSponsorTags requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetSponsorTags requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetSponsorTags requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/Post.java b/src/main/java/com/facebook/ads/sdk/Post.java index 0b15480c..61105065 100644 --- a/src/main/java/com/facebook/ads/sdk/Post.java +++ b/src/main/java/com/facebook/ads/sdk/Post.java @@ -2780,6 +2780,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -2808,6 +2809,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -2827,7 +2829,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -3241,6 +3242,13 @@ public APIRequestGetSponsorTags requestDisplayedMessageResponseTimeField (boolea this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetSponsorTags requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetSponsorTags requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetSponsorTags requestEmailsField () { return this.requestEmailsField(true); } @@ -3437,6 +3445,13 @@ public APIRequestGetSponsorTags requestIsEligibleForBrandedContentField (boolean this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetSponsorTags requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetSponsorTags requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetSponsorTags requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -3570,13 +3585,6 @@ public APIRequestGetSponsorTags requestMessengerAdsDefaultIcebreakersField (bool this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetSponsorTags requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetSponsorTags requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetSponsorTags requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductFeed.java b/src/main/java/com/facebook/ads/sdk/ProductFeed.java index 5c023308..4a18c6b3 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductFeed.java +++ b/src/main/java/com/facebook/ads/sdk/ProductFeed.java @@ -5966,6 +5966,8 @@ public static enum EnumOverrideType { VALUE_LANGUAGE_AND_COUNTRY("LANGUAGE_AND_COUNTRY"), @SerializedName("LOCAL") VALUE_LOCAL("LOCAL"), + @SerializedName("SMART_PIXEL_LANGUAGE_OR_COUNTRY") + VALUE_SMART_PIXEL_LANGUAGE_OR_COUNTRY("SMART_PIXEL_LANGUAGE_OR_COUNTRY"), ; private String value; diff --git a/src/main/java/com/facebook/ads/sdk/ShadowIGHashtag.java b/src/main/java/com/facebook/ads/sdk/ShadowIGHashtag.java index 478e8190..e32c06c4 100644 --- a/src/main/java/com/facebook/ads/sdk/ShadowIGHashtag.java +++ b/src/main/java/com/facebook/ads/sdk/ShadowIGHashtag.java @@ -290,6 +290,7 @@ public APINodeList getLastResponse() { public static final String[] FIELDS = { "caption", "comments_count", + "copyright_check_information", "id", "ig_id", "is_comment_enabled", @@ -414,6 +415,13 @@ public APIRequestGetRecentMedia requestCommentsCountField (boolean value) { this.requestField("comments_count", value); return this; } + public APIRequestGetRecentMedia requestCopyrightCheckInformationField () { + return this.requestCopyrightCheckInformationField(true); + } + public APIRequestGetRecentMedia requestCopyrightCheckInformationField (boolean value) { + this.requestField("copyright_check_information", value); + return this; + } public APIRequestGetRecentMedia requestIdField () { return this.requestIdField(true); } @@ -528,6 +536,7 @@ public APINodeList getLastResponse() { public static final String[] FIELDS = { "caption", "comments_count", + "copyright_check_information", "id", "ig_id", "is_comment_enabled", @@ -652,6 +661,13 @@ public APIRequestGetTopMedia requestCommentsCountField (boolean value) { this.requestField("comments_count", value); return this; } + public APIRequestGetTopMedia requestCopyrightCheckInformationField () { + return this.requestCopyrightCheckInformationField(true); + } + public APIRequestGetTopMedia requestCopyrightCheckInformationField (boolean value) { + this.requestField("copyright_check_information", value); + return this; + } public APIRequestGetTopMedia requestIdField () { return this.requestIdField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/ShadowIGMediaBuilder.java b/src/main/java/com/facebook/ads/sdk/ShadowIGMediaBuilder.java index 2be14a64..259ced72 100644 --- a/src/main/java/com/facebook/ads/sdk/ShadowIGMediaBuilder.java +++ b/src/main/java/com/facebook/ads/sdk/ShadowIGMediaBuilder.java @@ -40,6 +40,8 @@ * */ public class ShadowIGMediaBuilder extends APINode { + @SerializedName("copyright_check_status") + private IGVideoCopyrightCheckStatus mCopyrightCheckStatus = null; @SerializedName("id") private String mId = null; @SerializedName("status") @@ -260,6 +262,10 @@ public APIRequestGet get() { } + public IGVideoCopyrightCheckStatus getFieldCopyrightCheckStatus() { + return mCopyrightCheckStatus; + } + public String getFieldId() { return mId; } @@ -285,6 +291,7 @@ public ShadowIGMediaBuilder getLastResponse() { }; public static final String[] FIELDS = { + "copyright_check_status", "id", "status", "status_code", @@ -379,6 +386,13 @@ public APIRequestGet requestField (String field, boolean value) { return this; } + public APIRequestGet requestCopyrightCheckStatusField () { + return this.requestCopyrightCheckStatusField(true); + } + public APIRequestGet requestCopyrightCheckStatusField (boolean value) { + this.requestField("copyright_check_status", value); + return this; + } public APIRequestGet requestIdField () { return this.requestIdField(true); } @@ -417,6 +431,7 @@ public APIRequestGet requestStatusCodeField (boolean value) { } public ShadowIGMediaBuilder copyFrom(ShadowIGMediaBuilder instance) { + this.mCopyrightCheckStatus = instance.mCopyrightCheckStatus; this.mId = instance.mId; this.mStatus = instance.mStatus; this.mStatusCode = instance.mStatusCode; diff --git a/src/main/java/com/facebook/ads/sdk/MessengerDestinationPageWelcomeMessage.java b/src/main/java/com/facebook/ads/sdk/ShadowIGMediaCollaborators.java similarity index 55% rename from src/main/java/com/facebook/ads/sdk/MessengerDestinationPageWelcomeMessage.java rename to src/main/java/com/facebook/ads/sdk/ShadowIGMediaCollaborators.java index 9ef2e5b4..35dff4f5 100644 --- a/src/main/java/com/facebook/ads/sdk/MessengerDestinationPageWelcomeMessage.java +++ b/src/main/java/com/facebook/ads/sdk/ShadowIGMediaCollaborators.java @@ -39,33 +39,27 @@ * pull request for this class. * */ -public class MessengerDestinationPageWelcomeMessage extends APINode { +public class ShadowIGMediaCollaborators extends APINode { @SerializedName("id") private String mId = null; - @SerializedName("page_welcome_message_body") - private String mPageWelcomeMessageBody = null; - @SerializedName("page_welcome_message_type") - private String mPageWelcomeMessageType = null; - @SerializedName("template_name") - private String mTemplateName = null; - @SerializedName("time_created") - private String mTimeCreated = null; - @SerializedName("time_last_used") - private String mTimeLastUsed = null; + @SerializedName("invite_status") + private String mInviteStatus = null; + @SerializedName("username") + private String mUsername = null; protected static Gson gson = null; - public MessengerDestinationPageWelcomeMessage() { + public ShadowIGMediaCollaborators() { } public String getId() { return getFieldId().toString(); } - public static MessengerDestinationPageWelcomeMessage loadJSON(String json, APIContext context, String header) { - MessengerDestinationPageWelcomeMessage messengerDestinationPageWelcomeMessage = getGson().fromJson(json, MessengerDestinationPageWelcomeMessage.class); + public static ShadowIGMediaCollaborators loadJSON(String json, APIContext context, String header) { + ShadowIGMediaCollaborators shadowIGMediaCollaborators = getGson().fromJson(json, ShadowIGMediaCollaborators.class); if (context.isDebug()) { JsonParser parser = new JsonParser(); JsonElement o1 = parser.parse(json); - JsonElement o2 = parser.parse(messengerDestinationPageWelcomeMessage.toString()); + JsonElement o2 = parser.parse(shadowIGMediaCollaborators.toString()); if (o1.getAsJsonObject().get("__fb_trace_id__") != null) { o2.getAsJsonObject().add("__fb_trace_id__", o1.getAsJsonObject().get("__fb_trace_id__")); } @@ -75,14 +69,14 @@ public static MessengerDestinationPageWelcomeMessage loadJSON(String json, APICo context.log("[Object]" + o2); } } - messengerDestinationPageWelcomeMessage.context = context; - messengerDestinationPageWelcomeMessage.rawValue = json; - messengerDestinationPageWelcomeMessage.header = header; - return messengerDestinationPageWelcomeMessage; + shadowIGMediaCollaborators.context = context; + shadowIGMediaCollaborators.rawValue = json; + shadowIGMediaCollaborators.header = header; + return shadowIGMediaCollaborators; } - public static APINodeList parseResponse(String json, APIContext context, APIRequest request, String header) throws MalformedResponseException { - APINodeList messengerDestinationPageWelcomeMessages = new APINodeList(request, json, header); + public static APINodeList parseResponse(String json, APIContext context, APIRequest request, String header) throws MalformedResponseException { + APINodeList shadowIGMediaCollaboratorss = new APINodeList(request, json, header); JsonArray arr; JsonObject obj; JsonParser parser = new JsonParser(); @@ -93,9 +87,9 @@ public static APINodeList parseResponse( // First, check if it's a pure JSON Array arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { - messengerDestinationPageWelcomeMessages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); + shadowIGMediaCollaboratorss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); }; - return messengerDestinationPageWelcomeMessages; + return shadowIGMediaCollaboratorss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -105,20 +99,20 @@ public static APINodeList parseResponse( 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; - messengerDestinationPageWelcomeMessages.setCursors(before, after); + shadowIGMediaCollaboratorss.setCursors(before, after); } String previous = paging.has("previous") ? paging.get("previous").getAsString() : null; String next = paging.has("next") ? paging.get("next").getAsString() : null; - messengerDestinationPageWelcomeMessages.setPaging(previous, next); + shadowIGMediaCollaboratorss.setPaging(previous, next); if (context.hasAppSecret()) { - messengerDestinationPageWelcomeMessages.setAppSecret(context.getAppSecretProof()); + shadowIGMediaCollaboratorss.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++) { - messengerDestinationPageWelcomeMessages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); + shadowIGMediaCollaboratorss.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" @@ -129,23 +123,23 @@ public static APINodeList parseResponse( isRedownload = true; obj = obj.getAsJsonObject(s); for (Map.Entry entry : obj.entrySet()) { - messengerDestinationPageWelcomeMessages.add(loadJSON(entry.getValue().toString(), context, header)); + shadowIGMediaCollaboratorss.add(loadJSON(entry.getValue().toString(), context, header)); } break; } } if (!isRedownload) { - messengerDestinationPageWelcomeMessages.add(loadJSON(obj.toString(), context, header)); + shadowIGMediaCollaboratorss.add(loadJSON(obj.toString(), context, header)); } } - return messengerDestinationPageWelcomeMessages; + return shadowIGMediaCollaboratorss; } 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()) { - messengerDestinationPageWelcomeMessages.add(loadJSON(entry.getValue().toString(), context, header)); + shadowIGMediaCollaboratorss.add(loadJSON(entry.getValue().toString(), context, header)); } - return messengerDestinationPageWelcomeMessages; + return shadowIGMediaCollaboratorss; } else { // Fifth, check if it's an array of objects indexed by id boolean isIdIndexedArray = true; @@ -162,20 +156,20 @@ public static APINodeList parseResponse( value.getAsJsonObject().get("id") != null && value.getAsJsonObject().get("id").getAsString().equals(key) ) { - messengerDestinationPageWelcomeMessages.add(loadJSON(value.toString(), context, header)); + shadowIGMediaCollaboratorss.add(loadJSON(value.toString(), context, header)); } else { isIdIndexedArray = false; break; } } if (isIdIndexedArray) { - return messengerDestinationPageWelcomeMessages; + return shadowIGMediaCollaboratorss; } // Sixth, check if it's pure JsonObject - messengerDestinationPageWelcomeMessages.clear(); - messengerDestinationPageWelcomeMessages.add(loadJSON(json, context, header)); - return messengerDestinationPageWelcomeMessages; + shadowIGMediaCollaboratorss.clear(); + shadowIGMediaCollaboratorss.add(loadJSON(json, context, header)); + return shadowIGMediaCollaboratorss; } } } catch (Exception e) { @@ -207,53 +201,26 @@ public String getFieldId() { return mId; } - public MessengerDestinationPageWelcomeMessage setFieldId(String value) { + public ShadowIGMediaCollaborators setFieldId(String value) { this.mId = value; return this; } - public String getFieldPageWelcomeMessageBody() { - return mPageWelcomeMessageBody; + public String getFieldInviteStatus() { + return mInviteStatus; } - public MessengerDestinationPageWelcomeMessage setFieldPageWelcomeMessageBody(String value) { - this.mPageWelcomeMessageBody = value; + public ShadowIGMediaCollaborators setFieldInviteStatus(String value) { + this.mInviteStatus = value; return this; } - public String getFieldPageWelcomeMessageType() { - return mPageWelcomeMessageType; + public String getFieldUsername() { + return mUsername; } - public MessengerDestinationPageWelcomeMessage setFieldPageWelcomeMessageType(String value) { - this.mPageWelcomeMessageType = value; - return this; - } - - public String getFieldTemplateName() { - return mTemplateName; - } - - public MessengerDestinationPageWelcomeMessage setFieldTemplateName(String value) { - this.mTemplateName = value; - return this; - } - - public String getFieldTimeCreated() { - return mTimeCreated; - } - - public MessengerDestinationPageWelcomeMessage setFieldTimeCreated(String value) { - this.mTimeCreated = value; - return this; - } - - public String getFieldTimeLastUsed() { - return mTimeLastUsed; - } - - public MessengerDestinationPageWelcomeMessage setFieldTimeLastUsed(String value) { - this.mTimeLastUsed = value; + public ShadowIGMediaCollaborators setFieldUsername(String value) { + this.mUsername = value; return this; } @@ -273,22 +240,19 @@ public MessengerDestinationPageWelcomeMessage setFieldTimeLastUsed(String value) return gson; } - public MessengerDestinationPageWelcomeMessage copyFrom(MessengerDestinationPageWelcomeMessage instance) { + public ShadowIGMediaCollaborators copyFrom(ShadowIGMediaCollaborators instance) { this.mId = instance.mId; - this.mPageWelcomeMessageBody = instance.mPageWelcomeMessageBody; - this.mPageWelcomeMessageType = instance.mPageWelcomeMessageType; - this.mTemplateName = instance.mTemplateName; - this.mTimeCreated = instance.mTimeCreated; - this.mTimeLastUsed = instance.mTimeLastUsed; + this.mInviteStatus = instance.mInviteStatus; + this.mUsername = instance.mUsername; this.context = instance.context; this.rawValue = instance.rawValue; return this; } - public static APIRequest.ResponseParser getParser() { - return new APIRequest.ResponseParser() { - public APINodeList parseResponse(String response, APIContext context, APIRequest request, String header) throws MalformedResponseException { - return MessengerDestinationPageWelcomeMessage.parseResponse(response, context, request, header); + public static APIRequest.ResponseParser getParser() { + return new APIRequest.ResponseParser() { + public APINodeList parseResponse(String response, APIContext context, APIRequest request, String header) throws MalformedResponseException { + return ShadowIGMediaCollaborators.parseResponse(response, context, request, header); } }; } diff --git a/src/main/java/com/facebook/ads/sdk/SystemUser.java b/src/main/java/com/facebook/ads/sdk/SystemUser.java index 18065dba..deca56e8 100644 --- a/src/main/java/com/facebook/ads/sdk/SystemUser.java +++ b/src/main/java/com/facebook/ads/sdk/SystemUser.java @@ -1150,6 +1150,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -1178,6 +1179,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -1197,7 +1199,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -1620,6 +1621,13 @@ public APIRequestGetAssignedPages requestDisplayedMessageResponseTimeField (bool this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetAssignedPages requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetAssignedPages requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetAssignedPages requestEmailsField () { return this.requestEmailsField(true); } @@ -1816,6 +1824,13 @@ public APIRequestGetAssignedPages requestIsEligibleForBrandedContentField (boole this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetAssignedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetAssignedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetAssignedPages requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -1949,13 +1964,6 @@ public APIRequestGetAssignedPages requestMessengerAdsDefaultIcebreakersField (bo this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetAssignedPages requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetAssignedPages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetAssignedPages requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/User.java b/src/main/java/com/facebook/ads/sdk/User.java index a81ed828..8123413b 100644 --- a/src/main/java/com/facebook/ads/sdk/User.java +++ b/src/main/java/com/facebook/ads/sdk/User.java @@ -1075,6 +1075,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -1103,6 +1104,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -1122,7 +1124,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -1554,6 +1555,13 @@ public APIRequestGetAccounts requestDisplayedMessageResponseTimeField (boolean v this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetAccounts requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetAccounts requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetAccounts requestEmailsField () { return this.requestEmailsField(true); } @@ -1750,6 +1758,13 @@ public APIRequestGetAccounts requestIsEligibleForBrandedContentField (boolean va this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetAccounts requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetAccounts requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetAccounts requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -1883,13 +1898,6 @@ public APIRequestGetAccounts requestMessengerAdsDefaultIcebreakersField (boolean this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetAccounts requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetAccounts requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetAccounts requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -5210,6 +5218,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -5238,6 +5247,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -5257,7 +5267,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -5680,6 +5689,13 @@ public APIRequestGetAssignedPages requestDisplayedMessageResponseTimeField (bool this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetAssignedPages requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetAssignedPages requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetAssignedPages requestEmailsField () { return this.requestEmailsField(true); } @@ -5876,6 +5892,13 @@ public APIRequestGetAssignedPages requestIsEligibleForBrandedContentField (boole this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetAssignedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetAssignedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetAssignedPages requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -6009,13 +6032,6 @@ public APIRequestGetAssignedPages requestMessengerAdsDefaultIcebreakersField (bo this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetAssignedPages requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetAssignedPages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetAssignedPages requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -12012,6 +12028,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -12040,6 +12057,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -12059,7 +12077,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -12478,6 +12495,13 @@ public APIRequestGetLikes requestDisplayedMessageResponseTimeField (boolean valu this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetLikes requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetLikes requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetLikes requestEmailsField () { return this.requestEmailsField(true); } @@ -12674,6 +12698,13 @@ public APIRequestGetLikes requestIsEligibleForBrandedContentField (boolean value this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetLikes requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetLikes requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetLikes requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -12807,13 +12838,6 @@ public APIRequestGetLikes requestMessengerAdsDefaultIcebreakersField (boolean va this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetLikes requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetLikes requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetLikes requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } @@ -14038,6 +14062,7 @@ public APINodeList getLastResponse() { "directed_by", "display_subtext", "displayed_message_response_time", + "does_viewer_have_page_permission_link_ig", "emails", "engagement", "fan_count", @@ -14066,6 +14091,7 @@ public APINodeList getLastResponse() { "is_chain", "is_community_page", "is_eligible_for_branded_content", + "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", "is_messenger_bot_get_started_enabled", "is_messenger_platform_bot", "is_owned", @@ -14085,7 +14111,6 @@ public APINodeList getLastResponse() { "merchant_review_status", "messaging_feature_status", "messenger_ads_default_icebreakers", - "messenger_ads_default_page_welcome_message", "messenger_ads_default_quick_replies", "messenger_ads_quick_replies_type", "mini_shop_storefront", @@ -14504,6 +14529,13 @@ public APIRequestGetMusic requestDisplayedMessageResponseTimeField (boolean valu this.requestField("displayed_message_response_time", value); return this; } + public APIRequestGetMusic requestDoesViewerHavePagePermissionLinkIgField () { + return this.requestDoesViewerHavePagePermissionLinkIgField(true); + } + public APIRequestGetMusic requestDoesViewerHavePagePermissionLinkIgField (boolean value) { + this.requestField("does_viewer_have_page_permission_link_ig", value); + return this; + } public APIRequestGetMusic requestEmailsField () { return this.requestEmailsField(true); } @@ -14700,6 +14732,13 @@ public APIRequestGetMusic requestIsEligibleForBrandedContentField (boolean value this.requestField("is_eligible_for_branded_content", value); return this; } + public APIRequestGetMusic requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () { + return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true); + } + public APIRequestGetMusic requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) { + this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value); + return this; + } public APIRequestGetMusic requestIsMessengerBotGetStartedEnabledField () { return this.requestIsMessengerBotGetStartedEnabledField(true); } @@ -14833,13 +14872,6 @@ public APIRequestGetMusic requestMessengerAdsDefaultIcebreakersField (boolean va this.requestField("messenger_ads_default_icebreakers", value); return this; } - public APIRequestGetMusic requestMessengerAdsDefaultPageWelcomeMessageField () { - return this.requestMessengerAdsDefaultPageWelcomeMessageField(true); - } - public APIRequestGetMusic requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) { - this.requestField("messenger_ads_default_page_welcome_message", value); - return this; - } public APIRequestGetMusic requestMessengerAdsDefaultQuickRepliesField () { return this.requestMessengerAdsDefaultQuickRepliesField(true); } diff --git a/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessAccount.java b/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessAccount.java index 96b87a1c..fa5899e3 100644 --- a/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessAccount.java +++ b/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessAccount.java @@ -1279,6 +1279,7 @@ public APINode getLastResponse() { return lastResponse; } public static final String[] PARAMS = { + "categories", "clone_extension_id", "clone_template", "data_channel_uri", @@ -1341,6 +1342,15 @@ public APIRequestCreateExtension setParams(Map params) { } + public APIRequestCreateExtension setCategories (List categories) { + this.setParam("categories", categories); + return this; + } + public APIRequestCreateExtension setCategories (String categories) { + this.setParam("categories", categories); + return this; + } + public APIRequestCreateExtension setCloneExtensionId (String cloneExtensionId) { this.setParam("clone_extension_id", cloneExtensionId); return this; @@ -1511,6 +1521,7 @@ public APINode getLastResponse() { return lastResponse; } public static final String[] PARAMS = { + "categories", "clone_flow_id", "clone_template", "data_channel_uri", @@ -1573,6 +1584,15 @@ public APIRequestCreateFlow setParams(Map params) { } + public APIRequestCreateFlow setCategories (List categories) { + this.setParam("categories", categories); + return this; + } + public APIRequestCreateFlow setCategories (String categories) { + this.setParam("categories", categories); + return this; + } + public APIRequestCreateFlow setCloneFlowId (String cloneFlowId) { this.setParam("clone_flow_id", cloneFlowId); return this; @@ -4384,8 +4404,16 @@ public static enum EnumTasks { VALUE_MANAGE_EXTENSIONS("MANAGE_EXTENSIONS"), @SerializedName("MANAGE_PHONE") VALUE_MANAGE_PHONE("MANAGE_PHONE"), + @SerializedName("MANAGE_PHONE_ASSETS") + VALUE_MANAGE_PHONE_ASSETS("MANAGE_PHONE_ASSETS"), + @SerializedName("MANAGE_TEMPLATES") + VALUE_MANAGE_TEMPLATES("MANAGE_TEMPLATES"), @SerializedName("VIEW_COST") VALUE_VIEW_COST("VIEW_COST"), + @SerializedName("VIEW_PHONE_ASSETS") + VALUE_VIEW_PHONE_ASSETS("VIEW_PHONE_ASSETS"), + @SerializedName("VIEW_TEMPLATES") + VALUE_VIEW_TEMPLATES("VIEW_TEMPLATES"), ; private String value; @@ -4582,6 +4610,37 @@ public String toString() { } } + public static enum EnumCategories { + @SerializedName("APPOINTMENT_BOOKING") + VALUE_APPOINTMENT_BOOKING("APPOINTMENT_BOOKING"), + @SerializedName("CONTACT_US") + VALUE_CONTACT_US("CONTACT_US"), + @SerializedName("CUSTOMER_SUPPORT") + VALUE_CUSTOMER_SUPPORT("CUSTOMER_SUPPORT"), + @SerializedName("LEAD_GENERATION") + VALUE_LEAD_GENERATION("LEAD_GENERATION"), + @SerializedName("OTHER") + VALUE_OTHER("OTHER"), + @SerializedName("SIGN_IN") + VALUE_SIGN_IN("SIGN_IN"), + @SerializedName("SIGN_UP") + VALUE_SIGN_UP("SIGN_UP"), + @SerializedName("SURVEY") + VALUE_SURVEY("SURVEY"), + ; + + private String value; + + private EnumCategories(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + } + public static enum EnumButtonTypes { @SerializedName("OTP") VALUE_OTP("OTP"),