Skip to content

Commit 031631e

Browse files
jingping2015facebook-github-bot
authored andcommitted
Auto-generated java SDK code update
Summary: ignore-conflict-markers Reviewed By: jingping2015 Differential Revision: D13865196 fbshipit-source-id: 6e6de568
1 parent b44d679 commit 031631e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1051
-7710
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### Which SDK version are you using?
2+
3+
### What's the issue?
4+
5+
### Steps/Sample code to reproduce the issue
6+
7+
#### Observed Results:
8+
9+
* What happened? This could be a description, log output, etc.
10+
11+
#### Expected Results:
12+
13+
* What did you expect to happen?

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,14 @@ We have a plan to improve this by adding more details and providing a convenient
257257

258258
### Customization and Debugging
259259

260-
####Enable debugging
260+
#### Enable debugging
261261
You can enable the debug output by setting the APIContext to debug mode:
262262

263263
public static final APIContext context = new APIContext(ACCESS_TOKEN, APP_SECRET).enableDebug(true).setLogger(System.out);
264264

265265
This will print out the network requests and responses. By default it prints on STDOUT, but you can customize by calling .setLogger(PrintSteam)
266266

267-
####Customize Network
267+
#### Customize Network
268268
In v0.2.0, we added APIRequest.changeRequestExecutor(IRequestExecutor), which can be used to set your own network request executor. This makes it possible to add proxy settings, automatic retry, or better network traffic management. See ``/example/NetworkCustomizationExample.java``.
269269

270270
Currently this is a static method because it is likely to be a global setting. If you do think object-level Customization is needed, we'll add that functionality.

pom.xml

Lines changed: 1 addition & 1 deletion
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>3.2.5</version>
7+
<version>3.2.6</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>

src/main/java/com/facebook/ads/sdk/APINodeList.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ public boolean tryAdvance(Consumer<? super T> action) {
221221
} else {
222222
try {
223223
this.list = list.nextPage();
224+
if (this.list == null) {
225+
return false;
226+
}
224227
this.it = list.getCurrentListIterator();
225228
} catch (APIException e) {
226229
throw new RuntimeException(e);

src/main/java/com/facebook/ads/sdk/Ad.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3263,6 +3263,7 @@ public APINodeList<AdPreview> getLastResponse() {
32633263
public static final String[] PARAMS = {
32643264
"ad_format",
32653265
"dynamic_creative_spec",
3266+
"dynamic_customization",
32663267
"dynamic_asset_label",
32673268
"interactive",
32683269
"post",
@@ -3352,6 +3353,15 @@ public APIRequestGetPreviews setDynamicCreativeSpec (String dynamicCreativeSpec)
33523353
return this;
33533354
}
33543355

3356+
public APIRequestGetPreviews setDynamicCustomization (Object dynamicCustomization) {
3357+
this.setParam("dynamic_customization", dynamicCustomization);
3358+
return this;
3359+
}
3360+
public APIRequestGetPreviews setDynamicCustomization (String dynamicCustomization) {
3361+
this.setParam("dynamic_customization", dynamicCustomization);
3362+
return this;
3363+
}
3364+
33553365
public APIRequestGetPreviews setDynamicAssetLabel (String dynamicAssetLabel) {
33563366
this.setParam("dynamic_asset_label", dynamicAssetLabel);
33573367
return this;
@@ -4046,7 +4056,7 @@ public APIRequestGet setParams(Map<String, Object> params) {
40464056
}
40474057

40484058

4049-
public APIRequestGet setAmCallTags (Object amCallTags) {
4059+
public APIRequestGet setAmCallTags (Map<String, String> amCallTags) {
40504060
this.setParam("am_call_tags", amCallTags);
40514061
return this;
40524062
}

0 commit comments

Comments
 (0)