Thanks for your time. The snippet I get from adwords and google ads api 
looks different.  I have added the steps for both api below and the 
snippets. Please let me know if any one snippet from Google Ads API 
remarketing action  same as snippet from adwords ?

In *Google.Api.Ads.AdWords.**v201809, *I do the following steps.
1. Create a CustomerClient
2. Get a Customer using its customerId. 
3. Get Remarketing Tag snippet from Customer using 
*customer.remarketingSettings.snippet 
. *The sample of the snippet mentioned below.

> <!-- Google Code for Remarketing Tag -->  
> <!--------------------------------------------------  Remarketing tags may 
> not be associated with personally identifiable information or placed on 
> pages related to sensitive categories. See more information and 
> instructions on how to setup the tag on: 
> http://google.com/ads/remarketingsetup  
> --------------------------------------------------->  
> <script type="text/javascript">  /* <![CDATA[ */  var google_conversion_id 
> = xxxxxxxxx;  var google_custom_params = window.google_tag_params;  var 
> google_remarketing_only = true;  /* ]]> */  
> </script>  
> <script type="text/javascript" 
> src="//www.googleadservices.com/pagead/conversion.js">  
> </script>  
> <noscript>  
> <div style="display:inline;">  <img height="1" width="1" 
> style="border-style:none;" alt="" 
> src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/xxxxxxxxx?guid=ON&amp;script=0"/>
>   
> </div>  
> </noscript> 


As you suggested, I used remarketing_action 
<https://developers.google.com/google-ads/api/docs/fields/remarketing_action> 
resource 
to get tag_snippets  in GoogleAdAPI V1.0 . Please find its steps below. 

1. Create a CustomerClient
2. Create a RemarketingAction using its customerId. 
3. Get Remarketing action using RemarketingActionResourceName from step 2. 
4. I get 4 tag snippets . I posted the two snippets for HTML page format. 


Type : WebpageOnclick
PageFormat: HTML
EventSnippet:
<!-- Event snippet for remarkingaction conversion page
In your html page, add the snippet and call gtag_report_conversion when 
someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url) {
  var callback = function () {
    if (typeof(url) != 'undefined') {
      window.location = url;
    }
  };
  gtag('event', 'conversion', {
      'send_to':   ' ',
      'aw_remarketing_only': true,
      'event_callback': callback
  });
  return false;
}
</script>

Type : Webpage
PageFormat:HTML
EventSnippet:
<!-- Event snippet for remarkingaction remarketing page -->
<script>
  gtag('event', 'conversion', {
      'send_to': '',
      'aw_remarketing_only': true
  });
</script>





On Tuesday, May 7, 2019 at 8:21:51 AM UTC-4, Priya wrote:
>
>
>
> I use the field *Google.Api.Ads.AdWords.v201809.RemarketingSettings.snippet 
> *in my .AdWords.v201809.  I am not able to find this field in * 
> Google.Ads.GoogleAds.V1.Resources.RemarketingSetting.* Kindly share your 
> suggestion. 
>
> Thanks. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/300c7fa3-e08c-4734-addc-cb6b814d74e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Google ... Priya
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... Priya
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to