Solutions
...
Integrating MomentPerks
Google Ad Manager (GAM)
overview google ad manager (gam) provides a flexible way to integrate momentscience into your website this guide shows you how to create and implement a momentscience creative in google ad manager to display personalized offers on your website what you'll learn how to create a momentscience creative in google ad manager how to configure size and placement options how to pass payload data for enhanced targeting how to test and verify your implementation prerequisites before starting this integration, you need your momentscience js sdk snippet (found in the dashboard under integration) access to your google ad manager account with creative creation permissions knowledge of where you want to display momentscience units on your website integration steps step 1 create a new creative in google ad manager log in to your google ad manager account navigate to delivery > creatives under display creatives, click new creative select your advertiser from the dropdown menu choose third party as the creative type step 2 configure the creative settings enter a descriptive name for your creative example momentscience banner 1x1 homepage set the target ad unit size to 1x1 this size provides universal compatibility across placements select standard for the code type paste your momentscience js sdk snippet in the code field click save to create your creative for additional details on setting up third party creatives in google ad manager, refer to the official google ad manager support documentation https //support google com/admanager/answer/1746123?hl=en step 3 test your implementation use google ad manager's preview tool to test your creative navigate to the page where the creative should display verify that momentscience content appears correctly check the momentscience dashboard to confirm impressions are being recorded advanced passing payload data enhance targeting by passing user data to momentscience through the payload object there are two methods to pass payload data when using google ad manager method 1 set payload values before loading momentscience add this code to your page before the gam ad tag loads // set a single payload value window\ adpxuser = object assign(window\ adpxuser || {}, { "email" "customer\@example com" }); // or set multiple values at once window\ adpxuser = object assign(window\ adpxuser || {}, { "email" "customer\@example com", "firstname" "john", "lastname" "doe", "amount" "99 95", "currency" "usd" }); method 2 set payload values after momentscience loads modify your creative code in gam to prevent auto loading by setting autoload false add this code to your page where you want to set the payload and display the content // set payload values window\ adpxuser = { "email" "customer\@example com", "firstname" "john", "lastname" "doe" }; // refresh the momentscience unit to display with new payload window\ adpx refresh(); when you set a payload attribute, it overwrites any existing value for that attribute for example, if customattribute is set to 'somevalue' and later set to 'newvalue' , the final value will be 'newvalue' verification and troubleshooting verify your integration check the momentscience dashboard payload explorer https //app momentscience com/account/tools/payload explorer to confirm data is being received verify impressions in your momentscience reporting dashboard test the integration across multiple browsers to ensure compatibility common issues and solutions issue possible cause solution creative not displaying ad blocker interference test in an incognito window or with ad blockers disabled no momentscience content sdk id is incorrect verify your sdk id in the dashboard and update your creative missing payload data payload object not defined correctly check that window\ adpxuser is properly defined before the sdk loads content appears in wrong location ad unit placement issue review your gam placement settings and website implementation multiple units loading duplicate creatives or line items check for multiple instances of the momentscience sdk on the page for assistance with your google ad manager integration, feel free to contact us at help\@momentscience com