-
Notifications
You must be signed in to change notification settings - Fork 972
GoogleAds_IMA Videos Ads on your page
The GoogleAds_IMA plugin provides integration with the Google IMA SDK, enabling compliance with VAST 3.0 and VPAID 2 JS standards. Although the plugin name mentions "GoogleAds," it is not limited to Google's services. You can use it with any ad server or provider that follows VAST standards.
-
Apply for an AdSense account or another VAST-compatible service:
- Follow the service's approval process.
- After approval, you'll receive a publisher ID for live video ads.
-
Remove testing parameters:
- Make sure to remove all instances of the
adtest=on
parameter to ensure your ads function correctly in a live environment.
- Make sure to remove all instances of the
-
Refer to Google AdSense if needed:
- For more information on the Google AdSense setup process, check out their tutorial here.
The plugin works with any VAST-compliant ad server. You can explore various ad providers if you're not using Google. Here’s a useful list of ad server companies to consider.
The plugin allows for user customization, enabling users to set their own VAST URLs. This feature is particularly useful for publishers, as it gives them the flexibility to use custom ad URLs that align with their specific advertising goals.
The GoogleAds_IMA plugin supports multiple VAST feed URLs. You can list them in a single field, separated by a semicolon (;
). This allows the plugin to try loading ads from multiple sources, providing more flexibility.
https://vast.forjesus.tv/vast.xml;https://company1.vast.xml;https://company2.vast.xml
In this example:
- The
https://vast.forjesus.tv/vast.xml
feed always returns an ad. - If ads from other feeds (e.g.,
https://company1.vast.xml
orhttps://company2.vast.xml
) fail to load, the ForJesus feed will still deliver an ad, confirming that your configuration is working correctly.
This approach helps determine whether an ad provider is failing to deliver ads.
The plugin supports the use of macros for dynamic VAST URL replacements. You can even use PHP code in VMAP tags, giving you more control over ad serving. You can define up to 10 different ad tags, ideal for using VMAP scripts across different apps. The plugin provides an API to request VMAP from various tags.
To further enhance ad serving and tracking, the plugin provides several placeholders for dynamic VAST URL customization:
-
{ip}
: Viewer’s IP address. -
{ChannelName}
: URL-encoded channel name. -
{Category}
: URL-encoded category name. -
{content_page_url}
: Content page URL. -
{cb}
: Cache buster value. -
{video_duration}
: Video duration. -
{width}
,[CONTENT-DISPLAY-WIDTH]
,{{WIDTH}}
: Content display width. -
{height}
,[CONTENT-DISPLAY-HEIGHT]
,{{HEIGHT}}
: Content display height. -
{device_id}
: Device ID. -
[VIDEO-TITLE-HERE]
: Clean video title. -
[ADS-TRACKING-ID]
: Cache buster value (similar to{cb}
). -
[DEVICE-USER-AGENT]
: URL-encoded user agent. -
[LIMIT-TRACKING]
: Tracking limit (0 or 1).
You can also use:
-
{{ENCODED_URL}}
: Encoded content page URL. -
{{CACHEBUSTER}}
: Cache buster value. -
{{DURATION}}
: Video duration.
To use these placeholders, include them in your VAST URL. The plugin automatically replaces these placeholders with the corresponding values during ad requests.
Once you have set up the plugin and started delivering ads, you can monitor ad performance using the Video Ad Events Report. This report provides detailed insights into how ads are performing, including data on event types and campaigns. You can find the tutorial for the report here:
Video Ad Events Report Tutorial.
If your ad provider is not delivering ads, follow these steps to troubleshoot:
-
Check your ad provider:
- Confirm there are no restrictions or issues with your ad provider.
-
Test your configuration:
- Use the following test VAST tag to ensure the plugin is working:
https://vast.forjesus.tv/vast.xml
This tag always returns an ad. If it works, your plugin setup is correct. If you're still not seeing ads from other providers, the problem likely lies with your provider.
The plugin can handle multiple VAST feeds, which helps you identify issues with specific providers. By separating each feed with a semicolon (;
), the plugin will try loading ads from each source sequentially.
For example:
https://vast.forjesus.tv/vast.xml;https://company1.vast.xml;https://company2.vast.xml
In this case:
- The ForJesus feed always returns an ad.
- If the other feeds fail to deliver ads, you’ll know the issue lies with those specific ad providers, not your plugin configuration.
The GoogleAds_IMA plugin offers flexibility and powerful customization features to help you serve video ads effectively. Whether you are using Google services or another VAST-compatible provider, this plugin gives you the tools to enhance user experience and maximize your advertising revenue on the AVideo platform.