Passing Categories to Google Ad Manager
-
I need to pass the categories associated with a post to Google Ad manager using this format in the GAM code:
googletag.pubads().setTargeting(‘category’, [‘category-1’, ‘category2’, ‘category3′]);
where category-1, category-2, etc. are the categories associated with the current post.
I know there is a shortcode in AdInserter to get the post categories:
[adinserter data=’categories’]
But I think this would return the categories comma separated.
Is there a way to add the categories to the .setTargeting code above in the format required by Google Ad manager?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Passing Categories to Google Ad Manager’ is closed to new replies.