Skip to content

Commit

Permalink
Auto-generated java SDK code update
Browse files Browse the repository at this point in the history
Summary: ignore-conflict-markers

Reviewed By: stcheng

Differential Revision: D50280492

fbshipit-source-id: 0779efafd657f4eac93206c88b717abe01395cdd
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Oct 14, 2023
1 parent 8e9d475 commit 454cc0e
Show file tree
Hide file tree
Showing 37 changed files with 1,485 additions and 845 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.facebook.business.sdk</groupId>
<artifactId>facebook-java-business-sdk</artifactId>
<packaging>jar</packaging>
<version>18.0.1</version>
<version>18.0.2</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>Facebook Business Solutions SDK for Java</description>
<url>https://developers.facebook.com/docs/marketing-api/sdks</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/facebook/ads/sdk/APIConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
361 changes: 16 additions & 345 deletions src/main/java/com/facebook/ads/sdk/AdAccount.java

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions src/main/java/com/facebook/ads/sdk/AdAccountAdVolume.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand All @@ -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")
Expand All @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/facebook/ads/sdk/AdActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/facebook/ads/sdk/AdAssetFeedSpec.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/facebook/ads/sdk/AdCreative.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/com/facebook/ads/sdk/AdPromotedObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/facebook/ads/sdk/AdReportRun.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
48 changes: 32 additions & 16 deletions src/main/java/com/facebook/ads/sdk/AdVideo.java
Original file line number Diff line number Diff line change
Expand Up @@ -1649,6 +1649,7 @@ public APINodeList<Page> getLastResponse() {
"directed_by",
"display_subtext",
"displayed_message_response_time",
"does_viewer_have_page_permission_link_ig",
"emails",
"engagement",
"fan_count",
Expand Down Expand Up @@ -1677,6 +1678,7 @@ public APINodeList<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",
Expand All @@ -1696,7 +1698,6 @@ public APINodeList<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",
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -3809,6 +3817,7 @@ public APINodeList<Page> getLastResponse() {
"directed_by",
"display_subtext",
"displayed_message_response_time",
"does_viewer_have_page_permission_link_ig",
"emails",
"engagement",
"fan_count",
Expand Down Expand Up @@ -3837,6 +3846,7 @@ public APINodeList<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",
Expand All @@ -3856,7 +3866,6 @@ public APINodeList<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",
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/facebook/ads/sdk/AdsInsights.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -2090,6 +2092,10 @@ public String getFieldMarketingMessagesBtnName() {
return mMarketingMessagesBtnName;
}

public String getFieldMdsaLandingDestination() {
return mMdsaLandingDestination;
}

public String getFieldMediaAssetUrl() {
return mMediaAssetUrl;
}
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 454cc0e

Please sign in to comment.