Skip to content

Commit 85a9294

Browse files
generatedunixname89002005295453facebook-github-bot
generatedunixname89002005295453
authored andcommitted
Auto-generated java SDK code update
Summary: ignore-conflict-markers Reviewed By: jingping2015 Differential Revision: D18322410 fbshipit-source-id: a5c94be0
1 parent 3a5c6af commit 85a9294

30 files changed

+7623
-2279
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44

55

66
## Unreleased
7+
8+
## v5.0.1
9+
710
### Added
811
- Added `CrashRepoter`, more context available [here](https://developers.facebook.com/docs/business-sdk/guides/crash-reports)
912

@@ -31,3 +34,4 @@ All notable changes to this project will be documented in this file.
3134
## v3.3.0
3235
### Changed
3336
- Graph API call upgrade to [v3.3](https://developers.facebook.com/docs/graph-api/changelog/version3.3)
37+

Diff for: examples/AdCreativeCreativeInsightsEdge.java

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
3+
*
4+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
5+
* use, copy, modify, and distribute this software in source code or binary
6+
* form for use in connection with the web services and APIs provided by
7+
* Facebook.
8+
*
9+
* As with any software that integrates with the Facebook platform, your use
10+
* of this software is subject to the Facebook Developer Principles and
11+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
12+
* shall be included in all copies or substantial portions of the software.
13+
*
14+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20+
* DEALINGS IN THE SOFTWARE.
21+
*
22+
*/
23+
24+
import com.facebook.ads.sdk.*;
25+
import java.io.File;
26+
import java.util.Arrays;
27+
28+
public class AdCreativeCreativeInsightsEdge {
29+
public static void main (String args[]) throws APIException {
30+
31+
String access_token = "<ACCESS_TOKEN>";
32+
String app_secret = "<APP_SECRET>";
33+
String app_id = "<APP_ID>";
34+
String id = "<CREATIVE_ID>";
35+
APIContext context = new APIContext(access_token).enableDebug(true);
36+
37+
new AdCreative(id, context).getCreativeInsights()
38+
.requestField("creative_compass_scores")
39+
.execute();
40+
41+
}
42+
}

Diff for: pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.facebook.business.sdk</groupId>
55
<artifactId>facebook-java-business-sdk</artifactId>
66
<packaging>jar</packaging>
7-
<version>5.0.0</version>
7+
<version>5.0.1</version>
88
<name>${project.groupId}:${project.artifactId}</name>
99
<description>Facebook Business Solutions SDK for Java</description>
1010
<url>https://developers.facebook.com/docs/marketing-api/sdks</url>

Diff for: src/main/java/com/facebook/ads/sdk/AdAccount.java

+2
Original file line numberDiff line numberDiff line change
@@ -28116,6 +28116,8 @@ public static enum EnumContentType {
2811628116
VALUE_HOTEL("HOTEL"),
2811728117
@SerializedName("MEDIA_TITLE")
2811828118
VALUE_MEDIA_TITLE("MEDIA_TITLE"),
28119+
@SerializedName("OFFLINE_PRODUCT")
28120+
VALUE_OFFLINE_PRODUCT("OFFLINE_PRODUCT"),
2811928121
@SerializedName("PRODUCT")
2812028122
VALUE_PRODUCT("PRODUCT"),
2812128123
@SerializedName("VEHICLE")

Diff for: src/main/java/com/facebook/ads/sdk/AdAccountActivity.java

-30
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ public class AdAccountActivity extends APINode {
6767
private Object mCreditNew = null;
6868
@SerializedName("credit_old")
6969
private Object mCreditOld = null;
70-
@SerializedName("credit_status_new")
71-
private String mCreditStatusNew = null;
72-
@SerializedName("credit_status_old")
73-
private String mCreditStatusOld = null;
7470
@SerializedName("currency_new")
7571
private String mCurrencyNew = null;
7672
@SerializedName("currency_old")
@@ -359,14 +355,6 @@ public Object getFieldCreditOld() {
359355
return mCreditOld;
360356
}
361357

362-
public String getFieldCreditStatusNew() {
363-
return mCreditStatusNew;
364-
}
365-
366-
public String getFieldCreditStatusOld() {
367-
return mCreditStatusOld;
368-
}
369-
370358
public String getFieldCurrencyNew() {
371359
return mCurrencyNew;
372360
}
@@ -486,8 +474,6 @@ public AdAccountActivity getLastResponse() {
486474
"created_time",
487475
"credit_new",
488476
"credit_old",
489-
"credit_status_new",
490-
"credit_status_old",
491477
"currency_new",
492478
"currency_old",
493479
"daily_spend_limit_new",
@@ -646,20 +632,6 @@ public APIRequestGet requestCreditOldField (boolean value) {
646632
this.requestField("credit_old", value);
647633
return this;
648634
}
649-
public APIRequestGet requestCreditStatusNewField () {
650-
return this.requestCreditStatusNewField(true);
651-
}
652-
public APIRequestGet requestCreditStatusNewField (boolean value) {
653-
this.requestField("credit_status_new", value);
654-
return this;
655-
}
656-
public APIRequestGet requestCreditStatusOldField () {
657-
return this.requestCreditStatusOldField(true);
658-
}
659-
public APIRequestGet requestCreditStatusOldField (boolean value) {
660-
this.requestField("credit_status_old", value);
661-
return this;
662-
}
663635
public APIRequestGet requestCurrencyNewField () {
664636
return this.requestCurrencyNewField(true);
665637
}
@@ -858,8 +830,6 @@ public AdAccountActivity copyFrom(AdAccountActivity instance) {
858830
this.mCreatedTime = instance.mCreatedTime;
859831
this.mCreditNew = instance.mCreditNew;
860832
this.mCreditOld = instance.mCreditOld;
861-
this.mCreditStatusNew = instance.mCreditStatusNew;
862-
this.mCreditStatusOld = instance.mCreditStatusOld;
863833
this.mCurrencyNew = instance.mCurrencyNew;
864834
this.mCurrencyOld = instance.mCurrencyOld;
865835
this.mDailySpendLimitNew = instance.mDailySpendLimitNew;

Diff for: src/main/java/com/facebook/ads/sdk/AdAccountTargetingUnified.java

+2
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,8 @@ public static enum EnumRegulatedCategories {
524524
VALUE_EMPLOYMENT("EMPLOYMENT"),
525525
@SerializedName("HOUSING")
526526
VALUE_HOUSING("HOUSING"),
527+
@SerializedName("ISSUES_ELECTIONS_POLITICS")
528+
VALUE_ISSUES_ELECTIONS_POLITICS("ISSUES_ELECTIONS_POLITICS"),
527529
@SerializedName("NONE")
528530
VALUE_NONE("NONE"),
529531
;

Diff for: src/main/java/com/facebook/ads/sdk/AdCreative.java

+2
Original file line numberDiff line numberDiff line change
@@ -2491,6 +2491,8 @@ public static enum EnumObjectType {
24912491
VALUE_PAGE("PAGE"),
24922492
@SerializedName("PHOTO")
24932493
VALUE_PHOTO("PHOTO"),
2494+
@SerializedName("POST_DELETED")
2495+
VALUE_POST_DELETED("POST_DELETED"),
24942496
@SerializedName("SHARE")
24952497
VALUE_SHARE("SHARE"),
24962498
@SerializedName("STATUS")

Diff for: src/main/java/com/facebook/ads/sdk/AdPreview.java

+4
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ public static enum EnumAdFormat {
232232
VALUE_DESKTOP_FEED_STANDARD("DESKTOP_FEED_STANDARD"),
233233
@SerializedName("FACEBOOK_STORY_MOBILE")
234234
VALUE_FACEBOOK_STORY_MOBILE("FACEBOOK_STORY_MOBILE"),
235+
@SerializedName("INSTAGRAM_EXPLORE_CONTEXTUAL")
236+
VALUE_INSTAGRAM_EXPLORE_CONTEXTUAL("INSTAGRAM_EXPLORE_CONTEXTUAL"),
237+
@SerializedName("INSTAGRAM_EXPLORE_IMMERSIVE")
238+
VALUE_INSTAGRAM_EXPLORE_IMMERSIVE("INSTAGRAM_EXPLORE_IMMERSIVE"),
235239
@SerializedName("INSTAGRAM_STANDARD")
236240
VALUE_INSTAGRAM_STANDARD("INSTAGRAM_STANDARD"),
237241
@SerializedName("INSTAGRAM_STORY")

0 commit comments

Comments
 (0)