Exemple #1
0
 public Builder ForCustomNativeAd(string templateId, Action <CustomNativeTemplateAd, string> callback)
 {
     TemplateIds.Add(templateId);
     CustomNativeTemplateClickHandlers[templateId] = callback;
     AdTypes.Add(NativeAdType.CustomTemplate);
     return(this);
 }
 public void AddOrUpdateTemplateId(string fundingStreamId,
                                   string templateId)
 {
     if (TemplateIds.ContainsKey(fundingStreamId))
     {
         TemplateIds[fundingStreamId] = templateId;
     }
     else
     {
         TemplateIds.Add(fundingStreamId, templateId);
     }
 }
 /// <summary>
 /// Add a template to this request.
 /// You can call this multiple times to add multiple templates to a request,
 /// but templates must have compatible roles to be used together.
 /// </summary>
 /// <param name="templateId"></param>
 public void AddTemplate(string templateId)
 {
     TemplateIds.Add(templateId);
 }
Exemple #4
0
 public Builder ForCustomNativeAd(string templateId)
 {
     TemplateIds.Add(templateId);
     AdTypes.Add(NativeAdType.CustomTemplate);
     return(this);
 }