I tried to create a ThirdPartyRedirectAd but sent me this error "AdError.CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS". where I approve this type of ads? my code: ThirdPartyRedirectAd thirdPartyRedirectAd = new ThirdPartyRedirectAd(); thirdPartyRedirectAd.setName("Example third party ad #" + System.currentTimeMillis()); thirdPartyRedirectAd.setUrl("http://www.example.com"); thirdPartyRedirectAd.setDimensions(new Dimensions(1080, 566)); // This field normally contains the javascript ad tag. thirdPartyRedirectAd .setSnippet("<img src=\"https://goo.gl/IfVlpF\"/>"); thirdPartyRedirectAd.setImpressionBeaconUrl("http://www.examples.com/"); // Image & Flash format id. thirdPartyRedirectAd.setCertifiedVendorFormatId(119L); thirdPartyRedirectAd.setIsCookieTargeted(false); thirdPartyRedirectAd.setIsUserInterestTargeted(false); thirdPartyRedirectAd.setIsTagged(false); AdGroupAd adGroupAd = new AdGroupAd(); adGroupAd.setAdGroupId(adGroupId); adGroupAd.setAd(thirdPartyRedirectAd); AdManager showcaseAdManager = new AdManager(adWordsConfig); AdGroupAd result = showcaseAdManager.createAd(adGroupAd);
public AdGroupAd createAd(AdGroupAd adGroupAd) throws Exception { // Create operations. AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation(); adGroupAdOperation.setOperand(adGroupAd); adGroupAdOperation.setOperator(Operator.ADD); // Add ad groups. AdGroupAdOperation[] operations = new AdGroupAdOperation[] {adGroupAdOperation}; AdGroupAdReturnValue result = adGroupAdService.mutate( operations ); return result.getValue(0); } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. 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/55149a42-cc7d-428c-89ed-d14b3748a316%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.