Skip to content

Commit

Permalink
Updated README to indicate that the IMA plugin must be initialized be…
Browse files Browse the repository at this point in the history
…fore calling play(). (googleads#213)
  • Loading branch information
shawnbuso committed Apr 25, 2016
1 parent 2f546ea commit 84c5a3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,16 @@ var options = {
adTagUrl: 'YOUR_AD_TAG'
};

// This must be called before player.play() below.
player.ima(options);
player.ima.requestAds();
// On mobile devices, you must call initializeAdDisplayContainer as the result
// of a user action (e.g. button click). If you do not make this call, the SDK
// will make it for you, but not as the result of a user action. For more info
// see our examples, all of which are set up to work on mobile devices.
// player.ima.initializeAdDisplayContainer();

// This must be called after player.ima(...) above.
player.play();
```

Expand Down

0 comments on commit 84c5a3e

Please sign in to comment.