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

fbshipit-source-id: 27416c3be801e0728fbf483bf381ef27ea2d77ab
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Apr 15, 2024
1 parent 17998bd commit 8f5d1f4
Show file tree
Hide file tree
Showing 60 changed files with 2,334 additions and 1,496 deletions.
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostAdSetCreateCpa.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public static void main (String args[]) throws APIException {
.setName("A CPA Ad Set")
.setCampaignId("<adCampaignLinkClicksID>")
.setDailyBudget(5000L)
.setStartTime("2024-03-20T14:31:58-0700")
.setEndTime("2024-03-27T14:31:58-0700")
.setStartTime("2024-04-08T11:26:05-0700")
.setEndTime("2024-04-15T11:26:05-0700")
.setBillingEvent(AdSet.EnumBillingEvent.VALUE_IMPRESSIONS)
.setOptimizationGoal(AdSet.EnumOptimizationGoal.VALUE_REACH)
.setBidAmount(1000L)
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public static void main (String args[]) throws APIException {
.setName("A CPA Ad Set optimized for App Events")
.setCampaignId("<adCampaignAppInstallsID>")
.setDailyBudget(300L)
.setStartTime("2024-03-20T14:32:42-0700")
.setEndTime("2024-03-27T14:32:42-0700")
.setStartTime("2024-04-08T11:26:49-0700")
.setEndTime("2024-04-15T11:26:49-0700")
.setBillingEvent(AdSet.EnumBillingEvent.VALUE_IMPRESSIONS)
.setOptimizationGoal(AdSet.EnumOptimizationGoal.VALUE_OFFSITE_CONVERSIONS)
.setBidAmount(100L)
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostCreateAdSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public static void main (String args[]) throws APIException {
new AdAccount(id, context).createAdSet()
.setName("My First AdSet")
.setLifetimeBudget(20000L)
.setStartTime("2024-03-20T14:31:13-0700")
.setEndTime("2024-03-27T14:31:13-0700")
.setStartTime("2024-04-08T11:25:19-0700")
.setEndTime("2024-04-15T11:25:19-0700")
.setCampaignId("<adCampaignLinkClicksID>")
.setBidAmount(500L)
.setBillingEvent(AdSet.EnumBillingEvent.VALUE_IMPRESSIONS)
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostDailyBudget20.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public static void main (String args[]) throws APIException {
new AdAccount(id, context).createAdSet()
.setName("My First Adset")
.setDailyBudget(2000L)
.setStartTime("2024-03-13T14:32:15-0700")
.setEndTime("2024-03-20T14:32:15-0700")
.setStartTime("2024-04-01T11:26:23-0700")
.setEndTime("2024-04-08T11:26:23-0700")
.setCampaignId("<adCampaignLinkClicksID>")
.setBidAmount(100L)
.setBillingEvent(AdSet.EnumBillingEvent.VALUE_LINK_CLICKS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public static void main (String args[]) throws APIException {
new AdAccount(id, context).createAdSet()
.setName("My First Adset")
.setLifetimeBudget(20000L)
.setStartTime("2024-03-13T14:32:24-0700")
.setEndTime("2024-03-23T14:32:24-0700")
.setStartTime("2024-04-01T11:26:32-0700")
.setEndTime("2024-04-11T11:26:32-0700")
.setCampaignId("<adCampaignLinkClicksID>")
.setBidAmount(100L)
.setBillingEvent(AdSet.EnumBillingEvent.VALUE_LINK_CLICKS)
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostOptimizePostEngagement.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public static void main (String args[]) throws APIException {
new AdAccount(id, context).createAdSet()
.setName("My First Adset")
.setLifetimeBudget(20000L)
.setStartTime("2024-03-13T14:32:33-0700")
.setEndTime("2024-03-23T14:32:33-0700")
.setStartTime("2024-04-01T11:26:40-0700")
.setEndTime("2024-04-11T11:26:40-0700")
.setCampaignId("<adCampaignLinkClicksID>")
.setBidAmount(500L)
.setBillingEvent(AdSet.EnumBillingEvent.VALUE_IMPRESSIONS)
Expand Down
2 changes: 1 addition & 1 deletion examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void main (String args[]) throws APIException {
APIContext context = new APIContext(access_token).enableDebug(true);

new Ad(id, context).getLeads()
.setParam("filtering", "[{\"field\":\"time_created\",\"operator\":\"GREATER_THAN\",\"value\":1681144509}]")
.setParam("filtering", "[{\"field\":\"time_created\",\"operator\":\"GREATER_THAN\",\"value\":1711391704}]")
.execute();

}
Expand Down
2 changes: 1 addition & 1 deletion examples/AdsPixelEventsPost.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void main (String args[]) throws APIException {
APIContext context = new APIContext(access_token).enableDebug(true);

new AdsPixel(id, context).createEvent()
.setData("[{\"event_name\":\"PageView\",\"event_time\":1681748568,\"user_data\":{\"fbc\":\"fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890\",\"fbp\":\"fb.1.1558571054389.1098115397\",\"em\":\"309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd\"}}]")
.setData("[{\"event_name\":\"PageView\",\"event_time\":1711995835,\"user_data\":{\"fbc\":\"fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890\",\"fbp\":\"fb.1.1558571054389.1098115397\",\"em\":\"309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd\"}}]")
.execute();

}
Expand Down
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>19.0.2</version>
<version>19.0.3</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 = "v19.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-v19.0.2";
public static final String USER_AGENT = "fbbizsdk-java-v19.0.3";
};
Loading

0 comments on commit 8f5d1f4

Please sign in to comment.