Skip to content

adsense integration#416

Open
ags1773 wants to merge 4 commits intomasterfrom
adsense
Open

adsense integration#416
ags1773 wants to merge 4 commits intomasterfrom
adsense

Conversation

@ags1773
Copy link
Contributor

@ags1773 ags1773 commented Feb 12, 2023

Comment on lines +39 to +46
// it("should pass localized formattedDate to <DateTime />", () => {
// const wrapper = mount(
// <ThemeProvider theme={defaultTokens}>
// <DateFirstPublishedBase story={getDummyStory()} config={config} />
// </ThemeProvider>
// );
// expect(wrapper.find(DateTime).prop("formattedDate")).toBe("February 12, 2020, 4:07 PM");
// });
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this change, these tests are failing on master

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have a followup ticket for this? so that someone can fix it later

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +37 to +44
// it("should pass localized formattedDate to <DateTime />", () => {
// const wrapper = mount(
// <ThemeProvider theme={defaultTokens}>
// <DateLastPublishedBase story={getDummyStory()} config={config} />
// </ThemeProvider>
// );
// expect(wrapper.find(DateTime).prop("formattedDate")).toBe("May 27, 2020, 6:01 AM");
// });
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Jeevan-Kishore
Jeevan-Kishore previously approved these changes Feb 13, 2023
Athira001
Athira001 previously approved these changes Feb 13, 2023
case "theme-2":
const themeConfig2 = visualStoriesConfig[1] || {};
return themeConfig2.ads?.doubleclick?.dataSlot;
return adConfigForTheme(themeConfig2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we update the doc as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

package.json Outdated
"dist"
],
"scripts": {
"copy": "npm run build && rm /Users/amogh/work/malibu/node_modules/@quintype/amp/dist/index.js && cp /Users/amogh/work/quintype-amp/dist/index.js /Users/amogh/work/malibu/node_modules/@quintype/amp/dist",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines +39 to +46
// it("should pass localized formattedDate to <DateTime />", () => {
// const wrapper = mount(
// <ThemeProvider theme={defaultTokens}>
// <DateFirstPublishedBase story={getDummyStory()} config={config} />
// </ThemeProvider>
// );
// expect(wrapper.find(DateTime).prop("formattedDate")).toBe("February 12, 2020, 4:07 PM");
// });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have a followup ticket for this? so that someone can fix it later

const adSlot = get(config, ["opts", "featureConfig", "visualStories", "ads", "doubleclick", "dataSlot"], null);
return typeof adSlot === "function" ? adSlot(config) : adSlot;
const adsConfig = { doubleClick: null, adsense: { clientId: null, slotId: null } };
const doubleclickAdSlot = get(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we destructure till ads as its used in multiple places

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going with this for now

@ReenaSingh07 ReenaSingh07 dismissed stale reviews from Athira001 and Jeevan-Kishore via 609fbdf June 7, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants