Skip to content

Commit

Permalink
Merge pull request #5 from jaanauati/fix-doc
Browse files Browse the repository at this point in the history
fix doc
  • Loading branch information
jaanauati authored Sep 20, 2016
2 parents 2786c51 + cd7613a commit d57f80c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ReactDom.render(
document.querySelectorAll(".ad-container")[0]);
```

3.2) Example 2: (manually) load and refresh ads.
3.2) Example 2: (manually) oad and refresh ads.
```
import React from 'react';
import ReactDom from 'react-dom';
Expand Down Expand Up @@ -123,7 +123,7 @@ DFPManager.load();
| ------------------ | ------------- | ----------- | ------- |
| load | ```fcn([slotId]) ```| ```DFPManager.load(); ``` | Fetches the gpt api (by calling init()) and renders the ad slots in the page. You can specify an individual slot. |
| refresh | ``` fcn() ``` | ``` DFPManager.refresh(); ``` | Refreshes the ad slots available in the page. This method will call load() if it wasn't already called. Use the method ```<AdSlot shouldRefresh={function(){}} ...>``` to get control over the slots to be refreshed. |
| targetingArguments | | | |
| targetingArguments | object (optional) | ``` { "keywords": "family", "content": "test" } ``` | Object with attributes you want to enable globaly (you can use this for custom targeting) |
| getGoogletag | ```fcn() => Promise ```| ``` DFPManager.getGoogletag().then( googletag => { console.log(googletag); }); ``` | Returns a promise that resolves when the object googletag object is ready for usage (if required this fcn makes the network call to fetch the scripts). |

#### For Internal Usage Only
Expand Down

0 comments on commit d57f80c

Please sign in to comment.