tdsymonds / CPR_channel_placement_reporting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CPR - Channel Placement Reporting

An Ads script solution which finds channel placements of some creteria. Later an apps-script fetches metadata about these placements from YT API, then calls Google Ads API via REST to exclude channels at the account level.

Clients want to easily detect YT placement channels which they care about. For example: low performance with high cost. The tool reports all placements according to the client filters and shows some YT stats about each placement. Helps the clients to make logical action regarding these channels.


Project owners


Disclaimer

This is not an officially supported Google product. Copyright 2021 Google LLC. This solution, including any related sample code or data, is made available on an “as is,” “as available,” and “with all faults” basis, solely for illustrative purposes, and without warranty or representation of any kind. This solution is experimental, unsupported and provided solely for your convenience. Your use of it is subject to your agreements with Google, as applicable, and may constitute a beta feature as defined under those agreements. To the extent that you make any data available to Google in connection with your use of the solution, you represent and warrant that you have all necessary and appropriate rights, consents and permissions to permit Google to use and process that data. By using any portion of this solution, you acknowledge, assume and accept all risks, known and unknown, associated with its usage, including with respect to your deployment of any portion of this solution in your systems, or usage in connection with your business, if at all.



Create a containing document

Create a copy of the spreadsheet spreadsheet

Secure the Ads API Dev Token

You'll need a Dev token for calling the Ads API. Follow the directions here. Create a Cloud Project If you already have a GCP console for Ads API, you can use it. Otherwise, create a new one following the directions at.



Once you have a project, enable the OAuth consent screen:

image

Enable Google Ads API:

image

Associate the Cloud Project with the Google Apps Script Project Open the Apps Script editor:

image

Scroll down to Script Properties and set dev token by entering “dev_token” for Property and then pasting the value and click Save script properties:

image

Set up spreadsheet Duplicate the template tab and rename it to your 10 digit child account ID (no dashes). In the menu bar, click Activate script > Activate script:

image

We are aware of the fact that the script might notify the same placements day after day until their activity won't be included within the look back window- this is something we will try to address soon. Meanwhile you may adjust the lookback window and frequency so it won't spam too much (e.g 3 days & daily frequency) .

Spreadsheet-code Responsible for adding metadata to channels and automatically excluding them. Note: Do not make changes (adding/deleting rows) to the output table when the script is running, as this may cause data output into the incorrect rows. Fill it with a placement-id list in the dedicated column (by running the GAds script above).

image

image


License

Apache Version 2.0 See LICENSE

About

License:Apache License 2.0