Thanks!

I figured out the problem. Our ad is for motorcycle exhausts and pipes. 
"pipes" is triggered as advertising tobacco. The issue is I can't figure 
out how to set isExempted = True in a batch upload. The documentation using 
the AdGroupService.

Here is my code:
if create_ads:
    # Initialize BatchJobHelper.
    client = adwords.AdWordsClient.LoadFromStorage(yaml_path)
    batch_job_helper = client.GetBatchJobHelper(version='v201802')

    # Create a BatchJob.
    batch_job = campaign_batch_upload.AddBatchJob(client)

    # Retrieve the URL used to upload the BatchJob operations.
    upload_url = batch_job['uploadUrl']['url']
    batch_job_id = batch_job['id']
    print ('Created BatchJob with ID "%d", status "%s", and upload URL 
"%s"' % (
        batch_job['id'], batch_job['status'], upload_url))

    # Generate operations to upload.
    ad_operations = campaign_batch_upload.BuildAdGroupAdOperations(
        batch_job_helper, create_ads)

    # Upload operations.
    batch_job_helper.UploadOperations(
        upload_url, ad_operations)

   # Download and display results.
    download_url = 
campaign_batch_upload.GetBatchJobDownloadUrlWhenReady(client, batch_job_id)
    response = requests.get(download_url).content
    campaign_batch_upload.PrintResponse(batch_job_helper, response)
    helpers.update_ad_id(response)

else:
    print('Not ads to create')



On Tuesday, August 28, 2018 at 5:50:21 PM UTC-4, Milind Sankeshware 
(AdWords API Team) wrote:
>
> Hi Nellle,
>
> In AdWords API, you will be able to submit policy exemption requests for 
> those policy violations which has isExemptable as true. Please refer to 
> this 
> <https://developers.google.com/adwords/api/docs/guides/exemption-requests> 
> section 
> of guide for more details and code samples. If you are still facing issues, 
> could you please enable logging 
> <https://github.com/googleads/googleads-python-lib#how-do-i-log-soap-interactions>
>  and 
> share the SOAP request and response logs generated when you encountered the 
> AdPolicyError.POLICY_ERROR error? Also, you can refer to this guide 
> <https://support.google.com/google-ads/answer/6008942?hl=en> to check ad 
> policies. You can choose 'Reply privately to author' option while 
> responding.
>
> Thanks,
> Milind, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads 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/d935aa47-eb1a-4e71-80c4-0c8b6c006bf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Nellle Rickchards
    • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Nellle Rickchards
    • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Nellle Rickchards
    • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Nellle Rickchards
    • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to