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: D49294314

fbshipit-source-id: 1b0e0bdb599e0a1b3de4da4a1d9d30ae1e5f83dc
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Sep 14, 2023
1 parent dd2e500 commit 4bc818b
Show file tree
Hide file tree
Showing 108 changed files with 22,418 additions and 1,018 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>17.0.3</version>
<version>18.0.0</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
4 changes: 2 additions & 2 deletions src/main/java/com/facebook/ads/sdk/APIConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
package com.facebook.ads.sdk;

public class APIConfig {
public static final String DEFAULT_API_VERSION = "v17.0";
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-v17.0.3";
public static final String USER_AGENT = "fbbizsdk-java-v18.0.0";
};
93 changes: 87 additions & 6 deletions src/main/java/com/facebook/ads/sdk/Ad.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@
public class Ad extends APINode {
@SerializedName("account_id")
private String mAccountId = null;
@SerializedName("ad_active_time")
private String mAdActiveTime = null;
@SerializedName("ad_review_feedback")
private AdgroupReviewFeedback mAdReviewFeedback = null;
@SerializedName("ad_schedule_end_time")
private String mAdScheduleEndTime = null;
@SerializedName("ad_schedule_start_time")
private String mAdScheduleStartTime = null;
@SerializedName("adlabels")
private List<AdLabel> mAdlabels = null;
@SerializedName("adset")
Expand Down Expand Up @@ -376,10 +382,22 @@ public String getFieldAccountId() {
return mAccountId;
}

public String getFieldAdActiveTime() {
return mAdActiveTime;
}

public AdgroupReviewFeedback getFieldAdReviewFeedback() {
return mAdReviewFeedback;
}

public String getFieldAdScheduleEndTime() {
return mAdScheduleEndTime;
}

public String getFieldAdScheduleStartTime() {
return mAdScheduleStartTime;
}

public List<AdLabel> getFieldAdlabels() {
return mAdlabels;
}
Expand Down Expand Up @@ -1476,7 +1494,10 @@ public APINodeList<Ad> getLastResponse() {

public static final String[] FIELDS = {
"account_id",
"ad_active_time",
"ad_review_feedback",
"ad_schedule_end_time",
"ad_schedule_start_time",
"adlabels",
"adset",
"adset_id",
Expand Down Expand Up @@ -1583,7 +1604,7 @@ public APIRequestGetCopies setEffectiveStatus (String effectiveStatus) {
return this;
}

public APIRequestGetCopies setTimeRange (Object timeRange) {
public APIRequestGetCopies setTimeRange (Map<String, String> timeRange) {
this.setParam("time_range", timeRange);
return this;
}
Expand Down Expand Up @@ -1644,13 +1665,34 @@ public APIRequestGetCopies requestAccountIdField (boolean value) {
this.requestField("account_id", value);
return this;
}
public APIRequestGetCopies requestAdActiveTimeField () {
return this.requestAdActiveTimeField(true);
}
public APIRequestGetCopies requestAdActiveTimeField (boolean value) {
this.requestField("ad_active_time", value);
return this;
}
public APIRequestGetCopies requestAdReviewFeedbackField () {
return this.requestAdReviewFeedbackField(true);
}
public APIRequestGetCopies requestAdReviewFeedbackField (boolean value) {
this.requestField("ad_review_feedback", value);
return this;
}
public APIRequestGetCopies requestAdScheduleEndTimeField () {
return this.requestAdScheduleEndTimeField(true);
}
public APIRequestGetCopies requestAdScheduleEndTimeField (boolean value) {
this.requestField("ad_schedule_end_time", value);
return this;
}
public APIRequestGetCopies requestAdScheduleStartTimeField () {
return this.requestAdScheduleStartTimeField(true);
}
public APIRequestGetCopies requestAdScheduleStartTimeField (boolean value) {
this.requestField("ad_schedule_start_time", value);
return this;
}
public APIRequestGetCopies requestAdlabelsField () {
return this.requestAdlabelsField(true);
}
Expand Down Expand Up @@ -2242,7 +2284,7 @@ public APIRequestGetInsights setTimeIncrement (String timeIncrement) {
return this;
}

public APIRequestGetInsights setTimeRange (Object timeRange) {
public APIRequestGetInsights setTimeRange (Map<String, String> timeRange) {
this.setParam("time_range", timeRange);
return this;
}
Expand All @@ -2251,7 +2293,7 @@ public APIRequestGetInsights setTimeRange (String timeRange) {
return this;
}

public APIRequestGetInsights setTimeRanges (List<Object> timeRanges) {
public APIRequestGetInsights setTimeRanges (List<Map<String, String>> timeRanges) {
this.setParam("time_ranges", timeRanges);
return this;
}
Expand Down Expand Up @@ -2544,7 +2586,7 @@ public APIRequestGetInsightsAsync setTimeIncrement (String timeIncrement) {
return this;
}

public APIRequestGetInsightsAsync setTimeRange (Object timeRange) {
public APIRequestGetInsightsAsync setTimeRange (Map<String, String> timeRange) {
this.setParam("time_range", timeRange);
return this;
}
Expand All @@ -2553,7 +2595,7 @@ public APIRequestGetInsightsAsync setTimeRange (String timeRange) {
return this;
}

public APIRequestGetInsightsAsync setTimeRanges (List<Object> timeRanges) {
public APIRequestGetInsightsAsync setTimeRanges (List<Map<String, String>> timeRanges) {
this.setParam("time_ranges", timeRanges);
return this;
}
Expand Down Expand Up @@ -3367,7 +3409,10 @@ public Ad getLastResponse() {

public static final String[] FIELDS = {
"account_id",
"ad_active_time",
"ad_review_feedback",
"ad_schedule_end_time",
"ad_schedule_start_time",
"adlabels",
"adset",
"adset_id",
Expand Down Expand Up @@ -3492,7 +3537,7 @@ public APIRequestGet setReviewFeedbackBreakdown (String reviewFeedbackBreakdown)
return this;
}

public APIRequestGet setTimeRange (Object timeRange) {
public APIRequestGet setTimeRange (Map<String, String> timeRange) {
this.setParam("time_range", timeRange);
return this;
}
Expand Down Expand Up @@ -3544,13 +3589,34 @@ public APIRequestGet requestAccountIdField (boolean value) {
this.requestField("account_id", value);
return this;
}
public APIRequestGet requestAdActiveTimeField () {
return this.requestAdActiveTimeField(true);
}
public APIRequestGet requestAdActiveTimeField (boolean value) {
this.requestField("ad_active_time", value);
return this;
}
public APIRequestGet requestAdReviewFeedbackField () {
return this.requestAdReviewFeedbackField(true);
}
public APIRequestGet requestAdReviewFeedbackField (boolean value) {
this.requestField("ad_review_feedback", value);
return this;
}
public APIRequestGet requestAdScheduleEndTimeField () {
return this.requestAdScheduleEndTimeField(true);
}
public APIRequestGet requestAdScheduleEndTimeField (boolean value) {
this.requestField("ad_schedule_end_time", value);
return this;
}
public APIRequestGet requestAdScheduleStartTimeField () {
return this.requestAdScheduleStartTimeField(true);
}
public APIRequestGet requestAdScheduleStartTimeField (boolean value) {
this.requestField("ad_schedule_start_time", value);
return this;
}
public APIRequestGet requestAdlabelsField () {
return this.requestAdlabelsField(true);
}
Expand Down Expand Up @@ -3792,6 +3858,8 @@ public Ad getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"ad_schedule_end_time",
"ad_schedule_start_time",
"adlabels",
"adset_spec",
"audience_id",
Expand Down Expand Up @@ -3866,6 +3934,16 @@ public APIRequestUpdate setParams(Map<String, Object> params) {
}


public APIRequestUpdate setAdScheduleEndTime (String adScheduleEndTime) {
this.setParam("ad_schedule_end_time", adScheduleEndTime);
return this;
}

public APIRequestUpdate setAdScheduleStartTime (String adScheduleStartTime) {
this.setParam("ad_schedule_start_time", adScheduleStartTime);
return this;
}

public APIRequestUpdate setAdlabels (List<Object> adlabels) {
this.setParam("adlabels", adlabels);
return this;
Expand Down Expand Up @@ -4293,7 +4371,10 @@ public String toString() {

public Ad copyFrom(Ad instance) {
this.mAccountId = instance.mAccountId;
this.mAdActiveTime = instance.mAdActiveTime;
this.mAdReviewFeedback = instance.mAdReviewFeedback;
this.mAdScheduleEndTime = instance.mAdScheduleEndTime;
this.mAdScheduleStartTime = instance.mAdScheduleStartTime;
this.mAdlabels = instance.mAdlabels;
this.mAdset = instance.mAdset;
this.mAdsetId = instance.mAdsetId;
Expand Down
Loading

0 comments on commit 4bc818b

Please sign in to comment.