Skip to content

Commit

Permalink
[Android] Removes NonceManager.sendAdImpression() button, deprecated
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 594089277
  • Loading branch information
google-ima-devrel-bot authored and IMA Developer Relations committed Dec 27, 2023
1 parent 3da666d commit 73e941b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public class MainActivity extends AppCompatActivity {

private Button adClickButton;

private Button sendImpressionButton;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand All @@ -59,7 +57,6 @@ protected void onCreate(Bundle savedInstanceState) {
nonceLoader = new NonceLoader(this, consentSettings);

adClickButton = findViewById(R.id.send_click_button);
sendImpressionButton = findViewById(R.id.send_impression_button);

logView = findViewById(R.id.log_view);
logView.setMovementMethod(new ScrollingMovementMethod());
Expand Down Expand Up @@ -101,7 +98,6 @@ public void onSuccess(NonceManager manager) {
exampleMakeAdRequest(DEFAULT_AD_TAG + "&givn=" + nonceString);

adClickButton.setEnabled(true);
sendImpressionButton.setEnabled(true);
}
})
.addOnFailureListener(
Expand Down

0 comments on commit 73e941b

Please sign in to comment.